AssetSourceCredentials

class oci.cloud_bridge.models.AssetSourceCredentials(**kwargs)

Bases: object

Credentials for an asset source.

Attributes

TYPE_API_KEY A constant which can be used with the type property of a AssetSourceCredentials.
TYPE_BASIC A constant which can be used with the type property of a AssetSourceCredentials.
secret_id [Required] Gets the secret_id of this AssetSourceCredentials.
type [Required] Gets the type of this AssetSourceCredentials.

Methods

__init__(**kwargs) Initializes a new AssetSourceCredentials object with values from keyword arguments.
TYPE_API_KEY = 'API_KEY'

A constant which can be used with the type property of a AssetSourceCredentials. This constant has a value of “API_KEY”

TYPE_BASIC = 'BASIC'

A constant which can be used with the type property of a AssetSourceCredentials. This constant has a value of “BASIC”

__init__(**kwargs)

Initializes a new AssetSourceCredentials object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this AssetSourceCredentials. Allowed values for this property are: “BASIC”, “API_KEY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • secret_id (str) – The value to assign to the secret_id property of this AssetSourceCredentials.
secret_id

[Required] Gets the secret_id of this AssetSourceCredentials. The OCID of the secret in a vault. If the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { “username”: “<User>”, “password”: “example-password” }. If the type of the credentials is API_KEY, the secret must contain the accessKeyId and secretAccessKey in JSON format, which is in the form of { “accessKeyId”: “<AccessKey>”, “secretAccessKey”: “<AccessKeyValue>” }.

Returns:The secret_id of this AssetSourceCredentials.
Return type:str
type

[Required] Gets the type of this AssetSourceCredentials. Authentication type

Allowed values for this property are: “BASIC”, “API_KEY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this AssetSourceCredentials.
Return type:str