Credential type
CredentialEnumParameter
¶
Bases: CredentialParameter
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
values
|
list[Union[str, tuple[str, str]]]
|
An array containing all enum values. If 'default' is specified and not part of this array, it will be added as an additional enum value. Enum values are not localizable. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
default
|
Optional[str]
|
The default value of the enum. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
display_order
|
int
|
Determines the order parameters will be displayed in the UI. |
0
|
Source code in aria/ops/definition/credential_type.py
CredentialIntParameter
¶
Bases: CredentialParameter
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
display_order
|
int
|
Determines the order parameters will be displayed in the UI. |
0
|
Source code in aria/ops/definition/credential_type.py
CredentialParameter
¶
Bases: ABC
Source code in aria/ops/definition/credential_type.py
__init__(key, label=None, required=True, display_order=0)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
display_order
|
0
|
Determines the order parameters will be displayed in the UI. |
0
|
Source code in aria/ops/definition/credential_type.py
CredentialPasswordParameter
¶
Bases: CredentialParameter
Source code in aria/ops/definition/credential_type.py
__init__(key, label=None, required=True, display_order=0)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
display_order
|
int
|
Determines the order parameters will be displayed in the UI. |
0
|
Source code in aria/ops/definition/credential_type.py
CredentialStringParameter
¶
Bases: CredentialParameter
Source code in aria/ops/definition/credential_type.py
__init__(key, label=None, required=True, display_order=0)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
display_order
|
int
|
Determines the order parameters will be displayed in the UI. |
0
|
Source code in aria/ops/definition/credential_type.py
CredentialType
¶
Source code in aria/ops/definition/credential_type.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
|
add_parameter(credential_parameter)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credential_parameter
|
CredentialParameter
|
The parameter to add to the credential |
required |
Source code in aria/ops/definition/credential_type.py
add_parameters(credential_parameters)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credential_parameters
|
list[CredentialParameter]
|
A list of parameters to add to the credential |
required |
Source code in aria/ops/definition/credential_type.py
define_enum_parameter(key, values, label=None, default=None, required=True)
¶
Create a new enum credential parameter and apply it to this credential definition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
values
|
list[Union[str, tuple[str, str]]]
|
An array containing all enum values. If 'default' is specified and not part of this array, it will be added as an additional enum value. Enum values are not localizable. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
default
|
Optional[str]
|
The default value of the enum. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
CredentialEnumParameter
|
The created enum parameter definition. |
Source code in aria/ops/definition/credential_type.py
define_int_parameter(key, label=None, required=True)
¶
Create a new int credential parameter and apply it to this credential definition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
CredentialIntParameter
|
The created int parameter definition. |
Source code in aria/ops/definition/credential_type.py
define_password_parameter(key, label=None, required=True)
¶
Create a new password credential parameter and apply it to this credential definition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
CredentialPasswordParameter
|
The created password parameter definition. |
Source code in aria/ops/definition/credential_type.py
define_string_parameter(key, label=None, required=True)
¶
Create a new string credential parameter and apply it to this credential definition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key
|
str
|
Used to identify the parameter. |
required |
label
|
Optional[str]
|
Label that is displayed in the VMware Aria Operations UI. Defaults to the key. |
None
|
required
|
bool
|
True if user is required to provide this parameter. Defaults to True. |
True
|
Returns:
Type | Description |
---|---|
CredentialStringParameter
|
The created string parameter definition. |