AssetSourceCredentials¶
- class oci.cloud_migrations.models.AssetSourceCredentials(**kwargs)¶
Bases:
objectCredentials for an asset source.
Attributes:
A constant which can be used with the type property of a AssetSourceCredentials.
A constant which can be used with the type property of a AssetSourceCredentials.
[Required] Gets the secret_id of this AssetSourceCredentials.
[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”
secret_id (str) – The value to assign to the secret_id property of this AssetSourceCredentials.
- property 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
- property type¶
[Required] Gets the type of this AssetSourceCredentials. Authentication type
Allowed values for this property are: “BASIC”, “API_KEY”
- Returns
The type of this AssetSourceCredentials.
- Return type
str