oci-apmconfig 2.134.1 → 2.135.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 (50) hide show
  1. package/lib/client.d.ts +50 -0
  2. package/lib/client.js +451 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/data-file-summary-collection.d.ts +28 -0
  5. package/lib/model/data-file-summary-collection.js +63 -0
  6. package/lib/model/data-file-summary-collection.js.map +1 -0
  7. package/lib/model/data-file-summary.d.ts +54 -0
  8. package/lib/model/data-file-summary.js +31 -0
  9. package/lib/model/data-file-summary.js.map +1 -0
  10. package/lib/model/data-file.d.ts +23 -0
  11. package/lib/model/data-file.js +31 -0
  12. package/lib/model/data-file.js.map +1 -0
  13. package/lib/model/index.d.ts +6 -0
  14. package/lib/model/index.js +8 -2
  15. package/lib/model/index.js.map +1 -1
  16. package/lib/request/delete-data-file-request.d.ts +53 -0
  17. package/lib/request/delete-data-file-request.js +15 -0
  18. package/lib/request/delete-data-file-request.js.map +1 -0
  19. package/lib/request/get-data-file-request.d.ts +44 -0
  20. package/lib/request/get-data-file-request.js +15 -0
  21. package/lib/request/get-data-file-request.js.map +1 -0
  22. package/lib/request/head-data-file-request.d.ts +44 -0
  23. package/lib/request/head-data-file-request.js +15 -0
  24. package/lib/request/head-data-file-request.js.map +1 -0
  25. package/lib/request/index.d.ts +10 -0
  26. package/lib/request/index.js +3 -1
  27. package/lib/request/index.js.map +1 -1
  28. package/lib/request/list-data-files-request.d.ts +96 -0
  29. package/lib/request/list-data-files-request.js +25 -0
  30. package/lib/request/list-data-files-request.js.map +1 -0
  31. package/lib/request/put-data-file-request.d.ts +96 -0
  32. package/lib/request/put-data-file-request.js +15 -0
  33. package/lib/request/put-data-file-request.js.map +1 -0
  34. package/lib/response/delete-data-file-response.d.ts +24 -0
  35. package/lib/response/delete-data-file-response.js +15 -0
  36. package/lib/response/delete-data-file-response.js.map +1 -0
  37. package/lib/response/get-data-file-response.d.ts +73 -0
  38. package/lib/response/get-data-file-response.js +15 -0
  39. package/lib/response/get-data-file-response.js.map +1 -0
  40. package/lib/response/head-data-file-response.d.ts +67 -0
  41. package/lib/response/head-data-file-response.js +15 -0
  42. package/lib/response/head-data-file-response.js.map +1 -0
  43. package/lib/response/index.d.ts +10 -0
  44. package/lib/response/list-data-files-response.d.ts +36 -0
  45. package/lib/response/list-data-files-response.js +15 -0
  46. package/lib/response/list-data-files-response.js.map +1 -0
  47. package/lib/response/put-data-file-response.d.ts +40 -0
  48. package/lib/response/put-data-file-response.js +15 -0
  49. package/lib/response/put-data-file-response.js.map +1 -0
  50. package/package.json +7 -6
package/lib/client.d.ts CHANGED
@@ -108,6 +108,16 @@ export declare class ConfigClient {
108
108
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/DeleteConfig.ts.html |here} to see how to use DeleteConfig API.
109
109
  */
110
110
  deleteConfig(deleteConfigRequest: requests.DeleteConfigRequest): Promise<responses.DeleteConfigResponse>;
111
+ /**
112
+ * Removes the data file.
113
+ *
114
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
115
+ * @param DeleteDataFileRequest
116
+ * @return DeleteDataFileResponse
117
+ * @throws OciError when an error occurs
118
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/DeleteDataFile.ts.html |here} to see how to use DeleteDataFile API.
119
+ */
120
+ deleteDataFile(deleteDataFileRequest: requests.DeleteDataFileRequest): Promise<responses.DeleteDataFileResponse>;
111
121
  /**
112
122
  * Exports configurations for the whole domain by domainId.
113
123
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -126,6 +136,16 @@ export declare class ConfigClient {
126
136
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/GetConfig.ts.html |here} to see how to use GetConfig API.
127
137
  */
128
138
  getConfig(getConfigRequest: requests.GetConfigRequest): Promise<responses.GetConfigResponse>;
139
+ /**
140
+ * Retrieves the Data file with the specified name and type.
141
+ *
142
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
143
+ * @param GetDataFileRequest
144
+ * @return GetDataFileResponse
145
+ * @throws OciError when an error occurs
146
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/GetDataFile.ts.html |here} to see how to use GetDataFile API.
147
+ */
148
+ getDataFile(getDataFileRequest: requests.GetDataFileRequest): Promise<responses.GetDataFileResponse>;
129
149
  /**
130
150
  * The domain-wide agents matching attribute key.
131
151
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -135,6 +155,16 @@ export declare class ConfigClient {
135
155
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/GetMatchAgentsWithAttributeKey.ts.html |here} to see how to use GetMatchAgentsWithAttributeKey API.
136
156
  */
137
157
  getMatchAgentsWithAttributeKey(getMatchAgentsWithAttributeKeyRequest: requests.GetMatchAgentsWithAttributeKeyRequest): Promise<responses.GetMatchAgentsWithAttributeKeyResponse>;
158
+ /**
159
+ * Returns metadata about the datafile.
160
+ *
161
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
162
+ * @param HeadDataFileRequest
163
+ * @return HeadDataFileResponse
164
+ * @throws OciError when an error occurs
165
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/HeadDataFile.ts.html |here} to see how to use HeadDataFile API.
166
+ */
167
+ headDataFile(headDataFileRequest: requests.HeadDataFileRequest): Promise<responses.HeadDataFileResponse>;
138
168
  /**
139
169
  * Import configurations Item(s) with its dependencies into a destination domain.
140
170
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -153,6 +183,26 @@ export declare class ConfigClient {
153
183
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/ListConfigs.ts.html |here} to see how to use ListConfigs API.
154
184
  */
155
185
  listConfigs(listConfigsRequest: requests.ListConfigsRequest): Promise<responses.ListConfigsResponse>;
186
+ /**
187
+ * Fetches a list of Data files using some parameters.
188
+ *
189
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
190
+ * @param ListDataFilesRequest
191
+ * @return ListDataFilesResponse
192
+ * @throws OciError when an error occurs
193
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/ListDataFiles.ts.html |here} to see how to use ListDataFiles API.
194
+ */
195
+ listDataFiles(listDataFilesRequest: requests.ListDataFilesRequest): Promise<responses.ListDataFilesResponse>;
196
+ /**
197
+ * Creates a new data file or replaces an existing one with the same name and type.
198
+ *
199
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
200
+ * @param PutDataFileRequest
201
+ * @return PutDataFileResponse
202
+ * @throws OciError when an error occurs
203
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/PutDataFile.ts.html |here} to see how to use PutDataFile API.
204
+ */
205
+ putDataFile(putDataFileRequest: requests.PutDataFileRequest): Promise<responses.PutDataFileResponse>;
156
206
  /**
157
207
  * Returns all metrics associated with the specified namespace.
158
208
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
package/lib/client.js CHANGED
@@ -376,6 +376,71 @@ class ConfigClient {
376
376
  }
377
377
  });
378
378
  }
379
+ /**
380
+ * Removes the data file.
381
+ *
382
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
383
+ * @param DeleteDataFileRequest
384
+ * @return DeleteDataFileResponse
385
+ * @throws OciError when an error occurs
386
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/DeleteDataFile.ts.html |here} to see how to use DeleteDataFile API.
387
+ */
388
+ deleteDataFile(deleteDataFileRequest) {
389
+ return __awaiter(this, void 0, void 0, function* () {
390
+ if (this.logger)
391
+ this.logger.debug("Calling operation ConfigClient#deleteDataFile.");
392
+ const operationName = "deleteDataFile";
393
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/DeleteDataFile";
394
+ const pathParams = {
395
+ "{dataFileName}": deleteDataFileRequest.dataFileName
396
+ };
397
+ const queryParams = {
398
+ "apmDomainId": deleteDataFileRequest.apmDomainId,
399
+ "apmType": deleteDataFileRequest.apmType
400
+ };
401
+ let headerParams = {
402
+ "Content-Type": common.Constants.APPLICATION_JSON,
403
+ "if-match": deleteDataFileRequest.ifMatch,
404
+ "opc-retry-token": deleteDataFileRequest.opcRetryToken,
405
+ "opc-client-request-id": deleteDataFileRequest.opcClientRequestId
406
+ };
407
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
408
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDataFileRequest.retryConfiguration, specRetryConfiguration);
409
+ if (this.logger)
410
+ retrier.logger = this.logger;
411
+ const request = yield oci_common_1.composeRequest({
412
+ baseEndpoint: this._endpoint,
413
+ defaultHeaders: this._defaultHeaders,
414
+ path: "/dataFiles/{dataFileName}",
415
+ method: "DELETE",
416
+ pathParams: pathParams,
417
+ headerParams: headerParams,
418
+ queryParams: queryParams
419
+ });
420
+ try {
421
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
422
+ const sdkResponse = oci_common_1.composeResponse({
423
+ responseObject: {},
424
+ responseHeaders: [
425
+ {
426
+ value: response.headers.get("opc-request-id"),
427
+ key: "opcRequestId",
428
+ dataType: "string"
429
+ },
430
+ {
431
+ value: response.headers.get("opc-client-request-id"),
432
+ key: "opcClientRequestId",
433
+ dataType: "string"
434
+ }
435
+ ]
436
+ });
437
+ return sdkResponse;
438
+ }
439
+ catch (err) {
440
+ throw err;
441
+ }
442
+ });
443
+ }
379
444
  /**
380
445
  * Exports configurations for the whole domain by domainId.
381
446
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -506,6 +571,118 @@ class ConfigClient {
506
571
  }
507
572
  });
508
573
  }
574
+ /**
575
+ * Retrieves the Data file with the specified name and type.
576
+ *
577
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
578
+ * @param GetDataFileRequest
579
+ * @return GetDataFileResponse
580
+ * @throws OciError when an error occurs
581
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/GetDataFile.ts.html |here} to see how to use GetDataFile API.
582
+ */
583
+ getDataFile(getDataFileRequest) {
584
+ return __awaiter(this, void 0, void 0, function* () {
585
+ if (this.logger)
586
+ this.logger.debug("Calling operation ConfigClient#getDataFile.");
587
+ const operationName = "getDataFile";
588
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/GetDataFile";
589
+ const pathParams = {
590
+ "{dataFileName}": getDataFileRequest.dataFileName
591
+ };
592
+ const queryParams = {
593
+ "apmDomainId": getDataFileRequest.apmDomainId,
594
+ "apmType": getDataFileRequest.apmType
595
+ };
596
+ let headerParams = {
597
+ "Content-Type": common.Constants.APPLICATION_JSON,
598
+ "opc-retry-token": getDataFileRequest.opcRetryToken,
599
+ "opc-client-request-id": getDataFileRequest.opcClientRequestId
600
+ };
601
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
602
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDataFileRequest.retryConfiguration, specRetryConfiguration);
603
+ if (this.logger)
604
+ retrier.logger = this.logger;
605
+ const request = yield oci_common_1.composeRequest({
606
+ baseEndpoint: this._endpoint,
607
+ defaultHeaders: this._defaultHeaders,
608
+ path: "/dataFiles/{dataFileName}",
609
+ method: "GET",
610
+ pathParams: pathParams,
611
+ headerParams: headerParams,
612
+ queryParams: queryParams
613
+ });
614
+ try {
615
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
616
+ const sdkResponse = oci_common_1.composeResponse({
617
+ responseObject: {},
618
+ body: response.body,
619
+ bodyKey: "value",
620
+ bodyModel: "string",
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
+ value: response.headers.get("opc-client-request-id"),
634
+ key: "opcClientRequestId",
635
+ dataType: "string"
636
+ },
637
+ {
638
+ value: response.headers.get("content-type"),
639
+ key: "contentType",
640
+ dataType: "string"
641
+ },
642
+ {
643
+ value: response.headers.get("content-length"),
644
+ key: "contentLength",
645
+ dataType: "number"
646
+ },
647
+ {
648
+ value: response.headers.get("content-md5"),
649
+ key: "contentMd5",
650
+ dataType: "string"
651
+ },
652
+ {
653
+ value: response.headers.get("content-encoding"),
654
+ key: "contentEncoding",
655
+ dataType: "string"
656
+ },
657
+ {
658
+ value: response.headers.get("content-language"),
659
+ key: "contentLanguage",
660
+ dataType: "string"
661
+ },
662
+ {
663
+ value: response.headers.get("content-disposition"),
664
+ key: "contentDisposition",
665
+ dataType: "string"
666
+ },
667
+ {
668
+ value: response.headers.get("last-modified"),
669
+ key: "lastModified",
670
+ dataType: "Date"
671
+ },
672
+ {
673
+ value: response.headers.get("metadata"),
674
+ key: "metadata",
675
+ dataType: "string"
676
+ }
677
+ ]
678
+ });
679
+ return sdkResponse;
680
+ }
681
+ catch (err) {
682
+ throw err;
683
+ }
684
+ });
685
+ }
509
686
  /**
510
687
  * The domain-wide agents matching attribute key.
511
688
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -569,6 +746,115 @@ class ConfigClient {
569
746
  }
570
747
  });
571
748
  }
749
+ /**
750
+ * Returns metadata about the datafile.
751
+ *
752
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
753
+ * @param HeadDataFileRequest
754
+ * @return HeadDataFileResponse
755
+ * @throws OciError when an error occurs
756
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/HeadDataFile.ts.html |here} to see how to use HeadDataFile API.
757
+ */
758
+ headDataFile(headDataFileRequest) {
759
+ return __awaiter(this, void 0, void 0, function* () {
760
+ if (this.logger)
761
+ this.logger.debug("Calling operation ConfigClient#headDataFile.");
762
+ const operationName = "headDataFile";
763
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/HeadDataFile";
764
+ const pathParams = {
765
+ "{dataFileName}": headDataFileRequest.dataFileName
766
+ };
767
+ const queryParams = {
768
+ "apmDomainId": headDataFileRequest.apmDomainId,
769
+ "apmType": headDataFileRequest.apmType
770
+ };
771
+ let headerParams = {
772
+ "Content-Type": common.Constants.APPLICATION_JSON,
773
+ "opc-retry-token": headDataFileRequest.opcRetryToken,
774
+ "opc-client-request-id": headDataFileRequest.opcClientRequestId
775
+ };
776
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
777
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headDataFileRequest.retryConfiguration, specRetryConfiguration);
778
+ if (this.logger)
779
+ retrier.logger = this.logger;
780
+ const request = yield oci_common_1.composeRequest({
781
+ baseEndpoint: this._endpoint,
782
+ defaultHeaders: this._defaultHeaders,
783
+ path: "/dataFiles/{dataFileName}",
784
+ method: "HEAD",
785
+ pathParams: pathParams,
786
+ headerParams: headerParams,
787
+ queryParams: queryParams
788
+ });
789
+ try {
790
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
791
+ const sdkResponse = oci_common_1.composeResponse({
792
+ responseObject: {},
793
+ responseHeaders: [
794
+ {
795
+ value: response.headers.get("etag"),
796
+ key: "etag",
797
+ dataType: "string"
798
+ },
799
+ {
800
+ value: response.headers.get("opc-request-id"),
801
+ key: "opcRequestId",
802
+ dataType: "string"
803
+ },
804
+ {
805
+ value: response.headers.get("opc-client-request-id"),
806
+ key: "opcClientRequestId",
807
+ dataType: "string"
808
+ },
809
+ {
810
+ value: response.headers.get("content-type"),
811
+ key: "contentType",
812
+ dataType: "string"
813
+ },
814
+ {
815
+ value: response.headers.get("content-length"),
816
+ key: "contentLength",
817
+ dataType: "number"
818
+ },
819
+ {
820
+ value: response.headers.get("content-md5"),
821
+ key: "contentMd5",
822
+ dataType: "string"
823
+ },
824
+ {
825
+ value: response.headers.get("content-encoding"),
826
+ key: "contentEncoding",
827
+ dataType: "string"
828
+ },
829
+ {
830
+ value: response.headers.get("content-language"),
831
+ key: "contentLanguage",
832
+ dataType: "string"
833
+ },
834
+ {
835
+ value: response.headers.get("content-disposition"),
836
+ key: "contentDisposition",
837
+ dataType: "string"
838
+ },
839
+ {
840
+ value: response.headers.get("last-modified"),
841
+ key: "lastModified",
842
+ dataType: "Date"
843
+ },
844
+ {
845
+ value: response.headers.get("metadata"),
846
+ key: "metadata",
847
+ dataType: "string"
848
+ }
849
+ ]
850
+ });
851
+ return sdkResponse;
852
+ }
853
+ catch (err) {
854
+ throw err;
855
+ }
856
+ });
857
+ }
572
858
  /**
573
859
  * Import configurations Item(s) with its dependencies into a destination domain.
574
860
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
@@ -708,6 +994,171 @@ class ConfigClient {
708
994
  }
709
995
  });
710
996
  }
997
+ /**
998
+ * Fetches a list of Data files using some parameters.
999
+ *
1000
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1001
+ * @param ListDataFilesRequest
1002
+ * @return ListDataFilesResponse
1003
+ * @throws OciError when an error occurs
1004
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/ListDataFiles.ts.html |here} to see how to use ListDataFiles API.
1005
+ */
1006
+ listDataFiles(listDataFilesRequest) {
1007
+ return __awaiter(this, void 0, void 0, function* () {
1008
+ if (this.logger)
1009
+ this.logger.debug("Calling operation ConfigClient#listDataFiles.");
1010
+ const operationName = "listDataFiles";
1011
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFileSummaryCollection/ListDataFiles";
1012
+ const pathParams = {};
1013
+ const queryParams = {
1014
+ "apmDomainId": listDataFilesRequest.apmDomainId,
1015
+ "apmType": listDataFilesRequest.apmType,
1016
+ "name": listDataFilesRequest.name,
1017
+ "timeLastModifiedBefore": listDataFilesRequest.timeLastModifiedBefore,
1018
+ "timeLastModifiedAfter": listDataFilesRequest.timeLastModifiedAfter,
1019
+ "limit": listDataFilesRequest.limit,
1020
+ "page": listDataFilesRequest.page,
1021
+ "sortOrder": listDataFilesRequest.sortOrder,
1022
+ "sortBy": listDataFilesRequest.sortBy
1023
+ };
1024
+ let headerParams = {
1025
+ "Content-Type": common.Constants.APPLICATION_JSON,
1026
+ "metadata": listDataFilesRequest.metadata,
1027
+ "opc-retry-token": listDataFilesRequest.opcRetryToken,
1028
+ "opc-client-request-id": listDataFilesRequest.opcClientRequestId
1029
+ };
1030
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1031
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDataFilesRequest.retryConfiguration, specRetryConfiguration);
1032
+ if (this.logger)
1033
+ retrier.logger = this.logger;
1034
+ const request = yield oci_common_1.composeRequest({
1035
+ baseEndpoint: this._endpoint,
1036
+ defaultHeaders: this._defaultHeaders,
1037
+ path: "/dataFiles",
1038
+ method: "GET",
1039
+ pathParams: pathParams,
1040
+ headerParams: headerParams,
1041
+ queryParams: queryParams
1042
+ });
1043
+ try {
1044
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1045
+ const sdkResponse = oci_common_1.composeResponse({
1046
+ responseObject: {},
1047
+ body: yield response.json(),
1048
+ bodyKey: "dataFileSummaryCollection",
1049
+ bodyModel: model.DataFileSummaryCollection,
1050
+ type: "model.DataFileSummaryCollection",
1051
+ responseHeaders: [
1052
+ {
1053
+ value: response.headers.get("opc-client-request-id"),
1054
+ key: "opcClientRequestId",
1055
+ dataType: "string"
1056
+ },
1057
+ {
1058
+ value: response.headers.get("opc-request-id"),
1059
+ key: "opcRequestId",
1060
+ dataType: "string"
1061
+ },
1062
+ {
1063
+ value: response.headers.get("opc-next-page"),
1064
+ key: "opcNextPage",
1065
+ dataType: "string"
1066
+ }
1067
+ ]
1068
+ });
1069
+ return sdkResponse;
1070
+ }
1071
+ catch (err) {
1072
+ throw err;
1073
+ }
1074
+ });
1075
+ }
1076
+ /**
1077
+ * Creates a new data file or replaces an existing one with the same name and type.
1078
+ *
1079
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1080
+ * @param PutDataFileRequest
1081
+ * @return PutDataFileResponse
1082
+ * @throws OciError when an error occurs
1083
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/apmconfig/PutDataFile.ts.html |here} to see how to use PutDataFile API.
1084
+ */
1085
+ putDataFile(putDataFileRequest) {
1086
+ return __awaiter(this, void 0, void 0, function* () {
1087
+ if (this.logger)
1088
+ this.logger.debug("Calling operation ConfigClient#putDataFile.");
1089
+ const operationName = "putDataFile";
1090
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/PutDataFile";
1091
+ const pathParams = {
1092
+ "{dataFileName}": putDataFileRequest.dataFileName
1093
+ };
1094
+ const queryParams = {
1095
+ "apmDomainId": putDataFileRequest.apmDomainId,
1096
+ "apmType": putDataFileRequest.apmType
1097
+ };
1098
+ let headerParams = {
1099
+ "Content-MD5": putDataFileRequest.contentMD5,
1100
+ "Content-Type": putDataFileRequest.contentType,
1101
+ "Content-Language": putDataFileRequest.contentLanguage,
1102
+ "Content-Encoding": putDataFileRequest.contentEncoding,
1103
+ "Content-Disposition": putDataFileRequest.contentDisposition,
1104
+ "metadata": putDataFileRequest.metadata,
1105
+ "opc-retry-token": putDataFileRequest.opcRetryToken,
1106
+ "opc-client-request-id": putDataFileRequest.opcClientRequestId
1107
+ };
1108
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1109
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putDataFileRequest.retryConfiguration, specRetryConfiguration);
1110
+ if (this.logger)
1111
+ retrier.logger = this.logger;
1112
+ const request = yield oci_common_1.composeRequest({
1113
+ baseEndpoint: this._endpoint,
1114
+ defaultHeaders: this._defaultHeaders,
1115
+ path: "/dataFiles/{dataFileName}",
1116
+ method: "PUT",
1117
+ bodyContent: putDataFileRequest.putDataFileBody,
1118
+ pathParams: pathParams,
1119
+ headerParams: headerParams,
1120
+ backupBinaryBody: retrier.backUpBinaryBody,
1121
+ queryParams: queryParams
1122
+ });
1123
+ try {
1124
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
1125
+ const sdkResponse = oci_common_1.composeResponse({
1126
+ responseObject: {},
1127
+ responseHeaders: [
1128
+ {
1129
+ value: response.headers.get("etag"),
1130
+ key: "etag",
1131
+ dataType: "string"
1132
+ },
1133
+ {
1134
+ value: response.headers.get("opc-request-id"),
1135
+ key: "opcRequestId",
1136
+ dataType: "string"
1137
+ },
1138
+ {
1139
+ value: response.headers.get("opc-client-request-id"),
1140
+ key: "opcClientRequestId",
1141
+ dataType: "string"
1142
+ },
1143
+ {
1144
+ value: response.headers.get("content-md5"),
1145
+ key: "contentMd5",
1146
+ dataType: "string"
1147
+ },
1148
+ {
1149
+ value: response.headers.get("last-modified"),
1150
+ key: "lastModified",
1151
+ dataType: "Date"
1152
+ }
1153
+ ]
1154
+ });
1155
+ return sdkResponse;
1156
+ }
1157
+ catch (err) {
1158
+ throw err;
1159
+ }
1160
+ });
1161
+ }
711
1162
  /**
712
1163
  * Returns all metrics associated with the specified namespace.
713
1164
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.