oci-stackmonitoring 2.69.0 → 2.70.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.
Files changed (102) hide show
  1. package/lib/client.d.ts +95 -22
  2. package/lib/client.js +414 -22
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/auto-promote-config-details.d.ts +44 -0
  5. package/lib/model/auto-promote-config-details.js +61 -0
  6. package/lib/model/auto-promote-config-details.js.map +1 -0
  7. package/lib/model/auto-promote-config-summary.d.ts +41 -0
  8. package/lib/model/auto-promote-config-summary.js +63 -0
  9. package/lib/model/auto-promote-config-summary.js.map +1 -0
  10. package/lib/model/change-config-compartment-details.d.ts +27 -0
  11. package/lib/model/change-config-compartment-details.js +29 -0
  12. package/lib/model/change-config-compartment-details.js.map +1 -0
  13. package/lib/model/config-collection.d.ts +26 -0
  14. package/lib/model/config-collection.js +61 -0
  15. package/lib/model/config-collection.js.map +1 -0
  16. package/lib/model/config-summary.d.ts +74 -0
  17. package/lib/model/config-summary.js +68 -0
  18. package/lib/model/config-summary.js.map +1 -0
  19. package/lib/model/config.d.ts +93 -0
  20. package/lib/model/config.js +82 -0
  21. package/lib/model/config.js.map +1 -0
  22. package/lib/model/create-auto-promote-config-details.d.ts +36 -0
  23. package/lib/model/create-auto-promote-config-details.js +58 -0
  24. package/lib/model/create-auto-promote-config-details.js.map +1 -0
  25. package/lib/model/create-config-details.d.ts +48 -0
  26. package/lib/model/create-config-details.js +68 -0
  27. package/lib/model/create-config-details.js.map +1 -0
  28. package/lib/model/index.d.ts +20 -0
  29. package/lib/model/index.js +22 -2
  30. package/lib/model/index.js.map +1 -1
  31. package/lib/model/update-auto-promote-config-details.d.ts +29 -0
  32. package/lib/model/update-auto-promote-config-details.js +54 -0
  33. package/lib/model/update-auto-promote-config-details.js.map +1 -0
  34. package/lib/model/update-config-details.d.ts +44 -0
  35. package/lib/model/update-config-details.js +68 -0
  36. package/lib/model/update-config-details.js.map +1 -0
  37. package/lib/request/associate-monitored-resources-request.d.ts +1 -1
  38. package/lib/request/change-config-compartment-request.d.ts +51 -0
  39. package/lib/request/change-config-compartment-request.js +15 -0
  40. package/lib/request/change-config-compartment-request.js.map +1 -0
  41. package/lib/request/change-monitored-resource-compartment-request.d.ts +1 -1
  42. package/lib/request/create-config-request.d.ts +38 -0
  43. package/lib/request/create-config-request.js +15 -0
  44. package/lib/request/create-config-request.js.map +1 -0
  45. package/lib/request/create-discovery-job-request.d.ts +1 -1
  46. package/lib/request/create-monitored-resource-request.d.ts +1 -1
  47. package/lib/request/delete-config-request.d.ts +37 -0
  48. package/lib/request/delete-config-request.js +15 -0
  49. package/lib/request/delete-config-request.js.map +1 -0
  50. package/lib/request/delete-discovery-job-request.d.ts +1 -1
  51. package/lib/request/delete-monitored-resource-request.d.ts +1 -1
  52. package/lib/request/disable-external-database-request.d.ts +1 -1
  53. package/lib/request/disassociate-monitored-resources-request.d.ts +1 -1
  54. package/lib/request/get-config-request.d.ts +28 -0
  55. package/lib/request/get-config-request.js +15 -0
  56. package/lib/request/get-config-request.js.map +1 -0
  57. package/lib/request/get-discovery-job-request.d.ts +1 -1
  58. package/lib/request/get-monitored-resource-request.d.ts +1 -1
  59. package/lib/request/get-work-request-request.d.ts +1 -1
  60. package/lib/request/index.d.ts +12 -0
  61. package/lib/request/index.js +3 -1
  62. package/lib/request/index.js.map +1 -1
  63. package/lib/request/list-configs-request.d.ts +74 -0
  64. package/lib/request/list-configs-request.js +25 -0
  65. package/lib/request/list-configs-request.js.map +1 -0
  66. package/lib/request/list-discovery-job-logs-request.d.ts +1 -1
  67. package/lib/request/list-discovery-jobs-request.d.ts +1 -1
  68. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  69. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  70. package/lib/request/list-work-requests-request.d.ts +1 -1
  71. package/lib/request/search-associated-resources-request.d.ts +1 -1
  72. package/lib/request/search-monitored-resource-associations-request.d.ts +1 -1
  73. package/lib/request/search-monitored-resource-members-request.d.ts +1 -1
  74. package/lib/request/search-monitored-resources-request.d.ts +1 -1
  75. package/lib/request/update-and-propagate-tags-request.d.ts +1 -1
  76. package/lib/request/update-config-request.d.ts +42 -0
  77. package/lib/request/update-config-request.js +15 -0
  78. package/lib/request/update-config-request.js.map +1 -0
  79. package/lib/request/update-monitored-resource-request.d.ts +1 -1
  80. package/lib/response/change-config-compartment-response.d.ts +20 -0
  81. package/lib/response/change-config-compartment-response.js +15 -0
  82. package/lib/response/change-config-compartment-response.js.map +1 -0
  83. package/lib/response/create-config-response.d.ts +30 -0
  84. package/lib/response/create-config-response.js +15 -0
  85. package/lib/response/create-config-response.js.map +1 -0
  86. package/lib/response/delete-config-response.d.ts +20 -0
  87. package/lib/response/delete-config-response.js +15 -0
  88. package/lib/response/delete-config-response.js.map +1 -0
  89. package/lib/response/get-config-response.d.ts +30 -0
  90. package/lib/response/get-config-response.js +15 -0
  91. package/lib/response/get-config-response.js.map +1 -0
  92. package/lib/response/index.d.ts +12 -0
  93. package/lib/response/list-configs-response.d.ts +32 -0
  94. package/lib/response/list-configs-response.js +15 -0
  95. package/lib/response/list-configs-response.js.map +1 -0
  96. package/lib/response/update-config-response.d.ts +30 -0
  97. package/lib/response/update-config-response.js +15 -0
  98. package/lib/response/update-config-response.js.map +1 -0
  99. package/lib/stackmonitoring-waiter.d.ts +8 -0
  100. package/lib/stackmonitoring-waiter.js +12 -0
  101. package/lib/stackmonitoring-waiter.js.map +1 -1
  102. package/package.json +3 -3
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Stack Monitoring API
3
+ * Stack Monitoring API.
4
+ * OpenAPI spec version: 20210330
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
11
+ * 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.
12
+ */
13
+ /**
14
+ * Summary of the configuration.
15
+ */
16
+ export interface ConfigSummary {
17
+ /**
18
+ * Unique identifier that is immutable on creation.
19
+ */
20
+ "id": string;
21
+ /**
22
+ * Compartment Identifier.
23
+ */
24
+ "compartmentId": string;
25
+ /**
26
+ * Config Identifier, can be renamed.
27
+ */
28
+ "displayName"?: string;
29
+ /**
30
+ * The time the the configuration was created. An RFC3339 formatted datetime string.
31
+ */
32
+ "timeCreated"?: Date;
33
+ /**
34
+ * The time the configuration was updated.
35
+ */
36
+ "timeUpdated"?: Date;
37
+ /**
38
+ * The current state of the configuration.
39
+ */
40
+ "lifecycleState": string;
41
+ /**
42
+ * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
43
+ * Example: `{\"bar-key\": \"value\"}`
44
+ *
45
+ */
46
+ "freeformTags"?: {
47
+ [key: string]: string;
48
+ };
49
+ /**
50
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
51
+ * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
52
+ *
53
+ */
54
+ "definedTags"?: {
55
+ [key: string]: {
56
+ [key: string]: any;
57
+ };
58
+ };
59
+ /**
60
+ * Usage of system tag keys. These predefined keys are scoped to namespaces.
61
+ * Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
62
+ *
63
+ */
64
+ "systemTags"?: {
65
+ [key: string]: {
66
+ [key: string]: any;
67
+ };
68
+ };
69
+ "configType": string;
70
+ }
71
+ export declare namespace ConfigSummary {
72
+ function getJsonObj(obj: ConfigSummary): object;
73
+ function getDeserializedJsonObj(obj: ConfigSummary): object;
74
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /**
3
+ * Stack Monitoring API
4
+ * Stack Monitoring API.
5
+ * OpenAPI spec version: 20210330
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.ConfigSummary = void 0;
35
+ const model = __importStar(require("../model"));
36
+ const common = require("oci-common");
37
+ var ConfigSummary;
38
+ (function (ConfigSummary) {
39
+ function getJsonObj(obj) {
40
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
41
+ if (obj && "configType" in obj && obj.configType) {
42
+ switch (obj.configType) {
43
+ case "AUTO_PROMOTE":
44
+ return model.AutoPromoteConfigSummary.getJsonObj(jsonObj, true);
45
+ default:
46
+ if (common.LOG.logger)
47
+ common.LOG.logger.info(`Unknown value for: ${obj.configType}`);
48
+ }
49
+ }
50
+ return jsonObj;
51
+ }
52
+ ConfigSummary.getJsonObj = getJsonObj;
53
+ function getDeserializedJsonObj(obj) {
54
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
55
+ if (obj && "configType" in obj && obj.configType) {
56
+ switch (obj.configType) {
57
+ case "AUTO_PROMOTE":
58
+ return model.AutoPromoteConfigSummary.getDeserializedJsonObj(jsonObj, true);
59
+ default:
60
+ if (common.LOG.logger)
61
+ common.LOG.logger.info(`Unknown value for: ${obj.configType}`);
62
+ }
63
+ }
64
+ return jsonObj;
65
+ }
66
+ ConfigSummary.getDeserializedJsonObj = getDeserializedJsonObj;
67
+ })(ConfigSummary = exports.ConfigSummary || (exports.ConfigSummary = {}));
68
+ //# sourceMappingURL=config-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-summary.js","sourceRoot":"","sources":["../../../../../lib/stackmonitoring/lib/model/config-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAoDtC,IAAiB,aAAa,CAiC7B;AAjCD,WAAiB,aAAa;IAC5B,SAAgB,UAAU,CAAC,GAAkB;QAC3C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,wBAAwB,CAAC,UAAU,CACL,OAAQ,EACjD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,wBAAU,aAezB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkB;QACvD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,wBAAwB,CAAC,sBAAsB,CACjB,OAAQ,EACjD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,oCAAsB,yBAerC,CAAA;AACH,CAAC,EAjCgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAiC7B"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Stack Monitoring API
3
+ * Stack Monitoring API.
4
+ * OpenAPI spec version: 20210330
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
11
+ * 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.
12
+ */
13
+ /**
14
+ * A configuration item that, for example defines whether resources of a specific type
15
+ * should be discovered automatically.
16
+ * <p>
17
+ In this case, the 'configType' is set to 'AUTO_PROMOTE' and additional fields like
18
+ * 'resourceType' and 'isEnabled' determine if such resources are to be discovered
19
+ * automatically (also referred to as 'Automatic Promotion').
20
+ *
21
+ */
22
+ export interface Config {
23
+ /**
24
+ * The Unique Oracle ID (OCID) that is immutable on creation.
25
+ */
26
+ "id": string;
27
+ /**
28
+ * The OCID of the compartment containing the configuration.
29
+ */
30
+ "compartmentId": string;
31
+ /**
32
+ * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
33
+ */
34
+ "displayName"?: string;
35
+ /**
36
+ * The time the configuration was created. An RFC3339 formatted datetime string.
37
+ */
38
+ "timeCreated"?: Date;
39
+ /**
40
+ * The time the Config was updated.
41
+ */
42
+ "timeUpdated"?: Date;
43
+ /**
44
+ * The current state of the configuration.
45
+ */
46
+ "lifecycleState": Config.LifecycleState;
47
+ /**
48
+ * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
49
+ * Example: `{\"bar-key\": \"value\"}`
50
+ *
51
+ */
52
+ "freeformTags"?: {
53
+ [key: string]: string;
54
+ };
55
+ /**
56
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
57
+ * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
58
+ *
59
+ */
60
+ "definedTags"?: {
61
+ [key: string]: {
62
+ [key: string]: any;
63
+ };
64
+ };
65
+ /**
66
+ * Usage of system tag keys. These predefined keys are scoped to namespaces.
67
+ * Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
68
+ *
69
+ */
70
+ "systemTags"?: {
71
+ [key: string]: {
72
+ [key: string]: any;
73
+ };
74
+ };
75
+ "configType": string;
76
+ }
77
+ export declare namespace Config {
78
+ enum LifecycleState {
79
+ Creating = "CREATING",
80
+ Updating = "UPDATING",
81
+ Active = "ACTIVE",
82
+ Deleting = "DELETING",
83
+ Deleted = "DELETED",
84
+ Failed = "FAILED",
85
+ /**
86
+ * This value is used if a service returns a value for this enum that is not recognized by this
87
+ * version of the SDK.
88
+ */
89
+ UnknownValue = "UNKNOWN_VALUE"
90
+ }
91
+ function getJsonObj(obj: Config): object;
92
+ function getDeserializedJsonObj(obj: Config): object;
93
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /**
3
+ * Stack Monitoring API
4
+ * Stack Monitoring API.
5
+ * OpenAPI spec version: 20210330
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.Config = void 0;
35
+ const model = __importStar(require("../model"));
36
+ const common = require("oci-common");
37
+ var Config;
38
+ (function (Config) {
39
+ let LifecycleState;
40
+ (function (LifecycleState) {
41
+ LifecycleState["Creating"] = "CREATING";
42
+ LifecycleState["Updating"] = "UPDATING";
43
+ LifecycleState["Active"] = "ACTIVE";
44
+ LifecycleState["Deleting"] = "DELETING";
45
+ LifecycleState["Deleted"] = "DELETED";
46
+ LifecycleState["Failed"] = "FAILED";
47
+ /**
48
+ * This value is used if a service returns a value for this enum that is not recognized by this
49
+ * version of the SDK.
50
+ */
51
+ LifecycleState["UnknownValue"] = "UNKNOWN_VALUE";
52
+ })(LifecycleState = Config.LifecycleState || (Config.LifecycleState = {}));
53
+ function getJsonObj(obj) {
54
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
55
+ if (obj && "configType" in obj && obj.configType) {
56
+ switch (obj.configType) {
57
+ case "AUTO_PROMOTE":
58
+ return model.AutoPromoteConfigDetails.getJsonObj(jsonObj, true);
59
+ default:
60
+ if (common.LOG.logger)
61
+ common.LOG.logger.info(`Unknown value for: ${obj.configType}`);
62
+ }
63
+ }
64
+ return jsonObj;
65
+ }
66
+ Config.getJsonObj = getJsonObj;
67
+ function getDeserializedJsonObj(obj) {
68
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
69
+ if (obj && "configType" in obj && obj.configType) {
70
+ switch (obj.configType) {
71
+ case "AUTO_PROMOTE":
72
+ return model.AutoPromoteConfigDetails.getDeserializedJsonObj(jsonObj, true);
73
+ default:
74
+ if (common.LOG.logger)
75
+ common.LOG.logger.info(`Unknown value for: ${obj.configType}`);
76
+ }
77
+ }
78
+ return jsonObj;
79
+ }
80
+ Config.getDeserializedJsonObj = getDeserializedJsonObj;
81
+ })(Config = exports.Config || (exports.Config = {}));
82
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../lib/stackmonitoring/lib/model/config.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AA0DtC,IAAiB,MAAM,CA+CtB;AA/CD,WAAiB,MAAM;IACrB,IAAY,cAYX;IAZD,WAAY,cAAc;QACxB,uCAAqB,CAAA;QACrB,uCAAqB,CAAA;QACrB,mCAAiB,CAAA;QACjB,uCAAqB,CAAA;QACrB,qCAAmB,CAAA;QACnB,mCAAiB,CAAA;QACjB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EAZW,cAAc,GAAd,qBAAc,KAAd,qBAAc,QAYzB;IAED,SAAgB,UAAU,CAAC,GAAW;QACpC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,wBAAwB,CAAC,UAAU,CACL,OAAQ,EACjD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,iBAAU,aAezB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAW;QAChD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,wBAAwB,CAAC,sBAAsB,CACjB,OAAQ,EACjD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,6BAAsB,yBAerC,CAAA;AACH,CAAC,EA/CgB,MAAM,GAAN,cAAM,KAAN,cAAM,QA+CtB"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Stack Monitoring API
3
+ * Stack Monitoring API.
4
+ * OpenAPI spec version: 20210330
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
11
+ * 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.
12
+ */
13
+ import * as model from "../model";
14
+ /**
15
+ * The details of an AUTO_PROMOTE configuration.
16
+ *
17
+ */
18
+ export interface CreateAutoPromoteConfigDetails extends model.CreateConfigDetails {
19
+ /**
20
+ * The type of resource to configure for automatic promotion.
21
+ */
22
+ "resourceType": CreateAutoPromoteConfigDetails.ResourceType;
23
+ /**
24
+ * True if automatic promotion is enabled, false if it is not enabled.
25
+ */
26
+ "isEnabled": boolean;
27
+ "configType": string;
28
+ }
29
+ export declare namespace CreateAutoPromoteConfigDetails {
30
+ enum ResourceType {
31
+ Host = "HOST"
32
+ }
33
+ function getJsonObj(obj: CreateAutoPromoteConfigDetails, isParentJsonObj?: boolean): object;
34
+ const configType = "AUTO_PROMOTE";
35
+ function getDeserializedJsonObj(obj: CreateAutoPromoteConfigDetails, isParentJsonObj?: boolean): object;
36
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * Stack Monitoring API
4
+ * Stack Monitoring API.
5
+ * OpenAPI spec version: 20210330
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.CreateAutoPromoteConfigDetails = void 0;
35
+ const model = __importStar(require("../model"));
36
+ var CreateAutoPromoteConfigDetails;
37
+ (function (CreateAutoPromoteConfigDetails) {
38
+ let ResourceType;
39
+ (function (ResourceType) {
40
+ ResourceType["Host"] = "HOST";
41
+ })(ResourceType = CreateAutoPromoteConfigDetails.ResourceType || (CreateAutoPromoteConfigDetails.ResourceType = {}));
42
+ function getJsonObj(obj, isParentJsonObj) {
43
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
44
+ ? obj
45
+ : model.CreateConfigDetails.getJsonObj(obj))), {});
46
+ return jsonObj;
47
+ }
48
+ CreateAutoPromoteConfigDetails.getJsonObj = getJsonObj;
49
+ CreateAutoPromoteConfigDetails.configType = "AUTO_PROMOTE";
50
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
51
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
52
+ ? obj
53
+ : model.CreateConfigDetails.getDeserializedJsonObj(obj))), {});
54
+ return jsonObj;
55
+ }
56
+ CreateAutoPromoteConfigDetails.getDeserializedJsonObj = getDeserializedJsonObj;
57
+ })(CreateAutoPromoteConfigDetails = exports.CreateAutoPromoteConfigDetails || (exports.CreateAutoPromoteConfigDetails = {}));
58
+ //# sourceMappingURL=create-auto-promote-config-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-auto-promote-config-details.js","sourceRoot":"","sources":["../../../../../lib/stackmonitoring/lib/model/create-auto-promote-config-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAoBlC,IAAiB,8BAA8B,CAkC9C;AAlCD,WAAiB,8BAA8B;IAC7C,IAAY,YAEX;IAFD,WAAY,YAAY;QACtB,6BAAa,CAAA;IACf,CAAC,EAFW,YAAY,GAAZ,2CAAY,KAAZ,2CAAY,QAEvB;IAED,SAAgB,UAAU,CACxB,GAAmC,EACnC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG,CAAoC,CAAC,GAC/E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,yCAAU,aAYzB,CAAA;IACY,yCAAU,GAAG,cAAc,CAAC;IACzC,SAAgB,sBAAsB,CACpC,GAAmC,EACnC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAC/C,GAAG,CAC+B,CAAC,GACtC,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,qDAAsB,yBAcrC,CAAA;AACH,CAAC,EAlCgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAkC9C"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Stack Monitoring API
3
+ * Stack Monitoring API.
4
+ * OpenAPI spec version: 20210330
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
11
+ * 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.
12
+ */
13
+ /**
14
+ * Create a configuration.
15
+ */
16
+ export interface CreateConfigDetails {
17
+ /**
18
+ * The display name of the configuration.
19
+ */
20
+ "displayName"?: string;
21
+ /**
22
+ * Compartment in which the configuration is created.
23
+ */
24
+ "compartmentId": string;
25
+ /**
26
+ * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
27
+ * Example: `{\"bar-key\": \"value\"}`
28
+ *
29
+ */
30
+ "freeformTags"?: {
31
+ [key: string]: string;
32
+ };
33
+ /**
34
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
35
+ * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
36
+ *
37
+ */
38
+ "definedTags"?: {
39
+ [key: string]: {
40
+ [key: string]: any;
41
+ };
42
+ };
43
+ "configType": string;
44
+ }
45
+ export declare namespace CreateConfigDetails {
46
+ function getJsonObj(obj: CreateConfigDetails): object;
47
+ function getDeserializedJsonObj(obj: CreateConfigDetails): object;
48
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /**
3
+ * Stack Monitoring API
4
+ * Stack Monitoring API.
5
+ * OpenAPI spec version: 20210330
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2023, 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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.CreateConfigDetails = void 0;
35
+ const model = __importStar(require("../model"));
36
+ const common = require("oci-common");
37
+ var CreateConfigDetails;
38
+ (function (CreateConfigDetails) {
39
+ function getJsonObj(obj) {
40
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
41
+ if (obj && "configType" in obj && obj.configType) {
42
+ switch (obj.configType) {
43
+ case "AUTO_PROMOTE":
44
+ return model.CreateAutoPromoteConfigDetails.getJsonObj(jsonObj, true);
45
+ default:
46
+ if (common.LOG.logger)
47
+ common.LOG.logger.info(`Unknown value for: ${obj.configType}`);
48
+ }
49
+ }
50
+ return jsonObj;
51
+ }
52
+ CreateConfigDetails.getJsonObj = getJsonObj;
53
+ function getDeserializedJsonObj(obj) {
54
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
55
+ if (obj && "configType" in obj && obj.configType) {
56
+ switch (obj.configType) {
57
+ case "AUTO_PROMOTE":
58
+ return model.CreateAutoPromoteConfigDetails.getDeserializedJsonObj(jsonObj, true);
59
+ default:
60
+ if (common.LOG.logger)
61
+ common.LOG.logger.info(`Unknown value for: ${obj.configType}`);
62
+ }
63
+ }
64
+ return jsonObj;
65
+ }
66
+ CreateConfigDetails.getDeserializedJsonObj = getDeserializedJsonObj;
67
+ })(CreateConfigDetails = exports.CreateConfigDetails || (exports.CreateConfigDetails = {}));
68
+ //# sourceMappingURL=create-config-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-config-details.js","sourceRoot":"","sources":["../../../../../lib/stackmonitoring/lib/model/create-config-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AA8BtC,IAAiB,mBAAmB,CAiCnC;AAjCD,WAAiB,mBAAmB;IAClC,SAAgB,UAAU,CAAC,GAAwB;QACjD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,8BAA8B,CAAC,UAAU,CACL,OAAQ,EACvD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,8BAAU,aAezB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAwB;QAC7D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,cAAc;oBACjB,OAAO,KAAK,CAAC,8BAA8B,CAAC,sBAAsB,CACjB,OAAQ,EACvD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,0CAAsB,yBAerC,CAAA;AACH,CAAC,EAjCgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAiCnC"}
@@ -24,10 +24,20 @@ import * as AssociationDetails from "./association-details";
24
24
  export import AssociationDetails = AssociationDetails.AssociationDetails;
25
25
  import * as AssociationResourceDetails from "./association-resource-details";
26
26
  export import AssociationResourceDetails = AssociationResourceDetails.AssociationResourceDetails;
27
+ import * as ChangeConfigCompartmentDetails from "./change-config-compartment-details";
28
+ export import ChangeConfigCompartmentDetails = ChangeConfigCompartmentDetails.ChangeConfigCompartmentDetails;
27
29
  import * as ChangeMonitoredResourceCompartmentDetails from "./change-monitored-resource-compartment-details";
28
30
  export import ChangeMonitoredResourceCompartmentDetails = ChangeMonitoredResourceCompartmentDetails.ChangeMonitoredResourceCompartmentDetails;
31
+ import * as Config from "./config";
32
+ export import Config = Config.Config;
33
+ import * as ConfigCollection from "./config-collection";
34
+ export import ConfigCollection = ConfigCollection.ConfigCollection;
35
+ import * as ConfigSummary from "./config-summary";
36
+ export import ConfigSummary = ConfigSummary.ConfigSummary;
29
37
  import * as ConnectionDetails from "./connection-details";
30
38
  export import ConnectionDetails = ConnectionDetails.ConnectionDetails;
39
+ import * as CreateConfigDetails from "./create-config-details";
40
+ export import CreateConfigDetails = CreateConfigDetails.CreateConfigDetails;
31
41
  import * as CreateDiscoveryJobDetails from "./create-discovery-job-details";
32
42
  export import CreateDiscoveryJobDetails = CreateDiscoveryJobDetails.CreateDiscoveryJobDetails;
33
43
  import * as CreateMonitoredResourceDetails from "./create-monitored-resource-details";
@@ -98,6 +108,8 @@ import * as SortOrder from "./sort-order";
98
108
  export import SortOrder = SortOrder.SortOrder;
99
109
  import * as UpdateAndPropagateTagsDetails from "./update-and-propagate-tags-details";
100
110
  export import UpdateAndPropagateTagsDetails = UpdateAndPropagateTagsDetails.UpdateAndPropagateTagsDetails;
111
+ import * as UpdateConfigDetails from "./update-config-details";
112
+ export import UpdateConfigDetails = UpdateConfigDetails.UpdateConfigDetails;
101
113
  import * as UpdateMonitoredResourceDetails from "./update-monitored-resource-details";
102
114
  export import UpdateMonitoredResourceDetails = UpdateMonitoredResourceDetails.UpdateMonitoredResourceDetails;
103
115
  import * as WorkRequest from "./work-request";
@@ -116,9 +128,17 @@ import * as WorkRequestSummary from "./work-request-summary";
116
128
  export import WorkRequestSummary = WorkRequestSummary.WorkRequestSummary;
117
129
  import * as WorkRequestSummaryCollection from "./work-request-summary-collection";
118
130
  export import WorkRequestSummaryCollection = WorkRequestSummaryCollection.WorkRequestSummaryCollection;
131
+ import * as AutoPromoteConfigDetails from "./auto-promote-config-details";
132
+ export import AutoPromoteConfigDetails = AutoPromoteConfigDetails.AutoPromoteConfigDetails;
133
+ import * as AutoPromoteConfigSummary from "./auto-promote-config-summary";
134
+ export import AutoPromoteConfigSummary = AutoPromoteConfigSummary.AutoPromoteConfigSummary;
135
+ import * as CreateAutoPromoteConfigDetails from "./create-auto-promote-config-details";
136
+ export import CreateAutoPromoteConfigDetails = CreateAutoPromoteConfigDetails.CreateAutoPromoteConfigDetails;
119
137
  import * as EncryptedCredentials from "./encrypted-credentials";
120
138
  export import EncryptedCredentials = EncryptedCredentials.EncryptedCredentials;
121
139
  import * as PlainTextCredentials from "./plain-text-credentials";
122
140
  export import PlainTextCredentials = PlainTextCredentials.PlainTextCredentials;
123
141
  import * as PreExistingCredentials from "./pre-existing-credentials";
124
142
  export import PreExistingCredentials = PreExistingCredentials.PreExistingCredentials;
143
+ import * as UpdateAutoPromoteConfigDetails from "./update-auto-promote-config-details";
144
+ export import UpdateAutoPromoteConfigDetails = UpdateAutoPromoteConfigDetails.UpdateAutoPromoteConfigDetails;