Class QSecretAccessRights
Description of all the secrets a task will have access to when running.
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public class QSecretAccessRights
Constructors
QSecretAccessRights()
Build an empty list of secrets access rights.
Declaration
public QSecretAccessRights()
Properties
ByPrefix
The secrets the task will have access to, described using a prefix key match.
Declaration
public List<QSecretAccessRightByPrefix> ByPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| List<QSecretAccessRightByPrefix> |
BySecret
The secrets the task will have access to, described using an exacty key match.
Declaration
public List<QSecretAccessRightBySecret> BySecret { get; set; }
Property Value
| Type | Description |
|---|---|
| List<QSecretAccessRightBySecret> |
Methods
AddSecretByKey(string)
Add key as an available secret to
the task.
Declaration
public QSecretAccessRights AddSecretByKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Key to exactly match secrets on |
Returns
| Type | Description |
|---|---|
| QSecretAccessRights |
AddSecretByPrefix(string)
Add all secrets starting with prefix as
available to the task.
Declaration
public QSecretAccessRights AddSecretByPrefix(string prefix)
Parameters
| Type | Name | Description |
|---|---|---|
| string | prefix | Prefix to match secret against |
Returns
| Type | Description |
|---|---|
| QSecretAccessRights |
AddSecretsByKey(IEnumerable<string>)
Add all keys as available secrets to the
task.
Declaration
public QSecretAccessRights AddSecretsByKey(IEnumerable<string> keys)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | keys | Keys to exactly match secrets on |
Returns
| Type | Description |
|---|---|
| QSecretAccessRights |
AddSecretsByPrefix(IEnumerable<string>)
Add all secrets starting with any of the prefixes as
available to the task.
Declaration
public QSecretAccessRights AddSecretsByPrefix(IEnumerable<string> prefixes)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | prefixes | Prefixes to match secret against |
Returns
| Type | Description |
|---|---|
| QSecretAccessRights |