Send feedback
Class v1p2beta1.AssetServiceClient (3.15.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.15.5 keyboard_arrow_down
Asset service definition. v1p2beta1
Package
@google-cloud/asset!
Constructors
(constructor)(opts)
constructor ( opts ?: ClientOptions );
Construct an instance of AssetServiceClient.
Parameter
Name Description opts
ClientOptions
Properties
apiEndpoint
static get apiEndpoint () : string ;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
Property Value
assetServiceStub
assetServiceStub ?: Promise <{
[ name : string ] : Function ;
}>;
Property Value
Type Description Promise <{
[name: string]: Function ;
}>
auth
Property Value
Type Description gax.GoogleAuth
descriptors
descriptors : Descriptors ;
Property Value
Type Description Descriptors
innerApiCalls
innerApiCalls : {
[ name : string ] : Function ;
};
Property Value
Type Description {
[name: string]: Function ;
}
pathTemplates
pathTemplates : {
[ name : string ] : gax . PathTemplate ;
};
Property Value
Type Description {
[name: string]: gax.PathTemplate ;
}
port
static get port () : number ;
The port for this API service.
Property Value
scopes
static get scopes () : string [];
The scopes needed to make gRPC calls for every method defined in this service.
Property Value
servicePath
static get servicePath () : string ;
The DNS address for this API service.
Property Value
warn
warn : ( code : string , message : string , warnType ?: string ) = > void ;
Property Value
Type Description (code: string, message: string, warnType?: string) => void
Methods
close()
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns
Type Description Promise <void>{Promise} A promise that resolves when the client is closed.
createFeed(request, options)
createFeed ( request ?: protos . google . cloud . asset . v1p2beta1 . ICreateFeedRequest , options ?: CallOptions ) : Promise <[ protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . ICreateFeedRequest | undefined , {} | undefined ]>;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest
options
CallOptions
Returns
Type Description Promise <[protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest | undefined, {} | undefined]>
createFeed(request, options, callback)
createFeed ( request : protos . google . cloud . asset . v1p2beta1 . ICreateFeedRequest , options : CallOptions , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . ICreateFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest
options
CallOptions
callback
Callback <protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest | null | undefined, {} | null | undefined>
Returns
createFeed(request, callback)
createFeed ( request : protos . google . cloud . asset . v1p2beta1 . ICreateFeedRequest , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . ICreateFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest
callback
Callback <protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.ICreateFeedRequest | null | undefined, {} | null | undefined>
Returns
deleteFeed(request, options)
deleteFeed ( request ?: protos . google . cloud . asset . v1p2beta1 . IDeleteFeedRequest , options ?: CallOptions ) : Promise <[ protos . google . protobuf . IEmpty , protos . google . cloud . asset . v1p2beta1 . IDeleteFeedRequest | undefined , {} | undefined ]>;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest
options
CallOptions
Returns
Type Description Promise <[protos.google.protobuf.IEmpty , protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest | undefined, {} | undefined]>
deleteFeed(request, options, callback)
deleteFeed ( request : protos . google . cloud . asset . v1p2beta1 . IDeleteFeedRequest , options : CallOptions , callback : Callback<protos . google . protobuf . IEmpty , protos . google . cloud . asset . v1p2beta1 . IDeleteFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest
options
CallOptions
callback
Callback <protos.google.protobuf.IEmpty , protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest | null | undefined, {} | null | undefined>
Returns
deleteFeed(request, callback)
deleteFeed ( request : protos . google . cloud . asset . v1p2beta1 . IDeleteFeedRequest , callback : Callback<protos . google . protobuf . IEmpty , protos . google . cloud . asset . v1p2beta1 . IDeleteFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest
callback
Callback <protos.google.protobuf.IEmpty , protos.google.cloud.asset.v1p2beta1.IDeleteFeedRequest | null | undefined, {} | null | undefined>
Returns
folderFeedPath(folder, feed)
folderFeedPath ( folder : string , feed : string ) : string ;
Return a fully-qualified folderFeed resource name string.
Parameters
Name Description folder
string
feed
string
Returns
Type Description string {string} Resource name string.
getFeed(request, options)
getFeed ( request ?: protos . google . cloud . asset . v1p2beta1 . IGetFeedRequest , options ?: CallOptions ) : Promise <[ protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . IGetFeedRequest | undefined , {} | undefined ]>;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IGetFeedRequest
options
CallOptions
Returns
Type Description Promise <[protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.IGetFeedRequest | undefined, {} | undefined]>
getFeed(request, options, callback)
getFeed ( request : protos . google . cloud . asset . v1p2beta1 . IGetFeedRequest , options : CallOptions , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . IGetFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IGetFeedRequest
options
CallOptions
callback
Callback <protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.IGetFeedRequest | null | undefined, {} | null | undefined>
Returns
getFeed(request, callback)
getFeed ( request : protos . google . cloud . asset . v1p2beta1 . IGetFeedRequest , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . IGetFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IGetFeedRequest
callback
Callback <protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.IGetFeedRequest | null | undefined, {} | null | undefined>
Returns
getProjectId()
getProjectId () : Promise<string> ;
Returns
Type Description Promise <string>
getProjectId(callback)
getProjectId ( callback : Callback<string , undefined , undefined >) : void ;
Parameter
Name Description callback
Callback <string, undefined, undefined>
Returns
initialize()
initialize () : Promise <{
[ name : string ] : Function ;
}>;
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns
Type Description Promise <{
[name: string]: Function ;
}>{Promise} A promise that resolves to an authenticated service stub.
listFeeds(request, options)
listFeeds ( request ?: protos . google . cloud . asset . v1p2beta1 . IListFeedsRequest , options ?: CallOptions ) : Promise <[ protos . google . cloud . asset . v1p2beta1 . IListFeedsResponse , protos . google . cloud . asset . v1p2beta1 . IListFeedsRequest | undefined , {} | undefined ]>;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IListFeedsRequest
options
CallOptions
Returns
Type Description Promise <[protos.google.cloud.asset.v1p2beta1.IListFeedsResponse , protos.google.cloud.asset.v1p2beta1.IListFeedsRequest | undefined, {} | undefined]>
listFeeds(request, options, callback)
listFeeds ( request : protos . google . cloud . asset . v1p2beta1 . IListFeedsRequest , options : CallOptions , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IListFeedsResponse , protos . google . cloud . asset . v1p2beta1 . IListFeedsRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IListFeedsRequest
options
CallOptions
callback
Callback <protos.google.cloud.asset.v1p2beta1.IListFeedsResponse , protos.google.cloud.asset.v1p2beta1.IListFeedsRequest | null | undefined, {} | null | undefined>
Returns
listFeeds(request, callback)
listFeeds ( request : protos . google . cloud . asset . v1p2beta1 . IListFeedsRequest , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IListFeedsResponse , protos . google . cloud . asset . v1p2beta1 . IListFeedsRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IListFeedsRequest
callback
Callback <protos.google.cloud.asset.v1p2beta1.IListFeedsResponse , protos.google.cloud.asset.v1p2beta1.IListFeedsRequest | null | undefined, {} | null | undefined>
Returns
matchFeedFromFolderFeedName(folderFeedName)
matchFeedFromFolderFeedName ( folderFeedName : string ) : string | number ;
Parse the feed from FolderFeed resource.
Parameter
Name Description folderFeedName
string
A fully-qualified path representing folder_feed resource.
Returns
Type Description string | number {string} A string representing the feed.
matchFeedFromOrganizationFeedName(organizationFeedName)
matchFeedFromOrganizationFeedName ( organizationFeedName : string ) : string | number ;
Parse the feed from OrganizationFeed resource.
Parameter
Name Description organizationFeedName
string
A fully-qualified path representing organization_feed resource.
Returns
Type Description string | number {string} A string representing the feed.
matchFeedFromProjectFeedName(projectFeedName)
matchFeedFromProjectFeedName ( projectFeedName : string ) : string | number ;
Parse the feed from ProjectFeed resource.
Parameter
Name Description projectFeedName
string
A fully-qualified path representing project_feed resource.
Returns
Type Description string | number {string} A string representing the feed.
matchFolderFromFolderFeedName(folderFeedName)
matchFolderFromFolderFeedName ( folderFeedName : string ) : string | number ;
Parse the folder from FolderFeed resource.
Parameter
Name Description folderFeedName
string
A fully-qualified path representing folder_feed resource.
Returns
Type Description string | number {string} A string representing the folder.
matchOrganizationFromOrganizationFeedName(organizationFeedName)
matchOrganizationFromOrganizationFeedName ( organizationFeedName : string ) : string | number ;
Parse the organization from OrganizationFeed resource.
Parameter
Name Description organizationFeedName
string
A fully-qualified path representing organization_feed resource.
Returns
Type Description string | number {string} A string representing the organization.
matchProjectFromProjectFeedName(projectFeedName)
matchProjectFromProjectFeedName ( projectFeedName : string ) : string | number ;
Parse the project from ProjectFeed resource.
Parameter
Name Description projectFeedName
string
A fully-qualified path representing project_feed resource.
Returns
Type Description string | number {string} A string representing the project.
organizationFeedPath(organization, feed)
organizationFeedPath ( organization : string , feed : string ) : string ;
Return a fully-qualified organizationFeed resource name string.
Parameters
Name Description organization
string
feed
string
Returns
Type Description string {string} Resource name string.
projectFeedPath(project, feed)
projectFeedPath ( project : string , feed : string ) : string ;
Return a fully-qualified projectFeed resource name string.
Parameters
Name Description project
string
feed
string
Returns
Type Description string {string} Resource name string.
updateFeed(request, options)
updateFeed ( request ?: protos . google . cloud . asset . v1p2beta1 . IUpdateFeedRequest , options ?: CallOptions ) : Promise <[ protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . IUpdateFeedRequest | undefined , {} | undefined ]>;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest
options
CallOptions
Returns
Type Description Promise <[protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest | undefined, {} | undefined]>
updateFeed(request, options, callback)
updateFeed ( request : protos . google . cloud . asset . v1p2beta1 . IUpdateFeedRequest , options : CallOptions , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . IUpdateFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest
options
CallOptions
callback
Callback <protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest | null | undefined, {} | null | undefined>
Returns
updateFeed(request, callback)
updateFeed ( request : protos . google . cloud . asset . v1p2beta1 . IUpdateFeedRequest , callback : Callback<protos . google . cloud . asset . v1p2beta1 . IFeed , protos . google . cloud . asset . v1p2beta1 . IUpdateFeedRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest
callback
Callback <protos.google.cloud.asset.v1p2beta1.IFeed , protos.google.cloud.asset.v1p2beta1.IUpdateFeedRequest | null | undefined, {} | null | undefined>
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-17 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-17 UTC."],[],[]]