Send feedback
Class AppProfile (3.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.8.0 keyboard_arrow_down
Create an app profile object to interact with your app profile.
Package
@google-cloud/bigtable
Example
const { Bigtable } = require ( '@google-cloud/bigtable' );
const bigtable = new Bigtable ();
const instance = bigtable . instance ( 'my-instance' );
const appProfile = instance . appProfile ( 'my-app-profile' );
Constructors
(constructor)(instance, id)
constructor ( instance : Instance , id : string );
Constructs a new instance of the AppProfile
class
Parameters
Name Description instance
Instance
id
string
Properties
bigtable
id
instance
metadata ?: google . bigtable . admin . v2 . IAppProfile ;
name
Methods
create(options)
create ( options : AppProfileOptions ) : Promise<CreateAppProfileResponse> ;
Parameter
Returns
create(options, callback)
create ( options : AppProfileOptions , callback : CreateAppProfileCallback ) : void ;
Parameters
Returns
create(callback)
create ( callback : CreateAppProfileCallback ) : void ;
Parameter
Returns
delete(options)
delete ( options ?: DeleteAppProfileOptions ) : Promise<DeleteAppProfileResponse> ;
Parameter
Returns
delete(options, callback)
delete ( options : DeleteAppProfileOptions , callback : DeleteAppProfileCallback ) : void ;
Parameters
Returns
delete(callback)
delete ( callback : DeleteAppProfileCallback ) : void ;
Parameter
Returns
exists(options)
exists ( options ?: CallOptions ) : Promise<AppProfileExistsResponse> ;
Parameter
Name Description options
CallOptions
Returns
exists(options, callback)
exists ( options : CallOptions , callback : AppProfileExistsCallback ) : void ;
Parameters
Returns
exists(callback)
exists ( callback : AppProfileExistsCallback ) : void ;
Parameter
Returns
static formatAppProfile_ ( options : AppProfileOptions ) : google . bigtable . admin . v2 . IAppProfile ;
Formats a app profile options object into proto format.
Parameter
Returns
Type Description IAppProfile {object}
Example
// Any cluster routing:
Family . formatAppProfile_ ({
routing : 'any' ,
description : 'My App Profile' ,
});
// {
// multiClusterRoutingUseAny: {},
// description: 'My App Profile',
// }
// Single cluster routing:
const cluster = myInstance . cluster ( 'my-cluster' );
Family . formatAppProfile_ ({
routing : cluster ,
allowTransactionalWrites : true ,
description : 'My App Profile' ,
});
// {
// singleClusterRouting: {
// clusterId: 'my-cluster',
// allowTransactionalWrites: true,
// },
// description: 'My App Profile',
// }
get(options)
get ( options ?: CallOptions ) : Promise<GetAppProfileResponse> ;
Parameter
Name Description options
CallOptions
Returns
get(options, callback)
get ( options : CallOptions , callback : GetAppProfileCallback ) : void ;
Parameters
Returns
get(callback)
get ( callback : GetAppProfileCallback ) : void ;
Parameter
Returns
getMetadata ( options ?: CallOptions ) : Promise<GetAppProfileMetadataResponse> ;
Parameter
Name Description options
CallOptions
Returns
getMetadata ( options : CallOptions , callback : GetAppProfileMetadataCallback ) : void ;
Parameters
Returns
getMetadata ( callback : GetAppProfileMetadataCallback ) : void ;
Parameter
Returns
setMetadata ( metadata : AppProfileOptions , options ?: CallOptions ) : Promise<SetAppProfileMetadataResponse> ;
Parameters
Returns
setMetadata ( metadata : AppProfileOptions , options : CallOptions , callback : SetAppProfileMetadataCallback ) : void ;
Parameters
Returns
setMetadata ( metadata : AppProfileOptions , callback : SetAppProfileMetadataCallback ) : void ;
Parameters
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 2024-12-19 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 2024-12-19 UTC."],[],[]]