TypeScript Function API • Docs
TypeScript Function API / asset_builder / SecretPropBuilder
Class: SecretPropBuilder
Creates a prop [and a socket] in an asset with which to connect a secret
Example
const secretPropName = new SecretPropBuilder()
.setName("credential")
.setSecretKind("DigitalOcean Credential")
.build();
Implements
Constructors
new SecretPropBuilder()
new SecretPropBuilder():
SecretPropBuilder
Returns
Defined in
Properties
prop
prop:
SecretPropDefinition
Defined in
Methods
setName()
setName(
name
):this
The secret prop name. This will appear in the model UI and can be any value
Parameters
• name: string
the name of the secret prop
Returns
this
this
Example
.setName("token")
Implementation of
Defined in
setSecretKind()
setSecretKind(
kind
):this
The type of the secret - relates to the Secret Definition Name
Parameters
• kind: string
Returns
this
this
Example
.setSecretKind("DigitalOcean Credential")
Implementation of
ISecretPropBuilder
.setSecretKind
Defined in
setConnectionAnnotation()
setConnectionAnnotation(
annotation
):this
Parameters
• annotation: string
Returns
this
Implementation of
ISecretPropBuilder
.setConnectionAnnotation
Defined in
setDocLinkRef()
setDocLinkRef(
ref
):this
Parameters
• ref: string
Returns
this
Implementation of
ISecretPropBuilder
.setDocLinkRef
Defined in
setDocLink()
setDocLink(
link
):this
Parameters
• link: string
Returns
this
Implementation of
Defined in
skipInputSocket()
skipInputSocket():
this
Whether the prop should disable the auto-creation of an input socket
Returns
this
this
Example
.skipInputSocket()
Implementation of
ISecretPropBuilder
.skipInputSocket
Defined in
build()
build():
SecretPropDefinition