@azure/arm-oep 1.0.0-alpha.20220119.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +1216 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/locationsCheckNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/locationsCheckNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationsCheckNameAvailability.js +33 -0
- package/dist-esm/samples-dev/locationsCheckNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/oepResourceCreate.d.ts +2 -0
- package/dist-esm/samples-dev/oepResourceCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/oepResourceCreate.js +31 -0
- package/dist-esm/samples-dev/oepResourceCreate.js.map +1 -0
- package/dist-esm/samples-dev/oepResourceDelete.d.ts +2 -0
- package/dist-esm/samples-dev/oepResourceDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/oepResourceDelete.js +31 -0
- package/dist-esm/samples-dev/oepResourceDelete.js.map +1 -0
- package/dist-esm/samples-dev/oepResourceGet.d.ts +2 -0
- package/dist-esm/samples-dev/oepResourceGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/oepResourceGet.js +31 -0
- package/dist-esm/samples-dev/oepResourceGet.js.map +1 -0
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/oepResourceListByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.d.ts +2 -0
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.d.ts.map +1 -0
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.js +43 -0
- package/dist-esm/samples-dev/oepResourceListBySubscriptionId.js.map +1 -0
- package/dist-esm/samples-dev/oepResourceUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/oepResourceUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/oepResourceUpdate.js +31 -0
- package/dist-esm/samples-dev/oepResourceUpdate.js.map +1 -0
- package/dist-esm/samples-dev/operationsList.d.ts +2 -0
- package/dist-esm/samples-dev/operationsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsList.js +29 -0
- package/dist-esm/samples-dev/operationsList.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +351 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +45 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +17 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +454 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +113 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/openEnergyPlatformManagementServiceAPIs.d.ts +20 -0
- package/dist-esm/src/openEnergyPlatformManagementServiceAPIs.d.ts.map +1 -0
- package/dist-esm/src/openEnergyPlatformManagementServiceAPIs.js +53 -0
- package/dist-esm/src/openEnergyPlatformManagementServiceAPIs.js.map +1 -0
- package/dist-esm/src/operations/energyServices.d.ts +95 -0
- package/dist-esm/src/operations/energyServices.d.ts.map +1 -0
- package/dist-esm/src/operations/energyServices.js +425 -0
- package/dist-esm/src/operations/energyServices.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +19 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +48 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/energyServices.d.ts +59 -0
- package/dist-esm/src/operationsInterfaces/energyServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/energyServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/energyServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-oep.api.md +316 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +403 -0
- package/src/models/mappers.ts +475 -0
- package/src/models/parameters.ts +133 -0
- package/src/openEnergyPlatformManagementServiceAPIs.ts +83 -0
- package/src/operations/energyServices.ts +564 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/locations.ts +67 -0
- package/src/operations/operations.ts +59 -0
- package/src/operationsInterfaces/energyServices.ts +113 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/locations.ts +26 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/tsconfig.json +20 -0
- package/types/arm-oep.d.ts +492 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,uCAAuC,EAAE,MAAM,4CAA4C,CAAC;AACrG,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IAEjE;;;OAGG;gBACS,MAAM,EAAE,uCAAuC;IAI3D;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;CAGnC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers";
|
|
10
|
+
import * as Parameters from "../models/parameters";
|
|
11
|
+
/** Class containing Operations operations. */
|
|
12
|
+
export class OperationsImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class Operations class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Lists the available operations of Microsoft.OpenEnergyPlatform resource provider.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
list(options) {
|
|
25
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
// Operation Specifications
|
|
29
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
30
|
+
const listOperationSpec = {
|
|
31
|
+
path: "/providers/Microsoft.OpenEnergyPlatform/operations",
|
|
32
|
+
httpMethod: "GET",
|
|
33
|
+
responses: {
|
|
34
|
+
200: {
|
|
35
|
+
bodyMapper: Mappers.OperationListResult
|
|
36
|
+
},
|
|
37
|
+
default: {
|
|
38
|
+
bodyMapper: Mappers.ErrorResponse
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
queryParameters: [Parameters.apiVersion],
|
|
42
|
+
urlParameters: [Parameters.$host],
|
|
43
|
+
headerParameters: [Parameters.accept],
|
|
44
|
+
serializer
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+C;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,oDAAoD;IAC1D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { EnergyService, EnergyServicesListByResourceGroupOptionalParams, EnergyServicesListBySubscriptionOptionalParams, EnergyServicesGetOptionalParams, EnergyServicesGetResponse, EnergyServicesCreateOptionalParams, EnergyServicesCreateResponse, EnergyServicesUpdateOptionalParams, EnergyServicesUpdateResponse, EnergyServicesDeleteOptionalParams } from "../models";
|
|
4
|
+
/** Interface representing a EnergyServices. */
|
|
5
|
+
export interface EnergyServices {
|
|
6
|
+
/**
|
|
7
|
+
* Returns list of oep resources..
|
|
8
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
listByResourceGroup(resourceGroupName: string, options?: EnergyServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<EnergyService>;
|
|
12
|
+
/**
|
|
13
|
+
* Lists a collection of oep resources under the given Azure Subscription ID.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
listBySubscription(options?: EnergyServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<EnergyService>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns oep resource for a given name.
|
|
19
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
20
|
+
* @param resourceName The resource name.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
get(resourceGroupName: string, resourceName: string, options?: EnergyServicesGetOptionalParams): Promise<EnergyServicesGetResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param resourceName The resource name.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
beginCreate(resourceGroupName: string, resourceName: string, options?: EnergyServicesCreateOptionalParams): Promise<PollerLike<PollOperationState<EnergyServicesCreateResponse>, EnergyServicesCreateResponse>>;
|
|
31
|
+
/**
|
|
32
|
+
* Method that gets called if subscribed for ResourceCreationBegin trigger.
|
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
34
|
+
* @param resourceName The resource name.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
beginCreateAndWait(resourceGroupName: string, resourceName: string, options?: EnergyServicesCreateOptionalParams): Promise<EnergyServicesCreateResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
|
+
* @param resourceName The resource name.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
update(resourceGroupName: string, resourceName: string, options?: EnergyServicesUpdateOptionalParams): Promise<EnergyServicesUpdateResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Deletes oep resource
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
|
+
* @param resourceName The resource name.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
beginDelete(resourceGroupName: string, resourceName: string, options?: EnergyServicesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
51
|
+
/**
|
|
52
|
+
* Deletes oep resource
|
|
53
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
54
|
+
* @param resourceName The resource name.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: EnergyServicesDeleteOptionalParams): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=energyServices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energyServices.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/energyServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,aAAa,EACb,+CAA+C,EAC/C,8CAA8C,EAC9C,+BAA+B,EAC/B,yBAAyB,EACzB,kCAAkC,EAClC,4BAA4B,EAC5B,kCAAkC,EAClC,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,WAAW,CAAC;AAGnB,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,4BAA4B,CAAC,EAChD,4BAA4B,CAC7B,CACF,CAAC;IACF;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACzC;;;;OAIG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACzC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=energyServices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energyServices.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/energyServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./locations";
|
|
9
|
+
export * from "./energyServices";
|
|
10
|
+
export * from "./operations";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CheckNameAvailabilityRequest, LocationsCheckNameAvailabilityOptionalParams, LocationsCheckNameAvailabilityResponse } from "../models";
|
|
2
|
+
/** Interface representing a Locations. */
|
|
3
|
+
export interface Locations {
|
|
4
|
+
/**
|
|
5
|
+
* Checks the name availability of the resource with requested resource name.
|
|
6
|
+
* @param body NameAvailabilityRequest object.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
checkNameAvailability(body: CheckNameAvailabilityRequest, options?: LocationsCheckNameAvailabilityOptionalParams): Promise<LocationsCheckNameAvailabilityResponse>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/locations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,WAAW,CAAC;AAEnB,0CAA0C;AAC1C,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,qBAAqB,CACnB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC,CAAC;CACpD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/locations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OperationsListOptionalParams, OperationsListResponse } from "../models";
|
|
2
|
+
/** Interface representing a Operations. */
|
|
3
|
+
export interface Operations {
|
|
4
|
+
/**
|
|
5
|
+
* Lists the available operations of Microsoft.OpenEnergyPlatform resource provider.
|
|
6
|
+
* @param options The options parameters.
|
|
7
|
+
*/
|
|
8
|
+
list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC/E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import { record } from "@azure-tools/test-recorder";
|
|
10
|
+
const recorderEnvSetup = {
|
|
11
|
+
replaceableVariables: {
|
|
12
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
13
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
14
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
15
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
16
|
+
},
|
|
17
|
+
customizationsOnRecordings: [
|
|
18
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
+
],
|
|
20
|
+
queryParametersToSkip: []
|
|
21
|
+
};
|
|
22
|
+
describe("My test", () => {
|
|
23
|
+
let recorder;
|
|
24
|
+
beforeEach(function () {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
recorder = record(this, recorderEnvSetup);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
afterEach(function () {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield recorder.stop();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
it("sample test", function () {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
console.log("Hi, I'm a test!");
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@azure/arm-oep",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
4
|
+
"author": "Microsoft Corporation",
|
|
5
|
+
"description": "A generated SDK for OpenEnergyPlatformManagementServiceAPIs.",
|
|
6
|
+
"version": "1.0.0-alpha.20220119.3",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@azure/core-lro": "^2.2.0",
|
|
12
|
+
"@azure/abort-controller": "^1.0.0",
|
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
|
14
|
+
"@azure/core-client": "^1.0.0",
|
|
15
|
+
"@azure/core-auth": "^1.3.0",
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
17
|
+
"tslib": "^2.2.0"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"node",
|
|
21
|
+
"azure",
|
|
22
|
+
"typescript",
|
|
23
|
+
"browser",
|
|
24
|
+
"isomorphic"
|
|
25
|
+
],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-oep.d.ts",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@microsoft/api-extractor": "^7.18.11",
|
|
32
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
33
|
+
"@rollup/plugin-json": "^4.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^3.0.0",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^8.0.0",
|
|
36
|
+
"mkdirp": "^1.0.4",
|
|
37
|
+
"rollup": "^1.16.3",
|
|
38
|
+
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
39
|
+
"typescript": "~4.2.0",
|
|
40
|
+
"uglify-js": "^3.4.9",
|
|
41
|
+
"rimraf": "^3.0.0",
|
|
42
|
+
"@azure/identity": "^2.0.1",
|
|
43
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
44
|
+
"mocha": "^7.1.1",
|
|
45
|
+
"cross-env": "^7.0.2"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/oep/arm-oep",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
51
|
+
},
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist/**/*.js",
|
|
57
|
+
"dist/**/*.js.map",
|
|
58
|
+
"dist/**/*.d.ts",
|
|
59
|
+
"dist/**/*.d.ts.map",
|
|
60
|
+
"dist-esm/**/*.js",
|
|
61
|
+
"dist-esm/**/*.js.map",
|
|
62
|
+
"dist-esm/**/*.d.ts",
|
|
63
|
+
"dist-esm/**/*.d.ts.map",
|
|
64
|
+
"src/**/*.ts",
|
|
65
|
+
"README.md",
|
|
66
|
+
"LICENSE",
|
|
67
|
+
"rollup.config.js",
|
|
68
|
+
"tsconfig.json",
|
|
69
|
+
"review/*",
|
|
70
|
+
"CHANGELOG.md",
|
|
71
|
+
"types/*"
|
|
72
|
+
],
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
75
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
76
|
+
"prepack": "npm run build",
|
|
77
|
+
"pack": "npm pack 2>&1",
|
|
78
|
+
"extract-api": "api-extractor run --local",
|
|
79
|
+
"lint": "echo skipped",
|
|
80
|
+
"audit": "echo skipped",
|
|
81
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
82
|
+
"build:node": "echo skipped",
|
|
83
|
+
"build:browser": "echo skipped",
|
|
84
|
+
"build:test": "echo skipped",
|
|
85
|
+
"build:samples": "echo skipped.",
|
|
86
|
+
"check-format": "echo skipped",
|
|
87
|
+
"execute:samples": "echo skipped",
|
|
88
|
+
"format": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
90
|
+
"test:node": "echo skipped",
|
|
91
|
+
"test:browser": "echo skipped",
|
|
92
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
|
+
"unit-test:browser": "echo skipped",
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
97
|
+
"integration-test:browser": "echo skipped",
|
|
98
|
+
"docs": "echo skipped"
|
|
99
|
+
},
|
|
100
|
+
"sideEffects": false,
|
|
101
|
+
"//metadata": {
|
|
102
|
+
"constantPaths": [
|
|
103
|
+
{
|
|
104
|
+
"path": "src/OpenEnergyPlatformManagementServiceAPIs.ts",
|
|
105
|
+
"prefix": "packageDetails"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"autoPublish": true,
|
|
110
|
+
"//sampleConfiguration": {
|
|
111
|
+
"productName": "",
|
|
112
|
+
"productSlugs": [
|
|
113
|
+
"azure"
|
|
114
|
+
],
|
|
115
|
+
"disableDocsMs": true,
|
|
116
|
+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-oep?view=azure-node-preview"
|
|
117
|
+
}
|
|
118
|
+
}
|