UNPKG

@google-cloud/dms

Version:
775 lines (695 loc) 4.09 MB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ (function(global, factory) { /* global define, require, module */ /* AMD */ if (typeof define === 'function' && define.amd) define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); })(this, function($protobuf) { "use strict"; // Common aliases var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace var $root = $protobuf.roots._google_cloud_dms_protos || ($protobuf.roots._google_cloud_dms_protos = {}); $root.google = (function() { /** * Namespace google. * @exports google * @namespace */ var google = {}; google.cloud = (function() { /** * Namespace cloud. * @memberof google * @namespace */ var cloud = {}; cloud.clouddms = (function() { /** * Namespace clouddms. * @memberof google.cloud * @namespace */ var clouddms = {}; clouddms.v1 = (function() { /** * Namespace v1. * @memberof google.cloud.clouddms * @namespace */ var v1 = {}; v1.DataMigrationService = (function() { /** * Constructs a new DataMigrationService service. * @memberof google.cloud.clouddms.v1 * @classdesc Represents a DataMigrationService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ function DataMigrationService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } (DataMigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataMigrationService; /** * Creates new DataMigrationService service using the specified rpc implementation. * @function create * @memberof google.cloud.clouddms.v1.DataMigrationService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited * @returns {DataMigrationService} RPC service. Useful where requests and/or responses are streamed. */ DataMigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|listMigrationJobs}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef ListMigrationJobsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.ListMigrationJobsResponse} [response] ListMigrationJobsResponse */ /** * Calls ListMigrationJobs. * @function listMigrationJobs * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IListMigrationJobsRequest} request ListMigrationJobsRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.ListMigrationJobsCallback} callback Node-style callback called with the error, if any, and ListMigrationJobsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.listMigrationJobs = function listMigrationJobs(request, callback) { return this.rpcCall(listMigrationJobs, $root.google.cloud.clouddms.v1.ListMigrationJobsRequest, $root.google.cloud.clouddms.v1.ListMigrationJobsResponse, request, callback); }, "name", { value: "ListMigrationJobs" }); /** * Calls ListMigrationJobs. * @function listMigrationJobs * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IListMigrationJobsRequest} request ListMigrationJobsRequest message or plain object * @returns {Promise<google.cloud.clouddms.v1.ListMigrationJobsResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|getMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef GetMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.MigrationJob} [response] MigrationJob */ /** * Calls GetMigrationJob. * @function getMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGetMigrationJobRequest} request GetMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.GetMigrationJobCallback} callback Node-style callback called with the error, if any, and MigrationJob * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.getMigrationJob = function getMigrationJob(request, callback) { return this.rpcCall(getMigrationJob, $root.google.cloud.clouddms.v1.GetMigrationJobRequest, $root.google.cloud.clouddms.v1.MigrationJob, request, callback); }, "name", { value: "GetMigrationJob" }); /** * Calls GetMigrationJob. * @function getMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGetMigrationJobRequest} request GetMigrationJobRequest message or plain object * @returns {Promise<google.cloud.clouddms.v1.MigrationJob>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|createMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef CreateMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreateMigrationJob. * @function createMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.ICreateMigrationJobRequest} request CreateMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.CreateMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.createMigrationJob = function createMigrationJob(request, callback) { return this.rpcCall(createMigrationJob, $root.google.cloud.clouddms.v1.CreateMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateMigrationJob" }); /** * Calls CreateMigrationJob. * @function createMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.ICreateMigrationJobRequest} request CreateMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|updateMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef UpdateMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls UpdateMigrationJob. * @function updateMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IUpdateMigrationJobRequest} request UpdateMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.UpdateMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.updateMigrationJob = function updateMigrationJob(request, callback) { return this.rpcCall(updateMigrationJob, $root.google.cloud.clouddms.v1.UpdateMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "UpdateMigrationJob" }); /** * Calls UpdateMigrationJob. * @function updateMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IUpdateMigrationJobRequest} request UpdateMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|deleteMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef DeleteMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls DeleteMigrationJob. * @function deleteMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IDeleteMigrationJobRequest} request DeleteMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.DeleteMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.deleteMigrationJob = function deleteMigrationJob(request, callback) { return this.rpcCall(deleteMigrationJob, $root.google.cloud.clouddms.v1.DeleteMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "DeleteMigrationJob" }); /** * Calls DeleteMigrationJob. * @function deleteMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IDeleteMigrationJobRequest} request DeleteMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|startMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef StartMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls StartMigrationJob. * @function startMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IStartMigrationJobRequest} request StartMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.StartMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.startMigrationJob = function startMigrationJob(request, callback) { return this.rpcCall(startMigrationJob, $root.google.cloud.clouddms.v1.StartMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "StartMigrationJob" }); /** * Calls StartMigrationJob. * @function startMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IStartMigrationJobRequest} request StartMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|stopMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef StopMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls StopMigrationJob. * @function stopMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IStopMigrationJobRequest} request StopMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.StopMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.stopMigrationJob = function stopMigrationJob(request, callback) { return this.rpcCall(stopMigrationJob, $root.google.cloud.clouddms.v1.StopMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "StopMigrationJob" }); /** * Calls StopMigrationJob. * @function stopMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IStopMigrationJobRequest} request StopMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|resumeMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef ResumeMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls ResumeMigrationJob. * @function resumeMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IResumeMigrationJobRequest} request ResumeMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.ResumeMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.resumeMigrationJob = function resumeMigrationJob(request, callback) { return this.rpcCall(resumeMigrationJob, $root.google.cloud.clouddms.v1.ResumeMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "ResumeMigrationJob" }); /** * Calls ResumeMigrationJob. * @function resumeMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IResumeMigrationJobRequest} request ResumeMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|promoteMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef PromoteMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls PromoteMigrationJob. * @function promoteMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IPromoteMigrationJobRequest} request PromoteMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.PromoteMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.promoteMigrationJob = function promoteMigrationJob(request, callback) { return this.rpcCall(promoteMigrationJob, $root.google.cloud.clouddms.v1.PromoteMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "PromoteMigrationJob" }); /** * Calls PromoteMigrationJob. * @function promoteMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IPromoteMigrationJobRequest} request PromoteMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|verifyMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef VerifyMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls VerifyMigrationJob. * @function verifyMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IVerifyMigrationJobRequest} request VerifyMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.VerifyMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.verifyMigrationJob = function verifyMigrationJob(request, callback) { return this.rpcCall(verifyMigrationJob, $root.google.cloud.clouddms.v1.VerifyMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "VerifyMigrationJob" }); /** * Calls VerifyMigrationJob. * @function verifyMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IVerifyMigrationJobRequest} request VerifyMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|restartMigrationJob}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef RestartMigrationJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls RestartMigrationJob. * @function restartMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IRestartMigrationJobRequest} request RestartMigrationJobRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.RestartMigrationJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.restartMigrationJob = function restartMigrationJob(request, callback) { return this.rpcCall(restartMigrationJob, $root.google.cloud.clouddms.v1.RestartMigrationJobRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "RestartMigrationJob" }); /** * Calls RestartMigrationJob. * @function restartMigrationJob * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IRestartMigrationJobRequest} request RestartMigrationJobRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|generateSshScript}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef GenerateSshScriptCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.SshScript} [response] SshScript */ /** * Calls GenerateSshScript. * @function generateSshScript * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGenerateSshScriptRequest} request GenerateSshScriptRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.GenerateSshScriptCallback} callback Node-style callback called with the error, if any, and SshScript * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.generateSshScript = function generateSshScript(request, callback) { return this.rpcCall(generateSshScript, $root.google.cloud.clouddms.v1.GenerateSshScriptRequest, $root.google.cloud.clouddms.v1.SshScript, request, callback); }, "name", { value: "GenerateSshScript" }); /** * Calls GenerateSshScript. * @function generateSshScript * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGenerateSshScriptRequest} request GenerateSshScriptRequest message or plain object * @returns {Promise<google.cloud.clouddms.v1.SshScript>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|generateTcpProxyScript}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef GenerateTcpProxyScriptCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.TcpProxyScript} [response] TcpProxyScript */ /** * Calls GenerateTcpProxyScript. * @function generateTcpProxyScript * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest} request GenerateTcpProxyScriptRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.GenerateTcpProxyScriptCallback} callback Node-style callback called with the error, if any, and TcpProxyScript * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.generateTcpProxyScript = function generateTcpProxyScript(request, callback) { return this.rpcCall(generateTcpProxyScript, $root.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest, $root.google.cloud.clouddms.v1.TcpProxyScript, request, callback); }, "name", { value: "GenerateTcpProxyScript" }); /** * Calls GenerateTcpProxyScript. * @function generateTcpProxyScript * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest} request GenerateTcpProxyScriptRequest message or plain object * @returns {Promise<google.cloud.clouddms.v1.TcpProxyScript>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|listConnectionProfiles}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef ListConnectionProfilesCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.ListConnectionProfilesResponse} [response] ListConnectionProfilesResponse */ /** * Calls ListConnectionProfiles. * @function listConnectionProfiles * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IListConnectionProfilesRequest} request ListConnectionProfilesRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.ListConnectionProfilesCallback} callback Node-style callback called with the error, if any, and ListConnectionProfilesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.listConnectionProfiles = function listConnectionProfiles(request, callback) { return this.rpcCall(listConnectionProfiles, $root.google.cloud.clouddms.v1.ListConnectionProfilesRequest, $root.google.cloud.clouddms.v1.ListConnectionProfilesResponse, request, callback); }, "name", { value: "ListConnectionProfiles" }); /** * Calls ListConnectionProfiles. * @function listConnectionProfiles * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IListConnectionProfilesRequest} request ListConnectionProfilesRequest message or plain object * @returns {Promise<google.cloud.clouddms.v1.ListConnectionProfilesResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|getConnectionProfile}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef GetConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.ConnectionProfile} [response] ConnectionProfile */ /** * Calls GetConnectionProfile. * @function getConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGetConnectionProfileRequest} request GetConnectionProfileRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.GetConnectionProfileCallback} callback Node-style callback called with the error, if any, and ConnectionProfile * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.getConnectionProfile = function getConnectionProfile(request, callback) { return this.rpcCall(getConnectionProfile, $root.google.cloud.clouddms.v1.GetConnectionProfileRequest, $root.google.cloud.clouddms.v1.ConnectionProfile, request, callback); }, "name", { value: "GetConnectionProfile" }); /** * Calls GetConnectionProfile. * @function getConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGetConnectionProfileRequest} request GetConnectionProfileRequest message or plain object * @returns {Promise<google.cloud.clouddms.v1.ConnectionProfile>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|createConnectionProfile}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef CreateConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreateConnectionProfile. * @function createConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.ICreateConnectionProfileRequest} request CreateConnectionProfileRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.CreateConnectionProfileCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.createConnectionProfile = function createConnectionProfile(request, callback) { return this.rpcCall(createConnectionProfile, $root.google.cloud.clouddms.v1.CreateConnectionProfileRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateConnectionProfile" }); /** * Calls CreateConnectionProfile. * @function createConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.ICreateConnectionProfileRequest} request CreateConnectionProfileRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|updateConnectionProfile}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef UpdateConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls UpdateConnectionProfile. * @function updateConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IUpdateConnectionProfileRequest} request UpdateConnectionProfileRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.UpdateConnectionProfileCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.updateConnectionProfile = function updateConnectionProfile(request, callback) { return this.rpcCall(updateConnectionProfile, $root.google.cloud.clouddms.v1.UpdateConnectionProfileRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "UpdateConnectionProfile" }); /** * Calls UpdateConnectionProfile. * @function updateConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IUpdateConnectionProfileRequest} request UpdateConnectionProfileRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|deleteConnectionProfile}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef DeleteConnectionProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls DeleteConnectionProfile. * @function deleteConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IDeleteConnectionProfileRequest} request DeleteConnectionProfileRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.DeleteConnectionProfileCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.deleteConnectionProfile = function deleteConnectionProfile(request, callback) { return this.rpcCall(deleteConnectionProfile, $root.google.cloud.clouddms.v1.DeleteConnectionProfileRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "DeleteConnectionProfile" }); /** * Calls DeleteConnectionProfile. * @function deleteConnectionProfile * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IDeleteConnectionProfileRequest} request DeleteConnectionProfileRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|createPrivateConnection}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef CreatePrivateConnectionCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreatePrivateConnection. * @function createPrivateConnection * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.CreatePrivateConnectionCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.createPrivateConnection = function createPrivateConnection(request, callback) { return this.rpcCall(createPrivateConnection, $root.google.cloud.clouddms.v1.CreatePrivateConnectionRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreatePrivateConnection" }); /** * Calls CreatePrivateConnection. * @function createPrivateConnection * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.ICreatePrivateConnectionRequest} request CreatePrivateConnectionRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|getPrivateConnection}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef GetPrivateConnectionCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.PrivateConnection} [response] PrivateConnection */ /** * Calls GetPrivateConnection. * @function getPrivateConnection * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object * @param {google.cloud.clouddms.v1.DataMigrationService.GetPrivateConnectionCallback} callback Node-style callback called with the error, if any, and PrivateConnection * @returns {undefined} * @variation 1 */ Object.defineProperty(DataMigrationService.prototype.getPrivateConnection = function getPrivateConnection(request, callback) { return this.rpcCall(getPrivateConnection, $root.google.cloud.clouddms.v1.GetPrivateConnectionRequest, $root.google.cloud.clouddms.v1.PrivateConnection, request, callback); }, "name", { value: "GetPrivateConnection" }); /** * Calls GetPrivateConnection. * @function getPrivateConnection * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IGetPrivateConnectionRequest} request GetPrivateConnectionRequest message or plain object * @returns {Promise<google.cloud.clouddms.v1.PrivateConnection>} Promise * @variation 2 */ /** * Callback as used by {@link google.cloud.clouddms.v1.DataMigrationService|listPrivateConnections}. * @memberof google.cloud.clouddms.v1.DataMigrationService * @typedef ListPrivateConnectionsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.cloud.clouddms.v1.ListPrivateConnectionsResponse} [response] ListPrivateConnectionsResponse */ /** * Calls ListPrivateConnections. * @function listPrivateConnections * @memberof google.cloud.clouddms.v1.DataMigrationService * @instance * @param {google.cloud.clouddms.v1.IListPrivateConnectionsRequest} request Li