/var/www/qr4y.com/server/delivery/node_modules/google-gax/build/src
NameSizeModeActions
bundlingCalls/-0755rm
longRunningCalls/-0755rm
normalCalls/-0755rm
paginationCalls/-0755rm
streamingCalls/-0755rm
apiCaller.d.ts17460644editdlrm
apiCaller.js10370644editdlrm
apiCaller.js.map3220644editdlrm
apitypes.d.ts28720644editdlrm
apitypes.js7090644editdlrm
apitypes.js.map1340644editdlrm
call.d.ts19570644editdlrm
call.js38850644editdlrm
call.js.map21100644editdlrm
clientInterface.d.ts17220644editdlrm
clientInterface.js9080644editdlrm
clientInterface.js.map3330644editdlrm
createApiCall.d.ts17620644editdlrm
createApiCall.js43520644editdlrm
createApiCall.js.map18110644editdlrm
descriptor.d.ts10730644editdlrm
descriptor.js15720644editdlrm
descriptor.js.map2850644editdlrm
fallback.d.ts65440644editdlrm
fallback.js136730644editdlrm
fallback.js.map62540644editdlrm
fallbackProto.d.ts9460644editdlrm
fallbackProto.js22660644editdlrm
fallbackProto.js.map14290644editdlrm
fallbackRest.d.ts9460644editdlrm
fallbackRest.js33550644editdlrm
fallbackRest.js.map21530644editdlrm
fallbackServiceStub.d.ts15750644editdlrm
fallbackServiceStub.js52570644editdlrm
fallbackServiceStub.js.map30370644editdlrm
featureDetection.d.ts8560644editdlrm
featureDetection.js21060644editdlrm
featureDetection.js.map9140644editdlrm
gax.d.ts149580644editdlrm
gax.js220900644editdlrm
gax.js.map82980644editdlrm
googleError.d.ts22110644editdlrm
googleError.js72160644editdlrm
googleError.js.map45040644editdlrm
grpc.d.ts89300644editdlrm
grpc.js206710644editdlrm
grpc.js.map114420644editdlrm
iamService.d.ts59610644editdlrm
iamService.js92520644editdlrm
iamService.js.map61000644editdlrm
iam_policy_service_client_config.json10630644editdlrm
index.d.ts31010644editdlrm
index.js66870644editdlrm
index.js.map16800644editdlrm
locationService.d.ts73820644editdlrm
locationService.js172800644editdlrm
locationService.js.map71540644editdlrm
locations_client_config.json9330644editdlrm
operationsClient.d.ts162660644editdlrm
operationsClient.js196990644editdlrm
operationsClient.js.map55660644editdlrm
operations_client_config.json12490644editdlrm
pathTemplate.d.ts19660644editdlrm
pathTemplate.js99330644editdlrm
pathTemplate.js.map65950644editdlrm
protosList.json49210644editdlrm
routingHeader.d.ts11240644editdlrm
routingHeader.js13170644editdlrm
routingHeader.js.map2830644editdlrm
status.d.ts11530644editdlrm
status.js32290644editdlrm
status.js.map15700644editdlrm
streamArrayParser.d.ts21450644editdlrm
streamArrayParser.js62120644editdlrm
streamArrayParser.js.map32620644editdlrm
transcoding.d.ts25920644editdlrm
transcoding.js120950644editdlrm
transcoding.js.map94670644editdlrm
util.d.ts9870644editdlrm
util.js19840644editdlrm
util.js.map10640644editdlrm
warnings.d.ts6820644editdlrm
warnings.js13760644editdlrm
warnings.js.map6290644editdlrm
Edit: /var/www/qr4y.com/server/delivery/node_modules/google-gax/build/src/iamService.js (9252B)
"use strict"; // Copyright 2020 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 // // https://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. // // ** This file is automatically generated by gapic-generator-typescript. ** // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** Object.defineProperty(exports, "__esModule", { value: true }); exports.IamClient = void 0; const grpc_1 = require("./grpc"); const fallback_1 = require("./fallback"); const createApiCall_1 = require("./createApiCall"); const routingHeader = require("./routingHeader"); const gapicConfig = require("./iam_policy_service_client_config.json"); const fallback = require("./fallback"); let version = require('../../package.json').version; const jsonProtos = require("../protos/iam_service.json"); /** * Google Cloud IAM Client. * This is manually written for providing methods [setIamPolicy, getIamPolicy, testIamPerssion] to the generated client. */ class IamClient { constructor(gaxGrpc, // eslint-disable-next-line @typescript-eslint/no-explicit-any options) { this._terminated = false; this.descriptors = { page: {}, stream: {}, longrunning: {} }; this.innerApiCalls = {}; this.gaxGrpc = gaxGrpc; // Ensure that options include the service address and port. const opts = Object.assign({ servicePath: options.servicePath, port: options.port, clientConfig: options.clientConfig, apiEndpoint: options.apiEndpoint, fallback: options.fallback, }, options); version = opts.fallback ? fallback.version : version; this._gaxGrpc = opts.fallback ? new fallback_1.GrpcClient(opts) : new grpc_1.GrpcClient(opts); opts.scopes = this.constructor.scopes; // Save options to use in initialize() method. this._opts = opts; // Save the auth object to the client, for use by other methods. this.auth = gaxGrpc.auth; // Determine the client header string. const clientHeader = [`gax/${version}`, `gapic/${version}`]; if (typeof process !== 'undefined' && 'versions' in process) { clientHeader.push(`gl-node/${process.versions.node}`); } else { clientHeader.push(`gl-web/${version}`); } if (!opts.fallback) { clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); } if (opts.libName && opts.libVersion) { clientHeader.push(`${opts.libName}/${opts.libVersion}`); } // Load the applicable protos. this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); // Put together the default options sent with requests. this._defaults = gaxGrpc.constructSettings('google.iam.v1.IAMPolicy', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); this.innerApiCalls = {}; } /** * Initialize the client. * Performs asynchronous operations (such as authentication) and prepares the client. * This function will be called automatically when any class method is called for the * first time, but if you need to initialize it before calling an actual method, * feel free to call initialize() directly. * * You can await on this method if you want to make sure the client is initialized. * * @returns {Promise} A promise that resolves to an authenticated service stub. */ initialize() { // If the client stub promise is already initialized, return immediately. if (this.iamPolicyStub) { return this.iamPolicyStub; } // Put together the "service stub" for // google.iam.v1.IAMPolicy. this.iamPolicyStub = this.gaxGrpc.createStub(this._opts.fallback ? this._protos.lookupService('google.iam.v1.IAMPolicy') : this._protos.google.iam.v1.IAMPolicy, this._opts); // Iterate over each of the methods that the service provides // and create an API call method for each. const iamPolicyStubMethods = [ 'getIamPolicy', 'setIamPolicy', 'testIamPermissions', ]; for (const methodName of iamPolicyStubMethods) { const innerCallPromise = this.iamPolicyStub.then(stub => (...args) => { if (this._terminated) { return Promise.reject('The client has already been closed.'); } const func = stub[methodName]; return func.apply(stub, args); }, (err) => () => { throw err; }); this.innerApiCalls[methodName] = createApiCall_1.createApiCall(innerCallPromise, this._defaults[methodName], this.descriptors.page[methodName]); } return this.iamPolicyStub; } /** * The DNS address for this API service. */ static get servicePath() { return 'cloudkms.googleapis.com'; } /** * The DNS address for this API service - same as servicePath(), * exists for compatibility reasons. */ static get apiEndpoint() { return 'cloudkms.googleapis.com'; } /** * The port for this API service. */ static get port() { return 443; } /** * The scopes needed to make gRPC calls for every method defined * in this service. */ static get scopes() { return [ 'https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/cloudkms', ]; } getProjectId(callback) { if (this.auth && 'getProjectId' in this.auth) { return this.auth.getProjectId(callback); } if (callback) { callback(new Error('Cannot determine project ID.')); } else { return Promise.reject('Cannot determine project ID.'); } } getIamPolicy(request, optionsOrCallback, callback) { let options; if (optionsOrCallback instanceof Function && callback === undefined) { callback = optionsOrCallback; options = {}; } else { options = optionsOrCallback; } request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = routingHeader.fromParams({ resource: request.resource, }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); } setIamPolicy(request, optionsOrCallback, callback) { let options; if (optionsOrCallback instanceof Function && callback === undefined) { callback = optionsOrCallback; options = {}; } else { options = optionsOrCallback; } request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = routingHeader.fromParams({ resource: request.resource, }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); } testIamPermissions(request, optionsOrCallback, callback) { let options; if (optionsOrCallback instanceof Function && callback === undefined) { callback = optionsOrCallback; options = {}; } else { options = optionsOrCallback; } request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = routingHeader.fromParams({ resource: request.resource, }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); } /** * Terminate the GRPC channel and close the client. * * The client will no longer be usable and all future behavior is undefined. */ close() { this.initialize(); if (!this._terminated) { return this.iamPolicyStub.then(stub => { this._terminated = true; stub.close(); }); } return Promise.resolve(); } } exports.IamClient = IamClient; //# sourceMappingURL=iamService.js.map