UNPKG

@google-cloud/bigtable

Version:
805 lines (721 loc) 5.82 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_bigtable_protos || ($protobuf.roots._google_cloud_bigtable_protos = {}); $root.google = (function() { /** * Namespace google. * @exports google * @namespace */ var google = {}; google.bigtable = (function() { /** * Namespace bigtable. * @memberof google * @namespace */ var bigtable = {}; bigtable.admin = (function() { /** * Namespace admin. * @memberof google.bigtable * @namespace */ var admin = {}; admin.v2 = (function() { /** * Namespace v2. * @memberof google.bigtable.admin * @namespace */ var v2 = {}; v2.BigtableInstanceAdmin = (function() { /** * Constructs a new BigtableInstanceAdmin service. * @memberof google.bigtable.admin.v2 * @classdesc Represents a BigtableInstanceAdmin * @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 BigtableInstanceAdmin(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } (BigtableInstanceAdmin.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = BigtableInstanceAdmin; /** * Creates new BigtableInstanceAdmin service using the specified rpc implementation. * @function create * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @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 {BigtableInstanceAdmin} RPC service. Useful where requests and/or responses are streamed. */ BigtableInstanceAdmin.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateInstanceCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreateInstance. * @function createInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICreateInstanceRequest} request CreateInstanceRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstanceCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.createInstance = function createInstance(request, callback) { return this.rpcCall(createInstance, $root.google.bigtable.admin.v2.CreateInstanceRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateInstance" }); /** * Calls CreateInstance. * @function createInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICreateInstanceRequest} request CreateInstanceRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetInstanceCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.Instance} [response] Instance */ /** * Calls GetInstance. * @function getInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IGetInstanceRequest} request GetInstanceRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstanceCallback} callback Node-style callback called with the error, if any, and Instance * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.getInstance = function getInstance(request, callback) { return this.rpcCall(getInstance, $root.google.bigtable.admin.v2.GetInstanceRequest, $root.google.bigtable.admin.v2.Instance, request, callback); }, "name", { value: "GetInstance" }); /** * Calls GetInstance. * @function getInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IGetInstanceRequest} request GetInstanceRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.Instance>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListInstancesCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.ListInstancesResponse} [response] ListInstancesResponse */ /** * Calls ListInstances. * @function listInstances * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListInstancesRequest} request ListInstancesRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstancesCallback} callback Node-style callback called with the error, if any, and ListInstancesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.listInstances = function listInstances(request, callback) { return this.rpcCall(listInstances, $root.google.bigtable.admin.v2.ListInstancesRequest, $root.google.bigtable.admin.v2.ListInstancesResponse, request, callback); }, "name", { value: "ListInstances" }); /** * Calls ListInstances. * @function listInstances * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListInstancesRequest} request ListInstancesRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.ListInstancesResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateInstanceCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.Instance} [response] Instance */ /** * Calls UpdateInstance. * @function updateInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IInstance} request Instance message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstanceCallback} callback Node-style callback called with the error, if any, and Instance * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.updateInstance = function updateInstance(request, callback) { return this.rpcCall(updateInstance, $root.google.bigtable.admin.v2.Instance, $root.google.bigtable.admin.v2.Instance, request, callback); }, "name", { value: "UpdateInstance" }); /** * Calls UpdateInstance. * @function updateInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IInstance} request Instance message or plain object * @returns {Promise<google.bigtable.admin.v2.Instance>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateInstanceCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls PartialUpdateInstance. * @function partialUpdateInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IPartialUpdateInstanceRequest} request PartialUpdateInstanceRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstanceCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.partialUpdateInstance = function partialUpdateInstance(request, callback) { return this.rpcCall(partialUpdateInstance, $root.google.bigtable.admin.v2.PartialUpdateInstanceRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "PartialUpdateInstance" }); /** * Calls PartialUpdateInstance. * @function partialUpdateInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IPartialUpdateInstanceRequest} request PartialUpdateInstanceRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteInstanceCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** * Calls DeleteInstance. * @function deleteInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstanceCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.deleteInstance = function deleteInstance(request, callback) { return this.rpcCall(deleteInstance, $root.google.bigtable.admin.v2.DeleteInstanceRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteInstance" }); /** * Calls DeleteInstance. * @function deleteInstance * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object * @returns {Promise<google.protobuf.Empty>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateClusterCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreateCluster. * @function createCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICreateClusterRequest} request CreateClusterRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.CreateClusterCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.createCluster = function createCluster(request, callback) { return this.rpcCall(createCluster, $root.google.bigtable.admin.v2.CreateClusterRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateCluster" }); /** * Calls CreateCluster. * @function createCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICreateClusterRequest} request CreateClusterRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetClusterCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.Cluster} [response] Cluster */ /** * Calls GetCluster. * @function getCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IGetClusterRequest} request GetClusterRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.GetClusterCallback} callback Node-style callback called with the error, if any, and Cluster * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.getCluster = function getCluster(request, callback) { return this.rpcCall(getCluster, $root.google.bigtable.admin.v2.GetClusterRequest, $root.google.bigtable.admin.v2.Cluster, request, callback); }, "name", { value: "GetCluster" }); /** * Calls GetCluster. * @function getCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IGetClusterRequest} request GetClusterRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.Cluster>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListClustersCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.ListClustersResponse} [response] ListClustersResponse */ /** * Calls ListClusters. * @function listClusters * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListClustersRequest} request ListClustersRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.ListClustersCallback} callback Node-style callback called with the error, if any, and ListClustersResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.listClusters = function listClusters(request, callback) { return this.rpcCall(listClusters, $root.google.bigtable.admin.v2.ListClustersRequest, $root.google.bigtable.admin.v2.ListClustersResponse, request, callback); }, "name", { value: "ListClusters" }); /** * Calls ListClusters. * @function listClusters * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListClustersRequest} request ListClustersRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.ListClustersResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateClusterCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls UpdateCluster. * @function updateCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICluster} request Cluster message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateClusterCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.updateCluster = function updateCluster(request, callback) { return this.rpcCall(updateCluster, $root.google.bigtable.admin.v2.Cluster, $root.google.longrunning.Operation, request, callback); }, "name", { value: "UpdateCluster" }); /** * Calls UpdateCluster. * @function updateCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICluster} request Cluster message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateClusterCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls PartialUpdateCluster. * @function partialUpdateCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IPartialUpdateClusterRequest} request PartialUpdateClusterRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateClusterCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.partialUpdateCluster = function partialUpdateCluster(request, callback) { return this.rpcCall(partialUpdateCluster, $root.google.bigtable.admin.v2.PartialUpdateClusterRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "PartialUpdateCluster" }); /** * Calls PartialUpdateCluster. * @function partialUpdateCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IPartialUpdateClusterRequest} request PartialUpdateClusterRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteClusterCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** * Calls DeleteCluster. * @function deleteCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IDeleteClusterRequest} request DeleteClusterRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteClusterCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.deleteCluster = function deleteCluster(request, callback) { return this.rpcCall(deleteCluster, $root.google.bigtable.admin.v2.DeleteClusterRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteCluster" }); /** * Calls DeleteCluster. * @function deleteCluster * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IDeleteClusterRequest} request DeleteClusterRequest message or plain object * @returns {Promise<google.protobuf.Empty>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateAppProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.AppProfile} [response] AppProfile */ /** * Calls CreateAppProfile. * @function createAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICreateAppProfileRequest} request CreateAppProfileRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfileCallback} callback Node-style callback called with the error, if any, and AppProfile * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.createAppProfile = function createAppProfile(request, callback) { return this.rpcCall(createAppProfile, $root.google.bigtable.admin.v2.CreateAppProfileRequest, $root.google.bigtable.admin.v2.AppProfile, request, callback); }, "name", { value: "CreateAppProfile" }); /** * Calls CreateAppProfile. * @function createAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.ICreateAppProfileRequest} request CreateAppProfileRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.AppProfile>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetAppProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.AppProfile} [response] AppProfile */ /** * Calls GetAppProfile. * @function getAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IGetAppProfileRequest} request GetAppProfileRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfileCallback} callback Node-style callback called with the error, if any, and AppProfile * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.getAppProfile = function getAppProfile(request, callback) { return this.rpcCall(getAppProfile, $root.google.bigtable.admin.v2.GetAppProfileRequest, $root.google.bigtable.admin.v2.AppProfile, request, callback); }, "name", { value: "GetAppProfile" }); /** * Calls GetAppProfile. * @function getAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IGetAppProfileRequest} request GetAppProfileRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.AppProfile>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListAppProfilesCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.ListAppProfilesResponse} [response] ListAppProfilesResponse */ /** * Calls ListAppProfiles. * @function listAppProfiles * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListAppProfilesRequest} request ListAppProfilesRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfilesCallback} callback Node-style callback called with the error, if any, and ListAppProfilesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.listAppProfiles = function listAppProfiles(request, callback) { return this.rpcCall(listAppProfiles, $root.google.bigtable.admin.v2.ListAppProfilesRequest, $root.google.bigtable.admin.v2.ListAppProfilesResponse, request, callback); }, "name", { value: "ListAppProfiles" }); /** * Calls ListAppProfiles. * @function listAppProfiles * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListAppProfilesRequest} request ListAppProfilesRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.ListAppProfilesResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateAppProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls UpdateAppProfile. * @function updateAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IUpdateAppProfileRequest} request UpdateAppProfileRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfileCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.updateAppProfile = function updateAppProfile(request, callback) { return this.rpcCall(updateAppProfile, $root.google.bigtable.admin.v2.UpdateAppProfileRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "UpdateAppProfile" }); /** * Calls UpdateAppProfile. * @function updateAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IUpdateAppProfileRequest} request UpdateAppProfileRequest message or plain object * @returns {Promise<google.longrunning.Operation>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteAppProfileCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** * Calls DeleteAppProfile. * @function deleteAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IDeleteAppProfileRequest} request DeleteAppProfileRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfileCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.deleteAppProfile = function deleteAppProfile(request, callback) { return this.rpcCall(deleteAppProfile, $root.google.bigtable.admin.v2.DeleteAppProfileRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteAppProfile" }); /** * Calls DeleteAppProfile. * @function deleteAppProfile * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IDeleteAppProfileRequest} request DeleteAppProfileRequest message or plain object * @returns {Promise<google.protobuf.Empty>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetIamPolicyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.iam.v1.Policy} [response] Policy */ /** * Calls GetIamPolicy. * @function getIamPolicy * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.getIamPolicy = function getIamPolicy(request, callback) { return this.rpcCall(getIamPolicy, $root.google.iam.v1.GetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); }, "name", { value: "GetIamPolicy" }); /** * Calls GetIamPolicy. * @function getIamPolicy * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object * @returns {Promise<google.iam.v1.Policy>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef SetIamPolicyCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.iam.v1.Policy} [response] Policy */ /** * Calls SetIamPolicy. * @function setIamPolicy * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.setIamPolicy = function setIamPolicy(request, callback) { return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback); }, "name", { value: "SetIamPolicy" }); /** * Calls SetIamPolicy. * @function setIamPolicy * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object * @returns {Promise<google.iam.v1.Policy>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef TestIamPermissionsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse */ /** * Calls TestIamPermissions. * @function testIamPermissions * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.testIamPermissions = function testIamPermissions(request, callback) { return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback); }, "name", { value: "TestIamPermissions" }); /** * Calls TestIamPermissions. * @function testIamPermissions * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object * @returns {Promise<google.iam.v1.TestIamPermissionsResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListHotTabletsCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.bigtable.admin.v2.ListHotTabletsResponse} [response] ListHotTabletsResponse */ /** * Calls ListHotTablets. * @function listHotTablets * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListHotTabletsRequest} request ListHotTabletsRequest message or plain object * @param {google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTabletsCallback} callback Node-style callback called with the error, if any, and ListHotTabletsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(BigtableInstanceAdmin.prototype.listHotTablets = function listHotTablets(request, callback) { return this.rpcCall(listHotTablets, $root.google.bigtable.admin.v2.ListHotTabletsRequest, $root.google.bigtable.admin.v2.ListHotTabletsResponse, request, callback); }, "name", { value: "ListHotTablets" }); /** * Calls ListHotTablets. * @function listHotTablets * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @instance * @param {google.bigtable.admin.v2.IListHotTabletsRequest} request ListHotTabletsRequest message or plain object * @returns {Promise<google.bigtable.admin.v2.ListHotTabletsResponse>} Promise * @variation 2 */ /** * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createLogicalView}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateLogicalViewCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** * Calls CreateLogicalView.