Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 10.0.4 to 10.1.0

9

build/src/entry.d.ts

@@ -57,2 +57,3 @@ /*!

resource?: object;
[key: string]: unknown;
}

@@ -145,3 +146,3 @@ export interface ToJsonOptions {

*/
toStructuredJSON(projectId?: string): StructuredJson;
toStructuredJSON(projectId?: string, useMessageField?: boolean): StructuredJson;
/**

@@ -163,2 +164,8 @@ * extractTraceFromHeaders extracts trace and span information from raw HTTP

static fromApiResponse_(entry: google.logging.v2.LogEntry): Entry;
/**
* Determines whether `value` is a JavaScript object.
* @param value The value to be checked
* @returns true if `value` is a JavaScript object, false otherwise
*/
private isObject;
}

@@ -165,0 +172,0 @@ /**

2

build/src/entry.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.Entry=exports.TRACE_SAMPLED_KEY=exports.TRACE_KEY=exports.SPAN_ID_KEY=exports.SOURCE_LOCATION_KEY=exports.OPERATION_KEY=exports.LABELS_KEY=exports.INSERT_ID_KEY=void 0;const EventId=require("eventid");const extend=require("extend");const common_1=require("./utils/common");const http_request_1=require("./utils/http-request");const context_1=require("./utils/context");const eventId=new EventId;exports.INSERT_ID_KEY="logging.googleapis.com/insertId";exports.LABELS_KEY="logging.googleapis.com/labels";exports.OPERATION_KEY="logging.googleapis.com/operation";exports.SOURCE_LOCATION_KEY="logging.googleapis.com/sourceLocation";exports.SPAN_ID_KEY="logging.googleapis.com/spanId";exports.TRACE_KEY="logging.googleapis.com/trace";exports.TRACE_SAMPLED_KEY="logging.googleapis.com/trace_sampled";class Entry{constructor(metadata,data){this.metadata=extend({timestamp:new Date},metadata);this.metadata.insertId=this.metadata.insertId||eventId.new();this.data=data}toJSON(options={},projectId=""){const entry=extend(true,{},this.metadata);if(Object.prototype.toString.call(this.data)==="[object Object]"){entry.jsonPayload=(0,common_1.objToStruct)(this.data,{removeCircular:!!options.removeCircular,stringify:true})}else if(typeof this.data==="string"){entry.textPayload=this.data}if(entry.timestamp instanceof Date){const seconds=entry.timestamp.getTime()/1e3;const secondsRounded=Math.floor(seconds);entry.timestamp={seconds:secondsRounded,nanos:Math.floor((seconds-secondsRounded)*1e9)}}else if(typeof entry.timestamp==="string"){entry.timestamp=(0,common_1.zuluToDateObj)(entry.timestamp)}const req=this.metadata.httpRequest;if((0,http_request_1.isRawHttpRequest)(req)){entry.httpRequest=(0,http_request_1.makeHttpRequestData)(req);const traceContext=this.extractTraceFromHeaders(projectId);if(traceContext){if(!this.metadata.trace&&traceContext.trace)entry.trace=traceContext.trace;if(!this.metadata.spanId&&traceContext.spanId)entry.spanId=traceContext.spanId;if(this.metadata.traceSampled===undefined)entry.traceSampled=traceContext.traceSampled}}return entry}toStructuredJSON(projectId=""){const meta=this.metadata;const{textPayload,jsonPayload,insertId,trace,spanId,traceSampled,operation,sourceLocation,labels,...validKeys}=meta;const entry=extend(true,{},validKeys);entry[exports.LABELS_KEY]=meta.labels?Object.assign({},meta.labels):undefined;entry[exports.INSERT_ID_KEY]=meta.insertId||undefined;entry[exports.TRACE_KEY]=meta.trace||undefined;entry[exports.SPAN_ID_KEY]=meta.spanId||undefined;entry[exports.TRACE_SAMPLED_KEY]="traceSampled"in meta&&meta.traceSampled!==null?meta.traceSampled:undefined;entry.message=meta.textPayload||meta.jsonPayload||meta.protoPayload||undefined;entry.message=this.data||entry.message;if(meta.timestamp instanceof Date){entry.timestamp=meta.timestamp.toISOString()}const req=meta.httpRequest;if((0,http_request_1.isRawHttpRequest)(req)){entry.httpRequest=(0,http_request_1.makeHttpRequestData)(req);const traceContext=this.extractTraceFromHeaders(projectId);if(traceContext){if(!entry[exports.TRACE_KEY]&&traceContext.trace)entry[exports.TRACE_KEY]=traceContext.trace;if(!entry[exports.SPAN_ID_KEY]&&traceContext.spanId)entry[exports.SPAN_ID_KEY]=traceContext.spanId;if(entry[exports.TRACE_SAMPLED_KEY]===undefined)entry[exports.TRACE_SAMPLED_KEY]=traceContext.traceSampled}}return entry}extractTraceFromHeaders(projectId){const rawReq=this.metadata.httpRequest;if(rawReq&&"headers"in rawReq){return(0,context_1.getOrInjectContext)(rawReq,projectId,false)}return null}static fromApiResponse_(entry){let data=entry[entry.payload];if(entry.payload==="jsonPayload"){data=(0,common_1.structToObj)(data)}const serializedEntry=new Entry(entry,data);if(entry.timestamp){let ms=Number(entry.timestamp.seconds)*1e3;ms+=Number(entry.timestamp.nanos)/1e6;serializedEntry.metadata.timestamp=new Date(ms)}return serializedEntry}}exports.Entry=Entry;
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.Entry=exports.TRACE_SAMPLED_KEY=exports.TRACE_KEY=exports.SPAN_ID_KEY=exports.SOURCE_LOCATION_KEY=exports.OPERATION_KEY=exports.LABELS_KEY=exports.INSERT_ID_KEY=void 0;const EventId=require("eventid");const extend=require("extend");const common_1=require("./utils/common");const http_request_1=require("./utils/http-request");const context_1=require("./utils/context");const eventId=new EventId;exports.INSERT_ID_KEY="logging.googleapis.com/insertId";exports.LABELS_KEY="logging.googleapis.com/labels";exports.OPERATION_KEY="logging.googleapis.com/operation";exports.SOURCE_LOCATION_KEY="logging.googleapis.com/sourceLocation";exports.SPAN_ID_KEY="logging.googleapis.com/spanId";exports.TRACE_KEY="logging.googleapis.com/trace";exports.TRACE_SAMPLED_KEY="logging.googleapis.com/trace_sampled";class Entry{constructor(metadata,data){this.metadata=extend({timestamp:new Date},metadata);this.metadata.insertId=this.metadata.insertId||eventId.new();this.data=data}toJSON(options={},projectId=""){const entry=extend(true,{},this.metadata);if(this.isObject(this.data)){entry.jsonPayload=(0,common_1.objToStruct)(this.data,{removeCircular:!!options.removeCircular,stringify:true})}else if(typeof this.data==="string"){entry.textPayload=this.data}if(entry.timestamp instanceof Date){const seconds=entry.timestamp.getTime()/1e3;const secondsRounded=Math.floor(seconds);entry.timestamp={seconds:secondsRounded,nanos:Math.floor((seconds-secondsRounded)*1e9)}}else if(typeof entry.timestamp==="string"){entry.timestamp=(0,common_1.zuluToDateObj)(entry.timestamp)}const req=this.metadata.httpRequest;if((0,http_request_1.isRawHttpRequest)(req)){entry.httpRequest=(0,http_request_1.makeHttpRequestData)(req);const traceContext=this.extractTraceFromHeaders(projectId);if(traceContext){if(!this.metadata.trace&&traceContext.trace)entry.trace=traceContext.trace;if(!this.metadata.spanId&&traceContext.spanId)entry.spanId=traceContext.spanId;if(this.metadata.traceSampled===undefined)entry.traceSampled=traceContext.traceSampled}}return entry}toStructuredJSON(projectId="",useMessageField=true){const meta=this.metadata;const{textPayload,jsonPayload,insertId,trace,spanId,traceSampled,operation,sourceLocation,labels,...validKeys}=meta;let entry=extend(true,{},validKeys);entry[exports.LABELS_KEY]=meta.labels?Object.assign({},meta.labels):undefined;entry[exports.INSERT_ID_KEY]=meta.insertId||undefined;entry[exports.TRACE_KEY]=meta.trace||undefined;entry[exports.SPAN_ID_KEY]=meta.spanId||undefined;entry[exports.TRACE_SAMPLED_KEY]="traceSampled"in meta&&meta.traceSampled!==null?meta.traceSampled:undefined;const data=this.data||meta.textPayload||meta.jsonPayload||meta.protoPayload||undefined;if(useMessageField){entry.message=data}else{if(data!==undefined&&data!==null){if(this.isObject(data)){entry=extend(true,{},entry,data)}else if(typeof data==="string"){entry.message=data}else{entry.message=JSON.stringify(data)}}}if(meta.timestamp instanceof Date){entry.timestamp=meta.timestamp.toISOString()}const req=meta.httpRequest;if((0,http_request_1.isRawHttpRequest)(req)){entry.httpRequest=(0,http_request_1.makeHttpRequestData)(req);const traceContext=this.extractTraceFromHeaders(projectId);if(traceContext){if(!entry[exports.TRACE_KEY]&&traceContext.trace)entry[exports.TRACE_KEY]=traceContext.trace;if(!entry[exports.SPAN_ID_KEY]&&traceContext.spanId)entry[exports.SPAN_ID_KEY]=traceContext.spanId;if(entry[exports.TRACE_SAMPLED_KEY]===undefined)entry[exports.TRACE_SAMPLED_KEY]=traceContext.traceSampled}}return entry}extractTraceFromHeaders(projectId){const rawReq=this.metadata.httpRequest;if(rawReq&&"headers"in rawReq){return(0,context_1.getOrInjectContext)(rawReq,projectId,false)}return null}static fromApiResponse_(entry){let data=entry[entry.payload];if(entry.payload==="jsonPayload"){data=(0,common_1.structToObj)(data)}const serializedEntry=new Entry(entry,data);if(entry.timestamp){let ms=Number(entry.timestamp.seconds)*1e3;ms+=Number(entry.timestamp.nanos)/1e6;serializedEntry.metadata.timestamp=new Date(ms)}return serializedEntry}isObject(value){return Object.prototype.toString.call(value)==="[object Object]"}}exports.Entry=Entry;
//# sourceMappingURL=entry.js.map

@@ -24,2 +24,5 @@ /*!

import { LogSeverityFunctions, WriteOptions } from './utils/log-common';
export interface LogSyncOptions {
useMessageField?: boolean;
}
/**

@@ -56,3 +59,4 @@ * A logSync is a named collection of entries in structured log format. In Cloud

transport: Writable;
constructor(logging: Logging, name: string, transport?: Writable);
useMessageField_: boolean;
constructor(logging: Logging, name: string, transport?: Writable, options?: LogSyncOptions);
/**

@@ -59,0 +63,0 @@ * Write a log entry with a severity of "ALERT".

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

"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.LogSync=void 0;const entry_1=require("./entry");const instrumentation_1=require("./utils/instrumentation");const log_common_1=require("./utils/log-common");class LogSync{constructor(logging,name,transport){this.formattedName_=(0,log_common_1.formatLogName)(logging.projectId,name);this.logging=logging;this.name=this.formattedName_.split("/").pop();this.transport=transport||process.stdout}alert(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"ALERT"),options)}critical(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"CRITICAL"),options)}debug(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"DEBUG"),options)}emergency(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"EMERGENCY"),options)}entry(metadataOrData,data){let metadata;if(!data&&metadataOrData!==null&&Object.prototype.hasOwnProperty.call(metadataOrData,"httpRequest")){metadata=metadataOrData;data={}}else if(!data){data=metadataOrData;metadata={}}else{metadata=metadataOrData}return this.logging.entry(metadata,data)}error(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"ERROR"),options)}info(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"INFO"),options)}notice(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"NOTICE"),options)}warning(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"WARNING"),options)}write(entry,opts){var _a;const options=opts?opts:{};let structuredEntries;this.formattedName_=(0,log_common_1.formatLogName)(this.logging.projectId,this.name);try{structuredEntries=(0,instrumentation_1.populateInstrumentationInfo)(entry)[0].map(entry=>{if(!(entry instanceof entry_1.Entry)){entry=this.entry(entry)}return entry.toStructuredJSON(this.logging.projectId)});for(const entry of structuredEntries){entry.logName=this.formattedName_;entry.resource=(0,log_common_1.snakecaseKeys)((_a=options.resource)===null||_a===void 0?void 0:_a.labels)||entry.resource||this.logging.detectedResource;entry[entry_1.LABELS_KEY]=options.labels||entry[entry_1.LABELS_KEY];this.transport.write(JSON.stringify(entry)+"\n")}}catch(err){}}}exports.LogSync=LogSync;
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.LogSync=void 0;const entry_1=require("./entry");const instrumentation_1=require("./utils/instrumentation");const log_common_1=require("./utils/log-common");class LogSync{constructor(logging,name,transport,options){var _a;options=options||{};this.formattedName_=(0,log_common_1.formatLogName)(logging.projectId,name);this.logging=logging;this.name=this.formattedName_.split("/").pop();this.transport=transport||process.stdout;this.useMessageField_=(_a=options.useMessageField)!==null&&_a!==void 0?_a:true}alert(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"ALERT"),options)}critical(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"CRITICAL"),options)}debug(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"DEBUG"),options)}emergency(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"EMERGENCY"),options)}entry(metadataOrData,data){let metadata;if(!data&&metadataOrData!==null&&Object.prototype.hasOwnProperty.call(metadataOrData,"httpRequest")){metadata=metadataOrData;data={}}else if(!data){data=metadataOrData;metadata={}}else{metadata=metadataOrData}return this.logging.entry(metadata,data)}error(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"ERROR"),options)}info(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"INFO"),options)}notice(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"NOTICE"),options)}warning(entry,options){this.write((0,log_common_1.assignSeverityToEntries)(entry,"WARNING"),options)}write(entry,opts){var _a;const options=opts?opts:{};let structuredEntries;this.formattedName_=(0,log_common_1.formatLogName)(this.logging.projectId,this.name);try{structuredEntries=(0,instrumentation_1.populateInstrumentationInfo)(entry)[0].map(entry=>{if(!(entry instanceof entry_1.Entry)){entry=this.entry(entry)}return entry.toStructuredJSON(this.logging.projectId,this.useMessageField_)});for(const entry of structuredEntries){entry.logName=this.formattedName_;entry.resource=(0,log_common_1.snakecaseKeys)((_a=options.resource)===null||_a===void 0?void 0:_a.labels)||entry.resource||this.logging.detectedResource;entry[entry_1.LABELS_KEY]=options.labels||entry[entry_1.LABELS_KEY];this.transport.write(JSON.stringify(entry)+"\n")}}catch(err){}}}exports.LogSync=LogSync;
//# sourceMappingURL=log-sync.js.map

@@ -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 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;
"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);const lroOptions={auth:this.auth,grpc:"grpc"in this._gaxGrpc?this._gaxGrpc.grpc:undefined};if(opts.fallback==="rest"){lroOptions.protoJson=protoFilesRoot;lroOptions.httpRules=[{selector:"google.longrunning.Operations.CancelOperation",post:"/v2/{name=*/*/locations/*/operations/*}:cancel",body:"*",additional_bindings:[{post:"/v2/{name=projects/*/locations/*/operations/*}:cancel",body:"*"},{post:"/v2/{name=organizations/*/locations/*/operations/*}:cancel",body:"*"},{post:"/v2/{name=folders/*/locations/*/operations/*}:cancel",body:"*"},{post:"/v2/{name=billingAccounts/*/locations/*/operations/*}:cancel",body:"*"}]},{selector:"google.longrunning.Operations.GetOperation",get:"/v2/{name=*/*/locations/*/operations/*}",additional_bindings:[{get:"/v2/{name=projects/*/locations/*/operations/*}"},{get:"/v2/{name=organizations/*/locations/*/operations/*}"},{get:"/v2/{name=folders/*/locations/*/operations/*}"},{get:"/v2/{name=billingAccounts/*/operations/*}"}]},{selector:"google.longrunning.Operations.ListOperations",get:"/v2/{name=*/*/locations/*}/operations",additional_bindings:[{get:"/v2/{name=projects/*/locations/*}/operations"},{get:"/v2/{name=organizations/*/locations/*}/operations"},{get:"/v2/{name=folders/*/locations/*}/operations"},{get:"/v2/{name=billingAccounts/*/locations/*}/operations"}]}]}this.operationsClient=this._gaxModule.lro(lroOptions).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

@@ -36,3 +36,3 @@ /// <reference types="node" />

* The options accepted by the constructor are described in detail
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance).
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
* The common options are:

@@ -60,7 +60,6 @@ * @param {object} [options.credentials] - Credentials object.

* Follows the structure of {@link gapicConfig}.
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
* In fallback mode, a special browser-compatible transport implementation is used
* instead of gRPC transport. In browser context (if the `window` object is defined)
* the fallback mode is enabled automatically; set `options.fallback` to `false`
* if you need to override this behavior.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* For more information, please check the
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
*/

@@ -67,0 +66,0 @@ constructor(opts?: ClientOptions);

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

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

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

[![Guide Me](_static/guide-me.svg)](https://console.cloud.google.com/?walkthrough_id=logging__logging-nodejs)
[![Guide Me](https://raw.githubusercontent.com/googleapis/nodejs-logging/main/_static/guide-me.svg)](https://console.cloud.google.com/?walkthrough_id=logging__logging-nodejs)

@@ -30,0 +30,0 @@

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 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

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

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