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.6.9 to 9.7.0

12

build/src/v2/config_service_v2_client_config.json

@@ -129,2 +129,14 @@ {

"retry_params_name": "default"
},
"GetSettings": {
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"UpdateSettings": {
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"CopyLogEntries": {
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}

@@ -131,0 +143,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;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 defaultCallSettings=this._defaults["listBuckets"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listBuckets"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listViews"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listViews"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listSinks"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listSinks"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listExclusions"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listExclusions"];const callSettings=defaultCallSettings.merge(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 google_gax_1=require("google-gax");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}"),billingAccountSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/settings"),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}"),folderSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/settings"),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}"),organizationSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/settings"),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}"),projectSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/settings"),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")};const protoFilesRoot=this._gaxModule.protobuf.Root.fromJSON(jsonProtos);this.operationsClient=this._gaxModule.lro({auth:this.auth,grpc:"grpc"in this._gaxGrpc?this._gaxGrpc.grpc:undefined}).operationsClient(opts);const copyLogEntriesResponse=protoFilesRoot.lookup(".google.logging.v2.CopyLogEntriesResponse");const copyLogEntriesMetadata=protoFilesRoot.lookup(".google.logging.v2.CopyLogEntriesMetadata");this.descriptors.longrunning={copyLogEntries:new this._gaxModule.LongrunningDescriptor(this.operationsClient,copyLogEntriesResponse.decode.bind(copyLogEntriesResponse),copyLogEntriesMetadata.decode.bind(copyLogEntriesMetadata))};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","getSettings","updateSettings","copyLogEntries"];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]||this.descriptors.longrunning[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)}getSettings(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.getSettings(request,options,callback)}updateSettings(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.updateSettings(request,options,callback)}copyLogEntries(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||{};this.initialize();return this.innerApiCalls.copyLogEntries(request,options,callback)}async checkCopyLogEntriesProgress(name){const request=new google_gax_1.operationsProtos.google.longrunning.GetOperationRequest({name:name});const[operation]=await this.operationsClient.getOperation(request);const decodeOperation=new gax.Operation(operation,this.descriptors.longrunning.copyLogEntries,gax.createDefaultBackoffSettings());return decodeOperation}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 defaultCallSettings=this._defaults["listBuckets"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listBuckets"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listViews"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listViews"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listSinks"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listSinks"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listExclusions"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listExclusions"];const callSettings=defaultCallSettings.merge(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}billingAccountSettingsPath(billingAccount){return this.pathTemplates.billingAccountSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountSettingsName(billingAccountSettingsName){return this.pathTemplates.billingAccountSettingsPathTemplate.match(billingAccountSettingsName).billing_account}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}folderSettingsPath(folder){return this.pathTemplates.folderSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderSettingsName(folderSettingsName){return this.pathTemplates.folderSettingsPathTemplate.match(folderSettingsName).folder}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}organizationSettingsPath(organization){return this.pathTemplates.organizationSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationSettingsName(organizationSettingsName){return this.pathTemplates.organizationSettingsPathTemplate.match(organizationSettingsName).organization}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}projectSettingsPath(project){return this.pathTemplates.projectSettingsPathTemplate.render({project:project})}matchProjectFromProjectSettingsName(projectSettingsName){return this.pathTemplates.projectSettingsPathTemplate.match(projectSettingsName).project}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(){if(this.configServiceV2Stub&&!this._terminated){return this.configServiceV2Stub.then(stub=>{this._terminated=true;stub.close();this.operationsClient.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;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||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};this.initialize();return this.innerApiCalls.writeLogEntries(request,options,callback)}tailLogEntries(options){this.initialize();return this.innerApiCalls.tailLogEntries(null,options)}listLogEntries(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||{};this.initialize();return this.innerApiCalls.listLogEntries(request,options,callback)}listLogEntriesStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listLogEntries"];const callSettings=defaultCallSettings.merge(options);this.initialize();return this.descriptors.page.listLogEntries.createStream(this.innerApiCalls.listLogEntries,request,callSettings)}listLogEntriesAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listLogEntries"];const callSettings=defaultCallSettings.merge(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||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};this.initialize();return this.innerApiCalls.listMonitoredResourceDescriptors(request,options,callback)}listMonitoredResourceDescriptorsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listMonitoredResourceDescriptors"];const callSettings=defaultCallSettings.merge(options);this.initialize();return this.descriptors.page.listMonitoredResourceDescriptors.createStream(this.innerApiCalls.listMonitoredResourceDescriptors,request,callSettings)}listMonitoredResourceDescriptorsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listMonitoredResourceDescriptors"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listLogs"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listLogs"];const callSettings=defaultCallSettings.merge(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 google_gax_1=require("google-gax");const stream_1=require("stream");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}"),billingAccountSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/settings"),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}"),folderSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/settings"),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}"),organizationSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/settings"),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}"),projectSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/settings"),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){if(methodName in this.descriptors.stream){const stream=new stream_1.PassThrough;setImmediate(()=>{stream.emit("error",new google_gax_1.GoogleError("The client has already been closed."))});return stream}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||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};this.initialize();return this.innerApiCalls.writeLogEntries(request,options,callback)}tailLogEntries(options){this.initialize();return this.innerApiCalls.tailLogEntries(null,options)}listLogEntries(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||{};this.initialize();return this.innerApiCalls.listLogEntries(request,options,callback)}listLogEntriesStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listLogEntries"];const callSettings=defaultCallSettings.merge(options);this.initialize();return this.descriptors.page.listLogEntries.createStream(this.innerApiCalls.listLogEntries,request,callSettings)}listLogEntriesAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listLogEntries"];const callSettings=defaultCallSettings.merge(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||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};this.initialize();return this.innerApiCalls.listMonitoredResourceDescriptors(request,options,callback)}listMonitoredResourceDescriptorsStream(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listMonitoredResourceDescriptors"];const callSettings=defaultCallSettings.merge(options);this.initialize();return this.descriptors.page.listMonitoredResourceDescriptors.createStream(this.innerApiCalls.listMonitoredResourceDescriptors,request,callSettings)}listMonitoredResourceDescriptorsAsync(request,options){request=request||{};options=options||{};options.otherArgs=options.otherArgs||{};options.otherArgs.headers=options.otherArgs.headers||{};const defaultCallSettings=this._defaults["listMonitoredResourceDescriptors"];const callSettings=defaultCallSettings.merge(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 defaultCallSettings=this._defaults["listLogs"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listLogs"];const callSettings=defaultCallSettings.merge(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}billingAccountSettingsPath(billingAccount){return this.pathTemplates.billingAccountSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountSettingsName(billingAccountSettingsName){return this.pathTemplates.billingAccountSettingsPathTemplate.match(billingAccountSettingsName).billing_account}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}folderSettingsPath(folder){return this.pathTemplates.folderSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderSettingsName(folderSettingsName){return this.pathTemplates.folderSettingsPathTemplate.match(folderSettingsName).folder}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}organizationSettingsPath(organization){return this.pathTemplates.organizationSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationSettingsName(organizationSettingsName){return this.pathTemplates.organizationSettingsPathTemplate.match(organizationSettingsName).organization}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}projectSettingsPath(project){return this.pathTemplates.projectSettingsPathTemplate.render({project:project})}matchProjectFromProjectSettingsName(projectSettingsName){return this.pathTemplates.projectSettingsPathTemplate.match(projectSettingsName).project}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(){if(this.loggingServiceV2Stub&&!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

@@ -439,2 +439,17 @@ /// <reference types="node" />

/**
* Return a fully-qualified billingAccountSettings resource name string.
*
* @param {string} billing_account
* @returns {string} Resource name string.
*/
billingAccountSettingsPath(billingAccount: string): string;
/**
* Parse the billing_account from BillingAccountSettings resource.
*
* @param {string} billingAccountSettingsName
* A fully-qualified path representing billing_account_settings resource.
* @returns {string} A string representing the billing_account.
*/
matchBillingAccountFromBillingAccountSettingsName(billingAccountSettingsName: string): string | number;
/**
* Return a fully-qualified billingAccountSink resource name string.

@@ -602,2 +617,17 @@ *

/**
* Return a fully-qualified folderSettings resource name string.
*
* @param {string} folder
* @returns {string} Resource name string.
*/
folderSettingsPath(folder: string): string;
/**
* Parse the folder from FolderSettings resource.
*
* @param {string} folderSettingsName
* A fully-qualified path representing folder_settings resource.
* @returns {string} A string representing the folder.
*/
matchFolderFromFolderSettingsName(folderSettingsName: string): string | number;
/**
* Return a fully-qualified folderSink resource name string.

@@ -789,2 +819,17 @@ *

/**
* Return a fully-qualified organizationSettings resource name string.
*
* @param {string} organization
* @returns {string} Resource name string.
*/
organizationSettingsPath(organization: string): string;
/**
* Parse the organization from OrganizationSettings resource.
*
* @param {string} organizationSettingsName
* A fully-qualified path representing organization_settings resource.
* @returns {string} A string representing the organization.
*/
matchOrganizationFromOrganizationSettingsName(organizationSettingsName: string): string | number;
/**
* Return a fully-qualified organizationSink resource name string.

@@ -967,2 +1012,17 @@ *

/**
* Return a fully-qualified projectSettings resource name string.
*
* @param {string} project
* @returns {string} Resource name string.
*/
projectSettingsPath(project: string): string;
/**
* Parse the project from ProjectSettings resource.
*
* @param {string} projectSettingsName
* A fully-qualified path representing project_settings resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectSettingsName(projectSettingsName: string): string | number;
/**
* Return a fully-qualified projectSink resource name string.

@@ -969,0 +1029,0 @@ *

@@ -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;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 defaultCallSettings=this._defaults["listLogMetrics"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listLogMetrics"];const callSettings=defaultCallSettings.merge(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}"),billingAccountSettingsPathTemplate:new this._gaxModule.PathTemplate("billingAccounts/{billing_account}/settings"),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}"),folderSettingsPathTemplate:new this._gaxModule.PathTemplate("folders/{folder}/settings"),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}"),organizationSettingsPathTemplate:new this._gaxModule.PathTemplate("organizations/{organization}/settings"),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}"),projectSettingsPathTemplate:new this._gaxModule.PathTemplate("projects/{project}/settings"),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 defaultCallSettings=this._defaults["listLogMetrics"];const callSettings=defaultCallSettings.merge(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||""});const defaultCallSettings=this._defaults["listLogMetrics"];const callSettings=defaultCallSettings.merge(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}billingAccountSettingsPath(billingAccount){return this.pathTemplates.billingAccountSettingsPathTemplate.render({billing_account:billingAccount})}matchBillingAccountFromBillingAccountSettingsName(billingAccountSettingsName){return this.pathTemplates.billingAccountSettingsPathTemplate.match(billingAccountSettingsName).billing_account}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}folderSettingsPath(folder){return this.pathTemplates.folderSettingsPathTemplate.render({folder:folder})}matchFolderFromFolderSettingsName(folderSettingsName){return this.pathTemplates.folderSettingsPathTemplate.match(folderSettingsName).folder}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}organizationSettingsPath(organization){return this.pathTemplates.organizationSettingsPathTemplate.render({organization:organization})}matchOrganizationFromOrganizationSettingsName(organizationSettingsName){return this.pathTemplates.organizationSettingsPathTemplate.match(organizationSettingsName).organization}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}projectSettingsPath(project){return this.pathTemplates.projectSettingsPathTemplate.render({project:project})}matchProjectFromProjectSettingsName(projectSettingsName){return this.pathTemplates.projectSettingsPathTemplate.match(projectSettingsName).project}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(){if(this.metricsServiceV2Stub&&!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

@@ -8,2 +8,9 @@ # Changelog

## [9.7.0](https://github.com/googleapis/nodejs-logging/compare/v9.6.9...v9.7.0) (2022-02-18)
### Features
* Update Logging API with latest changes ([5eddc7d](https://github.com/googleapis/nodejs-logging/commit/5eddc7d6efeb19bdd01eeba13505b8290763a790))
### [9.6.9](https://github.com/googleapis/nodejs-logging/compare/v9.6.8...v9.6.9) (2022-02-09)

@@ -10,0 +17,0 @@

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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