AppProfile
Source: app-profile.
Create an app profile object to interact with your app profile.
new AppProfile(instance, name)
Example
const Bigtable = require('@google-cloud/bigtable');
const bigtable = new Bigtable();
const instance = bigtable.instance('my-instance');
const appProfile = instance.appProfile('my-app-profile');
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
instance |
|
|
The parent instance of this app profile. |
|
name |
|
|
Name of the app profile. |
Methods
create([options])
Create an app profile.
Example
include:samples/document-snippets/app-profile.js
region_tag:bigtable_create_app_profile
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
options |
object |
Yes |
delete([options][, callback])
Delete the app profile.
Example
include:samples/document-snippets/app-profile.js
region_tag:bigtable_delete_app_profile
Parameters
| Name | Type | Optional | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
options |
object |
Yes |
Cluster creation options. Values in
|
||||||||||||
|
callback |
function() |
Yes |
The callback function. Values in
|
exists([gaxOptions], callback)
Check if an app profile exists.
Example
include:samples/document-snippets/app-profile.js
region_tag:bigtable_exists_app_profile
Parameters
| Name | Type | Optional | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
gaxOptions |
object |
Yes |
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html. |
||||||||||||
|
callback |
function() |
|
The callback function. Values in
|
get([gaxOptions])
Get a appProfile if it exists.
Example
include:samples/document-snippets/app-profile.js
region_tag:bigtable_get_app_profile
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
gaxOptions |
object |
Yes |
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html. |
getMetadata([gaxOptions], callback)
Get the app profile metadata.
Example
include:samples/document-snippets/app-profile.js
region_tag:bigtable_app_profile_get_meta
Parameters
| Name | Type | Optional | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
gaxOptions |
object |
Yes |
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html. |
||||||||||||||||
|
callback |
function() |
|
The callback function. Values in
|
setMetadata(metadata[, gaxOptions], callback)
Set the app profile metadata.
Example
include:samples/document-snippets/app-profile.js
region_tag:bigtable_app_profile_set_meta
Parameters
| Name | Type | Optional | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
metadata |
object |
|
See Instance#createAppProfile for the available metadata options. |
||||||||||||
|
gaxOptions |
object |
Yes |
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html. |
||||||||||||
|
callback |
function() |
|
The callback function. Values in
|