oci-mysql 2.126.3 → 2.129.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.d.ts CHANGED
@@ -529,6 +529,16 @@ export declare class DbSystemClient {
529
529
  * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/mysql/AddHeatWaveCluster.ts.html |here} to see how to use AddHeatWaveCluster API.
530
530
  */
531
531
  addHeatWaveCluster(addHeatWaveClusterRequest: requests.AddHeatWaveClusterRequest): Promise<responses.AddHeatWaveClusterResponse>;
532
+ /**
533
+ * Update the chosen subset of MySQL instances based on their role.
534
+ *
535
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
536
+ * @param ControlledUpdateDbSystemRequest
537
+ * @return ControlledUpdateDbSystemResponse
538
+ * @throws OciError when an error occurs
539
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/mysql/ControlledUpdateDbSystem.ts.html |here} to see how to use ControlledUpdateDbSystem API.
540
+ */
541
+ controlledUpdateDbSystem(controlledUpdateDbSystemRequest: requests.ControlledUpdateDbSystemRequest): Promise<responses.ControlledUpdateDbSystemResponse>;
532
542
  /**
533
543
  * Creates and launches a DB System.
534
544
  *
package/lib/client.js CHANGED
@@ -1939,6 +1939,69 @@ class DbSystemClient {
1939
1939
  }
1940
1940
  });
1941
1941
  }
1942
+ /**
1943
+ * Update the chosen subset of MySQL instances based on their role.
1944
+ *
1945
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1946
+ * @param ControlledUpdateDbSystemRequest
1947
+ * @return ControlledUpdateDbSystemResponse
1948
+ * @throws OciError when an error occurs
1949
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/mysql/ControlledUpdateDbSystem.ts.html |here} to see how to use ControlledUpdateDbSystem API.
1950
+ */
1951
+ controlledUpdateDbSystem(controlledUpdateDbSystemRequest) {
1952
+ return __awaiter(this, void 0, void 0, function* () {
1953
+ if (this.logger)
1954
+ this.logger.debug("Calling operation DbSystemClient#controlledUpdateDbSystem.");
1955
+ const operationName = "controlledUpdateDbSystem";
1956
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/ControlledUpdateDbSystem";
1957
+ const pathParams = {
1958
+ "{dbSystemId}": controlledUpdateDbSystemRequest.dbSystemId
1959
+ };
1960
+ const queryParams = {};
1961
+ let headerParams = {
1962
+ "Content-Type": common.Constants.APPLICATION_JSON,
1963
+ "if-match": controlledUpdateDbSystemRequest.ifMatch,
1964
+ "opc-request-id": controlledUpdateDbSystemRequest.opcRequestId,
1965
+ "opc-retry-token": controlledUpdateDbSystemRequest.opcRetryToken
1966
+ };
1967
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1968
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, controlledUpdateDbSystemRequest.retryConfiguration, specRetryConfiguration);
1969
+ if (this.logger)
1970
+ retrier.logger = this.logger;
1971
+ const request = yield oci_common_2.composeRequest({
1972
+ baseEndpoint: this._endpoint,
1973
+ defaultHeaders: this._defaultHeaders,
1974
+ path: "/dbSystems/{dbSystemId}/actions/controlledUpdate",
1975
+ method: "POST",
1976
+ bodyContent: common.ObjectSerializer.serialize(controlledUpdateDbSystemRequest.controlledUpdateDbSystemDetails, "ControlledUpdateDbSystemDetails", model.ControlledUpdateDbSystemDetails.getJsonObj),
1977
+ pathParams: pathParams,
1978
+ headerParams: headerParams,
1979
+ queryParams: queryParams
1980
+ });
1981
+ try {
1982
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1983
+ const sdkResponse = oci_common_2.composeResponse({
1984
+ responseObject: {},
1985
+ responseHeaders: [
1986
+ {
1987
+ value: response.headers.get("opc-request-id"),
1988
+ key: "opcRequestId",
1989
+ dataType: "string"
1990
+ },
1991
+ {
1992
+ value: response.headers.get("opc-work-request-id"),
1993
+ key: "opcWorkRequestId",
1994
+ dataType: "string"
1995
+ }
1996
+ ]
1997
+ });
1998
+ return sdkResponse;
1999
+ }
2000
+ catch (err) {
2001
+ throw err;
2002
+ }
2003
+ });
2004
+ }
1942
2005
  /**
1943
2006
  * Creates and launches a DB System.
1944
2007
  *