Class AppProfile (4.6.1)
Stay organized with collections
Save and categorize content based on your preferences.
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>;
create(options, callback)
create(options: AppProfileOptions, callback: CreateAppProfileCallback): void;
Returns |
---|
Type | Description |
void | |
create(callback)
create(callback: CreateAppProfileCallback): void;
Returns |
---|
Type | Description |
void | |
delete(options)
delete(options?: DeleteAppProfileOptions): Promise<DeleteAppProfileResponse>;
delete(options, callback)
delete(options: DeleteAppProfileOptions, callback: DeleteAppProfileCallback): void;
Returns |
---|
Type | Description |
void | |
delete(callback)
delete(callback: DeleteAppProfileCallback): void;
Returns |
---|
Type | Description |
void | |
exists(options)
exists(options?: CallOptions): Promise<AppProfileExistsResponse>;
Parameter |
---|
Name | Description |
options |
CallOptions
|
exists(options, callback)
exists(options: CallOptions, callback: AppProfileExistsCallback): void;
Returns |
---|
Type | Description |
void | |
exists(callback)
exists(callback: AppProfileExistsCallback): void;
Returns |
---|
Type | Description |
void | |
static formatAppProfile_(options: AppProfileOptions): google.bigtable.admin.v2.IAppProfile;
Formats a app profile options object into proto format.
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
|
get(options, callback)
get(options: CallOptions, callback: GetAppProfileCallback): void;
Returns |
---|
Type | Description |
void | |
get(callback)
get(callback: GetAppProfileCallback): void;
Returns |
---|
Type | Description |
void | |
getMetadata(options?: CallOptions): Promise<GetAppProfileMetadataResponse>;
Parameter |
---|
Name | Description |
options |
CallOptions
|
getMetadata(options: CallOptions, callback: GetAppProfileMetadataCallback): void;
Returns |
---|
Type | Description |
void | |
getMetadata(callback: GetAppProfileMetadataCallback): void;
Returns |
---|
Type | Description |
void | |
setMetadata(metadata: AppProfileOptions, options?: CallOptions): Promise<SetAppProfileMetadataResponse>;
setMetadata(metadata: AppProfileOptions, options: CallOptions, callback: SetAppProfileMetadataCallback): void;
Returns |
---|
Type | Description |
void | |
setMetadata(metadata: AppProfileOptions, callback: SetAppProfileMetadataCallback): void;
Returns |
---|
Type | Description |
void | |
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-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}