oci-osubusage 2.12.0
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/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +1521 -0
- package/index.d.ts +21 -0
- package/index.js +44 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +150 -0
- package/lib/client.js +413 -0
- package/lib/client.js.map +1 -0
- package/lib/model/computed-usage-aggregated-summary.d.ts +82 -0
- package/lib/model/computed-usage-aggregated-summary.js +81 -0
- package/lib/model/computed-usage-aggregated-summary.js.map +1 -0
- package/lib/model/computed-usage-aggregation.d.ts +82 -0
- package/lib/model/computed-usage-aggregation.js +77 -0
- package/lib/model/computed-usage-aggregation.js.map +1 -0
- package/lib/model/computed-usage-summary.d.ts +163 -0
- package/lib/model/computed-usage-summary.js +83 -0
- package/lib/model/computed-usage-summary.js.map +1 -0
- package/lib/model/computed-usage.d.ts +163 -0
- package/lib/model/computed-usage.js +83 -0
- package/lib/model/computed-usage.js.map +1 -0
- package/lib/model/index.d.ts +23 -0
- package/lib/model/index.js +46 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/product.d.ts +58 -0
- package/lib/model/product.js +30 -0
- package/lib/model/product.js.map +1 -0
- package/lib/request/get-computed-usage-request.d.ts +44 -0
- package/lib/request/get-computed-usage-request.js +15 -0
- package/lib/request/get-computed-usage-request.js.map +1 -0
- package/lib/request/index.d.ts +19 -0
- package/lib/request/index.js +40 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-computed-usage-aggregateds-request.d.ts +77 -0
- package/lib/request/list-computed-usage-aggregateds-request.js +26 -0
- package/lib/request/list-computed-usage-aggregateds-request.js.map +1 -0
- package/lib/request/list-computed-usages-request.d.ts +90 -0
- package/lib/request/list-computed-usages-request.js +30 -0
- package/lib/request/list-computed-usages-request.js.map +1 -0
- package/lib/response/get-computed-usage-response.d.ts +25 -0
- package/lib/response/get-computed-usage-response.js +15 -0
- package/lib/response/get-computed-usage-response.js.map +1 -0
- package/lib/response/index.d.ts +19 -0
- package/lib/response/index.js +16 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-computed-usage-aggregateds-response.d.ts +32 -0
- package/lib/response/list-computed-usage-aggregateds-response.js +15 -0
- package/lib/response/list-computed-usage-aggregateds-response.js.map +1 -0
- package/lib/response/list-computed-usages-response.d.ts +32 -0
- package/lib/response/list-computed-usages-response.js +15 -0
- package/lib/response/list-computed-usages-response.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSubscription API Usage Computation
|
|
3
|
+
* OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
|
|
4
|
+
|
|
5
|
+
* OpenAPI spec version: 20210501
|
|
6
|
+
* Contact: kuaskum_org_ww@oracle.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
import * as model from "../model";
|
|
15
|
+
/**
|
|
16
|
+
* Subscribed Service Contract details
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export interface ComputedUsageAggregatedSummary {
|
|
20
|
+
/**
|
|
21
|
+
* Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
"subscriptionId": string;
|
|
25
|
+
/**
|
|
26
|
+
* Subscribed service line parent id
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
"parentSubscribedServiceId"?: string;
|
|
30
|
+
"parentProduct"?: model.Product;
|
|
31
|
+
/**
|
|
32
|
+
* Subscribed services contract line start date, expressed in RFC 3339 timestamp format.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
"timeStart"?: Date;
|
|
36
|
+
/**
|
|
37
|
+
* Subscribed services contract line end date, expressed in RFC 3339 timestamp format.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
"timeEnd"?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* Subscribed service asociated subscription plan number.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
"planNumber"?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Currency code
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
"currencyCode"?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Inernal SPM Ratecard Id at line level
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
"rateCardId"?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Subscribed services pricing model
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
"pricingModel"?: ComputedUsageAggregatedSummary.PricingModel;
|
|
61
|
+
/**
|
|
62
|
+
* Aggregation of computed usages for the subscribed service.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
"aggregatedComputedUsages"?: Array<model.ComputedUsageAggregation>;
|
|
66
|
+
}
|
|
67
|
+
export declare namespace ComputedUsageAggregatedSummary {
|
|
68
|
+
enum PricingModel {
|
|
69
|
+
PayAsYouGo = "PAY_AS_YOU_GO",
|
|
70
|
+
Monthly = "MONTHLY",
|
|
71
|
+
Annual = "ANNUAL",
|
|
72
|
+
Prepaid = "PREPAID",
|
|
73
|
+
FundedAllocation = "FUNDED_ALLOCATION",
|
|
74
|
+
/**
|
|
75
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
76
|
+
* version of the SDK.
|
|
77
|
+
*/
|
|
78
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
79
|
+
}
|
|
80
|
+
function getJsonObj(obj: ComputedUsageAggregatedSummary): object;
|
|
81
|
+
function getDeserializedJsonObj(obj: ComputedUsageAggregatedSummary): object;
|
|
82
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OneSubscription API Usage Computation
|
|
4
|
+
* OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
|
|
5
|
+
|
|
6
|
+
* OpenAPI spec version: 20210501
|
|
7
|
+
* Contact: kuaskum_org_ww@oracle.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
13
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.ComputedUsageAggregatedSummary = void 0;
|
|
36
|
+
const model = __importStar(require("../model"));
|
|
37
|
+
var ComputedUsageAggregatedSummary;
|
|
38
|
+
(function (ComputedUsageAggregatedSummary) {
|
|
39
|
+
let PricingModel;
|
|
40
|
+
(function (PricingModel) {
|
|
41
|
+
PricingModel["PayAsYouGo"] = "PAY_AS_YOU_GO";
|
|
42
|
+
PricingModel["Monthly"] = "MONTHLY";
|
|
43
|
+
PricingModel["Annual"] = "ANNUAL";
|
|
44
|
+
PricingModel["Prepaid"] = "PREPAID";
|
|
45
|
+
PricingModel["FundedAllocation"] = "FUNDED_ALLOCATION";
|
|
46
|
+
/**
|
|
47
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
48
|
+
* version of the SDK.
|
|
49
|
+
*/
|
|
50
|
+
PricingModel["UnknownValue"] = "UNKNOWN_VALUE";
|
|
51
|
+
})(PricingModel = ComputedUsageAggregatedSummary.PricingModel || (ComputedUsageAggregatedSummary.PricingModel = {}));
|
|
52
|
+
function getJsonObj(obj) {
|
|
53
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
54
|
+
"parentProduct": obj.parentProduct
|
|
55
|
+
? model.Product.getJsonObj(obj.parentProduct)
|
|
56
|
+
: undefined,
|
|
57
|
+
"aggregatedComputedUsages": obj.aggregatedComputedUsages
|
|
58
|
+
? obj.aggregatedComputedUsages.map(item => {
|
|
59
|
+
return model.ComputedUsageAggregation.getJsonObj(item);
|
|
60
|
+
})
|
|
61
|
+
: undefined
|
|
62
|
+
});
|
|
63
|
+
return jsonObj;
|
|
64
|
+
}
|
|
65
|
+
ComputedUsageAggregatedSummary.getJsonObj = getJsonObj;
|
|
66
|
+
function getDeserializedJsonObj(obj) {
|
|
67
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
68
|
+
"parentProduct": obj.parentProduct
|
|
69
|
+
? model.Product.getDeserializedJsonObj(obj.parentProduct)
|
|
70
|
+
: undefined,
|
|
71
|
+
"aggregatedComputedUsages": obj.aggregatedComputedUsages
|
|
72
|
+
? obj.aggregatedComputedUsages.map(item => {
|
|
73
|
+
return model.ComputedUsageAggregation.getDeserializedJsonObj(item);
|
|
74
|
+
})
|
|
75
|
+
: undefined
|
|
76
|
+
});
|
|
77
|
+
return jsonObj;
|
|
78
|
+
}
|
|
79
|
+
ComputedUsageAggregatedSummary.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
80
|
+
})(ComputedUsageAggregatedSummary = exports.ComputedUsageAggregatedSummary || (exports.ComputedUsageAggregatedSummary = {}));
|
|
81
|
+
//# sourceMappingURL=computed-usage-aggregated-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computed-usage-aggregated-summary.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/model/computed-usage-aggregated-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAwDlC,IAAiB,8BAA8B,CAkD9C;AAlDD,WAAiB,8BAA8B;IAC7C,IAAY,YAWX;IAXD,WAAY,YAAY;QACtB,4CAA4B,CAAA;QAC5B,mCAAmB,CAAA;QACnB,iCAAiB,CAAA;QACjB,mCAAmB,CAAA;QACnB,sDAAsC,CAAA;QACtC;;;WAGG;QACH,8CAA8B,CAAA;IAChC,CAAC,EAXW,YAAY,GAAZ,2CAAY,KAAZ,2CAAY,QAWvB;IAED,SAAgB,UAAU,CAAC,GAAmC;QAC5D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC;gBAC7C,CAAC,CAAC,SAAS;YAEb,0BAA0B,EAAE,GAAG,CAAC,wBAAwB;gBACtD,CAAC,CAAC,GAAG,CAAC,wBAAwB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACtC,OAAO,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACzD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAjBe,yCAAU,aAiBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmC;QACxE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC;gBACzD,CAAC,CAAC,SAAS;YAEb,0BAA0B,EAAE,GAAG,CAAC,wBAAwB;gBACtD,CAAC,CAAC,GAAG,CAAC,wBAAwB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACtC,OAAO,KAAK,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACrE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAjBe,qDAAsB,yBAiBrC,CAAA;AACH,CAAC,EAlDgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAkD9C"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSubscription API Usage Computation
|
|
3
|
+
* OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
|
|
4
|
+
|
|
5
|
+
* OpenAPI spec version: 20210501
|
|
6
|
+
* Contact: kuaskum_org_ww@oracle.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
import * as model from "../model";
|
|
15
|
+
/**
|
|
16
|
+
* Computed Usage Aggregation object
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export interface ComputedUsageAggregation {
|
|
20
|
+
/**
|
|
21
|
+
* Total Quantity that was used for computation
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
"quantity"?: string;
|
|
25
|
+
"product"?: model.Product;
|
|
26
|
+
/**
|
|
27
|
+
* Data Center Attribute as sent by MQS to SPM.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
"dataCenter"?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Metered Service date , expressed in RFC 3339 timestamp format.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
"timeMeteredOn"?: Date;
|
|
36
|
+
/**
|
|
37
|
+
* Net Unit Price for the product in consideration.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
"netUnitPrice"?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Sum of Computed Line Amount unrounded
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
"costUnrounded"?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sum of Computed Line Amount rounded
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
"cost"?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Usage compute type in SPM.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
"type"?: ComputedUsageAggregation.Type;
|
|
56
|
+
}
|
|
57
|
+
export declare namespace ComputedUsageAggregation {
|
|
58
|
+
enum Type {
|
|
59
|
+
Promotion = "PROMOTION",
|
|
60
|
+
DoNotBill = "DO_NOT_BILL",
|
|
61
|
+
Usage = "USAGE",
|
|
62
|
+
Commit = "COMMIT",
|
|
63
|
+
Overage = "OVERAGE",
|
|
64
|
+
PayAsYouGo = "PAY_AS_YOU_GO",
|
|
65
|
+
MonthlyMinimum = "MONTHLY_MINIMUM",
|
|
66
|
+
DelayedUsageInvoiceTiming = "DELAYED_USAGE_INVOICE_TIMING",
|
|
67
|
+
DelayedUsageCommitmentExp = "DELAYED_USAGE_COMMITMENT_EXP",
|
|
68
|
+
OnAccountCredit = "ON_ACCOUNT_CREDIT",
|
|
69
|
+
ServiceCredit = "SERVICE_CREDIT",
|
|
70
|
+
CommitmentExpiration = "COMMITMENT_EXPIRATION",
|
|
71
|
+
FundedAllocation = "FUNDED_ALLOCATION",
|
|
72
|
+
DonotBillUsagePostTermination = "DONOT_BILL_USAGE_POST_TERMINATION",
|
|
73
|
+
DelayedUsagePostTermination = "DELAYED_USAGE_POST_TERMINATION",
|
|
74
|
+
/**
|
|
75
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
76
|
+
* version of the SDK.
|
|
77
|
+
*/
|
|
78
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
79
|
+
}
|
|
80
|
+
function getJsonObj(obj: ComputedUsageAggregation): object;
|
|
81
|
+
function getDeserializedJsonObj(obj: ComputedUsageAggregation): object;
|
|
82
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OneSubscription API Usage Computation
|
|
4
|
+
* OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
|
|
5
|
+
|
|
6
|
+
* OpenAPI spec version: 20210501
|
|
7
|
+
* Contact: kuaskum_org_ww@oracle.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
13
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.ComputedUsageAggregation = void 0;
|
|
36
|
+
const model = __importStar(require("../model"));
|
|
37
|
+
var ComputedUsageAggregation;
|
|
38
|
+
(function (ComputedUsageAggregation) {
|
|
39
|
+
let Type;
|
|
40
|
+
(function (Type) {
|
|
41
|
+
Type["Promotion"] = "PROMOTION";
|
|
42
|
+
Type["DoNotBill"] = "DO_NOT_BILL";
|
|
43
|
+
Type["Usage"] = "USAGE";
|
|
44
|
+
Type["Commit"] = "COMMIT";
|
|
45
|
+
Type["Overage"] = "OVERAGE";
|
|
46
|
+
Type["PayAsYouGo"] = "PAY_AS_YOU_GO";
|
|
47
|
+
Type["MonthlyMinimum"] = "MONTHLY_MINIMUM";
|
|
48
|
+
Type["DelayedUsageInvoiceTiming"] = "DELAYED_USAGE_INVOICE_TIMING";
|
|
49
|
+
Type["DelayedUsageCommitmentExp"] = "DELAYED_USAGE_COMMITMENT_EXP";
|
|
50
|
+
Type["OnAccountCredit"] = "ON_ACCOUNT_CREDIT";
|
|
51
|
+
Type["ServiceCredit"] = "SERVICE_CREDIT";
|
|
52
|
+
Type["CommitmentExpiration"] = "COMMITMENT_EXPIRATION";
|
|
53
|
+
Type["FundedAllocation"] = "FUNDED_ALLOCATION";
|
|
54
|
+
Type["DonotBillUsagePostTermination"] = "DONOT_BILL_USAGE_POST_TERMINATION";
|
|
55
|
+
Type["DelayedUsagePostTermination"] = "DELAYED_USAGE_POST_TERMINATION";
|
|
56
|
+
/**
|
|
57
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
58
|
+
* version of the SDK.
|
|
59
|
+
*/
|
|
60
|
+
Type["UnknownValue"] = "UNKNOWN_VALUE";
|
|
61
|
+
})(Type = ComputedUsageAggregation.Type || (ComputedUsageAggregation.Type = {}));
|
|
62
|
+
function getJsonObj(obj) {
|
|
63
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
64
|
+
"product": obj.product ? model.Product.getJsonObj(obj.product) : undefined
|
|
65
|
+
});
|
|
66
|
+
return jsonObj;
|
|
67
|
+
}
|
|
68
|
+
ComputedUsageAggregation.getJsonObj = getJsonObj;
|
|
69
|
+
function getDeserializedJsonObj(obj) {
|
|
70
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
71
|
+
"product": obj.product ? model.Product.getDeserializedJsonObj(obj.product) : undefined
|
|
72
|
+
});
|
|
73
|
+
return jsonObj;
|
|
74
|
+
}
|
|
75
|
+
ComputedUsageAggregation.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
76
|
+
})(ComputedUsageAggregation = exports.ComputedUsageAggregation || (exports.ComputedUsageAggregation = {}));
|
|
77
|
+
//# sourceMappingURL=computed-usage-aggregation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computed-usage-aggregation.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/model/computed-usage-aggregation.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA8ClC,IAAiB,wBAAwB,CA4CxC;AA5CD,WAAiB,wBAAwB;IACvC,IAAY,IAqBX;IArBD,WAAY,IAAI;QACd,+BAAuB,CAAA;QACvB,iCAAyB,CAAA;QACzB,uBAAe,CAAA;QACf,yBAAiB,CAAA;QACjB,2BAAmB,CAAA;QACnB,oCAA4B,CAAA;QAC5B,0CAAkC,CAAA;QAClC,kEAA0D,CAAA;QAC1D,kEAA0D,CAAA;QAC1D,6CAAqC,CAAA;QACrC,wCAAgC,CAAA;QAChC,sDAA8C,CAAA;QAC9C,8CAAsC,CAAA;QACtC,2EAAmE,CAAA;QACnE,sEAA8D,CAAA;QAC9D;;;WAGG;QACH,sCAA8B,CAAA;IAChC,CAAC,EArBW,IAAI,GAAJ,6BAAI,KAAJ,6BAAI,QAqBf;IAED,SAAgB,UAAU,CAAC,GAA6B;QACtD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;SAC3E,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,mCAAU,aASzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA6B;QAClE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;SACvF,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,+CAAsB,yBASrC,CAAA;AACH,CAAC,EA5CgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QA4CxC"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSubscription API Usage Computation
|
|
3
|
+
* OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
|
|
4
|
+
|
|
5
|
+
* OpenAPI spec version: 20210501
|
|
6
|
+
* Contact: kuaskum_org_ww@oracle.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
import * as model from "../model";
|
|
15
|
+
/**
|
|
16
|
+
* Computed Usage Summary object
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export interface ComputedUsageSummary {
|
|
20
|
+
/**
|
|
21
|
+
* Computed Usage created time, expressed in RFC 3339 timestamp format.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
"timeCreated"?: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Computed Usage updated time, expressed in RFC 3339 timestamp format.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
"timeUpdated"?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Subscribed service line parent id
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
"parentSubscribedServiceId"?: string;
|
|
35
|
+
"parentProduct"?: model.Product;
|
|
36
|
+
/**
|
|
37
|
+
* Subscription plan number
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
"planNumber"?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Currency code
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
"currencyCode"?: string;
|
|
46
|
+
/**
|
|
47
|
+
* References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
"rateCardTierdId"?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Ratecard Id at subscribed service level
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
"rateCardId"?: string;
|
|
56
|
+
/**
|
|
57
|
+
* SPM Internal compute records source .
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
"computeSource"?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Data Center Attribute as sent by MQS to SPM.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
"dataCenter"?: string;
|
|
66
|
+
/**
|
|
67
|
+
* MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
"mqsMessageId"?: string;
|
|
71
|
+
/**
|
|
72
|
+
* SPM Internal computed usage Id , 32 character string
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
"computedUsageId": string;
|
|
76
|
+
/**
|
|
77
|
+
* Total Quantity that was used for computation
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
"quantity"?: string;
|
|
81
|
+
/**
|
|
82
|
+
* SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
"usageNumber"?: string;
|
|
86
|
+
/**
|
|
87
|
+
* SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
"originalUsageNumber"?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Subscribed service commitmentId.
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
"commitmentServiceId"?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Invoicing status for the aggregated compute usage
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
"isInvoiced"?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Usage compute type in SPM.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
"type"?: ComputedUsageSummary.Type;
|
|
106
|
+
/**
|
|
107
|
+
* Usae computation date, expressed in RFC 3339 timestamp format.
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
"timeOfArrival"?: Date;
|
|
111
|
+
/**
|
|
112
|
+
* Metered Service date, expressed in RFC 3339 timestamp format.
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
"timeMeteredOn"?: Date;
|
|
116
|
+
/**
|
|
117
|
+
* Net Unit Price for the product in consideration, price actual.
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
"netUnitPrice"?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Computed Line Amount rounded.
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
"costRounded"?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Computed Line Amount not rounded
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
"cost"?: string;
|
|
131
|
+
"product"?: model.Product;
|
|
132
|
+
/**
|
|
133
|
+
* Unit of Messure
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
"unitOfMeasure"?: string;
|
|
137
|
+
}
|
|
138
|
+
export declare namespace ComputedUsageSummary {
|
|
139
|
+
enum Type {
|
|
140
|
+
Promotion = "PROMOTION",
|
|
141
|
+
DoNotBill = "DO_NOT_BILL",
|
|
142
|
+
Usage = "USAGE",
|
|
143
|
+
Commit = "COMMIT",
|
|
144
|
+
Overage = "OVERAGE",
|
|
145
|
+
PayAsYouGo = "PAY_AS_YOU_GO",
|
|
146
|
+
MonthlyMinimum = "MONTHLY_MINIMUM",
|
|
147
|
+
DelayedUsageInvoiceTiming = "DELAYED_USAGE_INVOICE_TIMING",
|
|
148
|
+
DelayedUsageCommitmentExp = "DELAYED_USAGE_COMMITMENT_EXP",
|
|
149
|
+
OnAccountCredit = "ON_ACCOUNT_CREDIT",
|
|
150
|
+
ServiceCredit = "SERVICE_CREDIT",
|
|
151
|
+
CommitmentExpiration = "COMMITMENT_EXPIRATION",
|
|
152
|
+
FundedAllocation = "FUNDED_ALLOCATION",
|
|
153
|
+
DonotBillUsagePostTermination = "DONOT_BILL_USAGE_POST_TERMINATION",
|
|
154
|
+
DelayedUsagePostTermination = "DELAYED_USAGE_POST_TERMINATION",
|
|
155
|
+
/**
|
|
156
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
157
|
+
* version of the SDK.
|
|
158
|
+
*/
|
|
159
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
160
|
+
}
|
|
161
|
+
function getJsonObj(obj: ComputedUsageSummary): object;
|
|
162
|
+
function getDeserializedJsonObj(obj: ComputedUsageSummary): object;
|
|
163
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OneSubscription API Usage Computation
|
|
4
|
+
* OneSubscription API Common set of Subscription Plan Management (SPM) Usage Computation resources
|
|
5
|
+
|
|
6
|
+
* OpenAPI spec version: 20210501
|
|
7
|
+
* Contact: kuaskum_org_ww@oracle.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
13
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.ComputedUsageSummary = void 0;
|
|
36
|
+
const model = __importStar(require("../model"));
|
|
37
|
+
var ComputedUsageSummary;
|
|
38
|
+
(function (ComputedUsageSummary) {
|
|
39
|
+
let Type;
|
|
40
|
+
(function (Type) {
|
|
41
|
+
Type["Promotion"] = "PROMOTION";
|
|
42
|
+
Type["DoNotBill"] = "DO_NOT_BILL";
|
|
43
|
+
Type["Usage"] = "USAGE";
|
|
44
|
+
Type["Commit"] = "COMMIT";
|
|
45
|
+
Type["Overage"] = "OVERAGE";
|
|
46
|
+
Type["PayAsYouGo"] = "PAY_AS_YOU_GO";
|
|
47
|
+
Type["MonthlyMinimum"] = "MONTHLY_MINIMUM";
|
|
48
|
+
Type["DelayedUsageInvoiceTiming"] = "DELAYED_USAGE_INVOICE_TIMING";
|
|
49
|
+
Type["DelayedUsageCommitmentExp"] = "DELAYED_USAGE_COMMITMENT_EXP";
|
|
50
|
+
Type["OnAccountCredit"] = "ON_ACCOUNT_CREDIT";
|
|
51
|
+
Type["ServiceCredit"] = "SERVICE_CREDIT";
|
|
52
|
+
Type["CommitmentExpiration"] = "COMMITMENT_EXPIRATION";
|
|
53
|
+
Type["FundedAllocation"] = "FUNDED_ALLOCATION";
|
|
54
|
+
Type["DonotBillUsagePostTermination"] = "DONOT_BILL_USAGE_POST_TERMINATION";
|
|
55
|
+
Type["DelayedUsagePostTermination"] = "DELAYED_USAGE_POST_TERMINATION";
|
|
56
|
+
/**
|
|
57
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
58
|
+
* version of the SDK.
|
|
59
|
+
*/
|
|
60
|
+
Type["UnknownValue"] = "UNKNOWN_VALUE";
|
|
61
|
+
})(Type = ComputedUsageSummary.Type || (ComputedUsageSummary.Type = {}));
|
|
62
|
+
function getJsonObj(obj) {
|
|
63
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
64
|
+
"parentProduct": obj.parentProduct
|
|
65
|
+
? model.Product.getJsonObj(obj.parentProduct)
|
|
66
|
+
: undefined,
|
|
67
|
+
"product": obj.product ? model.Product.getJsonObj(obj.product) : undefined
|
|
68
|
+
});
|
|
69
|
+
return jsonObj;
|
|
70
|
+
}
|
|
71
|
+
ComputedUsageSummary.getJsonObj = getJsonObj;
|
|
72
|
+
function getDeserializedJsonObj(obj) {
|
|
73
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
74
|
+
"parentProduct": obj.parentProduct
|
|
75
|
+
? model.Product.getDeserializedJsonObj(obj.parentProduct)
|
|
76
|
+
: undefined,
|
|
77
|
+
"product": obj.product ? model.Product.getDeserializedJsonObj(obj.product) : undefined
|
|
78
|
+
});
|
|
79
|
+
return jsonObj;
|
|
80
|
+
}
|
|
81
|
+
ComputedUsageSummary.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
82
|
+
})(ComputedUsageSummary = exports.ComputedUsageSummary || (exports.ComputedUsageSummary = {}));
|
|
83
|
+
//# sourceMappingURL=computed-usage-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computed-usage-summary.js","sourceRoot":"","sources":["../../../../../lib/osubusage/lib/model/computed-usage-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA+HlC,IAAiB,oBAAoB,CAoDpC;AApDD,WAAiB,oBAAoB;IACnC,IAAY,IAqBX;IArBD,WAAY,IAAI;QACd,+BAAuB,CAAA;QACvB,iCAAyB,CAAA;QACzB,uBAAe,CAAA;QACf,yBAAiB,CAAA;QACjB,2BAAmB,CAAA;QACnB,oCAA4B,CAAA;QAC5B,0CAAkC,CAAA;QAClC,kEAA0D,CAAA;QAC1D,kEAA0D,CAAA;QAC1D,6CAAqC,CAAA;QACrC,wCAAgC,CAAA;QAChC,sDAA8C,CAAA;QAC9C,8CAAsC,CAAA;QACtC,2EAAmE,CAAA;QACnE,sEAA8D,CAAA;QAC9D;;;WAGG;QACH,sCAA8B,CAAA;IAChC,CAAC,EArBW,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QAqBf;IAED,SAAgB,UAAU,CAAC,GAAyB;QAClD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC;gBAC7C,CAAC,CAAC,SAAS;YAEb,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;SAC3E,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,+BAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAyB;QAC9D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC;gBACzD,CAAC,CAAC,SAAS;YAEb,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;SACvF,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,2CAAsB,yBAarC,CAAA;AACH,CAAC,EApDgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAoDpC"}
|