oci-dashboardservice 2.12.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 (128) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +1521 -0
  5. package/index.d.ts +33 -0
  6. package/index.js +56 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +235 -0
  9. package/lib/client.js +894 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/dashboard-waiter.d.ts +37 -0
  12. package/lib/dashboard-waiter.js +73 -0
  13. package/lib/dashboard-waiter.js.map +1 -0
  14. package/lib/dashboardgroup-waiter.d.ts +37 -0
  15. package/lib/dashboardgroup-waiter.js +73 -0
  16. package/lib/dashboardgroup-waiter.js.map +1 -0
  17. package/lib/model/create-dashboard-details.d.ts +66 -0
  18. package/lib/model/create-dashboard-details.js +73 -0
  19. package/lib/model/create-dashboard-details.js.map +1 -0
  20. package/lib/model/create-dashboard-group-details.d.ts +63 -0
  21. package/lib/model/create-dashboard-group-details.js +37 -0
  22. package/lib/model/create-dashboard-group-details.js.map +1 -0
  23. package/lib/model/create-v1-dashboard-details.d.ts +43 -0
  24. package/lib/model/create-v1-dashboard-details.js +62 -0
  25. package/lib/model/create-v1-dashboard-details.js.map +1 -0
  26. package/lib/model/dashboard-collection.d.ts +34 -0
  27. package/lib/model/dashboard-collection.js +69 -0
  28. package/lib/model/dashboard-collection.js.map +1 -0
  29. package/lib/model/dashboard-group-collection.d.ts +34 -0
  30. package/lib/model/dashboard-group-collection.js +69 -0
  31. package/lib/model/dashboard-group-collection.js.map +1 -0
  32. package/lib/model/dashboard-group-summary.d.ts +95 -0
  33. package/lib/model/dashboard-group-summary.js +37 -0
  34. package/lib/model/dashboard-group-summary.js.map +1 -0
  35. package/lib/model/dashboard-group.d.ts +108 -0
  36. package/lib/model/dashboard-group.js +51 -0
  37. package/lib/model/dashboard-group.js.map +1 -0
  38. package/lib/model/dashboard-summary.d.ts +99 -0
  39. package/lib/model/dashboard-summary.js +37 -0
  40. package/lib/model/dashboard-summary.js.map +1 -0
  41. package/lib/model/dashboard.d.ts +115 -0
  42. package/lib/model/dashboard.js +87 -0
  43. package/lib/model/dashboard.js.map +1 -0
  44. package/lib/model/index.d.ts +48 -0
  45. package/lib/model/index.js +71 -0
  46. package/lib/model/index.js.map +1 -0
  47. package/lib/model/sort-order.d.ts +31 -0
  48. package/lib/model/sort-order.js +42 -0
  49. package/lib/model/sort-order.js.map +1 -0
  50. package/lib/model/update-dashboard-details.d.ts +62 -0
  51. package/lib/model/update-dashboard-details.js +73 -0
  52. package/lib/model/update-dashboard-details.js.map +1 -0
  53. package/lib/model/update-dashboard-group-details.d.ts +59 -0
  54. package/lib/model/update-dashboard-group-details.js +37 -0
  55. package/lib/model/update-dashboard-group-details.js.map +1 -0
  56. package/lib/model/update-v1-dashboard-details.d.ts +43 -0
  57. package/lib/model/update-v1-dashboard-details.js +62 -0
  58. package/lib/model/update-v1-dashboard-details.js.map +1 -0
  59. package/lib/model/v1-dashboard.d.ts +43 -0
  60. package/lib/model/v1-dashboard.js +58 -0
  61. package/lib/model/v1-dashboard.js.map +1 -0
  62. package/lib/request/create-dashboard-group-request.d.ts +45 -0
  63. package/lib/request/create-dashboard-group-request.js +15 -0
  64. package/lib/request/create-dashboard-group-request.js.map +1 -0
  65. package/lib/request/create-dashboard-request.d.ts +45 -0
  66. package/lib/request/create-dashboard-request.js +15 -0
  67. package/lib/request/create-dashboard-request.js.map +1 -0
  68. package/lib/request/delete-dashboard-group-request.d.ts +44 -0
  69. package/lib/request/delete-dashboard-group-request.js +15 -0
  70. package/lib/request/delete-dashboard-group-request.js.map +1 -0
  71. package/lib/request/delete-dashboard-request.d.ts +44 -0
  72. package/lib/request/delete-dashboard-request.js +15 -0
  73. package/lib/request/delete-dashboard-request.js.map +1 -0
  74. package/lib/request/get-dashboard-group-request.d.ts +35 -0
  75. package/lib/request/get-dashboard-group-request.js +15 -0
  76. package/lib/request/get-dashboard-group-request.js.map +1 -0
  77. package/lib/request/get-dashboard-request.d.ts +35 -0
  78. package/lib/request/get-dashboard-request.js +15 -0
  79. package/lib/request/get-dashboard-request.js.map +1 -0
  80. package/lib/request/index.d.ts +40 -0
  81. package/lib/request/index.js +47 -0
  82. package/lib/request/index.js.map +1 -0
  83. package/lib/request/list-dashboard-groups-request.d.ts +74 -0
  84. package/lib/request/list-dashboard-groups-request.js +24 -0
  85. package/lib/request/list-dashboard-groups-request.js.map +1 -0
  86. package/lib/request/list-dashboards-request.d.ts +74 -0
  87. package/lib/request/list-dashboards-request.js +24 -0
  88. package/lib/request/list-dashboards-request.js.map +1 -0
  89. package/lib/request/update-dashboard-group-request.d.ts +49 -0
  90. package/lib/request/update-dashboard-group-request.js +15 -0
  91. package/lib/request/update-dashboard-group-request.js.map +1 -0
  92. package/lib/request/update-dashboard-request.d.ts +49 -0
  93. package/lib/request/update-dashboard-request.js +15 -0
  94. package/lib/request/update-dashboard-request.js.map +1 -0
  95. package/lib/response/create-dashboard-group-response.d.ts +30 -0
  96. package/lib/response/create-dashboard-group-response.js +15 -0
  97. package/lib/response/create-dashboard-group-response.js.map +1 -0
  98. package/lib/response/create-dashboard-response.d.ts +30 -0
  99. package/lib/response/create-dashboard-response.js +15 -0
  100. package/lib/response/create-dashboard-response.js.map +1 -0
  101. package/lib/response/delete-dashboard-group-response.d.ts +20 -0
  102. package/lib/response/delete-dashboard-group-response.js +15 -0
  103. package/lib/response/delete-dashboard-group-response.js.map +1 -0
  104. package/lib/response/delete-dashboard-response.d.ts +20 -0
  105. package/lib/response/delete-dashboard-response.js +15 -0
  106. package/lib/response/delete-dashboard-response.js.map +1 -0
  107. package/lib/response/get-dashboard-group-response.d.ts +30 -0
  108. package/lib/response/get-dashboard-group-response.js +15 -0
  109. package/lib/response/get-dashboard-group-response.js.map +1 -0
  110. package/lib/response/get-dashboard-response.d.ts +30 -0
  111. package/lib/response/get-dashboard-response.js +15 -0
  112. package/lib/response/get-dashboard-response.js.map +1 -0
  113. package/lib/response/index.d.ts +40 -0
  114. package/lib/response/index.js +23 -0
  115. package/lib/response/index.js.map +1 -0
  116. package/lib/response/list-dashboard-groups-response.d.ts +32 -0
  117. package/lib/response/list-dashboard-groups-response.js +15 -0
  118. package/lib/response/list-dashboard-groups-response.js.map +1 -0
  119. package/lib/response/list-dashboards-response.d.ts +32 -0
  120. package/lib/response/list-dashboards-response.js +15 -0
  121. package/lib/response/list-dashboards-response.js.map +1 -0
  122. package/lib/response/update-dashboard-group-response.d.ts +30 -0
  123. package/lib/response/update-dashboard-group-response.js +15 -0
  124. package/lib/response/update-dashboard-group-response.js.map +1 -0
  125. package/lib/response/update-dashboard-response.d.ts +30 -0
  126. package/lib/response/update-dashboard-response.js +15 -0
  127. package/lib/response/update-dashboard-response.js.map +1 -0
  128. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,894 @@
1
+ "use strict";
2
+ /**
3
+ * Dashboards API
4
+ * Use the Oracle Cloud Infrastructure Dashboards service API to manage dashboards in the Console.
5
+ Dashboards provide an organized and customizable view of resources and their metrics in the Console.
6
+ For more information, see [Dashboards](/Content/Dashboards/home.htm).
7
+
8
+ **Important:** Resources for the Dashboards service are created in the tenacy's home region.
9
+ Although it is possible to create dashboard and dashboard group resources in regions other than the home region,
10
+ you won't be able to view those resources in the Console.
11
+ Therefore, creating resources outside of the home region is not recommended.
12
+
13
+ * OpenAPI spec version: 20210731
14
+ *
15
+ *
16
+ * NOTE: This class is auto generated by OracleSDKGenerator.
17
+ * Do not edit the class manually.
18
+ *
19
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
20
+ * 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.
21
+ */
22
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
25
+ }) : (function(o, m, k, k2) {
26
+ if (k2 === undefined) k2 = k;
27
+ o[k2] = m[k];
28
+ }));
29
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
30
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
31
+ }) : function(o, v) {
32
+ o["default"] = v;
33
+ });
34
+ var __importStar = (this && this.__importStar) || function (mod) {
35
+ if (mod && mod.__esModule) return mod;
36
+ var result = {};
37
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
38
+ __setModuleDefault(result, mod);
39
+ return result;
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.DashboardGroupClient = exports.DashboardGroupApiKeys = exports.DashboardClient = exports.DashboardApiKeys = void 0;
52
+ const common = require("oci-common");
53
+ const model = __importStar(require("./model"));
54
+ const dashboard_waiter_1 = require("./dashboard-waiter");
55
+ const dashboardgroup_waiter_1 = require("./dashboardgroup-waiter");
56
+ const oci_common_1 = require("oci-common");
57
+ // ===============================================
58
+ // This file is autogenerated - Please do not edit
59
+ // ===============================================
60
+ var DashboardApiKeys;
61
+ (function (DashboardApiKeys) {
62
+ })(DashboardApiKeys = exports.DashboardApiKeys || (exports.DashboardApiKeys = {}));
63
+ /**
64
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
65
+ */
66
+ class DashboardClient {
67
+ constructor(params, clientConfiguration) {
68
+ this["_endpoint"] = "";
69
+ this["_defaultHeaders"] = {};
70
+ this._circuitBreaker = null;
71
+ const requestSigner = params.authenticationDetailsProvider
72
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
73
+ : null;
74
+ if (clientConfiguration) {
75
+ this._clientConfiguration = clientConfiguration;
76
+ this._circuitBreaker = clientConfiguration.circuitBreaker
77
+ ? clientConfiguration.circuitBreaker.circuit
78
+ : null;
79
+ }
80
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
81
+ const specCircuitBreakerEnabled = true;
82
+ if (!this._circuitBreaker &&
83
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
84
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
85
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
86
+ }
87
+ this._httpClient =
88
+ params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
89
+ if (params.authenticationDetailsProvider &&
90
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
91
+ const provider = params.authenticationDetailsProvider;
92
+ if (provider.getRegion()) {
93
+ this.region = provider.getRegion();
94
+ }
95
+ }
96
+ }
97
+ /**
98
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
99
+ */
100
+ get endpoint() {
101
+ return this._endpoint;
102
+ }
103
+ /**
104
+ * Sets the endpoint to call (ex, https://www.example.com).
105
+ * @param endpoint The endpoint of the service.
106
+ */
107
+ set endpoint(endpoint) {
108
+ this._endpoint = endpoint;
109
+ this._endpoint = this._endpoint + "/20210731";
110
+ if (this.logger)
111
+ this.logger.info(`DashboardClient endpoint set to ${this._endpoint}`);
112
+ }
113
+ get logger() {
114
+ return common.LOG.logger;
115
+ }
116
+ /**
117
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
118
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
119
+ * @param region The region of the service.
120
+ */
121
+ set region(region) {
122
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DashboardClient.serviceEndpointTemplate, region);
123
+ }
124
+ /**
125
+ * Sets the regionId to call (ex, 'us-phoenix-1').
126
+ *
127
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
128
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
129
+ * and then call {@link #endpoint(String) endpoint}.
130
+ * @param regionId The public region ID.
131
+ */
132
+ set regionId(regionId) {
133
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DashboardClient.serviceEndpointTemplate, regionId);
134
+ }
135
+ /**
136
+ * Creates a new DashboardWaiter for resources for this service.
137
+ *
138
+ * @param config The waiter configuration for termination and delay strategy
139
+ * @return The service waiters.
140
+ */
141
+ createWaiters(config) {
142
+ this._waiters = new dashboard_waiter_1.DashboardWaiter(this, config);
143
+ return this._waiters;
144
+ }
145
+ /**
146
+ * Gets the waiters available for resources for this service.
147
+ *
148
+ * @return The service waiters.
149
+ */
150
+ getWaiters() {
151
+ if (this._waiters) {
152
+ return this._waiters;
153
+ }
154
+ throw Error("Waiters do not exist. Please create waiters.");
155
+ }
156
+ /**
157
+ * Creates a new dashboard in the dashboard group's compartment using the details provided in request body.
158
+ * <p>
159
+ **Caution:** Resources for the Dashboard service are created in the tenacy's home region.
160
+ * Although it is possible to create dashboard resource in regions other than the home region,
161
+ * you won't be able to view those resources in the Console.
162
+ * Therefore, creating resources outside of the home region is not recommended.
163
+ *
164
+ * This operation does not retry by default if the user has not defined a retry configuration.
165
+ * @param CreateDashboardRequest
166
+ * @return CreateDashboardResponse
167
+ * @throws OciError when an error occurs
168
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/CreateDashboard.ts.html |here} to see how to use CreateDashboard API.
169
+ */
170
+ createDashboard(createDashboardRequest) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ if (this.logger)
173
+ this.logger.debug("Calling operation DashboardClient#createDashboard.");
174
+ const pathParams = {};
175
+ const queryParams = {};
176
+ let headerParams = {
177
+ "Content-Type": common.Constants.APPLICATION_JSON,
178
+ "opc-retry-token": createDashboardRequest.opcRetryToken,
179
+ "opc-request-id": createDashboardRequest.opcRequestId,
180
+ "opc-cross-region": createDashboardRequest.opcCrossRegion
181
+ };
182
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
183
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDashboardRequest.retryConfiguration, specRetryConfiguration);
184
+ if (this.logger)
185
+ retrier.logger = this.logger;
186
+ const request = yield oci_common_1.composeRequest({
187
+ baseEndpoint: this._endpoint,
188
+ defaultHeaders: this._defaultHeaders,
189
+ path: "/dashboards",
190
+ method: "POST",
191
+ bodyContent: common.ObjectSerializer.serialize(createDashboardRequest.createDashboardDetails, "CreateDashboardDetails", model.CreateDashboardDetails.getJsonObj),
192
+ pathParams: pathParams,
193
+ headerParams: headerParams,
194
+ queryParams: queryParams
195
+ });
196
+ try {
197
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
198
+ const sdkResponse = oci_common_1.composeResponse({
199
+ responseObject: {},
200
+ body: yield response.json(),
201
+ bodyKey: "dashboard",
202
+ bodyModel: model.Dashboard,
203
+ type: "model.Dashboard",
204
+ responseHeaders: [
205
+ {
206
+ value: response.headers.get("etag"),
207
+ key: "etag",
208
+ dataType: "string"
209
+ },
210
+ {
211
+ value: response.headers.get("opc-request-id"),
212
+ key: "opcRequestId",
213
+ dataType: "string"
214
+ }
215
+ ]
216
+ });
217
+ return sdkResponse;
218
+ }
219
+ catch (err) {
220
+ throw err;
221
+ }
222
+ });
223
+ }
224
+ /**
225
+ * Deletes the specified dashboard. Uses the dashboard's OCID to determine which dashboard to delete.
226
+ * This operation does not retry by default if the user has not defined a retry configuration.
227
+ * @param DeleteDashboardRequest
228
+ * @return DeleteDashboardResponse
229
+ * @throws OciError when an error occurs
230
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/DeleteDashboard.ts.html |here} to see how to use DeleteDashboard API.
231
+ */
232
+ deleteDashboard(deleteDashboardRequest) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ if (this.logger)
235
+ this.logger.debug("Calling operation DashboardClient#deleteDashboard.");
236
+ const pathParams = {
237
+ "{dashboardId}": deleteDashboardRequest.dashboardId
238
+ };
239
+ const queryParams = {};
240
+ let headerParams = {
241
+ "Content-Type": common.Constants.APPLICATION_JSON,
242
+ "if-match": deleteDashboardRequest.ifMatch,
243
+ "opc-request-id": deleteDashboardRequest.opcRequestId,
244
+ "opc-cross-region": deleteDashboardRequest.opcCrossRegion
245
+ };
246
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
247
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDashboardRequest.retryConfiguration, specRetryConfiguration);
248
+ if (this.logger)
249
+ retrier.logger = this.logger;
250
+ const request = yield oci_common_1.composeRequest({
251
+ baseEndpoint: this._endpoint,
252
+ defaultHeaders: this._defaultHeaders,
253
+ path: "/dashboards/{dashboardId}",
254
+ method: "DELETE",
255
+ pathParams: pathParams,
256
+ headerParams: headerParams,
257
+ queryParams: queryParams
258
+ });
259
+ try {
260
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
261
+ const sdkResponse = oci_common_1.composeResponse({
262
+ responseObject: {},
263
+ responseHeaders: [
264
+ {
265
+ value: response.headers.get("opc-request-id"),
266
+ key: "opcRequestId",
267
+ dataType: "string"
268
+ }
269
+ ]
270
+ });
271
+ return sdkResponse;
272
+ }
273
+ catch (err) {
274
+ throw err;
275
+ }
276
+ });
277
+ }
278
+ /**
279
+ * Gets the specified dashboard's information. Uses the dashboard's OCID to determine which dashboard to retrieve.
280
+ * This operation does not retry by default if the user has not defined a retry configuration.
281
+ * @param GetDashboardRequest
282
+ * @return GetDashboardResponse
283
+ * @throws OciError when an error occurs
284
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/GetDashboard.ts.html |here} to see how to use GetDashboard API.
285
+ */
286
+ getDashboard(getDashboardRequest) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ if (this.logger)
289
+ this.logger.debug("Calling operation DashboardClient#getDashboard.");
290
+ const pathParams = {
291
+ "{dashboardId}": getDashboardRequest.dashboardId
292
+ };
293
+ const queryParams = {};
294
+ let headerParams = {
295
+ "Content-Type": common.Constants.APPLICATION_JSON,
296
+ "opc-request-id": getDashboardRequest.opcRequestId,
297
+ "opc-cross-region": getDashboardRequest.opcCrossRegion
298
+ };
299
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
300
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDashboardRequest.retryConfiguration, specRetryConfiguration);
301
+ if (this.logger)
302
+ retrier.logger = this.logger;
303
+ const request = yield oci_common_1.composeRequest({
304
+ baseEndpoint: this._endpoint,
305
+ defaultHeaders: this._defaultHeaders,
306
+ path: "/dashboards/{dashboardId}",
307
+ method: "GET",
308
+ pathParams: pathParams,
309
+ headerParams: headerParams,
310
+ queryParams: queryParams
311
+ });
312
+ try {
313
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
314
+ const sdkResponse = oci_common_1.composeResponse({
315
+ responseObject: {},
316
+ body: yield response.json(),
317
+ bodyKey: "dashboard",
318
+ bodyModel: model.Dashboard,
319
+ type: "model.Dashboard",
320
+ responseHeaders: [
321
+ {
322
+ value: response.headers.get("etag"),
323
+ key: "etag",
324
+ dataType: "string"
325
+ },
326
+ {
327
+ value: response.headers.get("opc-request-id"),
328
+ key: "opcRequestId",
329
+ dataType: "string"
330
+ }
331
+ ]
332
+ });
333
+ return sdkResponse;
334
+ }
335
+ catch (err) {
336
+ throw err;
337
+ }
338
+ });
339
+ }
340
+ /**
341
+ * Returns a list of dashboards with a specific dashboard group ID.
342
+ *
343
+ * This operation does not retry by default if the user has not defined a retry configuration.
344
+ * @param ListDashboardsRequest
345
+ * @return ListDashboardsResponse
346
+ * @throws OciError when an error occurs
347
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/ListDashboards.ts.html |here} to see how to use ListDashboards API.
348
+ */
349
+ listDashboards(listDashboardsRequest) {
350
+ return __awaiter(this, void 0, void 0, function* () {
351
+ if (this.logger)
352
+ this.logger.debug("Calling operation DashboardClient#listDashboards.");
353
+ const pathParams = {};
354
+ const queryParams = {
355
+ "dashboardGroupId": listDashboardsRequest.dashboardGroupId,
356
+ "lifecycleState": listDashboardsRequest.lifecycleState,
357
+ "displayName": listDashboardsRequest.displayName,
358
+ "id": listDashboardsRequest.id,
359
+ "limit": listDashboardsRequest.limit,
360
+ "page": listDashboardsRequest.page,
361
+ "sortOrder": listDashboardsRequest.sortOrder,
362
+ "sortBy": listDashboardsRequest.sortBy
363
+ };
364
+ let headerParams = {
365
+ "Content-Type": common.Constants.APPLICATION_JSON,
366
+ "opc-request-id": listDashboardsRequest.opcRequestId,
367
+ "opc-cross-region": listDashboardsRequest.opcCrossRegion
368
+ };
369
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
370
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDashboardsRequest.retryConfiguration, specRetryConfiguration);
371
+ if (this.logger)
372
+ retrier.logger = this.logger;
373
+ const request = yield oci_common_1.composeRequest({
374
+ baseEndpoint: this._endpoint,
375
+ defaultHeaders: this._defaultHeaders,
376
+ path: "/dashboards",
377
+ method: "GET",
378
+ pathParams: pathParams,
379
+ headerParams: headerParams,
380
+ queryParams: queryParams
381
+ });
382
+ try {
383
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
384
+ const sdkResponse = oci_common_1.composeResponse({
385
+ responseObject: {},
386
+ body: yield response.json(),
387
+ bodyKey: "dashboardCollection",
388
+ bodyModel: model.DashboardCollection,
389
+ type: "model.DashboardCollection",
390
+ responseHeaders: [
391
+ {
392
+ value: response.headers.get("opc-request-id"),
393
+ key: "opcRequestId",
394
+ dataType: "string"
395
+ },
396
+ {
397
+ value: response.headers.get("opc-next-page"),
398
+ key: "opcNextPage",
399
+ dataType: "string"
400
+ }
401
+ ]
402
+ });
403
+ return sdkResponse;
404
+ }
405
+ catch (err) {
406
+ throw err;
407
+ }
408
+ });
409
+ }
410
+ /**
411
+ * Updates the specified dashboard. Uses the dashboard's OCID to determine which dashboard to update.
412
+ * This operation does not retry by default if the user has not defined a retry configuration.
413
+ * @param UpdateDashboardRequest
414
+ * @return UpdateDashboardResponse
415
+ * @throws OciError when an error occurs
416
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/UpdateDashboard.ts.html |here} to see how to use UpdateDashboard API.
417
+ */
418
+ updateDashboard(updateDashboardRequest) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ if (this.logger)
421
+ this.logger.debug("Calling operation DashboardClient#updateDashboard.");
422
+ const pathParams = {
423
+ "{dashboardId}": updateDashboardRequest.dashboardId
424
+ };
425
+ const queryParams = {};
426
+ let headerParams = {
427
+ "Content-Type": common.Constants.APPLICATION_JSON,
428
+ "if-match": updateDashboardRequest.ifMatch,
429
+ "opc-request-id": updateDashboardRequest.opcRequestId,
430
+ "opc-cross-region": updateDashboardRequest.opcCrossRegion
431
+ };
432
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
433
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDashboardRequest.retryConfiguration, specRetryConfiguration);
434
+ if (this.logger)
435
+ retrier.logger = this.logger;
436
+ const request = yield oci_common_1.composeRequest({
437
+ baseEndpoint: this._endpoint,
438
+ defaultHeaders: this._defaultHeaders,
439
+ path: "/dashboards/{dashboardId}",
440
+ method: "PUT",
441
+ bodyContent: common.ObjectSerializer.serialize(updateDashboardRequest.updateDashboardDetails, "UpdateDashboardDetails", model.UpdateDashboardDetails.getJsonObj),
442
+ pathParams: pathParams,
443
+ headerParams: headerParams,
444
+ queryParams: queryParams
445
+ });
446
+ try {
447
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
448
+ const sdkResponse = oci_common_1.composeResponse({
449
+ responseObject: {},
450
+ body: yield response.json(),
451
+ bodyKey: "dashboard",
452
+ bodyModel: model.Dashboard,
453
+ type: "model.Dashboard",
454
+ responseHeaders: [
455
+ {
456
+ value: response.headers.get("etag"),
457
+ key: "etag",
458
+ dataType: "string"
459
+ },
460
+ {
461
+ value: response.headers.get("opc-request-id"),
462
+ key: "opcRequestId",
463
+ dataType: "string"
464
+ }
465
+ ]
466
+ });
467
+ return sdkResponse;
468
+ }
469
+ catch (err) {
470
+ throw err;
471
+ }
472
+ });
473
+ }
474
+ }
475
+ exports.DashboardClient = DashboardClient;
476
+ DashboardClient.serviceEndpointTemplate = "https://dashboard.{region}.oci.{secondLevelDomain}";
477
+ var DashboardGroupApiKeys;
478
+ (function (DashboardGroupApiKeys) {
479
+ })(DashboardGroupApiKeys = exports.DashboardGroupApiKeys || (exports.DashboardGroupApiKeys = {}));
480
+ /**
481
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
482
+ */
483
+ class DashboardGroupClient {
484
+ constructor(params, clientConfiguration) {
485
+ this["_endpoint"] = "";
486
+ this["_defaultHeaders"] = {};
487
+ this._circuitBreaker = null;
488
+ const requestSigner = params.authenticationDetailsProvider
489
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
490
+ : null;
491
+ if (clientConfiguration) {
492
+ this._clientConfiguration = clientConfiguration;
493
+ this._circuitBreaker = clientConfiguration.circuitBreaker
494
+ ? clientConfiguration.circuitBreaker.circuit
495
+ : null;
496
+ }
497
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
498
+ const specCircuitBreakerEnabled = true;
499
+ if (!this._circuitBreaker &&
500
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
501
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
502
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
503
+ }
504
+ this._httpClient =
505
+ params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
506
+ if (params.authenticationDetailsProvider &&
507
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
508
+ const provider = params.authenticationDetailsProvider;
509
+ if (provider.getRegion()) {
510
+ this.region = provider.getRegion();
511
+ }
512
+ }
513
+ }
514
+ /**
515
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
516
+ */
517
+ get endpoint() {
518
+ return this._endpoint;
519
+ }
520
+ /**
521
+ * Sets the endpoint to call (ex, https://www.example.com).
522
+ * @param endpoint The endpoint of the service.
523
+ */
524
+ set endpoint(endpoint) {
525
+ this._endpoint = endpoint;
526
+ this._endpoint = this._endpoint + "/20210731";
527
+ if (this.logger)
528
+ this.logger.info(`DashboardGroupClient endpoint set to ${this._endpoint}`);
529
+ }
530
+ get logger() {
531
+ return common.LOG.logger;
532
+ }
533
+ /**
534
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
535
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
536
+ * @param region The region of the service.
537
+ */
538
+ set region(region) {
539
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DashboardGroupClient.serviceEndpointTemplate, region);
540
+ }
541
+ /**
542
+ * Sets the regionId to call (ex, 'us-phoenix-1').
543
+ *
544
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
545
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
546
+ * and then call {@link #endpoint(String) endpoint}.
547
+ * @param regionId The public region ID.
548
+ */
549
+ set regionId(regionId) {
550
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DashboardGroupClient.serviceEndpointTemplate, regionId);
551
+ }
552
+ /**
553
+ * Creates a new DashboardGroupWaiter for resources for this service.
554
+ *
555
+ * @param config The waiter configuration for termination and delay strategy
556
+ * @return The service waiters.
557
+ */
558
+ createWaiters(config) {
559
+ this._waiters = new dashboardgroup_waiter_1.DashboardGroupWaiter(this, config);
560
+ return this._waiters;
561
+ }
562
+ /**
563
+ * Gets the waiters available for resources for this service.
564
+ *
565
+ * @return The service waiters.
566
+ */
567
+ getWaiters() {
568
+ if (this._waiters) {
569
+ return this._waiters;
570
+ }
571
+ throw Error("Waiters do not exist. Please create waiters.");
572
+ }
573
+ /**
574
+ * Creates a new dashboard group using the details provided in request body.
575
+ * <p>
576
+ **Caution:** Resources for the Dashboard service are created in the tenacy's home region.
577
+ * Although it is possible to create dashboard group resource in regions other than the home region,
578
+ * you won't be able to view those resources in the Console.
579
+ * Therefore, creating resources outside of the home region is not recommended.
580
+ *
581
+ * This operation does not retry by default if the user has not defined a retry configuration.
582
+ * @param CreateDashboardGroupRequest
583
+ * @return CreateDashboardGroupResponse
584
+ * @throws OciError when an error occurs
585
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/CreateDashboardGroup.ts.html |here} to see how to use CreateDashboardGroup API.
586
+ */
587
+ createDashboardGroup(createDashboardGroupRequest) {
588
+ return __awaiter(this, void 0, void 0, function* () {
589
+ if (this.logger)
590
+ this.logger.debug("Calling operation DashboardGroupClient#createDashboardGroup.");
591
+ const pathParams = {};
592
+ const queryParams = {};
593
+ let headerParams = {
594
+ "Content-Type": common.Constants.APPLICATION_JSON,
595
+ "opc-retry-token": createDashboardGroupRequest.opcRetryToken,
596
+ "opc-request-id": createDashboardGroupRequest.opcRequestId,
597
+ "opc-cross-region": createDashboardGroupRequest.opcCrossRegion
598
+ };
599
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
600
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDashboardGroupRequest.retryConfiguration, specRetryConfiguration);
601
+ if (this.logger)
602
+ retrier.logger = this.logger;
603
+ const request = yield oci_common_1.composeRequest({
604
+ baseEndpoint: this._endpoint,
605
+ defaultHeaders: this._defaultHeaders,
606
+ path: "/dashboardGroups",
607
+ method: "POST",
608
+ bodyContent: common.ObjectSerializer.serialize(createDashboardGroupRequest.createDashboardGroupDetails, "CreateDashboardGroupDetails", model.CreateDashboardGroupDetails.getJsonObj),
609
+ pathParams: pathParams,
610
+ headerParams: headerParams,
611
+ queryParams: queryParams
612
+ });
613
+ try {
614
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
615
+ const sdkResponse = oci_common_1.composeResponse({
616
+ responseObject: {},
617
+ body: yield response.json(),
618
+ bodyKey: "dashboardGroup",
619
+ bodyModel: model.DashboardGroup,
620
+ type: "model.DashboardGroup",
621
+ responseHeaders: [
622
+ {
623
+ value: response.headers.get("etag"),
624
+ key: "etag",
625
+ dataType: "string"
626
+ },
627
+ {
628
+ value: response.headers.get("opc-request-id"),
629
+ key: "opcRequestId",
630
+ dataType: "string"
631
+ }
632
+ ]
633
+ });
634
+ return sdkResponse;
635
+ }
636
+ catch (err) {
637
+ throw err;
638
+ }
639
+ });
640
+ }
641
+ /**
642
+ * Deletes the specified dashboard group. Uses the dashboard group's OCID to determine which dashboard group to delete.
643
+ * This operation does not retry by default if the user has not defined a retry configuration.
644
+ * @param DeleteDashboardGroupRequest
645
+ * @return DeleteDashboardGroupResponse
646
+ * @throws OciError when an error occurs
647
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/DeleteDashboardGroup.ts.html |here} to see how to use DeleteDashboardGroup API.
648
+ */
649
+ deleteDashboardGroup(deleteDashboardGroupRequest) {
650
+ return __awaiter(this, void 0, void 0, function* () {
651
+ if (this.logger)
652
+ this.logger.debug("Calling operation DashboardGroupClient#deleteDashboardGroup.");
653
+ const pathParams = {
654
+ "{dashboardGroupId}": deleteDashboardGroupRequest.dashboardGroupId
655
+ };
656
+ const queryParams = {};
657
+ let headerParams = {
658
+ "Content-Type": common.Constants.APPLICATION_JSON,
659
+ "if-match": deleteDashboardGroupRequest.ifMatch,
660
+ "opc-request-id": deleteDashboardGroupRequest.opcRequestId,
661
+ "opc-cross-region": deleteDashboardGroupRequest.opcCrossRegion
662
+ };
663
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
664
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDashboardGroupRequest.retryConfiguration, specRetryConfiguration);
665
+ if (this.logger)
666
+ retrier.logger = this.logger;
667
+ const request = yield oci_common_1.composeRequest({
668
+ baseEndpoint: this._endpoint,
669
+ defaultHeaders: this._defaultHeaders,
670
+ path: "/dashboardGroups/{dashboardGroupId}",
671
+ method: "DELETE",
672
+ pathParams: pathParams,
673
+ headerParams: headerParams,
674
+ queryParams: queryParams
675
+ });
676
+ try {
677
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
678
+ const sdkResponse = oci_common_1.composeResponse({
679
+ responseObject: {},
680
+ responseHeaders: [
681
+ {
682
+ value: response.headers.get("opc-request-id"),
683
+ key: "opcRequestId",
684
+ dataType: "string"
685
+ }
686
+ ]
687
+ });
688
+ return sdkResponse;
689
+ }
690
+ catch (err) {
691
+ throw err;
692
+ }
693
+ });
694
+ }
695
+ /**
696
+ * Gets the specified dashboard group's information. Uses the dashboard group's OCID to determine which dashboard to retrieve.
697
+ * This operation does not retry by default if the user has not defined a retry configuration.
698
+ * @param GetDashboardGroupRequest
699
+ * @return GetDashboardGroupResponse
700
+ * @throws OciError when an error occurs
701
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/GetDashboardGroup.ts.html |here} to see how to use GetDashboardGroup API.
702
+ */
703
+ getDashboardGroup(getDashboardGroupRequest) {
704
+ return __awaiter(this, void 0, void 0, function* () {
705
+ if (this.logger)
706
+ this.logger.debug("Calling operation DashboardGroupClient#getDashboardGroup.");
707
+ const pathParams = {
708
+ "{dashboardGroupId}": getDashboardGroupRequest.dashboardGroupId
709
+ };
710
+ const queryParams = {};
711
+ let headerParams = {
712
+ "Content-Type": common.Constants.APPLICATION_JSON,
713
+ "opc-request-id": getDashboardGroupRequest.opcRequestId,
714
+ "opc-cross-region": getDashboardGroupRequest.opcCrossRegion
715
+ };
716
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
717
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDashboardGroupRequest.retryConfiguration, specRetryConfiguration);
718
+ if (this.logger)
719
+ retrier.logger = this.logger;
720
+ const request = yield oci_common_1.composeRequest({
721
+ baseEndpoint: this._endpoint,
722
+ defaultHeaders: this._defaultHeaders,
723
+ path: "/dashboardGroups/{dashboardGroupId}",
724
+ method: "GET",
725
+ pathParams: pathParams,
726
+ headerParams: headerParams,
727
+ queryParams: queryParams
728
+ });
729
+ try {
730
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
731
+ const sdkResponse = oci_common_1.composeResponse({
732
+ responseObject: {},
733
+ body: yield response.json(),
734
+ bodyKey: "dashboardGroup",
735
+ bodyModel: model.DashboardGroup,
736
+ type: "model.DashboardGroup",
737
+ responseHeaders: [
738
+ {
739
+ value: response.headers.get("etag"),
740
+ key: "etag",
741
+ dataType: "string"
742
+ },
743
+ {
744
+ value: response.headers.get("opc-request-id"),
745
+ key: "opcRequestId",
746
+ dataType: "string"
747
+ }
748
+ ]
749
+ });
750
+ return sdkResponse;
751
+ }
752
+ catch (err) {
753
+ throw err;
754
+ }
755
+ });
756
+ }
757
+ /**
758
+ * Returns a list of dashboard groups with a specific compartment ID.
759
+ *
760
+ * This operation does not retry by default if the user has not defined a retry configuration.
761
+ * @param ListDashboardGroupsRequest
762
+ * @return ListDashboardGroupsResponse
763
+ * @throws OciError when an error occurs
764
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/ListDashboardGroups.ts.html |here} to see how to use ListDashboardGroups API.
765
+ */
766
+ listDashboardGroups(listDashboardGroupsRequest) {
767
+ return __awaiter(this, void 0, void 0, function* () {
768
+ if (this.logger)
769
+ this.logger.debug("Calling operation DashboardGroupClient#listDashboardGroups.");
770
+ const pathParams = {};
771
+ const queryParams = {
772
+ "compartmentId": listDashboardGroupsRequest.compartmentId,
773
+ "lifecycleState": listDashboardGroupsRequest.lifecycleState,
774
+ "displayName": listDashboardGroupsRequest.displayName,
775
+ "id": listDashboardGroupsRequest.id,
776
+ "limit": listDashboardGroupsRequest.limit,
777
+ "page": listDashboardGroupsRequest.page,
778
+ "sortOrder": listDashboardGroupsRequest.sortOrder,
779
+ "sortBy": listDashboardGroupsRequest.sortBy
780
+ };
781
+ let headerParams = {
782
+ "Content-Type": common.Constants.APPLICATION_JSON,
783
+ "opc-request-id": listDashboardGroupsRequest.opcRequestId,
784
+ "opc-cross-region": listDashboardGroupsRequest.opcCrossRegion
785
+ };
786
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
787
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDashboardGroupsRequest.retryConfiguration, specRetryConfiguration);
788
+ if (this.logger)
789
+ retrier.logger = this.logger;
790
+ const request = yield oci_common_1.composeRequest({
791
+ baseEndpoint: this._endpoint,
792
+ defaultHeaders: this._defaultHeaders,
793
+ path: "/dashboardGroups",
794
+ method: "GET",
795
+ pathParams: pathParams,
796
+ headerParams: headerParams,
797
+ queryParams: queryParams
798
+ });
799
+ try {
800
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
801
+ const sdkResponse = oci_common_1.composeResponse({
802
+ responseObject: {},
803
+ body: yield response.json(),
804
+ bodyKey: "dashboardGroupCollection",
805
+ bodyModel: model.DashboardGroupCollection,
806
+ type: "model.DashboardGroupCollection",
807
+ responseHeaders: [
808
+ {
809
+ value: response.headers.get("opc-request-id"),
810
+ key: "opcRequestId",
811
+ dataType: "string"
812
+ },
813
+ {
814
+ value: response.headers.get("opc-next-page"),
815
+ key: "opcNextPage",
816
+ dataType: "string"
817
+ }
818
+ ]
819
+ });
820
+ return sdkResponse;
821
+ }
822
+ catch (err) {
823
+ throw err;
824
+ }
825
+ });
826
+ }
827
+ /**
828
+ * Updates the specified dashboard group. Uses the dashboard group's OCID to determine which dashboard group to update.
829
+ * This operation does not retry by default if the user has not defined a retry configuration.
830
+ * @param UpdateDashboardGroupRequest
831
+ * @return UpdateDashboardGroupResponse
832
+ * @throws OciError when an error occurs
833
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.1/dashboardservice/UpdateDashboardGroup.ts.html |here} to see how to use UpdateDashboardGroup API.
834
+ */
835
+ updateDashboardGroup(updateDashboardGroupRequest) {
836
+ return __awaiter(this, void 0, void 0, function* () {
837
+ if (this.logger)
838
+ this.logger.debug("Calling operation DashboardGroupClient#updateDashboardGroup.");
839
+ const pathParams = {
840
+ "{dashboardGroupId}": updateDashboardGroupRequest.dashboardGroupId
841
+ };
842
+ const queryParams = {};
843
+ let headerParams = {
844
+ "Content-Type": common.Constants.APPLICATION_JSON,
845
+ "if-match": updateDashboardGroupRequest.ifMatch,
846
+ "opc-request-id": updateDashboardGroupRequest.opcRequestId,
847
+ "opc-cross-region": updateDashboardGroupRequest.opcCrossRegion
848
+ };
849
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
850
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDashboardGroupRequest.retryConfiguration, specRetryConfiguration);
851
+ if (this.logger)
852
+ retrier.logger = this.logger;
853
+ const request = yield oci_common_1.composeRequest({
854
+ baseEndpoint: this._endpoint,
855
+ defaultHeaders: this._defaultHeaders,
856
+ path: "/dashboardGroups/{dashboardGroupId}",
857
+ method: "PUT",
858
+ bodyContent: common.ObjectSerializer.serialize(updateDashboardGroupRequest.updateDashboardGroupDetails, "UpdateDashboardGroupDetails", model.UpdateDashboardGroupDetails.getJsonObj),
859
+ pathParams: pathParams,
860
+ headerParams: headerParams,
861
+ queryParams: queryParams
862
+ });
863
+ try {
864
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
865
+ const sdkResponse = oci_common_1.composeResponse({
866
+ responseObject: {},
867
+ body: yield response.json(),
868
+ bodyKey: "dashboardGroup",
869
+ bodyModel: model.DashboardGroup,
870
+ type: "model.DashboardGroup",
871
+ responseHeaders: [
872
+ {
873
+ value: response.headers.get("etag"),
874
+ key: "etag",
875
+ dataType: "string"
876
+ },
877
+ {
878
+ value: response.headers.get("opc-request-id"),
879
+ key: "opcRequestId",
880
+ dataType: "string"
881
+ }
882
+ ]
883
+ });
884
+ return sdkResponse;
885
+ }
886
+ catch (err) {
887
+ throw err;
888
+ }
889
+ });
890
+ }
891
+ }
892
+ exports.DashboardGroupClient = DashboardGroupClient;
893
+ DashboardGroupClient.serviceEndpointTemplate = "https://dashboard.{region}.oci.{secondLevelDomain}";
894
+ //# sourceMappingURL=client.js.map