oci-core 2.106.0 → 2.106.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 (53) hide show
  1. package/lib/client.d.ts +41 -0
  2. package/lib/client.js +268 -0
  3. package/lib/client.js.map +1 -1
  4. package/lib/compute-waiter.d.ts +28 -0
  5. package/lib/compute-waiter.js +48 -0
  6. package/lib/compute-waiter.js.map +1 -1
  7. package/lib/model/change-compute-host-compartment-details.d.ts +34 -0
  8. package/lib/model/change-compute-host-compartment-details.js +36 -0
  9. package/lib/model/change-compute-host-compartment-details.js.map +1 -0
  10. package/lib/model/compute-host-collection.d.ts +34 -0
  11. package/lib/model/compute-host-collection.js +68 -0
  12. package/lib/model/compute-host-collection.js.map +1 -0
  13. package/lib/model/compute-host-summary.d.ts +152 -0
  14. package/lib/model/compute-host-summary.js +36 -0
  15. package/lib/model/compute-host-summary.js.map +1 -0
  16. package/lib/model/compute-host.d.ts +189 -0
  17. package/lib/model/compute-host.js +59 -0
  18. package/lib/model/compute-host.js.map +1 -0
  19. package/lib/model/index.d.ts +10 -0
  20. package/lib/model/index.js +22 -12
  21. package/lib/model/index.js.map +1 -1
  22. package/lib/model/update-compute-host-details.d.ts +57 -0
  23. package/lib/model/update-compute-host-details.js +36 -0
  24. package/lib/model/update-compute-host-details.js.map +1 -0
  25. package/lib/request/change-compute-host-compartment-request.d.ts +50 -0
  26. package/lib/request/change-compute-host-compartment-request.js +15 -0
  27. package/lib/request/change-compute-host-compartment-request.js.map +1 -0
  28. package/lib/request/get-compute-host-request.d.ts +29 -0
  29. package/lib/request/get-compute-host-request.js +15 -0
  30. package/lib/request/get-compute-host-request.js.map +1 -0
  31. package/lib/request/index.d.ts +8 -0
  32. package/lib/request/index.js +4 -2
  33. package/lib/request/index.js.map +1 -1
  34. package/lib/request/list-compute-hosts-request.d.ts +102 -0
  35. package/lib/request/list-compute-hosts-request.js +29 -0
  36. package/lib/request/list-compute-hosts-request.js.map +1 -0
  37. package/lib/request/update-compute-host-request.d.ts +41 -0
  38. package/lib/request/update-compute-host-request.js +15 -0
  39. package/lib/request/update-compute-host-request.js.map +1 -0
  40. package/lib/response/change-compute-host-compartment-response.d.ts +27 -0
  41. package/lib/response/change-compute-host-compartment-response.js +15 -0
  42. package/lib/response/change-compute-host-compartment-response.js.map +1 -0
  43. package/lib/response/get-compute-host-response.d.ts +30 -0
  44. package/lib/response/get-compute-host-response.js +15 -0
  45. package/lib/response/get-compute-host-response.js.map +1 -0
  46. package/lib/response/index.d.ts +8 -0
  47. package/lib/response/list-compute-hosts-response.d.ts +32 -0
  48. package/lib/response/list-compute-hosts-response.js +15 -0
  49. package/lib/response/list-compute-hosts-response.js.map +1 -0
  50. package/lib/response/update-compute-host-response.d.ts +32 -0
  51. package/lib/response/update-compute-host-response.js +15 -0
  52. package/lib/response/update-compute-host-response.js.map +1 -0
  53. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -1344,6 +1344,17 @@ export declare class ComputeClient {
1344
1344
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeComputeGpuMemoryFabricCompartment.ts.html |here} to see how to use ChangeComputeGpuMemoryFabricCompartment API.
1345
1345
  */
1346
1346
  changeComputeGpuMemoryFabricCompartment(changeComputeGpuMemoryFabricCompartmentRequest: requests.ChangeComputeGpuMemoryFabricCompartmentRequest): Promise<responses.ChangeComputeGpuMemoryFabricCompartmentResponse>;
1347
+ /**
1348
+ * Moves a compute host into a different compartment. For information about moving resources between
1349
+ * compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
1350
+ *
1351
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1352
+ * @param ChangeComputeHostCompartmentRequest
1353
+ * @return ChangeComputeHostCompartmentResponse
1354
+ * @throws OciError when an error occurs
1355
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeComputeHostCompartment.ts.html |here} to see how to use ChangeComputeHostCompartment API.
1356
+ */
1357
+ changeComputeHostCompartment(changeComputeHostCompartmentRequest: requests.ChangeComputeHostCompartmentRequest): Promise<responses.ChangeComputeHostCompartmentResponse>;
1347
1358
  /**
1348
1359
  * Moves a compute image capability schema into a different compartment within the same tenancy.
1349
1360
  * For information about moving resources between compartments, see
@@ -1814,6 +1825,16 @@ export declare class ComputeClient {
1814
1825
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetComputeGpuMemoryFabric.ts.html |here} to see how to use GetComputeGpuMemoryFabric API.
1815
1826
  */
1816
1827
  getComputeGpuMemoryFabric(getComputeGpuMemoryFabricRequest: requests.GetComputeGpuMemoryFabricRequest): Promise<responses.GetComputeGpuMemoryFabricResponse>;
1828
+ /**
1829
+ * Gets information about the specified compute host
1830
+ *
1831
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1832
+ * @param GetComputeHostRequest
1833
+ * @return GetComputeHostResponse
1834
+ * @throws OciError when an error occurs
1835
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetComputeHost.ts.html |here} to see how to use GetComputeHost API.
1836
+ */
1837
+ getComputeHost(getComputeHostRequest: requests.GetComputeHostRequest): Promise<responses.GetComputeHostResponse>;
1817
1838
  /**
1818
1839
  * Gets the specified Compute Image Capability Schema
1819
1840
  *
@@ -2522,6 +2543,16 @@ export declare class ComputeClient {
2522
2543
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeGpuMemoryFabrics.ts.html |here} to see how to use ListComputeGpuMemoryFabrics API.
2523
2544
  */
2524
2545
  listComputeGpuMemoryFabrics(listComputeGpuMemoryFabricsRequest: requests.ListComputeGpuMemoryFabricsRequest): Promise<responses.ListComputeGpuMemoryFabricsResponse>;
2546
+ /**
2547
+ * Generates a list of summary host details
2548
+ *
2549
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2550
+ * @param ListComputeHostsRequest
2551
+ * @return ListComputeHostsResponse
2552
+ * @throws OciError when an error occurs
2553
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeHosts.ts.html |here} to see how to use ListComputeHosts API.
2554
+ */
2555
+ listComputeHosts(listComputeHostsRequest: requests.ListComputeHostsRequest): Promise<responses.ListComputeHostsResponse>;
2525
2556
  /**
2526
2557
  * Lists Compute Image Capability Schema in the specified compartment. You can also query by a specific imageId.
2527
2558
  *
@@ -3267,6 +3298,16 @@ export declare class ComputeClient {
3267
3298
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateComputeGpuMemoryFabric.ts.html |here} to see how to use UpdateComputeGpuMemoryFabric API.
3268
3299
  */
3269
3300
  updateComputeGpuMemoryFabric(updateComputeGpuMemoryFabricRequest: requests.UpdateComputeGpuMemoryFabricRequest): Promise<responses.UpdateComputeGpuMemoryFabricResponse>;
3301
+ /**
3302
+ * Customer can update the some fields for ComputeHost record
3303
+ *
3304
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3305
+ * @param UpdateComputeHostRequest
3306
+ * @return UpdateComputeHostResponse
3307
+ * @throws OciError when an error occurs
3308
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateComputeHost.ts.html |here} to see how to use UpdateComputeHost API.
3309
+ */
3310
+ updateComputeHost(updateComputeHostRequest: requests.UpdateComputeHostRequest): Promise<responses.UpdateComputeHostResponse>;
3270
3311
  /**
3271
3312
  * Updates the specified Compute Image Capability Schema
3272
3313
  *
package/lib/client.js CHANGED
@@ -5391,6 +5391,70 @@ class ComputeClient {
5391
5391
  }
5392
5392
  });
5393
5393
  }
5394
+ /**
5395
+ * Moves a compute host into a different compartment. For information about moving resources between
5396
+ * compartments, see [Moving Resources to a Different Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
5397
+ *
5398
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
5399
+ * @param ChangeComputeHostCompartmentRequest
5400
+ * @return ChangeComputeHostCompartmentResponse
5401
+ * @throws OciError when an error occurs
5402
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ChangeComputeHostCompartment.ts.html |here} to see how to use ChangeComputeHostCompartment API.
5403
+ */
5404
+ changeComputeHostCompartment(changeComputeHostCompartmentRequest) {
5405
+ return __awaiter(this, void 0, void 0, function* () {
5406
+ if (this.logger)
5407
+ this.logger.debug("Calling operation ComputeClient#changeComputeHostCompartment.");
5408
+ const operationName = "changeComputeHostCompartment";
5409
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/ChangeComputeHostCompartment";
5410
+ const pathParams = {
5411
+ "{computeHostId}": changeComputeHostCompartmentRequest.computeHostId
5412
+ };
5413
+ const queryParams = {};
5414
+ let headerParams = {
5415
+ "Content-Type": common.Constants.APPLICATION_JSON,
5416
+ "if-match": changeComputeHostCompartmentRequest.ifMatch,
5417
+ "opc-request-id": changeComputeHostCompartmentRequest.opcRequestId,
5418
+ "opc-retry-token": changeComputeHostCompartmentRequest.opcRetryToken
5419
+ };
5420
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
5421
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeComputeHostCompartmentRequest.retryConfiguration, specRetryConfiguration);
5422
+ if (this.logger)
5423
+ retrier.logger = this.logger;
5424
+ const request = yield oci_common_2.composeRequest({
5425
+ baseEndpoint: this._endpoint,
5426
+ defaultHeaders: this._defaultHeaders,
5427
+ path: "/computeHosts/{computeHostId}/actions/changeCompartment",
5428
+ method: "POST",
5429
+ bodyContent: common.ObjectSerializer.serialize(changeComputeHostCompartmentRequest.changeComputeHostCompartmentDetails, "ChangeComputeHostCompartmentDetails", model.ChangeComputeHostCompartmentDetails.getJsonObj),
5430
+ pathParams: pathParams,
5431
+ headerParams: headerParams,
5432
+ queryParams: queryParams
5433
+ });
5434
+ try {
5435
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
5436
+ const sdkResponse = oci_common_2.composeResponse({
5437
+ responseObject: {},
5438
+ responseHeaders: [
5439
+ {
5440
+ value: response.headers.get("opc-request-id"),
5441
+ key: "opcRequestId",
5442
+ dataType: "string"
5443
+ },
5444
+ {
5445
+ value: response.headers.get("opc-work-request-id"),
5446
+ key: "opcWorkRequestId",
5447
+ dataType: "string"
5448
+ }
5449
+ ]
5450
+ });
5451
+ return sdkResponse;
5452
+ }
5453
+ catch (err) {
5454
+ throw err;
5455
+ }
5456
+ });
5457
+ }
5394
5458
  /**
5395
5459
  * Moves a compute image capability schema into a different compartment within the same tenancy.
5396
5460
  * For information about moving resources between compartments, see
@@ -7906,6 +7970,70 @@ class ComputeClient {
7906
7970
  }
7907
7971
  });
7908
7972
  }
7973
+ /**
7974
+ * Gets information about the specified compute host
7975
+ *
7976
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
7977
+ * @param GetComputeHostRequest
7978
+ * @return GetComputeHostResponse
7979
+ * @throws OciError when an error occurs
7980
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/GetComputeHost.ts.html |here} to see how to use GetComputeHost API.
7981
+ */
7982
+ getComputeHost(getComputeHostRequest) {
7983
+ return __awaiter(this, void 0, void 0, function* () {
7984
+ if (this.logger)
7985
+ this.logger.debug("Calling operation ComputeClient#getComputeHost.");
7986
+ const operationName = "getComputeHost";
7987
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/GetComputeHost";
7988
+ const pathParams = {
7989
+ "{computeHostId}": getComputeHostRequest.computeHostId
7990
+ };
7991
+ const queryParams = {};
7992
+ let headerParams = {
7993
+ "Content-Type": common.Constants.APPLICATION_JSON,
7994
+ "opc-request-id": getComputeHostRequest.opcRequestId
7995
+ };
7996
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
7997
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getComputeHostRequest.retryConfiguration, specRetryConfiguration);
7998
+ if (this.logger)
7999
+ retrier.logger = this.logger;
8000
+ const request = yield oci_common_2.composeRequest({
8001
+ baseEndpoint: this._endpoint,
8002
+ defaultHeaders: this._defaultHeaders,
8003
+ path: "/computeHosts/{computeHostId}",
8004
+ method: "GET",
8005
+ pathParams: pathParams,
8006
+ headerParams: headerParams,
8007
+ queryParams: queryParams
8008
+ });
8009
+ try {
8010
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
8011
+ const sdkResponse = oci_common_2.composeResponse({
8012
+ responseObject: {},
8013
+ body: yield response.json(),
8014
+ bodyKey: "computeHost",
8015
+ bodyModel: model.ComputeHost,
8016
+ type: "model.ComputeHost",
8017
+ responseHeaders: [
8018
+ {
8019
+ value: response.headers.get("etag"),
8020
+ key: "etag",
8021
+ dataType: "string"
8022
+ },
8023
+ {
8024
+ value: response.headers.get("opc-request-id"),
8025
+ key: "opcRequestId",
8026
+ dataType: "string"
8027
+ }
8028
+ ]
8029
+ });
8030
+ return sdkResponse;
8031
+ }
8032
+ catch (err) {
8033
+ throw err;
8034
+ }
8035
+ });
8036
+ }
7909
8037
  /**
7910
8038
  * Gets the specified Compute Image Capability Schema
7911
8039
  *
@@ -10568,6 +10696,79 @@ class ComputeClient {
10568
10696
  }
10569
10697
  });
10570
10698
  }
10699
+ /**
10700
+ * Generates a list of summary host details
10701
+ *
10702
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
10703
+ * @param ListComputeHostsRequest
10704
+ * @return ListComputeHostsResponse
10705
+ * @throws OciError when an error occurs
10706
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/ListComputeHosts.ts.html |here} to see how to use ListComputeHosts API.
10707
+ */
10708
+ listComputeHosts(listComputeHostsRequest) {
10709
+ return __awaiter(this, void 0, void 0, function* () {
10710
+ if (this.logger)
10711
+ this.logger.debug("Calling operation ComputeClient#listComputeHosts.");
10712
+ const operationName = "listComputeHosts";
10713
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/ListComputeHosts";
10714
+ const pathParams = {};
10715
+ const queryParams = {
10716
+ "availabilityDomain": listComputeHostsRequest.availabilityDomain,
10717
+ "compartmentId": listComputeHostsRequest.compartmentId,
10718
+ "displayName": listComputeHostsRequest.displayName,
10719
+ "networkResourceId": listComputeHostsRequest.networkResourceId,
10720
+ "limit": listComputeHostsRequest.limit,
10721
+ "page": listComputeHostsRequest.page,
10722
+ "sortBy": listComputeHostsRequest.sortBy,
10723
+ "sortOrder": listComputeHostsRequest.sortOrder,
10724
+ "computeHostLifecycleState": listComputeHostsRequest.computeHostLifecycleState,
10725
+ "computeHostHealth": listComputeHostsRequest.computeHostHealth
10726
+ };
10727
+ let headerParams = {
10728
+ "Content-Type": common.Constants.APPLICATION_JSON,
10729
+ "opc-request-id": listComputeHostsRequest.opcRequestId
10730
+ };
10731
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
10732
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listComputeHostsRequest.retryConfiguration, specRetryConfiguration);
10733
+ if (this.logger)
10734
+ retrier.logger = this.logger;
10735
+ const request = yield oci_common_2.composeRequest({
10736
+ baseEndpoint: this._endpoint,
10737
+ defaultHeaders: this._defaultHeaders,
10738
+ path: "/computeHosts",
10739
+ method: "GET",
10740
+ pathParams: pathParams,
10741
+ headerParams: headerParams,
10742
+ queryParams: queryParams
10743
+ });
10744
+ try {
10745
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
10746
+ const sdkResponse = oci_common_2.composeResponse({
10747
+ responseObject: {},
10748
+ body: yield response.json(),
10749
+ bodyKey: "computeHostCollection",
10750
+ bodyModel: model.ComputeHostCollection,
10751
+ type: "model.ComputeHostCollection",
10752
+ responseHeaders: [
10753
+ {
10754
+ value: response.headers.get("opc-next-page"),
10755
+ key: "opcNextPage",
10756
+ dataType: "string"
10757
+ },
10758
+ {
10759
+ value: response.headers.get("opc-request-id"),
10760
+ key: "opcRequestId",
10761
+ dataType: "string"
10762
+ }
10763
+ ]
10764
+ });
10765
+ return sdkResponse;
10766
+ }
10767
+ catch (err) {
10768
+ throw err;
10769
+ }
10770
+ });
10771
+ }
10571
10772
  /**
10572
10773
  * Lists Compute Image Capability Schema in the specified compartment. You can also query by a specific imageId.
10573
10774
  *
@@ -12701,6 +12902,73 @@ class ComputeClient {
12701
12902
  }
12702
12903
  });
12703
12904
  }
12905
+ /**
12906
+ * Customer can update the some fields for ComputeHost record
12907
+ *
12908
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
12909
+ * @param UpdateComputeHostRequest
12910
+ * @return UpdateComputeHostResponse
12911
+ * @throws OciError when an error occurs
12912
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/core/UpdateComputeHost.ts.html |here} to see how to use UpdateComputeHost API.
12913
+ */
12914
+ updateComputeHost(updateComputeHostRequest) {
12915
+ return __awaiter(this, void 0, void 0, function* () {
12916
+ if (this.logger)
12917
+ this.logger.debug("Calling operation ComputeClient#updateComputeHost.");
12918
+ const operationName = "updateComputeHost";
12919
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeHost/UpdateComputeHost";
12920
+ const pathParams = {
12921
+ "{computeHostId}": updateComputeHostRequest.computeHostId
12922
+ };
12923
+ const queryParams = {};
12924
+ let headerParams = {
12925
+ "Content-Type": common.Constants.APPLICATION_JSON,
12926
+ "if-match": updateComputeHostRequest.ifMatch,
12927
+ "opc-request-id": updateComputeHostRequest.opcRequestId
12928
+ };
12929
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
12930
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateComputeHostRequest.retryConfiguration, specRetryConfiguration);
12931
+ if (this.logger)
12932
+ retrier.logger = this.logger;
12933
+ const request = yield oci_common_2.composeRequest({
12934
+ baseEndpoint: this._endpoint,
12935
+ defaultHeaders: this._defaultHeaders,
12936
+ path: "/computeHosts/{computeHostId}",
12937
+ method: "PUT",
12938
+ bodyContent: common.ObjectSerializer.serialize(updateComputeHostRequest.updateComputeHostDetails, "UpdateComputeHostDetails", model.UpdateComputeHostDetails.getJsonObj),
12939
+ pathParams: pathParams,
12940
+ headerParams: headerParams,
12941
+ queryParams: queryParams
12942
+ });
12943
+ try {
12944
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
12945
+ const sdkResponse = oci_common_2.composeResponse({
12946
+ responseObject: {},
12947
+ responseHeaders: [
12948
+ {
12949
+ value: response.headers.get("etag"),
12950
+ key: "etag",
12951
+ dataType: "string"
12952
+ },
12953
+ {
12954
+ value: response.headers.get("opc-request-id"),
12955
+ key: "opcRequestId",
12956
+ dataType: "string"
12957
+ },
12958
+ {
12959
+ value: response.headers.get("opc-work-request-id"),
12960
+ key: "opcWorkRequestId",
12961
+ dataType: "string"
12962
+ }
12963
+ ]
12964
+ });
12965
+ return sdkResponse;
12966
+ }
12967
+ catch (err) {
12968
+ throw err;
12969
+ }
12970
+ });
12971
+ }
12704
12972
  /**
12705
12973
  * Updates the specified Compute Image Capability Schema
12706
12974
  *