/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
google-gax
/
build
/
src
/
/var/www/greso.tech/server/nsm/node_modules/google-gax/build/src
mkdir
upload
Name
Size
Mode
Actions
bundlingCalls/
-
0755
rm
longRunningCalls/
-
0755
rm
normalCalls/
-
0755
rm
paginationCalls/
-
0755
rm
streamingCalls/
-
0755
rm
apiCaller.d.ts
1746
0644
edit
dl
rm
apiCaller.js
1037
0644
edit
dl
rm
apiCaller.js.map
322
0644
edit
dl
rm
apitypes.d.ts
2790
0644
edit
dl
rm
apitypes.js
709
0644
edit
dl
rm
apitypes.js.map
134
0644
edit
dl
rm
call.d.ts
1957
0644
edit
dl
rm
call.js
3885
0644
edit
dl
rm
call.js.map
2110
0644
edit
dl
rm
clientInterface.d.ts
1752
0644
edit
dl
rm
clientInterface.js
908
0644
edit
dl
rm
clientInterface.js.map
333
0644
edit
dl
rm
createApiCall.d.ts
1802
0644
edit
dl
rm
createApiCall.js
4498
0644
edit
dl
rm
createApiCall.js.map
1874
0644
edit
dl
rm
descriptor.d.ts
1073
0644
edit
dl
rm
descriptor.js
1691
0644
edit
dl
rm
descriptor.js.map
286
0644
edit
dl
rm
fallback.d.ts
7761
0644
edit
dl
rm
fallback.js
16991
0644
edit
dl
rm
fallback.js.map
7196
0644
edit
dl
rm
fallbackProto.d.ts
946
0644
edit
dl
rm
fallbackProto.js
2266
0644
edit
dl
rm
fallbackProto.js.map
1429
0644
edit
dl
rm
fallbackRest.d.ts
969
0644
edit
dl
rm
fallbackRest.js
3353
0644
edit
dl
rm
fallbackRest.js.map
2139
0644
edit
dl
rm
fallbackServiceStub.d.ts
1683
0644
edit
dl
rm
fallbackServiceStub.js
6326
0644
edit
dl
rm
fallbackServiceStub.js.map
3663
0644
edit
dl
rm
featureDetection.d.ts
856
0644
edit
dl
rm
featureDetection.js
2114
0644
edit
dl
rm
featureDetection.js.map
924
0644
edit
dl
rm
gax.d.ts
15050
0644
edit
dl
rm
gax.js
22520
0644
edit
dl
rm
gax.js.map
8360
0644
edit
dl
rm
googleError.d.ts
2426
0644
edit
dl
rm
googleError.js
9885
0644
edit
dl
rm
googleError.js.map
6023
0644
edit
dl
rm
grpc.d.ts
9025
0644
edit
dl
rm
grpc.js
20632
0644
edit
dl
rm
grpc.js.map
11416
0644
edit
dl
rm
iamService.d.ts
5954
0644
edit
dl
rm
iamService.js
9053
0644
edit
dl
rm
iamService.js.map
5948
0644
edit
dl
rm
iam_policy_service_client_config.json
1063
0644
edit
dl
rm
index.d.ts
3101
0644
edit
dl
rm
index.js
7450
0644
edit
dl
rm
index.js.map
1680
0644
edit
dl
rm
locationService.d.ts
7410
0644
edit
dl
rm
locationService.js
17079
0644
edit
dl
rm
locationService.js.map
7041
0644
edit
dl
rm
locations_client_config.json
933
0644
edit
dl
rm
operationsClient.d.ts
16313
0644
edit
dl
rm
operationsClient.js
19983
0644
edit
dl
rm
operationsClient.js.map
5743
0644
edit
dl
rm
operations_client_config.json
1249
0644
edit
dl
rm
pathTemplate.d.ts
1966
0644
edit
dl
rm
pathTemplate.js
9933
0644
edit
dl
rm
pathTemplate.js.map
6595
0644
edit
dl
rm
protobuf.d.ts
651
0644
edit
dl
rm
protobuf.js
1037
0644
edit
dl
rm
protobuf.js.map
207
0644
edit
dl
rm
protosList.json
4921
0644
edit
dl
rm
routingHeader.d.ts
1124
0644
edit
dl
rm
routingHeader.js
1317
0644
edit
dl
rm
routingHeader.js.map
283
0644
edit
dl
rm
status.d.ts
1153
0644
edit
dl
rm
status.js
3229
0644
edit
dl
rm
status.js.map
1570
0644
edit
dl
rm
streamArrayParser.d.ts
2273
0644
edit
dl
rm
streamArrayParser.js
6169
0644
edit
dl
rm
streamArrayParser.js.map
3259
0644
edit
dl
rm
transcoding.d.ts
2371
0644
edit
dl
rm
transcoding.js
10877
0644
edit
dl
rm
transcoding.js.map
8674
0644
edit
dl
rm
util.d.ts
1254
0644
edit
dl
rm
util.js
3473
0644
edit
dl
rm
util.js.map
2359
0644
edit
dl
rm
warnings.d.ts
682
0644
edit
dl
rm
warnings.js
1381
0644
edit
dl
rm
warnings.js.map
634
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/google-gax/build/src/iamService.js
(9053B)
"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 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; 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] = (0, 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
Save
cmd:
run