ConfigServiceV2

google.logging.v2. ConfigServiceV2

Represents a ConfigServiceV2

Constructor

new ConfigServiceV2(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ConfigServiceV2 service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createExclusion(request, callback) → {undefined}

Calls CreateExclusion.

Parameters:
Name Type Description
request google.logging.v2.ICreateExclusionRequest

CreateExclusionRequest message or plain object

callback google.logging.v2.ConfigServiceV2.CreateExclusionCallback

Node-style callback called with the error, if any, and LogExclusion

Returns:
Type Description
undefined

createExclusion(request) → {Promise.<google.logging.v2.LogExclusion>}

Calls CreateExclusion.

Parameters:
Name Type Description
request google.logging.v2.ICreateExclusionRequest

CreateExclusionRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogExclusion>

Promise

createSink(request, callback) → {undefined}

Calls CreateSink.

Parameters:
Name Type Description
request google.logging.v2.ICreateSinkRequest

CreateSinkRequest message or plain object

callback google.logging.v2.ConfigServiceV2.CreateSinkCallback

Node-style callback called with the error, if any, and LogSink

Returns:
Type Description
undefined

createSink(request) → {Promise.<google.logging.v2.LogSink>}

Calls CreateSink.

Parameters:
Name Type Description
request google.logging.v2.ICreateSinkRequest

CreateSinkRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogSink>

Promise

deleteExclusion(request, callback) → {undefined}

Calls DeleteExclusion.

Parameters:
Name Type Description
request google.logging.v2.IDeleteExclusionRequest

DeleteExclusionRequest message or plain object

callback google.logging.v2.ConfigServiceV2.DeleteExclusionCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteExclusion(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteExclusion.

Parameters:
Name Type Description
request google.logging.v2.IDeleteExclusionRequest

DeleteExclusionRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

deleteSink(request, callback) → {undefined}

Calls DeleteSink.

Parameters:
Name Type Description
request google.logging.v2.IDeleteSinkRequest

DeleteSinkRequest message or plain object

callback google.logging.v2.ConfigServiceV2.DeleteSinkCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteSink(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteSink.

Parameters:
Name Type Description
request google.logging.v2.IDeleteSinkRequest

DeleteSinkRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getBucket(request, callback) → {undefined}

Calls GetBucket.

Parameters:
Name Type Description
request google.logging.v2.IGetBucketRequest

GetBucketRequest message or plain object

callback google.logging.v2.ConfigServiceV2.GetBucketCallback

Node-style callback called with the error, if any, and LogBucket

Returns:
Type Description
undefined

getBucket(request) → {Promise.<google.logging.v2.LogBucket>}

Calls GetBucket.

Parameters:
Name Type Description
request google.logging.v2.IGetBucketRequest

GetBucketRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogBucket>

Promise

getCmekSettings(request, callback) → {undefined}

Calls GetCmekSettings.

Parameters:
Name Type Description
request google.logging.v2.IGetCmekSettingsRequest

GetCmekSettingsRequest message or plain object

callback google.logging.v2.ConfigServiceV2.GetCmekSettingsCallback

Node-style callback called with the error, if any, and CmekSettings

Returns:
Type Description
undefined

getCmekSettings(request) → {Promise.<google.logging.v2.CmekSettings>}

Calls GetCmekSettings.

Parameters:
Name Type Description
request google.logging.v2.IGetCmekSettingsRequest

GetCmekSettingsRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.CmekSettings>

Promise

getExclusion(request, callback) → {undefined}

Calls GetExclusion.

Parameters:
Name Type Description
request google.logging.v2.IGetExclusionRequest

GetExclusionRequest message or plain object

callback google.logging.v2.ConfigServiceV2.GetExclusionCallback

Node-style callback called with the error, if any, and LogExclusion

Returns:
Type Description
undefined

getExclusion(request) → {Promise.<google.logging.v2.LogExclusion>}

Calls GetExclusion.

Parameters:
Name Type Description
request google.logging.v2.IGetExclusionRequest

GetExclusionRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogExclusion>

Promise

getSink(request, callback) → {undefined}

Calls GetSink.

Parameters:
Name Type Description
request google.logging.v2.IGetSinkRequest

GetSinkRequest message or plain object

callback google.logging.v2.ConfigServiceV2.GetSinkCallback

Node-style callback called with the error, if any, and LogSink

Returns:
Type Description
undefined

getSink(request) → {Promise.<google.logging.v2.LogSink>}

Calls GetSink.

Parameters:
Name Type Description
request google.logging.v2.IGetSinkRequest

GetSinkRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogSink>

Promise

listBuckets(request, callback) → {undefined}

Calls ListBuckets.

Parameters:
Name Type Description
request google.logging.v2.IListBucketsRequest

ListBucketsRequest message or plain object

callback google.logging.v2.ConfigServiceV2.ListBucketsCallback

Node-style callback called with the error, if any, and ListBucketsResponse

Returns:
Type Description
undefined

listBuckets(request) → {Promise.<google.logging.v2.ListBucketsResponse>}

Calls ListBuckets.

Parameters:
Name Type Description
request google.logging.v2.IListBucketsRequest

ListBucketsRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.ListBucketsResponse>

Promise

listExclusions(request, callback) → {undefined}

Calls ListExclusions.

Parameters:
Name Type Description
request google.logging.v2.IListExclusionsRequest

ListExclusionsRequest message or plain object

callback google.logging.v2.ConfigServiceV2.ListExclusionsCallback

Node-style callback called with the error, if any, and ListExclusionsResponse

Returns:
Type Description
undefined

listExclusions(request) → {Promise.<google.logging.v2.ListExclusionsResponse>}

Calls ListExclusions.

Parameters:
Name Type Description
request google.logging.v2.IListExclusionsRequest

ListExclusionsRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.ListExclusionsResponse>

Promise

listSinks(request, callback) → {undefined}

Calls ListSinks.

Parameters:
Name Type Description
request google.logging.v2.IListSinksRequest

ListSinksRequest message or plain object

callback google.logging.v2.ConfigServiceV2.ListSinksCallback

Node-style callback called with the error, if any, and ListSinksResponse

Returns:
Type Description
undefined

listSinks(request) → {Promise.<google.logging.v2.ListSinksResponse>}

Calls ListSinks.

Parameters:
Name Type Description
request google.logging.v2.IListSinksRequest

ListSinksRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.ListSinksResponse>

Promise

updateBucket(request, callback) → {undefined}

Calls UpdateBucket.

Parameters:
Name Type Description
request google.logging.v2.IUpdateBucketRequest

UpdateBucketRequest message or plain object

callback google.logging.v2.ConfigServiceV2.UpdateBucketCallback

Node-style callback called with the error, if any, and LogBucket

Returns:
Type Description
undefined

updateBucket(request) → {Promise.<google.logging.v2.LogBucket>}

Calls UpdateBucket.

Parameters:
Name Type Description
request google.logging.v2.IUpdateBucketRequest

UpdateBucketRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogBucket>

Promise

updateCmekSettings(request, callback) → {undefined}

Calls UpdateCmekSettings.

Parameters:
Name Type Description
request google.logging.v2.IUpdateCmekSettingsRequest

UpdateCmekSettingsRequest message or plain object

callback google.logging.v2.ConfigServiceV2.UpdateCmekSettingsCallback

Node-style callback called with the error, if any, and CmekSettings

Returns:
Type Description
undefined

updateCmekSettings(request) → {Promise.<google.logging.v2.CmekSettings>}

Calls UpdateCmekSettings.

Parameters:
Name Type Description
request google.logging.v2.IUpdateCmekSettingsRequest

UpdateCmekSettingsRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.CmekSettings>

Promise

updateExclusion(request, callback) → {undefined}

Calls UpdateExclusion.

Parameters:
Name Type Description
request google.logging.v2.IUpdateExclusionRequest

UpdateExclusionRequest message or plain object

callback google.logging.v2.ConfigServiceV2.UpdateExclusionCallback

Node-style callback called with the error, if any, and LogExclusion

Returns:
Type Description
undefined

updateExclusion(request) → {Promise.<google.logging.v2.LogExclusion>}

Calls UpdateExclusion.

Parameters:
Name Type Description
request google.logging.v2.IUpdateExclusionRequest

UpdateExclusionRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogExclusion>

Promise

updateSink(request, callback) → {undefined}

Calls UpdateSink.

Parameters:
Name Type Description
request google.logging.v2.IUpdateSinkRequest

UpdateSinkRequest message or plain object

callback google.logging.v2.ConfigServiceV2.UpdateSinkCallback

Node-style callback called with the error, if any, and LogSink

Returns:
Type Description
undefined

updateSink(request) → {Promise.<google.logging.v2.LogSink>}

Calls UpdateSink.

Parameters:
Name Type Description
request google.logging.v2.IUpdateSinkRequest

UpdateSinkRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.LogSink>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {ConfigServiceV2}

Creates new ConfigServiceV2 service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
ConfigServiceV2

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CreateExclusionCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#createExclusion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogExclusion <optional>

LogExclusion

CreateSinkCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#createSink.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogSink <optional>

LogSink

DeleteExclusionCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#deleteExclusion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteSinkCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#deleteSink.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetBucketCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#getBucket.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogBucket <optional>

LogBucket

GetCmekSettingsCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#getCmekSettings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.CmekSettings <optional>

CmekSettings

GetExclusionCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#getExclusion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogExclusion <optional>

LogExclusion

GetSinkCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#getSink.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogSink <optional>

LogSink

ListBucketsCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#listBuckets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.ListBucketsResponse <optional>

ListBucketsResponse

ListExclusionsCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#listExclusions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.ListExclusionsResponse <optional>

ListExclusionsResponse

ListSinksCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#listSinks.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.ListSinksResponse <optional>

ListSinksResponse

UpdateBucketCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#updateBucket.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogBucket <optional>

LogBucket

UpdateCmekSettingsCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#updateCmekSettings.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.CmekSettings <optional>

CmekSettings

UpdateExclusionCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#updateExclusion.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogExclusion <optional>

LogExclusion

UpdateSinkCallback(error, responseopt)

Callback as used by google.logging.v2.ConfigServiceV2#updateSink.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.LogSink <optional>

LogSink