Socket
Socket
Sign inDemoInstall

@google-cloud/logging-min

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/logging-min - npm Package Compare versions

Comparing version 9.5.7 to 9.6.0

2

build/src/v2/config_service_v2_client.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.ConfigServiceV2Client=void 0;const gax=require("google-gax");const jsonProtos=require("../../protos/protos.json");const gapicConfig=require("./config_service_v2_client_config.json");const version=require("../../../package.json").version;class ConfigServiceV2Client{constructor(opts){var _a,_b;this._terminated=false;this.descriptors={page:{},stream:{},longrunning:{},batching:{}};const staticMembers=this.constructor;const servicePath=(opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint)||staticMembers.servicePath;this._providedCustomServicePath=!!((opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint));const port=(opts===null||opts===void 0?void 0:opts.port)||staticMembers.port;const clientConfig=(_a=opts===null||opts===void 0?void 0:opts.clientConfig)!==null&&_a!==void 0?_a:{};const fallback=(_b=opts===null||opts===void 0?void 0:opts.fallback)!==null&&_b!==void 0?_b:typeof window!=="undefined"&&typeof(window===null||window===void 0?void 0:window.fetch)==="function";opts=Object.assign({servicePath:servicePath,port:port,clientConfig:clientConfig,fallback:fallback},opts);if(servicePath!==staticMembers.servicePath&&!("scopes"in opts)){opts["scopes"]=staticMembers.scopes}this._gaxModule=opts.fallback?gax.fallback:gax;this._gaxGrpc=new this._gaxModule.GrpcClient(opts);this._opts=opts;this.auth=this._gaxGrpc.auth;if(servicePath===staticMembers.servicePath){this.auth.defaultScopes=staticMembers.scopes}const clientHeader=[`gax/${this._gaxModule.version}`,`gapic/${version}`];if(typeof process!=="undefined"&&"versions"in process){clientHeader.push(`gl-node/${process.versions.node}`)}else{clientHeader.push(`gl-web/${this._gaxModule.version}`)}if(!opts.fallback){clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`)}else if(opts.fallback==="rest"){clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`)}if(opts.libName&&opts.libVersion){clientHeader.push(`${opts.libName}/${opts.libVersion}`)}this._protos=this._gaxGrpc.loadProtoJSON(jsonProtos);this.pathTemplates={billingAccountCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/cmekSettings"),billingAccountExclusionPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/exclusions/{exclusion}"),billingAccountLocationBucketPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}"),billingAccountLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}"),billingAccountLogPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/logs/{log}"),billingAccountSinkPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/sinks/{sink}"),folderCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/cmekSettings"),folderExclusionPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/exclusions/{exclusion}"),folderLocationBucketPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}"),folderLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}"),folderLogPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/logs/{log}"),folderSinkPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/sinks/{sink}"),locationPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}"),logMetricPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/metrics/{metric}"),organizationCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/cmekSettings"),organizationExclusionPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/exclusions/{exclusion}"),organizationLocationBucketPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}"),organizationLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}"),organizationLogPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/logs/{log}"),organizationSinkPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/sinks/{sink}"),projectPathTemplate:new this._gaxModule.PathTemplate("projects/{project}"),projectCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/cmekSettings"),projectExclusionPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/exclusions/{exclusion}"),projectLocationBucketPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}"),projectLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}/views/{view}"),projectLogPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/logs/{log}"),projectSinkPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/sinks/{sink}")};this.descriptors.page={listBuckets:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","buckets"),listViews:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","views"),listSinks:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","sinks"),listExclusions:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","exclusions")};this._defaults=this._gaxGrpc.constructSettings("google.logging.v2.ConfigServiceV2",gapicConfig,opts.clientConfig||{},{"x-goog-api-client":clientHeader.join(" ")});this.innerApiCalls={};this.warn=gax.warn}initialize(){if(this.configServiceV2Stub){return this.configServiceV2Stub}this.configServiceV2Stub=this._gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.logging.v2.ConfigServiceV2"):this._protos.google.logging.v2.ConfigServiceV2,this._opts,this._providedCustomServicePath);const configServiceV2StubMethods=["listBuckets","getBucket","createBucket","updateBucket","deleteBucket","undeleteBucket","listViews","getView","createView","updateView","deleteView","listSinks","getSink","createSink","updateSink","deleteSink","listExclusions","getExclusion","createExclusion","updateExclusion","deleteExclusion","getCmekSettings","updateCmekSettings"];for(const methodName of configServiceV2StubMethods){const callPromise=this.configServiceV2Stub.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});const descriptor=this.descriptors.page[methodName]||undefined;const apiCall=this._gaxModule.createApiCall(callPromise,this._defaults[methodName],descriptor);this.innerApiCalls[methodName]=apiCall}return this.configServiceV2Stub}static get servicePath(){return"logging.googleapis.com"}static get apiEndpoint(){return"logging.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloud-platform.read-only","https://www.googleapis.com/auth/logging.admin","https://www.googleapis.com/auth/logging.read"]}getProjectId(callback){if(callback){this.auth.getProjectId(callback);return}return this.auth.getProjectId()}getBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getBucket(request,options,callback)}createBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createBucket(request,options,callback)}updateBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateBucket(request,options,callback)}deleteBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.deleteBucket(request,options,callback)}undeleteBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.undeleteBucket(request,options,callback)}getView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getView(request,options,callback)}createView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createView(request,options,callback)}updateView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateView(request,options,callback)}deleteView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.deleteView(request,options,callback)}getSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({sink_name:request.sinkName||""});this.initialize();return this.innerApiCalls.getSink(request,options,callback)}createSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createSink(request,options,callback)}updateSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({sink_name:request.sinkName||""});this.initialize();return this.innerApiCalls.updateSink(request,options,callback)}deleteSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({sink_name:request.sinkName||""});this.initialize();return this.innerApiCalls.deleteSink(request,options,callback)}getExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getExclusion(request,options,callback)}createExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createExclusion(request,options,callback)}updateExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateExclusion(request,options,callback)}deleteExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.deleteExclusion(request,options,callback)}getCmekSettings(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getCmekSettings(request,options,callback)}updateCmekSettings(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateCmekSettings(request,options,callback)}listBuckets(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listBuckets(request,options,callback)}listBucketsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listBuckets.createStream(this.innerApiCalls.listBuckets,request,callSettings)}listBucketsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listBuckets.asyncIterate(this.innerApiCalls["listBuckets"],request,callSettings)}listViews(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listViews(request,options,callback)}listViewsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listViews.createStream(this.innerApiCalls.listViews,request,callSettings)}listViewsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listViews.asyncIterate(this.innerApiCalls["listViews"],request,callSettings)}listSinks(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listSinks(request,options,callback)}listSinksStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listSinks.createStream(this.innerApiCalls.listSinks,request,callSettings)}listSinksAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listSinks.asyncIterate(this.innerApiCalls["listSinks"],request,callSettings)}listExclusions(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listExclusions(request,options,callback)}listExclusionsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listExclusions.createStream(this.innerApiCalls.listExclusions,request,callSettings)}listExclusionsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listExclusions.asyncIterate(this.innerApiCalls["listExclusions"],request,callSettings)}billingAccountCmekSettingsPath(billingAccount){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountCmekSettingsName(billingAccountCmekSettingsName){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.match(billingAccountCmekSettingsName).billing_account}billingAccountExclusionPath(billingAccount,exclusion){return this.pathTemplates.billingAccountExclusionPathTemplate.render({billing_account:billingAccount,exclusion:exclusion})}matchBillingAccountFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).billing_account}matchExclusionFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).exclusion}billingAccountLocationBucketPath(billingAccount,location,bucket){return this.pathTemplates.billingAccountLocationBucketPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket})}matchBillingAccountFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).billing_account}matchLocationFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).location}matchBucketFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).bucket}billingAccountLocationBucketViewPath(billingAccount,location,bucket,view){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket,view:view})}matchBillingAccountFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).billing_account}matchLocationFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).location}matchBucketFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).bucket}matchViewFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).view}billingAccountLogPath(billingAccount,log){return this.pathTemplates.billingAccountLogPathTemplate.render({billing_account:billingAccount,log:log})}matchBillingAccountFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).billing_account}matchLogFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).log}billingAccountSinkPath(billingAccount,sink){return this.pathTemplates.billingAccountSinkPathTemplate.render({billing_account:billingAccount,sink:sink})}matchBillingAccountFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).billing_account}matchSinkFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).sink}folderCmekSettingsPath(folder){return this.pathTemplates.folderCmekSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderCmekSettingsName(folderCmekSettingsName){return this.pathTemplates.folderCmekSettingsPathTemplate.match(folderCmekSettingsName).folder}folderExclusionPath(folder,exclusion){return this.pathTemplates.folderExclusionPathTemplate.render({folder:folder,exclusion:exclusion})}matchFolderFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).folder}matchExclusionFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).exclusion}folderLocationBucketPath(folder,location,bucket){return this.pathTemplates.folderLocationBucketPathTemplate.render({folder:folder,location:location,bucket:bucket})}matchFolderFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).folder}matchLocationFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).location}matchBucketFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).bucket}folderLocationBucketViewPath(folder,location,bucket,view){return this.pathTemplates.folderLocationBucketViewPathTemplate.render({folder:folder,location:location,bucket:bucket,view:view})}matchFolderFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).folder}matchLocationFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).location}matchBucketFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).bucket}matchViewFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).view}folderLogPath(folder,log){return this.pathTemplates.folderLogPathTemplate.render({folder:folder,log:log})}matchFolderFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).folder}matchLogFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).log}folderSinkPath(folder,sink){return this.pathTemplates.folderSinkPathTemplate.render({folder:folder,sink:sink})}matchFolderFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).folder}matchSinkFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).sink}locationPath(project,location){return this.pathTemplates.locationPathTemplate.render({project:project,location:location})}matchProjectFromLocationName(locationName){return this.pathTemplates.locationPathTemplate.match(locationName).project}matchLocationFromLocationName(locationName){return this.pathTemplates.locationPathTemplate.match(locationName).location}logMetricPath(project,metric){return this.pathTemplates.logMetricPathTemplate.render({project:project,metric:metric})}matchProjectFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).project}matchMetricFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).metric}organizationCmekSettingsPath(organization){return this.pathTemplates.organizationCmekSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationCmekSettingsName(organizationCmekSettingsName){return this.pathTemplates.organizationCmekSettingsPathTemplate.match(organizationCmekSettingsName).organization}organizationExclusionPath(organization,exclusion){return this.pathTemplates.organizationExclusionPathTemplate.render({organization:organization,exclusion:exclusion})}matchOrganizationFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).organization}matchExclusionFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).exclusion}organizationLocationBucketPath(organization,location,bucket){return this.pathTemplates.organizationLocationBucketPathTemplate.render({organization:organization,location:location,bucket:bucket})}matchOrganizationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).organization}matchLocationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).location}matchBucketFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).bucket}organizationLocationBucketViewPath(organization,location,bucket,view){return this.pathTemplates.organizationLocationBucketViewPathTemplate.render({organization:organization,location:location,bucket:bucket,view:view})}matchOrganizationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).organization}matchLocationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).location}matchBucketFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).bucket}matchViewFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).view}organizationLogPath(organization,log){return this.pathTemplates.organizationLogPathTemplate.render({organization:organization,log:log})}matchOrganizationFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).organization}matchLogFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).log}organizationSinkPath(organization,sink){return this.pathTemplates.organizationSinkPathTemplate.render({organization:organization,sink:sink})}matchOrganizationFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).organization}matchSinkFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).sink}projectPath(project){return this.pathTemplates.projectPathTemplate.render({project:project})}matchProjectFromProjectName(projectName){return this.pathTemplates.projectPathTemplate.match(projectName).project}projectCmekSettingsPath(project){return this.pathTemplates.projectCmekSettingsPathTemplate.render({project:project})}matchProjectFromProjectCmekSettingsName(projectCmekSettingsName){return this.pathTemplates.projectCmekSettingsPathTemplate.match(projectCmekSettingsName).project}projectExclusionPath(project,exclusion){return this.pathTemplates.projectExclusionPathTemplate.render({project:project,exclusion:exclusion})}matchProjectFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).project}matchExclusionFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).exclusion}projectLocationBucketPath(project,location,bucket){return this.pathTemplates.projectLocationBucketPathTemplate.render({project:project,location:location,bucket:bucket})}matchProjectFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).project}matchLocationFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).location}matchBucketFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).bucket}projectLocationBucketViewPath(project,location,bucket,view){return this.pathTemplates.projectLocationBucketViewPathTemplate.render({project:project,location:location,bucket:bucket,view:view})}matchProjectFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).project}matchLocationFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).location}matchBucketFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).bucket}matchViewFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).view}projectLogPath(project,log){return this.pathTemplates.projectLogPathTemplate.render({project:project,log:log})}matchProjectFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).project}matchLogFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).log}projectSinkPath(project,sink){return this.pathTemplates.projectSinkPathTemplate.render({project:project,sink:sink})}matchProjectFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).project}matchSinkFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).sink}close(){this.initialize();if(!this._terminated){return this.configServiceV2Stub.then(stub=>{this._terminated=true;stub.close()})}return Promise.resolve()}}exports.ConfigServiceV2Client=ConfigServiceV2Client;
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.ConfigServiceV2Client=void 0;const gax=require("google-gax");const jsonProtos=require("../../protos/protos.json");const gapicConfig=require("./config_service_v2_client_config.json");const version=require("../../../package.json").version;class ConfigServiceV2Client{constructor(opts){var _a,_b;this._terminated=false;this.descriptors={page:{},stream:{},longrunning:{},batching:{}};const staticMembers=this.constructor;const servicePath=(opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint)||staticMembers.servicePath;this._providedCustomServicePath=!!((opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint));const port=(opts===null||opts===void 0?void 0:opts.port)||staticMembers.port;const clientConfig=(_a=opts===null||opts===void 0?void 0:opts.clientConfig)!==null&&_a!==void 0?_a:{};const fallback=(_b=opts===null||opts===void 0?void 0:opts.fallback)!==null&&_b!==void 0?_b:typeof window!=="undefined"&&typeof(window===null||window===void 0?void 0:window.fetch)==="function";opts=Object.assign({servicePath:servicePath,port:port,clientConfig:clientConfig,fallback:fallback},opts);if(servicePath!==staticMembers.servicePath&&!("scopes"in opts)){opts["scopes"]=staticMembers.scopes}this._gaxModule=opts.fallback?gax.fallback:gax;this._gaxGrpc=new this._gaxModule.GrpcClient(opts);this._opts=opts;this.auth=this._gaxGrpc.auth;this.auth.useJWTAccessWithScope=true;this.auth.defaultServicePath=staticMembers.servicePath;if(servicePath===staticMembers.servicePath){this.auth.defaultScopes=staticMembers.scopes}const clientHeader=[`gax/${this._gaxModule.version}`,`gapic/${version}`];if(typeof process!=="undefined"&&"versions"in process){clientHeader.push(`gl-node/${process.versions.node}`)}else{clientHeader.push(`gl-web/${this._gaxModule.version}`)}if(!opts.fallback){clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`)}else if(opts.fallback==="rest"){clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`)}if(opts.libName&&opts.libVersion){clientHeader.push(`${opts.libName}/${opts.libVersion}`)}this._protos=this._gaxGrpc.loadProtoJSON(jsonProtos);this.pathTemplates={billingAccountCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/cmekSettings"),billingAccountExclusionPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/exclusions/{exclusion}"),billingAccountLocationBucketPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}"),billingAccountLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}"),billingAccountLogPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/logs/{log}"),billingAccountSinkPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/sinks/{sink}"),folderCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/cmekSettings"),folderExclusionPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/exclusions/{exclusion}"),folderLocationBucketPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}"),folderLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}"),folderLogPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/logs/{log}"),folderSinkPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/sinks/{sink}"),locationPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}"),logMetricPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/metrics/{metric}"),organizationCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/cmekSettings"),organizationExclusionPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/exclusions/{exclusion}"),organizationLocationBucketPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}"),organizationLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}"),organizationLogPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/logs/{log}"),organizationSinkPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/sinks/{sink}"),projectPathTemplate:new this._gaxModule.PathTemplate("projects/{project}"),projectCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/cmekSettings"),projectExclusionPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/exclusions/{exclusion}"),projectLocationBucketPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}"),projectLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}/views/{view}"),projectLogPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/logs/{log}"),projectSinkPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/sinks/{sink}")};this.descriptors.page={listBuckets:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","buckets"),listViews:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","views"),listSinks:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","sinks"),listExclusions:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","exclusions")};this._defaults=this._gaxGrpc.constructSettings("google.logging.v2.ConfigServiceV2",gapicConfig,opts.clientConfig||{},{"x-goog-api-client":clientHeader.join(" ")});this.innerApiCalls={};this.warn=gax.warn}initialize(){if(this.configServiceV2Stub){return this.configServiceV2Stub}this.configServiceV2Stub=this._gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.logging.v2.ConfigServiceV2"):this._protos.google.logging.v2.ConfigServiceV2,this._opts,this._providedCustomServicePath);const configServiceV2StubMethods=["listBuckets","getBucket","createBucket","updateBucket","deleteBucket","undeleteBucket","listViews","getView","createView","updateView","deleteView","listSinks","getSink","createSink","updateSink","deleteSink","listExclusions","getExclusion","createExclusion","updateExclusion","deleteExclusion","getCmekSettings","updateCmekSettings"];for(const methodName of configServiceV2StubMethods){const callPromise=this.configServiceV2Stub.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});const descriptor=this.descriptors.page[methodName]||undefined;const apiCall=this._gaxModule.createApiCall(callPromise,this._defaults[methodName],descriptor);this.innerApiCalls[methodName]=apiCall}return this.configServiceV2Stub}static get servicePath(){return"logging.googleapis.com"}static get apiEndpoint(){return"logging.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloud-platform.read-only","https://www.googleapis.com/auth/logging.admin","https://www.googleapis.com/auth/logging.read"]}getProjectId(callback){if(callback){this.auth.getProjectId(callback);return}return this.auth.getProjectId()}getBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getBucket(request,options,callback)}createBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createBucket(request,options,callback)}updateBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateBucket(request,options,callback)}deleteBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.deleteBucket(request,options,callback)}undeleteBucket(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.undeleteBucket(request,options,callback)}getView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getView(request,options,callback)}createView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createView(request,options,callback)}updateView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateView(request,options,callback)}deleteView(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.deleteView(request,options,callback)}getSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({sink_name:request.sinkName||""});this.initialize();return this.innerApiCalls.getSink(request,options,callback)}createSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createSink(request,options,callback)}updateSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({sink_name:request.sinkName||""});this.initialize();return this.innerApiCalls.updateSink(request,options,callback)}deleteSink(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({sink_name:request.sinkName||""});this.initialize();return this.innerApiCalls.deleteSink(request,options,callback)}getExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getExclusion(request,options,callback)}createExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createExclusion(request,options,callback)}updateExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateExclusion(request,options,callback)}deleteExclusion(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.deleteExclusion(request,options,callback)}getCmekSettings(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.getCmekSettings(request,options,callback)}updateCmekSettings(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({name:request.name||""});this.initialize();return this.innerApiCalls.updateCmekSettings(request,options,callback)}listBuckets(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listBuckets(request,options,callback)}listBucketsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listBuckets.createStream(this.innerApiCalls.listBuckets,request,callSettings)}listBucketsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listBuckets.asyncIterate(this.innerApiCalls["listBuckets"],request,callSettings)}listViews(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listViews(request,options,callback)}listViewsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listViews.createStream(this.innerApiCalls.listViews,request,callSettings)}listViewsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listViews.asyncIterate(this.innerApiCalls["listViews"],request,callSettings)}listSinks(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listSinks(request,options,callback)}listSinksStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listSinks.createStream(this.innerApiCalls.listSinks,request,callSettings)}listSinksAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listSinks.asyncIterate(this.innerApiCalls["listSinks"],request,callSettings)}listExclusions(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listExclusions(request,options,callback)}listExclusionsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listExclusions.createStream(this.innerApiCalls.listExclusions,request,callSettings)}listExclusionsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listExclusions.asyncIterate(this.innerApiCalls["listExclusions"],request,callSettings)}billingAccountCmekSettingsPath(billingAccount){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountCmekSettingsName(billingAccountCmekSettingsName){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.match(billingAccountCmekSettingsName).billing_account}billingAccountExclusionPath(billingAccount,exclusion){return this.pathTemplates.billingAccountExclusionPathTemplate.render({billing_account:billingAccount,exclusion:exclusion})}matchBillingAccountFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).billing_account}matchExclusionFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).exclusion}billingAccountLocationBucketPath(billingAccount,location,bucket){return this.pathTemplates.billingAccountLocationBucketPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket})}matchBillingAccountFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).billing_account}matchLocationFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).location}matchBucketFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).bucket}billingAccountLocationBucketViewPath(billingAccount,location,bucket,view){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket,view:view})}matchBillingAccountFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).billing_account}matchLocationFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).location}matchBucketFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).bucket}matchViewFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).view}billingAccountLogPath(billingAccount,log){return this.pathTemplates.billingAccountLogPathTemplate.render({billing_account:billingAccount,log:log})}matchBillingAccountFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).billing_account}matchLogFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).log}billingAccountSinkPath(billingAccount,sink){return this.pathTemplates.billingAccountSinkPathTemplate.render({billing_account:billingAccount,sink:sink})}matchBillingAccountFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).billing_account}matchSinkFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).sink}folderCmekSettingsPath(folder){return this.pathTemplates.folderCmekSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderCmekSettingsName(folderCmekSettingsName){return this.pathTemplates.folderCmekSettingsPathTemplate.match(folderCmekSettingsName).folder}folderExclusionPath(folder,exclusion){return this.pathTemplates.folderExclusionPathTemplate.render({folder:folder,exclusion:exclusion})}matchFolderFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).folder}matchExclusionFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).exclusion}folderLocationBucketPath(folder,location,bucket){return this.pathTemplates.folderLocationBucketPathTemplate.render({folder:folder,location:location,bucket:bucket})}matchFolderFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).folder}matchLocationFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).location}matchBucketFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).bucket}folderLocationBucketViewPath(folder,location,bucket,view){return this.pathTemplates.folderLocationBucketViewPathTemplate.render({folder:folder,location:location,bucket:bucket,view:view})}matchFolderFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).folder}matchLocationFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).location}matchBucketFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).bucket}matchViewFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).view}folderLogPath(folder,log){return this.pathTemplates.folderLogPathTemplate.render({folder:folder,log:log})}matchFolderFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).folder}matchLogFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).log}folderSinkPath(folder,sink){return this.pathTemplates.folderSinkPathTemplate.render({folder:folder,sink:sink})}matchFolderFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).folder}matchSinkFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).sink}locationPath(project,location){return this.pathTemplates.locationPathTemplate.render({project:project,location:location})}matchProjectFromLocationName(locationName){return this.pathTemplates.locationPathTemplate.match(locationName).project}matchLocationFromLocationName(locationName){return this.pathTemplates.locationPathTemplate.match(locationName).location}logMetricPath(project,metric){return this.pathTemplates.logMetricPathTemplate.render({project:project,metric:metric})}matchProjectFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).project}matchMetricFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).metric}organizationCmekSettingsPath(organization){return this.pathTemplates.organizationCmekSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationCmekSettingsName(organizationCmekSettingsName){return this.pathTemplates.organizationCmekSettingsPathTemplate.match(organizationCmekSettingsName).organization}organizationExclusionPath(organization,exclusion){return this.pathTemplates.organizationExclusionPathTemplate.render({organization:organization,exclusion:exclusion})}matchOrganizationFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).organization}matchExclusionFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).exclusion}organizationLocationBucketPath(organization,location,bucket){return this.pathTemplates.organizationLocationBucketPathTemplate.render({organization:organization,location:location,bucket:bucket})}matchOrganizationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).organization}matchLocationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).location}matchBucketFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).bucket}organizationLocationBucketViewPath(organization,location,bucket,view){return this.pathTemplates.organizationLocationBucketViewPathTemplate.render({organization:organization,location:location,bucket:bucket,view:view})}matchOrganizationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).organization}matchLocationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).location}matchBucketFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).bucket}matchViewFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).view}organizationLogPath(organization,log){return this.pathTemplates.organizationLogPathTemplate.render({organization:organization,log:log})}matchOrganizationFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).organization}matchLogFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).log}organizationSinkPath(organization,sink){return this.pathTemplates.organizationSinkPathTemplate.render({organization:organization,sink:sink})}matchOrganizationFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).organization}matchSinkFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).sink}projectPath(project){return this.pathTemplates.projectPathTemplate.render({project:project})}matchProjectFromProjectName(projectName){return this.pathTemplates.projectPathTemplate.match(projectName).project}projectCmekSettingsPath(project){return this.pathTemplates.projectCmekSettingsPathTemplate.render({project:project})}matchProjectFromProjectCmekSettingsName(projectCmekSettingsName){return this.pathTemplates.projectCmekSettingsPathTemplate.match(projectCmekSettingsName).project}projectExclusionPath(project,exclusion){return this.pathTemplates.projectExclusionPathTemplate.render({project:project,exclusion:exclusion})}matchProjectFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).project}matchExclusionFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).exclusion}projectLocationBucketPath(project,location,bucket){return this.pathTemplates.projectLocationBucketPathTemplate.render({project:project,location:location,bucket:bucket})}matchProjectFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).project}matchLocationFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).location}matchBucketFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).bucket}projectLocationBucketViewPath(project,location,bucket,view){return this.pathTemplates.projectLocationBucketViewPathTemplate.render({project:project,location:location,bucket:bucket,view:view})}matchProjectFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).project}matchLocationFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).location}matchBucketFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).bucket}matchViewFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).view}projectLogPath(project,log){return this.pathTemplates.projectLogPathTemplate.render({project:project,log:log})}matchProjectFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).project}matchLogFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).log}projectSinkPath(project,sink){return this.pathTemplates.projectSinkPathTemplate.render({project:project,sink:sink})}matchProjectFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).project}matchSinkFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).sink}close(){this.initialize();if(!this._terminated){return this.configServiceV2Stub.then(stub=>{this._terminated=true;stub.close()})}return Promise.resolve()}}exports.ConfigServiceV2Client=ConfigServiceV2Client;
//# sourceMappingURL=config_service_v2_client.js.map

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.LoggingServiceV2Client=void 0;const gax=require("google-gax");const jsonProtos=require("../../protos/protos.json");const gapicConfig=require("./logging_service_v2_client_config.json");const version=require("../../../package.json").version;class LoggingServiceV2Client{constructor(opts){var _a,_b;this._terminated=false;this.descriptors={page:{},stream:{},longrunning:{},batching:{}};const staticMembers=this.constructor;const servicePath=(opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint)||staticMembers.servicePath;this._providedCustomServicePath=!!((opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint));const port=(opts===null||opts===void 0?void 0:opts.port)||staticMembers.port;const clientConfig=(_a=opts===null||opts===void 0?void 0:opts.clientConfig)!==null&&_a!==void 0?_a:{};const fallback=(_b=opts===null||opts===void 0?void 0:opts.fallback)!==null&&_b!==void 0?_b:typeof window!=="undefined"&&typeof(window===null||window===void 0?void 0:window.fetch)==="function";opts=Object.assign({servicePath:servicePath,port:port,clientConfig:clientConfig,fallback:fallback},opts);if(servicePath!==staticMembers.servicePath&&!("scopes"in opts)){opts["scopes"]=staticMembers.scopes}this._gaxModule=opts.fallback?gax.fallback:gax;this._gaxGrpc=new this._gaxModule.GrpcClient(opts);this._opts=opts;this.auth=this._gaxGrpc.auth;if(servicePath===staticMembers.servicePath){this.auth.defaultScopes=staticMembers.scopes}const clientHeader=[`gax/${this._gaxModule.version}`,`gapic/${version}`];if(typeof process!=="undefined"&&"versions"in process){clientHeader.push(`gl-node/${process.versions.node}`)}else{clientHeader.push(`gl-web/${this._gaxModule.version}`)}if(!opts.fallback){clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`)}else if(opts.fallback==="rest"){clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`)}if(opts.libName&&opts.libVersion){clientHeader.push(`${opts.libName}/${opts.libVersion}`)}this._protos=this._gaxGrpc.loadProtoJSON(jsonProtos);this.pathTemplates={billingAccountCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/cmekSettings"),billingAccountExclusionPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/exclusions/{exclusion}"),billingAccountLocationBucketPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}"),billingAccountLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}"),billingAccountLogPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/logs/{log}"),billingAccountSinkPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/sinks/{sink}"),folderCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/cmekSettings"),folderExclusionPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/exclusions/{exclusion}"),folderLocationBucketPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}"),folderLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}"),folderLogPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/logs/{log}"),folderSinkPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/sinks/{sink}"),logMetricPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/metrics/{metric}"),organizationCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/cmekSettings"),organizationExclusionPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/exclusions/{exclusion}"),organizationLocationBucketPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}"),organizationLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}"),organizationLogPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/logs/{log}"),organizationSinkPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/sinks/{sink}"),projectPathTemplate:new this._gaxModule.PathTemplate("projects/{project}"),projectCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/cmekSettings"),projectExclusionPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/exclusions/{exclusion}"),projectLocationBucketPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}"),projectLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}/views/{view}"),projectLogPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/logs/{log}"),projectSinkPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/sinks/{sink}")};this.descriptors.page={listLogEntries:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","entries"),listMonitoredResourceDescriptors:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","resourceDescriptors"),listLogs:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","logNames")};this.descriptors.stream={tailLogEntries:new this._gaxModule.StreamDescriptor(gax.StreamType.BIDI_STREAMING)};const protoFilesRoot=this._gaxModule.protobuf.Root.fromJSON(jsonProtos);this.descriptors.batching={writeLogEntries:new this._gaxModule.BundleDescriptor("entries",["log_name","resource","labels"],null,gax.createByteLengthFunction(protoFilesRoot.lookupType("google.logging.v2.LogEntry")))};this._defaults=this._gaxGrpc.constructSettings("google.logging.v2.LoggingServiceV2",gapicConfig,opts.clientConfig||{},{"x-goog-api-client":clientHeader.join(" ")});this.innerApiCalls={};this.warn=gax.warn}initialize(){var _a;if(this.loggingServiceV2Stub){return this.loggingServiceV2Stub}this.loggingServiceV2Stub=this._gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.logging.v2.LoggingServiceV2"):this._protos.google.logging.v2.LoggingServiceV2,this._opts,this._providedCustomServicePath);const loggingServiceV2StubMethods=["deleteLog","writeLogEntries","listLogEntries","listMonitoredResourceDescriptors","listLogs","tailLogEntries"];for(const methodName of loggingServiceV2StubMethods){const callPromise=this.loggingServiceV2Stub.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});const descriptor=this.descriptors.page[methodName]||this.descriptors.stream[methodName]||((_a=this.descriptors.batching)===null||_a===void 0?void 0:_a[methodName])||undefined;const apiCall=this._gaxModule.createApiCall(callPromise,this._defaults[methodName],descriptor);this.innerApiCalls[methodName]=apiCall}return this.loggingServiceV2Stub}static get servicePath(){return"logging.googleapis.com"}static get apiEndpoint(){return"logging.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloud-platform.read-only","https://www.googleapis.com/auth/logging.admin","https://www.googleapis.com/auth/logging.read","https://www.googleapis.com/auth/logging.write"]}getProjectId(callback){if(callback){this.auth.getProjectId(callback);return}return this.auth.getProjectId()}deleteLog(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({log_name:request.logName||""});this.initialize();return this.innerApiCalls.deleteLog(request,options,callback)}writeLogEntries(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};this.initialize();return this.innerApiCalls.writeLogEntries(request,options,callback)}tailLogEntries(options){this.initialize();return this.innerApiCalls.tailLogEntries(options)}listLogEntries(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};this.initialize();return this.innerApiCalls.listLogEntries(request,options,callback)}listLogEntriesStream(request,options){request=request||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogEntries.createStream(this.innerApiCalls.listLogEntries,request,callSettings)}listLogEntriesAsync(request,options){request=request||{};options=options||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogEntries.asyncIterate(this.innerApiCalls["listLogEntries"],request,callSettings)}listMonitoredResourceDescriptors(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};this.initialize();return this.innerApiCalls.listMonitoredResourceDescriptors(request,options,callback)}listMonitoredResourceDescriptorsStream(request,options){request=request||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listMonitoredResourceDescriptors.createStream(this.innerApiCalls.listMonitoredResourceDescriptors,request,callSettings)}listMonitoredResourceDescriptorsAsync(request,options){request=request||{};options=options||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listMonitoredResourceDescriptors.asyncIterate(this.innerApiCalls["listMonitoredResourceDescriptors"],request,callSettings)}listLogs(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listLogs(request,options,callback)}listLogsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogs.createStream(this.innerApiCalls.listLogs,request,callSettings)}listLogsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogs.asyncIterate(this.innerApiCalls["listLogs"],request,callSettings)}billingAccountCmekSettingsPath(billingAccount){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountCmekSettingsName(billingAccountCmekSettingsName){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.match(billingAccountCmekSettingsName).billing_account}billingAccountExclusionPath(billingAccount,exclusion){return this.pathTemplates.billingAccountExclusionPathTemplate.render({billing_account:billingAccount,exclusion:exclusion})}matchBillingAccountFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).billing_account}matchExclusionFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).exclusion}billingAccountLocationBucketPath(billingAccount,location,bucket){return this.pathTemplates.billingAccountLocationBucketPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket})}matchBillingAccountFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).billing_account}matchLocationFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).location}matchBucketFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).bucket}billingAccountLocationBucketViewPath(billingAccount,location,bucket,view){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket,view:view})}matchBillingAccountFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).billing_account}matchLocationFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).location}matchBucketFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).bucket}matchViewFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).view}billingAccountLogPath(billingAccount,log){return this.pathTemplates.billingAccountLogPathTemplate.render({billing_account:billingAccount,log:log})}matchBillingAccountFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).billing_account}matchLogFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).log}billingAccountSinkPath(billingAccount,sink){return this.pathTemplates.billingAccountSinkPathTemplate.render({billing_account:billingAccount,sink:sink})}matchBillingAccountFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).billing_account}matchSinkFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).sink}folderCmekSettingsPath(folder){return this.pathTemplates.folderCmekSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderCmekSettingsName(folderCmekSettingsName){return this.pathTemplates.folderCmekSettingsPathTemplate.match(folderCmekSettingsName).folder}folderExclusionPath(folder,exclusion){return this.pathTemplates.folderExclusionPathTemplate.render({folder:folder,exclusion:exclusion})}matchFolderFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).folder}matchExclusionFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).exclusion}folderLocationBucketPath(folder,location,bucket){return this.pathTemplates.folderLocationBucketPathTemplate.render({folder:folder,location:location,bucket:bucket})}matchFolderFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).folder}matchLocationFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).location}matchBucketFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).bucket}folderLocationBucketViewPath(folder,location,bucket,view){return this.pathTemplates.folderLocationBucketViewPathTemplate.render({folder:folder,location:location,bucket:bucket,view:view})}matchFolderFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).folder}matchLocationFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).location}matchBucketFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).bucket}matchViewFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).view}folderLogPath(folder,log){return this.pathTemplates.folderLogPathTemplate.render({folder:folder,log:log})}matchFolderFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).folder}matchLogFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).log}folderSinkPath(folder,sink){return this.pathTemplates.folderSinkPathTemplate.render({folder:folder,sink:sink})}matchFolderFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).folder}matchSinkFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).sink}logMetricPath(project,metric){return this.pathTemplates.logMetricPathTemplate.render({project:project,metric:metric})}matchProjectFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).project}matchMetricFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).metric}organizationCmekSettingsPath(organization){return this.pathTemplates.organizationCmekSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationCmekSettingsName(organizationCmekSettingsName){return this.pathTemplates.organizationCmekSettingsPathTemplate.match(organizationCmekSettingsName).organization}organizationExclusionPath(organization,exclusion){return this.pathTemplates.organizationExclusionPathTemplate.render({organization:organization,exclusion:exclusion})}matchOrganizationFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).organization}matchExclusionFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).exclusion}organizationLocationBucketPath(organization,location,bucket){return this.pathTemplates.organizationLocationBucketPathTemplate.render({organization:organization,location:location,bucket:bucket})}matchOrganizationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).organization}matchLocationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).location}matchBucketFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).bucket}organizationLocationBucketViewPath(organization,location,bucket,view){return this.pathTemplates.organizationLocationBucketViewPathTemplate.render({organization:organization,location:location,bucket:bucket,view:view})}matchOrganizationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).organization}matchLocationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).location}matchBucketFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).bucket}matchViewFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).view}organizationLogPath(organization,log){return this.pathTemplates.organizationLogPathTemplate.render({organization:organization,log:log})}matchOrganizationFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).organization}matchLogFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).log}organizationSinkPath(organization,sink){return this.pathTemplates.organizationSinkPathTemplate.render({organization:organization,sink:sink})}matchOrganizationFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).organization}matchSinkFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).sink}projectPath(project){return this.pathTemplates.projectPathTemplate.render({project:project})}matchProjectFromProjectName(projectName){return this.pathTemplates.projectPathTemplate.match(projectName).project}projectCmekSettingsPath(project){return this.pathTemplates.projectCmekSettingsPathTemplate.render({project:project})}matchProjectFromProjectCmekSettingsName(projectCmekSettingsName){return this.pathTemplates.projectCmekSettingsPathTemplate.match(projectCmekSettingsName).project}projectExclusionPath(project,exclusion){return this.pathTemplates.projectExclusionPathTemplate.render({project:project,exclusion:exclusion})}matchProjectFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).project}matchExclusionFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).exclusion}projectLocationBucketPath(project,location,bucket){return this.pathTemplates.projectLocationBucketPathTemplate.render({project:project,location:location,bucket:bucket})}matchProjectFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).project}matchLocationFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).location}matchBucketFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).bucket}projectLocationBucketViewPath(project,location,bucket,view){return this.pathTemplates.projectLocationBucketViewPathTemplate.render({project:project,location:location,bucket:bucket,view:view})}matchProjectFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).project}matchLocationFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).location}matchBucketFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).bucket}matchViewFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).view}projectLogPath(project,log){return this.pathTemplates.projectLogPathTemplate.render({project:project,log:log})}matchProjectFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).project}matchLogFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).log}projectSinkPath(project,sink){return this.pathTemplates.projectSinkPathTemplate.render({project:project,sink:sink})}matchProjectFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).project}matchSinkFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).sink}close(){this.initialize();if(!this._terminated){return this.loggingServiceV2Stub.then(stub=>{this._terminated=true;stub.close()})}return Promise.resolve()}}exports.LoggingServiceV2Client=LoggingServiceV2Client;
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.LoggingServiceV2Client=void 0;const gax=require("google-gax");const jsonProtos=require("../../protos/protos.json");const gapicConfig=require("./logging_service_v2_client_config.json");const version=require("../../../package.json").version;class LoggingServiceV2Client{constructor(opts){var _a,_b;this._terminated=false;this.descriptors={page:{},stream:{},longrunning:{},batching:{}};const staticMembers=this.constructor;const servicePath=(opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint)||staticMembers.servicePath;this._providedCustomServicePath=!!((opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint));const port=(opts===null||opts===void 0?void 0:opts.port)||staticMembers.port;const clientConfig=(_a=opts===null||opts===void 0?void 0:opts.clientConfig)!==null&&_a!==void 0?_a:{};const fallback=(_b=opts===null||opts===void 0?void 0:opts.fallback)!==null&&_b!==void 0?_b:typeof window!=="undefined"&&typeof(window===null||window===void 0?void 0:window.fetch)==="function";opts=Object.assign({servicePath:servicePath,port:port,clientConfig:clientConfig,fallback:fallback},opts);if(servicePath!==staticMembers.servicePath&&!("scopes"in opts)){opts["scopes"]=staticMembers.scopes}this._gaxModule=opts.fallback?gax.fallback:gax;this._gaxGrpc=new this._gaxModule.GrpcClient(opts);this._opts=opts;this.auth=this._gaxGrpc.auth;this.auth.useJWTAccessWithScope=true;this.auth.defaultServicePath=staticMembers.servicePath;if(servicePath===staticMembers.servicePath){this.auth.defaultScopes=staticMembers.scopes}const clientHeader=[`gax/${this._gaxModule.version}`,`gapic/${version}`];if(typeof process!=="undefined"&&"versions"in process){clientHeader.push(`gl-node/${process.versions.node}`)}else{clientHeader.push(`gl-web/${this._gaxModule.version}`)}if(!opts.fallback){clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`)}else if(opts.fallback==="rest"){clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`)}if(opts.libName&&opts.libVersion){clientHeader.push(`${opts.libName}/${opts.libVersion}`)}this._protos=this._gaxGrpc.loadProtoJSON(jsonProtos);this.pathTemplates={billingAccountCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/cmekSettings"),billingAccountExclusionPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/exclusions/{exclusion}"),billingAccountLocationBucketPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}"),billingAccountLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}"),billingAccountLogPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/logs/{log}"),billingAccountSinkPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/sinks/{sink}"),folderCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/cmekSettings"),folderExclusionPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/exclusions/{exclusion}"),folderLocationBucketPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}"),folderLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}"),folderLogPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/logs/{log}"),folderSinkPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/sinks/{sink}"),logMetricPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/metrics/{metric}"),organizationCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/cmekSettings"),organizationExclusionPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/exclusions/{exclusion}"),organizationLocationBucketPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}"),organizationLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}"),organizationLogPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/logs/{log}"),organizationSinkPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/sinks/{sink}"),projectPathTemplate:new this._gaxModule.PathTemplate("projects/{project}"),projectCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/cmekSettings"),projectExclusionPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/exclusions/{exclusion}"),projectLocationBucketPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}"),projectLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}/views/{view}"),projectLogPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/logs/{log}"),projectSinkPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/sinks/{sink}")};this.descriptors.page={listLogEntries:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","entries"),listMonitoredResourceDescriptors:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","resourceDescriptors"),listLogs:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","logNames")};this.descriptors.stream={tailLogEntries:new this._gaxModule.StreamDescriptor(gax.StreamType.BIDI_STREAMING)};const protoFilesRoot=this._gaxModule.protobuf.Root.fromJSON(jsonProtos);this.descriptors.batching={writeLogEntries:new this._gaxModule.BundleDescriptor("entries",["log_name","resource","labels"],null,gax.createByteLengthFunction(protoFilesRoot.lookupType("google.logging.v2.LogEntry")))};this._defaults=this._gaxGrpc.constructSettings("google.logging.v2.LoggingServiceV2",gapicConfig,opts.clientConfig||{},{"x-goog-api-client":clientHeader.join(" ")});this.innerApiCalls={};this.warn=gax.warn}initialize(){var _a;if(this.loggingServiceV2Stub){return this.loggingServiceV2Stub}this.loggingServiceV2Stub=this._gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.logging.v2.LoggingServiceV2"):this._protos.google.logging.v2.LoggingServiceV2,this._opts,this._providedCustomServicePath);const loggingServiceV2StubMethods=["deleteLog","writeLogEntries","listLogEntries","listMonitoredResourceDescriptors","listLogs","tailLogEntries"];for(const methodName of loggingServiceV2StubMethods){const callPromise=this.loggingServiceV2Stub.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});const descriptor=this.descriptors.page[methodName]||this.descriptors.stream[methodName]||((_a=this.descriptors.batching)===null||_a===void 0?void 0:_a[methodName])||undefined;const apiCall=this._gaxModule.createApiCall(callPromise,this._defaults[methodName],descriptor);this.innerApiCalls[methodName]=apiCall}return this.loggingServiceV2Stub}static get servicePath(){return"logging.googleapis.com"}static get apiEndpoint(){return"logging.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloud-platform.read-only","https://www.googleapis.com/auth/logging.admin","https://www.googleapis.com/auth/logging.read","https://www.googleapis.com/auth/logging.write"]}getProjectId(callback){if(callback){this.auth.getProjectId(callback);return}return this.auth.getProjectId()}deleteLog(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({log_name:request.logName||""});this.initialize();return this.innerApiCalls.deleteLog(request,options,callback)}writeLogEntries(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};this.initialize();return this.innerApiCalls.writeLogEntries(request,options,callback)}tailLogEntries(options){this.initialize();return this.innerApiCalls.tailLogEntries(options)}listLogEntries(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};this.initialize();return this.innerApiCalls.listLogEntries(request,options,callback)}listLogEntriesStream(request,options){request=request||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogEntries.createStream(this.innerApiCalls.listLogEntries,request,callSettings)}listLogEntriesAsync(request,options){request=request||{};options=options||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogEntries.asyncIterate(this.innerApiCalls["listLogEntries"],request,callSettings)}listMonitoredResourceDescriptors(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};this.initialize();return this.innerApiCalls.listMonitoredResourceDescriptors(request,options,callback)}listMonitoredResourceDescriptorsStream(request,options){request=request||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listMonitoredResourceDescriptors.createStream(this.innerApiCalls.listMonitoredResourceDescriptors,request,callSettings)}listMonitoredResourceDescriptorsAsync(request,options){request=request||{};options=options||{};options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listMonitoredResourceDescriptors.asyncIterate(this.innerApiCalls["listMonitoredResourceDescriptors"],request,callSettings)}listLogs(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listLogs(request,options,callback)}listLogsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogs.createStream(this.innerApiCalls.listLogs,request,callSettings)}listLogsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogs.asyncIterate(this.innerApiCalls["listLogs"],request,callSettings)}billingAccountCmekSettingsPath(billingAccount){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountCmekSettingsName(billingAccountCmekSettingsName){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.match(billingAccountCmekSettingsName).billing_account}billingAccountExclusionPath(billingAccount,exclusion){return this.pathTemplates.billingAccountExclusionPathTemplate.render({billing_account:billingAccount,exclusion:exclusion})}matchBillingAccountFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).billing_account}matchExclusionFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).exclusion}billingAccountLocationBucketPath(billingAccount,location,bucket){return this.pathTemplates.billingAccountLocationBucketPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket})}matchBillingAccountFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).billing_account}matchLocationFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).location}matchBucketFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).bucket}billingAccountLocationBucketViewPath(billingAccount,location,bucket,view){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket,view:view})}matchBillingAccountFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).billing_account}matchLocationFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).location}matchBucketFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).bucket}matchViewFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).view}billingAccountLogPath(billingAccount,log){return this.pathTemplates.billingAccountLogPathTemplate.render({billing_account:billingAccount,log:log})}matchBillingAccountFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).billing_account}matchLogFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).log}billingAccountSinkPath(billingAccount,sink){return this.pathTemplates.billingAccountSinkPathTemplate.render({billing_account:billingAccount,sink:sink})}matchBillingAccountFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).billing_account}matchSinkFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).sink}folderCmekSettingsPath(folder){return this.pathTemplates.folderCmekSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderCmekSettingsName(folderCmekSettingsName){return this.pathTemplates.folderCmekSettingsPathTemplate.match(folderCmekSettingsName).folder}folderExclusionPath(folder,exclusion){return this.pathTemplates.folderExclusionPathTemplate.render({folder:folder,exclusion:exclusion})}matchFolderFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).folder}matchExclusionFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).exclusion}folderLocationBucketPath(folder,location,bucket){return this.pathTemplates.folderLocationBucketPathTemplate.render({folder:folder,location:location,bucket:bucket})}matchFolderFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).folder}matchLocationFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).location}matchBucketFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).bucket}folderLocationBucketViewPath(folder,location,bucket,view){return this.pathTemplates.folderLocationBucketViewPathTemplate.render({folder:folder,location:location,bucket:bucket,view:view})}matchFolderFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).folder}matchLocationFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).location}matchBucketFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).bucket}matchViewFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).view}folderLogPath(folder,log){return this.pathTemplates.folderLogPathTemplate.render({folder:folder,log:log})}matchFolderFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).folder}matchLogFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).log}folderSinkPath(folder,sink){return this.pathTemplates.folderSinkPathTemplate.render({folder:folder,sink:sink})}matchFolderFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).folder}matchSinkFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).sink}logMetricPath(project,metric){return this.pathTemplates.logMetricPathTemplate.render({project:project,metric:metric})}matchProjectFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).project}matchMetricFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).metric}organizationCmekSettingsPath(organization){return this.pathTemplates.organizationCmekSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationCmekSettingsName(organizationCmekSettingsName){return this.pathTemplates.organizationCmekSettingsPathTemplate.match(organizationCmekSettingsName).organization}organizationExclusionPath(organization,exclusion){return this.pathTemplates.organizationExclusionPathTemplate.render({organization:organization,exclusion:exclusion})}matchOrganizationFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).organization}matchExclusionFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).exclusion}organizationLocationBucketPath(organization,location,bucket){return this.pathTemplates.organizationLocationBucketPathTemplate.render({organization:organization,location:location,bucket:bucket})}matchOrganizationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).organization}matchLocationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).location}matchBucketFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).bucket}organizationLocationBucketViewPath(organization,location,bucket,view){return this.pathTemplates.organizationLocationBucketViewPathTemplate.render({organization:organization,location:location,bucket:bucket,view:view})}matchOrganizationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).organization}matchLocationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).location}matchBucketFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).bucket}matchViewFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).view}organizationLogPath(organization,log){return this.pathTemplates.organizationLogPathTemplate.render({organization:organization,log:log})}matchOrganizationFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).organization}matchLogFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).log}organizationSinkPath(organization,sink){return this.pathTemplates.organizationSinkPathTemplate.render({organization:organization,sink:sink})}matchOrganizationFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).organization}matchSinkFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).sink}projectPath(project){return this.pathTemplates.projectPathTemplate.render({project:project})}matchProjectFromProjectName(projectName){return this.pathTemplates.projectPathTemplate.match(projectName).project}projectCmekSettingsPath(project){return this.pathTemplates.projectCmekSettingsPathTemplate.render({project:project})}matchProjectFromProjectCmekSettingsName(projectCmekSettingsName){return this.pathTemplates.projectCmekSettingsPathTemplate.match(projectCmekSettingsName).project}projectExclusionPath(project,exclusion){return this.pathTemplates.projectExclusionPathTemplate.render({project:project,exclusion:exclusion})}matchProjectFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).project}matchExclusionFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).exclusion}projectLocationBucketPath(project,location,bucket){return this.pathTemplates.projectLocationBucketPathTemplate.render({project:project,location:location,bucket:bucket})}matchProjectFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).project}matchLocationFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).location}matchBucketFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).bucket}projectLocationBucketViewPath(project,location,bucket,view){return this.pathTemplates.projectLocationBucketViewPathTemplate.render({project:project,location:location,bucket:bucket,view:view})}matchProjectFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).project}matchLocationFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).location}matchBucketFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).bucket}matchViewFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).view}projectLogPath(project,log){return this.pathTemplates.projectLogPathTemplate.render({project:project,log:log})}matchProjectFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).project}matchLogFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).log}projectSinkPath(project,sink){return this.pathTemplates.projectSinkPathTemplate.render({project:project,sink:sink})}matchProjectFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).project}matchSinkFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).sink}close(){this.initialize();if(!this._terminated){return this.loggingServiceV2Stub.then(stub=>{this._terminated=true;stub.close()})}return Promise.resolve()}}exports.LoggingServiceV2Client=LoggingServiceV2Client;
//# sourceMappingURL=logging_service_v2_client.js.map

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.MetricsServiceV2Client=void 0;const gax=require("google-gax");const jsonProtos=require("../../protos/protos.json");const gapicConfig=require("./metrics_service_v2_client_config.json");const version=require("../../../package.json").version;class MetricsServiceV2Client{constructor(opts){var _a,_b;this._terminated=false;this.descriptors={page:{},stream:{},longrunning:{},batching:{}};const staticMembers=this.constructor;const servicePath=(opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint)||staticMembers.servicePath;this._providedCustomServicePath=!!((opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint));const port=(opts===null||opts===void 0?void 0:opts.port)||staticMembers.port;const clientConfig=(_a=opts===null||opts===void 0?void 0:opts.clientConfig)!==null&&_a!==void 0?_a:{};const fallback=(_b=opts===null||opts===void 0?void 0:opts.fallback)!==null&&_b!==void 0?_b:typeof window!=="undefined"&&typeof(window===null||window===void 0?void 0:window.fetch)==="function";opts=Object.assign({servicePath:servicePath,port:port,clientConfig:clientConfig,fallback:fallback},opts);if(servicePath!==staticMembers.servicePath&&!("scopes"in opts)){opts["scopes"]=staticMembers.scopes}this._gaxModule=opts.fallback?gax.fallback:gax;this._gaxGrpc=new this._gaxModule.GrpcClient(opts);this._opts=opts;this.auth=this._gaxGrpc.auth;if(servicePath===staticMembers.servicePath){this.auth.defaultScopes=staticMembers.scopes}const clientHeader=[`gax/${this._gaxModule.version}`,`gapic/${version}`];if(typeof process!=="undefined"&&"versions"in process){clientHeader.push(`gl-node/${process.versions.node}`)}else{clientHeader.push(`gl-web/${this._gaxModule.version}`)}if(!opts.fallback){clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`)}else if(opts.fallback==="rest"){clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`)}if(opts.libName&&opts.libVersion){clientHeader.push(`${opts.libName}/${opts.libVersion}`)}this._protos=this._gaxGrpc.loadProtoJSON(jsonProtos);this.pathTemplates={billingAccountCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/cmekSettings"),billingAccountExclusionPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/exclusions/{exclusion}"),billingAccountLocationBucketPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}"),billingAccountLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}"),billingAccountLogPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/logs/{log}"),billingAccountSinkPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/sinks/{sink}"),folderCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/cmekSettings"),folderExclusionPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/exclusions/{exclusion}"),folderLocationBucketPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}"),folderLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}"),folderLogPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/logs/{log}"),folderSinkPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/sinks/{sink}"),logMetricPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/metrics/{metric}"),organizationCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/cmekSettings"),organizationExclusionPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/exclusions/{exclusion}"),organizationLocationBucketPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}"),organizationLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}"),organizationLogPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/logs/{log}"),organizationSinkPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/sinks/{sink}"),projectPathTemplate:new this._gaxModule.PathTemplate("projects/{project}"),projectCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/cmekSettings"),projectExclusionPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/exclusions/{exclusion}"),projectLocationBucketPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}"),projectLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}/views/{view}"),projectLogPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/logs/{log}"),projectSinkPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/sinks/{sink}")};this.descriptors.page={listLogMetrics:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","metrics")};this._defaults=this._gaxGrpc.constructSettings("google.logging.v2.MetricsServiceV2",gapicConfig,opts.clientConfig||{},{"x-goog-api-client":clientHeader.join(" ")});this.innerApiCalls={};this.warn=gax.warn}initialize(){if(this.metricsServiceV2Stub){return this.metricsServiceV2Stub}this.metricsServiceV2Stub=this._gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.logging.v2.MetricsServiceV2"):this._protos.google.logging.v2.MetricsServiceV2,this._opts,this._providedCustomServicePath);const metricsServiceV2StubMethods=["listLogMetrics","getLogMetric","createLogMetric","updateLogMetric","deleteLogMetric"];for(const methodName of metricsServiceV2StubMethods){const callPromise=this.metricsServiceV2Stub.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});const descriptor=this.descriptors.page[methodName]||undefined;const apiCall=this._gaxModule.createApiCall(callPromise,this._defaults[methodName],descriptor);this.innerApiCalls[methodName]=apiCall}return this.metricsServiceV2Stub}static get servicePath(){return"logging.googleapis.com"}static get apiEndpoint(){return"logging.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloud-platform.read-only","https://www.googleapis.com/auth/logging.admin","https://www.googleapis.com/auth/logging.read","https://www.googleapis.com/auth/logging.write"]}getProjectId(callback){if(callback){this.auth.getProjectId(callback);return}return this.auth.getProjectId()}getLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({metric_name:request.metricName||""});this.initialize();return this.innerApiCalls.getLogMetric(request,options,callback)}createLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createLogMetric(request,options,callback)}updateLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({metric_name:request.metricName||""});this.initialize();return this.innerApiCalls.updateLogMetric(request,options,callback)}deleteLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({metric_name:request.metricName||""});this.initialize();return this.innerApiCalls.deleteLogMetric(request,options,callback)}listLogMetrics(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listLogMetrics(request,options,callback)}listLogMetricsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogMetrics.createStream(this.innerApiCalls.listLogMetrics,request,callSettings)}listLogMetricsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogMetrics.asyncIterate(this.innerApiCalls["listLogMetrics"],request,callSettings)}billingAccountCmekSettingsPath(billingAccount){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountCmekSettingsName(billingAccountCmekSettingsName){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.match(billingAccountCmekSettingsName).billing_account}billingAccountExclusionPath(billingAccount,exclusion){return this.pathTemplates.billingAccountExclusionPathTemplate.render({billing_account:billingAccount,exclusion:exclusion})}matchBillingAccountFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).billing_account}matchExclusionFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).exclusion}billingAccountLocationBucketPath(billingAccount,location,bucket){return this.pathTemplates.billingAccountLocationBucketPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket})}matchBillingAccountFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).billing_account}matchLocationFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).location}matchBucketFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).bucket}billingAccountLocationBucketViewPath(billingAccount,location,bucket,view){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket,view:view})}matchBillingAccountFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).billing_account}matchLocationFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).location}matchBucketFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).bucket}matchViewFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).view}billingAccountLogPath(billingAccount,log){return this.pathTemplates.billingAccountLogPathTemplate.render({billing_account:billingAccount,log:log})}matchBillingAccountFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).billing_account}matchLogFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).log}billingAccountSinkPath(billingAccount,sink){return this.pathTemplates.billingAccountSinkPathTemplate.render({billing_account:billingAccount,sink:sink})}matchBillingAccountFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).billing_account}matchSinkFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).sink}folderCmekSettingsPath(folder){return this.pathTemplates.folderCmekSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderCmekSettingsName(folderCmekSettingsName){return this.pathTemplates.folderCmekSettingsPathTemplate.match(folderCmekSettingsName).folder}folderExclusionPath(folder,exclusion){return this.pathTemplates.folderExclusionPathTemplate.render({folder:folder,exclusion:exclusion})}matchFolderFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).folder}matchExclusionFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).exclusion}folderLocationBucketPath(folder,location,bucket){return this.pathTemplates.folderLocationBucketPathTemplate.render({folder:folder,location:location,bucket:bucket})}matchFolderFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).folder}matchLocationFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).location}matchBucketFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).bucket}folderLocationBucketViewPath(folder,location,bucket,view){return this.pathTemplates.folderLocationBucketViewPathTemplate.render({folder:folder,location:location,bucket:bucket,view:view})}matchFolderFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).folder}matchLocationFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).location}matchBucketFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).bucket}matchViewFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).view}folderLogPath(folder,log){return this.pathTemplates.folderLogPathTemplate.render({folder:folder,log:log})}matchFolderFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).folder}matchLogFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).log}folderSinkPath(folder,sink){return this.pathTemplates.folderSinkPathTemplate.render({folder:folder,sink:sink})}matchFolderFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).folder}matchSinkFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).sink}logMetricPath(project,metric){return this.pathTemplates.logMetricPathTemplate.render({project:project,metric:metric})}matchProjectFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).project}matchMetricFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).metric}organizationCmekSettingsPath(organization){return this.pathTemplates.organizationCmekSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationCmekSettingsName(organizationCmekSettingsName){return this.pathTemplates.organizationCmekSettingsPathTemplate.match(organizationCmekSettingsName).organization}organizationExclusionPath(organization,exclusion){return this.pathTemplates.organizationExclusionPathTemplate.render({organization:organization,exclusion:exclusion})}matchOrganizationFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).organization}matchExclusionFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).exclusion}organizationLocationBucketPath(organization,location,bucket){return this.pathTemplates.organizationLocationBucketPathTemplate.render({organization:organization,location:location,bucket:bucket})}matchOrganizationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).organization}matchLocationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).location}matchBucketFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).bucket}organizationLocationBucketViewPath(organization,location,bucket,view){return this.pathTemplates.organizationLocationBucketViewPathTemplate.render({organization:organization,location:location,bucket:bucket,view:view})}matchOrganizationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).organization}matchLocationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).location}matchBucketFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).bucket}matchViewFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).view}organizationLogPath(organization,log){return this.pathTemplates.organizationLogPathTemplate.render({organization:organization,log:log})}matchOrganizationFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).organization}matchLogFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).log}organizationSinkPath(organization,sink){return this.pathTemplates.organizationSinkPathTemplate.render({organization:organization,sink:sink})}matchOrganizationFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).organization}matchSinkFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).sink}projectPath(project){return this.pathTemplates.projectPathTemplate.render({project:project})}matchProjectFromProjectName(projectName){return this.pathTemplates.projectPathTemplate.match(projectName).project}projectCmekSettingsPath(project){return this.pathTemplates.projectCmekSettingsPathTemplate.render({project:project})}matchProjectFromProjectCmekSettingsName(projectCmekSettingsName){return this.pathTemplates.projectCmekSettingsPathTemplate.match(projectCmekSettingsName).project}projectExclusionPath(project,exclusion){return this.pathTemplates.projectExclusionPathTemplate.render({project:project,exclusion:exclusion})}matchProjectFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).project}matchExclusionFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).exclusion}projectLocationBucketPath(project,location,bucket){return this.pathTemplates.projectLocationBucketPathTemplate.render({project:project,location:location,bucket:bucket})}matchProjectFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).project}matchLocationFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).location}matchBucketFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).bucket}projectLocationBucketViewPath(project,location,bucket,view){return this.pathTemplates.projectLocationBucketViewPathTemplate.render({project:project,location:location,bucket:bucket,view:view})}matchProjectFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).project}matchLocationFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).location}matchBucketFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).bucket}matchViewFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).view}projectLogPath(project,log){return this.pathTemplates.projectLogPathTemplate.render({project:project,log:log})}matchProjectFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).project}matchLogFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).log}projectSinkPath(project,sink){return this.pathTemplates.projectSinkPathTemplate.render({project:project,sink:sink})}matchProjectFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).project}matchSinkFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).sink}close(){this.initialize();if(!this._terminated){return this.metricsServiceV2Stub.then(stub=>{this._terminated=true;stub.close()})}return Promise.resolve()}}exports.MetricsServiceV2Client=MetricsServiceV2Client;
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.MetricsServiceV2Client=void 0;const gax=require("google-gax");const jsonProtos=require("../../protos/protos.json");const gapicConfig=require("./metrics_service_v2_client_config.json");const version=require("../../../package.json").version;class MetricsServiceV2Client{constructor(opts){var _a,_b;this._terminated=false;this.descriptors={page:{},stream:{},longrunning:{},batching:{}};const staticMembers=this.constructor;const servicePath=(opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint)||staticMembers.servicePath;this._providedCustomServicePath=!!((opts===null||opts===void 0?void 0:opts.servicePath)||(opts===null||opts===void 0?void 0:opts.apiEndpoint));const port=(opts===null||opts===void 0?void 0:opts.port)||staticMembers.port;const clientConfig=(_a=opts===null||opts===void 0?void 0:opts.clientConfig)!==null&&_a!==void 0?_a:{};const fallback=(_b=opts===null||opts===void 0?void 0:opts.fallback)!==null&&_b!==void 0?_b:typeof window!=="undefined"&&typeof(window===null||window===void 0?void 0:window.fetch)==="function";opts=Object.assign({servicePath:servicePath,port:port,clientConfig:clientConfig,fallback:fallback},opts);if(servicePath!==staticMembers.servicePath&&!("scopes"in opts)){opts["scopes"]=staticMembers.scopes}this._gaxModule=opts.fallback?gax.fallback:gax;this._gaxGrpc=new this._gaxModule.GrpcClient(opts);this._opts=opts;this.auth=this._gaxGrpc.auth;this.auth.useJWTAccessWithScope=true;this.auth.defaultServicePath=staticMembers.servicePath;if(servicePath===staticMembers.servicePath){this.auth.defaultScopes=staticMembers.scopes}const clientHeader=[`gax/${this._gaxModule.version}`,`gapic/${version}`];if(typeof process!=="undefined"&&"versions"in process){clientHeader.push(`gl-node/${process.versions.node}`)}else{clientHeader.push(`gl-web/${this._gaxModule.version}`)}if(!opts.fallback){clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`)}else if(opts.fallback==="rest"){clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`)}if(opts.libName&&opts.libVersion){clientHeader.push(`${opts.libName}/${opts.libVersion}`)}this._protos=this._gaxGrpc.loadProtoJSON(jsonProtos);this.pathTemplates={billingAccountCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/cmekSettings"),billingAccountExclusionPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/exclusions/{exclusion}"),billingAccountLocationBucketPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}"),billingAccountLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}"),billingAccountLogPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/logs/{log}"),billingAccountSinkPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/sinks/{sink}"),folderCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/cmekSettings"),folderExclusionPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/exclusions/{exclusion}"),folderLocationBucketPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}"),folderLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}"),folderLogPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/logs/{log}"),folderSinkPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/sinks/{sink}"),logMetricPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/metrics/{metric}"),organizationCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/cmekSettings"),organizationExclusionPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/exclusions/{exclusion}"),organizationLocationBucketPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}"),organizationLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}"),organizationLogPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/logs/{log}"),organizationSinkPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/sinks/{sink}"),projectPathTemplate:new this._gaxModule.PathTemplate("projects/{project}"),projectCmekSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/cmekSettings"),projectExclusionPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/exclusions/{exclusion}"),projectLocationBucketPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}"),projectLocationBucketViewPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/locations/{location}/buckets/{bucket}/views/{view}"),projectLogPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/logs/{log}"),projectSinkPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/sinks/{sink}")};this.descriptors.page={listLogMetrics:new this._gaxModule.PageDescriptor("pageToken","nextPageToken","metrics")};this._defaults=this._gaxGrpc.constructSettings("google.logging.v2.MetricsServiceV2",gapicConfig,opts.clientConfig||{},{"x-goog-api-client":clientHeader.join(" ")});this.innerApiCalls={};this.warn=gax.warn}initialize(){if(this.metricsServiceV2Stub){return this.metricsServiceV2Stub}this.metricsServiceV2Stub=this._gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.logging.v2.MetricsServiceV2"):this._protos.google.logging.v2.MetricsServiceV2,this._opts,this._providedCustomServicePath);const metricsServiceV2StubMethods=["listLogMetrics","getLogMetric","createLogMetric","updateLogMetric","deleteLogMetric"];for(const methodName of metricsServiceV2StubMethods){const callPromise=this.metricsServiceV2Stub.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});const descriptor=this.descriptors.page[methodName]||undefined;const apiCall=this._gaxModule.createApiCall(callPromise,this._defaults[methodName],descriptor);this.innerApiCalls[methodName]=apiCall}return this.metricsServiceV2Stub}static get servicePath(){return"logging.googleapis.com"}static get apiEndpoint(){return"logging.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloud-platform.read-only","https://www.googleapis.com/auth/logging.admin","https://www.googleapis.com/auth/logging.read","https://www.googleapis.com/auth/logging.write"]}getProjectId(callback){if(callback){this.auth.getProjectId(callback);return}return this.auth.getProjectId()}getLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({metric_name:request.metricName||""});this.initialize();return this.innerApiCalls.getLogMetric(request,options,callback)}createLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.createLogMetric(request,options,callback)}updateLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({metric_name:request.metricName||""});this.initialize();return this.innerApiCalls.updateLogMetric(request,options,callback)}deleteLogMetric(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({metric_name:request.metricName||""});this.initialize();return this.innerApiCalls.deleteLogMetric(request,options,callback)}listLogMetrics(request,optionsOrCallback,callback){request=request||{};let options;if(typeof optionsOrCallback==="function"&&callback===undefined){callback=optionsOrCallback;options={}}else{options=optionsOrCallback}options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});this.initialize();return this.innerApiCalls.listLogMetrics(request,options,callback)}listLogMetricsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogMetrics.createStream(this.innerApiCalls.listLogMetrics,request,callSettings)}listLogMetricsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};options.otherArgs.headers["x-goog-request-params"]=gax.routingHeader.fromParams({parent:request.parent||""});options=options||{};const callSettings=new gax.CallSettings(options);this.initialize();return this.descriptors.page.listLogMetrics.asyncIterate(this.innerApiCalls["listLogMetrics"],request,callSettings)}billingAccountCmekSettingsPath(billingAccount){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountCmekSettingsName(billingAccountCmekSettingsName){return this.pathTemplates.billingAccountCmekSettingsPathTemplate.match(billingAccountCmekSettingsName).billing_account}billingAccountExclusionPath(billingAccount,exclusion){return this.pathTemplates.billingAccountExclusionPathTemplate.render({billing_account:billingAccount,exclusion:exclusion})}matchBillingAccountFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).billing_account}matchExclusionFromBillingAccountExclusionName(billingAccountExclusionName){return this.pathTemplates.billingAccountExclusionPathTemplate.match(billingAccountExclusionName).exclusion}billingAccountLocationBucketPath(billingAccount,location,bucket){return this.pathTemplates.billingAccountLocationBucketPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket})}matchBillingAccountFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).billing_account}matchLocationFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).location}matchBucketFromBillingAccountLocationBucketName(billingAccountLocationBucketName){return this.pathTemplates.billingAccountLocationBucketPathTemplate.match(billingAccountLocationBucketName).bucket}billingAccountLocationBucketViewPath(billingAccount,location,bucket,view){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.render({billing_account:billingAccount,location:location,bucket:bucket,view:view})}matchBillingAccountFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).billing_account}matchLocationFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).location}matchBucketFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).bucket}matchViewFromBillingAccountLocationBucketViewName(billingAccountLocationBucketViewName){return this.pathTemplates.billingAccountLocationBucketViewPathTemplate.match(billingAccountLocationBucketViewName).view}billingAccountLogPath(billingAccount,log){return this.pathTemplates.billingAccountLogPathTemplate.render({billing_account:billingAccount,log:log})}matchBillingAccountFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).billing_account}matchLogFromBillingAccountLogName(billingAccountLogName){return this.pathTemplates.billingAccountLogPathTemplate.match(billingAccountLogName).log}billingAccountSinkPath(billingAccount,sink){return this.pathTemplates.billingAccountSinkPathTemplate.render({billing_account:billingAccount,sink:sink})}matchBillingAccountFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).billing_account}matchSinkFromBillingAccountSinkName(billingAccountSinkName){return this.pathTemplates.billingAccountSinkPathTemplate.match(billingAccountSinkName).sink}folderCmekSettingsPath(folder){return this.pathTemplates.folderCmekSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderCmekSettingsName(folderCmekSettingsName){return this.pathTemplates.folderCmekSettingsPathTemplate.match(folderCmekSettingsName).folder}folderExclusionPath(folder,exclusion){return this.pathTemplates.folderExclusionPathTemplate.render({folder:folder,exclusion:exclusion})}matchFolderFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).folder}matchExclusionFromFolderExclusionName(folderExclusionName){return this.pathTemplates.folderExclusionPathTemplate.match(folderExclusionName).exclusion}folderLocationBucketPath(folder,location,bucket){return this.pathTemplates.folderLocationBucketPathTemplate.render({folder:folder,location:location,bucket:bucket})}matchFolderFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).folder}matchLocationFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).location}matchBucketFromFolderLocationBucketName(folderLocationBucketName){return this.pathTemplates.folderLocationBucketPathTemplate.match(folderLocationBucketName).bucket}folderLocationBucketViewPath(folder,location,bucket,view){return this.pathTemplates.folderLocationBucketViewPathTemplate.render({folder:folder,location:location,bucket:bucket,view:view})}matchFolderFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).folder}matchLocationFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).location}matchBucketFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).bucket}matchViewFromFolderLocationBucketViewName(folderLocationBucketViewName){return this.pathTemplates.folderLocationBucketViewPathTemplate.match(folderLocationBucketViewName).view}folderLogPath(folder,log){return this.pathTemplates.folderLogPathTemplate.render({folder:folder,log:log})}matchFolderFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).folder}matchLogFromFolderLogName(folderLogName){return this.pathTemplates.folderLogPathTemplate.match(folderLogName).log}folderSinkPath(folder,sink){return this.pathTemplates.folderSinkPathTemplate.render({folder:folder,sink:sink})}matchFolderFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).folder}matchSinkFromFolderSinkName(folderSinkName){return this.pathTemplates.folderSinkPathTemplate.match(folderSinkName).sink}logMetricPath(project,metric){return this.pathTemplates.logMetricPathTemplate.render({project:project,metric:metric})}matchProjectFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).project}matchMetricFromLogMetricName(logMetricName){return this.pathTemplates.logMetricPathTemplate.match(logMetricName).metric}organizationCmekSettingsPath(organization){return this.pathTemplates.organizationCmekSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationCmekSettingsName(organizationCmekSettingsName){return this.pathTemplates.organizationCmekSettingsPathTemplate.match(organizationCmekSettingsName).organization}organizationExclusionPath(organization,exclusion){return this.pathTemplates.organizationExclusionPathTemplate.render({organization:organization,exclusion:exclusion})}matchOrganizationFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).organization}matchExclusionFromOrganizationExclusionName(organizationExclusionName){return this.pathTemplates.organizationExclusionPathTemplate.match(organizationExclusionName).exclusion}organizationLocationBucketPath(organization,location,bucket){return this.pathTemplates.organizationLocationBucketPathTemplate.render({organization:organization,location:location,bucket:bucket})}matchOrganizationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).organization}matchLocationFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).location}matchBucketFromOrganizationLocationBucketName(organizationLocationBucketName){return this.pathTemplates.organizationLocationBucketPathTemplate.match(organizationLocationBucketName).bucket}organizationLocationBucketViewPath(organization,location,bucket,view){return this.pathTemplates.organizationLocationBucketViewPathTemplate.render({organization:organization,location:location,bucket:bucket,view:view})}matchOrganizationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).organization}matchLocationFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).location}matchBucketFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).bucket}matchViewFromOrganizationLocationBucketViewName(organizationLocationBucketViewName){return this.pathTemplates.organizationLocationBucketViewPathTemplate.match(organizationLocationBucketViewName).view}organizationLogPath(organization,log){return this.pathTemplates.organizationLogPathTemplate.render({organization:organization,log:log})}matchOrganizationFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).organization}matchLogFromOrganizationLogName(organizationLogName){return this.pathTemplates.organizationLogPathTemplate.match(organizationLogName).log}organizationSinkPath(organization,sink){return this.pathTemplates.organizationSinkPathTemplate.render({organization:organization,sink:sink})}matchOrganizationFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).organization}matchSinkFromOrganizationSinkName(organizationSinkName){return this.pathTemplates.organizationSinkPathTemplate.match(organizationSinkName).sink}projectPath(project){return this.pathTemplates.projectPathTemplate.render({project:project})}matchProjectFromProjectName(projectName){return this.pathTemplates.projectPathTemplate.match(projectName).project}projectCmekSettingsPath(project){return this.pathTemplates.projectCmekSettingsPathTemplate.render({project:project})}matchProjectFromProjectCmekSettingsName(projectCmekSettingsName){return this.pathTemplates.projectCmekSettingsPathTemplate.match(projectCmekSettingsName).project}projectExclusionPath(project,exclusion){return this.pathTemplates.projectExclusionPathTemplate.render({project:project,exclusion:exclusion})}matchProjectFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).project}matchExclusionFromProjectExclusionName(projectExclusionName){return this.pathTemplates.projectExclusionPathTemplate.match(projectExclusionName).exclusion}projectLocationBucketPath(project,location,bucket){return this.pathTemplates.projectLocationBucketPathTemplate.render({project:project,location:location,bucket:bucket})}matchProjectFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).project}matchLocationFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).location}matchBucketFromProjectLocationBucketName(projectLocationBucketName){return this.pathTemplates.projectLocationBucketPathTemplate.match(projectLocationBucketName).bucket}projectLocationBucketViewPath(project,location,bucket,view){return this.pathTemplates.projectLocationBucketViewPathTemplate.render({project:project,location:location,bucket:bucket,view:view})}matchProjectFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).project}matchLocationFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).location}matchBucketFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).bucket}matchViewFromProjectLocationBucketViewName(projectLocationBucketViewName){return this.pathTemplates.projectLocationBucketViewPathTemplate.match(projectLocationBucketViewName).view}projectLogPath(project,log){return this.pathTemplates.projectLogPathTemplate.render({project:project,log:log})}matchProjectFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).project}matchLogFromProjectLogName(projectLogName){return this.pathTemplates.projectLogPathTemplate.match(projectLogName).log}projectSinkPath(project,sink){return this.pathTemplates.projectSinkPathTemplate.render({project:project,sink:sink})}matchProjectFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).project}matchSinkFromProjectSinkName(projectSinkName){return this.pathTemplates.projectSinkPathTemplate.match(projectSinkName).sink}close(){this.initialize();if(!this._terminated){return this.metricsServiceV2Stub.then(stub=>{this._terminated=true;stub.close()})}return Promise.resolve()}}exports.MetricsServiceV2Client=MetricsServiceV2Client;
//# sourceMappingURL=metrics_service_v2_client.js.map

@@ -7,2 +7,14 @@ # Changelog

## [9.6.0](https://www.github.com/googleapis/nodejs-logging/compare/v9.5.7...v9.6.0) (2021-09-08)
### Features
* turns on self-signed JWT feature flag ([#1140](https://www.github.com/googleapis/nodejs-logging/issues/1140)) ([dc15213](https://www.github.com/googleapis/nodejs-logging/commit/dc15213d0fa2c56c74bb1c22f38f105c7358dd38))
### Bug Fixes
* **build:** update branch to main ([#1152](https://www.github.com/googleapis/nodejs-logging/issues/1152)) ([9a2e91e](https://www.github.com/googleapis/nodejs-logging/commit/9a2e91ea5f78160c02949a8f2729219f8da7afcd))
### [9.5.7](https://www.github.com/googleapis/nodejs-logging/compare/v9.5.6...v9.5.7) (2021-09-02)

@@ -9,0 +21,0 @@

{
"name": "@google-cloud/logging-min",
"version": "9.5.7",
"version": "9.6.0",
"description": "Stackdriver Logging Client Library for Node.js",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,3 +9,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

[![npm version](https://img.shields.io/npm/v/@google-cloud/logging.svg)](https://www.npmjs.org/package/@google-cloud/logging)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-logging/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-logging)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-logging/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-logging)

@@ -25,3 +25,3 @@

A comprehensive list of changes in each version may be found in
[the CHANGELOG](https://github.com/googleapis/nodejs-logging/blob/master/CHANGELOG.md).
[the CHANGELOG](https://github.com/googleapis/nodejs-logging/blob/main/CHANGELOG.md).

@@ -161,11 +161,11 @@ * [Cloud Logging Node.js Client API Reference][client-docs]

Samples are in the [`samples/`](https://github.com/googleapis/nodejs-logging/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample.
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-logging/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Fluent | [source code](https://github.com/googleapis/nodejs-logging/blob/master/samples/fluent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/fluent.js,samples/README.md) |
| Log HTTP Request | [source code](https://github.com/googleapis/nodejs-logging/blob/master/samples/http-request.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/http-request.js,samples/README.md) |
| Logs | [source code](https://github.com/googleapis/nodejs-logging/blob/master/samples/logs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/logs.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-logging/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Sinks | [source code](https://github.com/googleapis/nodejs-logging/blob/master/samples/sinks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/sinks.js,samples/README.md) |
| Fluent | [source code](https://github.com/googleapis/nodejs-logging/blob/main/samples/fluent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/fluent.js,samples/README.md) |
| Log HTTP Request | [source code](https://github.com/googleapis/nodejs-logging/blob/main/samples/http-request.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/http-request.js,samples/README.md) |
| Logs | [source code](https://github.com/googleapis/nodejs-logging/blob/main/samples/logs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/logs.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-logging/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Sinks | [source code](https://github.com/googleapis/nodejs-logging/blob/main/samples/sinks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-logging&page=editor&open_in_editor=samples/sinks.js,samples/README.md) |

@@ -219,3 +219,3 @@

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-logging/blob/master/CONTRIBUTING.md).
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-logging/blob/main/CONTRIBUTING.md).

@@ -225,4 +225,4 @@ Please note that this `README.md`, the `samples/README.md`,

are generated from a central template. To edit one of these files, make an edit
to its template in this
[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library).
to its templates in
[directory](https://github.com/googleapis/synthtool).

@@ -233,3 +233,3 @@ ## License

See [LICENSE](https://github.com/googleapis/nodejs-logging/blob/master/LICENSE)
See [LICENSE](https://github.com/googleapis/nodejs-logging/blob/main/LICENSE)

@@ -236,0 +236,0 @@ [client-docs]: https://cloud.google.com/nodejs/docs/reference/logging/latest

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc