Class: Credentials
dg.Credentials
Represents connection credentials Usually it is a login and a password pair Passwords are stored in the secured credentials storage See also: https://datagrok.ai/help/govern/security
Hierarchy
↳
Credentials
Constructors
constructor
• new Credentials(dart
)
Parameters
Name | Type |
---|---|
dart | any |
Overrides
Defined in
Properties
dart
• dart: any
Inherited from
Defined in
parameters
• parameters: any
Represents credentials parameters that are hidden from other users and when they are used real values of them will be replaced by values from openParameters. Parameters can be filled with key-value entries that are suitable for the entity that owns that Credentials.
Defined in
Accessors
author
• get
author(): User
Who created entity *
Returns
Inherited from
Entity.author
Defined in
createdOn
• get
createdOn(): Dayjs
Time when entity was created *
Returns
Dayjs
Inherited from
Entity.createdOn
Defined in
friendlyName
• get
friendlyName(): string
Entity friendly name
Returns
string
Inherited from
Entity.friendlyName
Defined in
• set
friendlyName(x
): void
Parameters
Name | Type |
---|---|
x | string |
Returns
void
Inherited from
Entity.friendlyName
Defined in
id
• get
id(): string
Entity ID (GUID)
Returns
string
Inherited from
Entity.id
Defined in
• set
id(x
): void
Parameters
Name | Type |
---|---|
x | string |
Returns
void
Inherited from
Entity.id
Defined in
name
• get
name(): string
Entity short name
Returns
string
Inherited from
Entity.name
Defined in
• set
name(x
): void
Parameters
Name | Type |
---|---|
x | string |
Returns
void
Inherited from
Entity.name
Defined in
nqName
• get
nqName(): string
Entity full-qualified name
Returns
string
Inherited from
Entity.nqName
Defined in
openParameters
• get
openParameters(): Record
<string
, string
>
Represents opened credential parameters. They will be showed, for example, in the connection edit form. They are updated when parameters are changed and instance is saved. See also CredentialsDataSource.
Returns
Record
<string
, string
>
Defined in
path
• get
path(): string
Entity path
Returns
string
Inherited from
Entity.path
Defined in
updatedOn
• get
updatedOn(): Dayjs
Time when entity was updated *
Returns
Dayjs
Inherited from
Entity.updatedOn
Defined in
Methods
getProperties
▸ getProperties(): Promise
<{ [index: string]
: any
; }>
Gets entity properties
Returns
Promise
<{ [index: string]
: any
; }>
Inherited from
Defined in
hasTag
▸ hasTag(tag
): boolean
Parameters
Name | Type |
---|---|
tag | string |
Returns
boolean
Inherited from
Defined in
newId
▸ newId(): void
Generates new id for this entity.
Returns
void
Inherited from
Defined in
setProperties
▸ setProperties(props
): Promise
<any
>
Sets entity properties
Parameters
Name | Type |
---|---|
props | Object |
Returns
Promise
<any
>
Inherited from
Defined in
tag
▸ tag(tag
): boolean
Adds a specified tag
Parameters
Name | Type |
---|---|
tag | string |
Returns
boolean
Inherited from
Defined in
toString
▸ toString(): string
Returns a string representing the object
Returns
string
Inherited from
Defined in
unTag
▸ unTag(tag
): boolean
Removes a specified tag
Parameters
Name | Type |
---|---|
tag | string |
Returns
boolean