@azure/arm-commitmentplans 1.3.1 → 2.0.0-beta.1
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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +1794 -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/src/azureMLCommitmentPlansManagementClient.d.ts +22 -0
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.js +55 -0
- package/dist-esm/src/azureMLCommitmentPlansManagementClient.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/models/index.d.ts +522 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +27 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +24 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +352 -337
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +125 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/commitmentAssociations.d.ts +55 -0
- package/dist-esm/src/operations/commitmentAssociations.d.ts.map +1 -0
- package/dist-esm/src/operations/commitmentAssociations.js +203 -0
- package/dist-esm/src/operations/commitmentAssociations.js.map +1 -0
- package/dist-esm/src/operations/commitmentPlans.d.ts +84 -0
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -0
- package/dist-esm/src/operations/commitmentPlans.js +332 -0
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +87 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/skus.d.ts +26 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +87 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operations/usageHistory.d.ts +38 -0
- package/dist-esm/src/operations/usageHistory.d.ts.map +1 -0
- package/dist-esm/src/operations/usageHistory.js +131 -0
- package/dist-esm/src/operations/usageHistory.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts +30 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.js +9 -0
- package/dist-esm/src/operationsInterfaces/commitmentAssociations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.js +9 -0
- package/dist-esm/src/operationsInterfaces/commitmentPlans.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -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/src/operationsInterfaces/skus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.js +9 -0
- package/dist-esm/src/operationsInterfaces/usageHistory.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 +74 -33
- package/review/arm-commitmentplans.api.md +405 -0
- package/rollup.config.js +184 -27
- package/src/azureMLCommitmentPlansManagementClient.ts +82 -41
- package/src/index.ts +12 -0
- package/src/models/index.ts +388 -745
- package/src/models/mappers.ts +354 -336
- package/src/models/parameters.ts +87 -35
- package/src/operations/commitmentAssociations.ts +183 -174
- package/src/operations/commitmentPlans.ts +277 -340
- package/src/operations/index.ts +4 -5
- package/src/operations/operations.ts +95 -0
- package/src/operations/skus.ts +65 -48
- package/src/operations/usageHistory.ts +135 -89
- package/src/operationsInterfaces/commitmentAssociations.ts +62 -0
- package/src/operationsInterfaces/commitmentPlans.ts +92 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/skus.ts +22 -0
- package/src/operationsInterfaces/usageHistory.ts +26 -0
- package/tsconfig.json +6 -5
- package/types/arm-commitmentplans.d.ts +706 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-commitmentplans.js +0 -1659
- package/dist/arm-commitmentplans.js.map +0 -1
- package/dist/arm-commitmentplans.min.js +0 -1
- package/dist/arm-commitmentplans.min.js.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClient.d.ts +0 -27
- package/esm/azureMLCommitmentPlansManagementClient.d.ts.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClient.js +0 -41
- package/esm/azureMLCommitmentPlansManagementClient.js.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClientContext.d.ts +0 -22
- package/esm/azureMLCommitmentPlansManagementClientContext.d.ts.map +0 -1
- package/esm/azureMLCommitmentPlansManagementClientContext.js +0 -61
- package/esm/azureMLCommitmentPlansManagementClientContext.js.map +0 -1
- package/esm/models/commitmentAssociationsMappers.d.ts +0 -2
- package/esm/models/commitmentAssociationsMappers.d.ts.map +0 -1
- package/esm/models/commitmentAssociationsMappers.js +0 -11
- package/esm/models/commitmentAssociationsMappers.js.map +0 -1
- package/esm/models/commitmentPlansMappers.d.ts +0 -2
- package/esm/models/commitmentPlansMappers.d.ts.map +0 -1
- package/esm/models/commitmentPlansMappers.js +0 -11
- package/esm/models/commitmentPlansMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -901
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -23
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -93
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js +0 -11
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/usageHistoryMappers.d.ts +0 -2
- package/esm/models/usageHistoryMappers.d.ts.map +0 -1
- package/esm/models/usageHistoryMappers.js +0 -11
- package/esm/models/usageHistoryMappers.js.map +0 -1
- package/esm/operations/commitmentAssociations.d.ts +0 -103
- package/esm/operations/commitmentAssociations.d.ts.map +0 -1
- package/esm/operations/commitmentAssociations.js +0 -157
- package/esm/operations/commitmentAssociations.js.map +0 -1
- package/esm/operations/commitmentPlans.d.ts +0 -175
- package/esm/operations/commitmentPlans.d.ts.map +0 -1
- package/esm/operations/commitmentPlans.js +0 -273
- package/esm/operations/commitmentPlans.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/skus.d.ts +0 -28
- package/esm/operations/skus.d.ts.map +0 -1
- package/esm/operations/skus.js +0 -54
- package/esm/operations/skus.js.map +0 -1
- package/esm/operations/usageHistory.d.ts +0 -52
- package/esm/operations/usageHistory.d.ts.map +0 -1
- package/esm/operations/usageHistory.js +0 -85
- package/esm/operations/usageHistory.js.map +0 -1
- package/src/azureMLCommitmentPlansManagementClientContext.ts +0 -68
- package/src/models/commitmentAssociationsMappers.ts +0 -24
- package/src/models/commitmentPlansMappers.ts +0 -24
- package/src/models/skusMappers.ts +0 -20
- package/src/models/usageHistoryMappers.ts +0 -16
|
@@ -1,54 +1,95 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import * as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreAuth from "@azure/core-auth";
|
|
11
|
+
import {
|
|
12
|
+
OperationsImpl,
|
|
13
|
+
SkusImpl,
|
|
14
|
+
CommitmentAssociationsImpl,
|
|
15
|
+
CommitmentPlansImpl,
|
|
16
|
+
UsageHistoryImpl
|
|
17
|
+
} from "./operations";
|
|
18
|
+
import {
|
|
19
|
+
Operations,
|
|
20
|
+
Skus,
|
|
21
|
+
CommitmentAssociations,
|
|
22
|
+
CommitmentPlans,
|
|
23
|
+
UsageHistory
|
|
24
|
+
} from "./operationsInterfaces";
|
|
25
|
+
import { AzureMLCommitmentPlansManagementClientOptionalParams } from "./models";
|
|
17
26
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
commitmentAssociations: operations.CommitmentAssociations;
|
|
23
|
-
commitmentPlans: operations.CommitmentPlans;
|
|
24
|
-
usageHistory: operations.UsageHistory;
|
|
27
|
+
export class AzureMLCommitmentPlansManagementClient extends coreClient.ServiceClient {
|
|
28
|
+
$host: string;
|
|
29
|
+
apiVersion: string;
|
|
30
|
+
subscriptionId: string;
|
|
25
31
|
|
|
26
32
|
/**
|
|
27
33
|
* Initializes a new instance of the AzureMLCommitmentPlansManagementClient class.
|
|
28
|
-
* @param credentials
|
|
29
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
30
|
-
* more information about these credentials, see
|
|
31
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
32
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
33
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
34
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
34
35
|
* @param subscriptionId Azure Subscription ID.
|
|
35
|
-
* @param
|
|
36
|
+
* @param options The parameter options
|
|
36
37
|
*/
|
|
37
|
-
constructor(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
38
|
+
constructor(
|
|
39
|
+
credentials: coreAuth.TokenCredential,
|
|
40
|
+
subscriptionId: string,
|
|
41
|
+
options?: AzureMLCommitmentPlansManagementClientOptionalParams
|
|
42
|
+
) {
|
|
43
|
+
if (credentials === undefined) {
|
|
44
|
+
throw new Error("'credentials' cannot be null");
|
|
45
|
+
}
|
|
46
|
+
if (subscriptionId === undefined) {
|
|
47
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Initializing default values for options
|
|
51
|
+
if (!options) {
|
|
52
|
+
options = {};
|
|
53
|
+
}
|
|
54
|
+
const defaults: AzureMLCommitmentPlansManagementClientOptionalParams = {
|
|
55
|
+
requestContentType: "application/json; charset=utf-8",
|
|
56
|
+
credential: credentials
|
|
57
|
+
};
|
|
45
58
|
|
|
46
|
-
|
|
59
|
+
const packageDetails = `azsdk-js-arm-commitmentplans/2.0.0-beta.1`;
|
|
60
|
+
const userAgentPrefix =
|
|
61
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
62
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
63
|
+
: `${packageDetails}`;
|
|
47
64
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
65
|
+
if (!options.credentialScopes) {
|
|
66
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
67
|
+
}
|
|
68
|
+
const optionsWithDefaults = {
|
|
69
|
+
...defaults,
|
|
70
|
+
...options,
|
|
71
|
+
userAgentOptions: {
|
|
72
|
+
userAgentPrefix
|
|
73
|
+
},
|
|
74
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
75
|
+
};
|
|
76
|
+
super(optionsWithDefaults);
|
|
77
|
+
// Parameter assignments
|
|
78
|
+
this.subscriptionId = subscriptionId;
|
|
79
|
+
|
|
80
|
+
// Assigning values to Constant parameters
|
|
81
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
82
|
+
this.apiVersion = options.apiVersion || "2016-05-01-preview";
|
|
83
|
+
this.operations = new OperationsImpl(this);
|
|
84
|
+
this.skus = new SkusImpl(this);
|
|
85
|
+
this.commitmentAssociations = new CommitmentAssociationsImpl(this);
|
|
86
|
+
this.commitmentPlans = new CommitmentPlansImpl(this);
|
|
87
|
+
this.usageHistory = new UsageHistoryImpl(this);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
operations: Operations;
|
|
91
|
+
skus: Skus;
|
|
92
|
+
commitmentAssociations: CommitmentAssociations;
|
|
93
|
+
commitmentPlans: CommitmentPlans;
|
|
94
|
+
usageHistory: UsageHistory;
|
|
95
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
|
|
9
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { AzureMLCommitmentPlansManagementClient } from "./azureMLCommitmentPlansManagementClient";
|
|
12
|
+
export * from "./operationsInterfaces";
|