CreateBasicImagePullSecretDetails¶
- class oci.container_instances.models.CreateBasicImagePullSecretDetails(**kwargs)¶
Bases:
CreateImagePullSecretDetailsA CreateBasicImagePullSecretDetails is a ImagePullSecret which accepts username and password as credentials information.
Attributes:
A constant which can be used with the secret_type property of a CreateImagePullSecretDetails.
A constant which can be used with the secret_type property of a CreateImagePullSecretDetails.
[Required] Gets the password of this CreateBasicImagePullSecretDetails.
[Required] Gets the registry_endpoint of this CreateImagePullSecretDetails.
[Required] Gets the secret_type of this CreateImagePullSecretDetails.
[Required] Gets the username of this CreateBasicImagePullSecretDetails.
Methods:
__init__(**kwargs)Initializes a new CreateBasicImagePullSecretDetails object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- SECRET_TYPE_BASIC = 'BASIC'¶
A constant which can be used with the secret_type property of a CreateImagePullSecretDetails. This constant has a value of “BASIC”
- SECRET_TYPE_VAULT = 'VAULT'¶
A constant which can be used with the secret_type property of a CreateImagePullSecretDetails. This constant has a value of “VAULT”
- __init__(**kwargs)¶
Initializes a new CreateBasicImagePullSecretDetails object with values from keyword arguments. The default value of the
secret_typeattribute of this class isBASICand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
secret_type (str) – The value to assign to the secret_type property of this CreateBasicImagePullSecretDetails. Allowed values for this property are: “BASIC”, “VAULT”
registry_endpoint (str) – The value to assign to the registry_endpoint property of this CreateBasicImagePullSecretDetails.
username (str) – The value to assign to the username property of this CreateBasicImagePullSecretDetails.
password (str) – The value to assign to the password property of this CreateBasicImagePullSecretDetails.
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property password¶
[Required] Gets the password of this CreateBasicImagePullSecretDetails. The password which should be used with the registry for authentication. The value is expected in base64 format.
- Returns
The password of this CreateBasicImagePullSecretDetails.
- Return type
str
- property registry_endpoint¶
[Required] Gets the registry_endpoint of this CreateImagePullSecretDetails. The registry endpoint of the container image.
- Returns
The registry_endpoint of this CreateImagePullSecretDetails.
- Return type
str
- property secret_type¶
[Required] Gets the secret_type of this CreateImagePullSecretDetails. The type of ImagePullSecret.
Allowed values for this property are: “BASIC”, “VAULT”
- Returns
The secret_type of this CreateImagePullSecretDetails.
- Return type
str
- property username¶
[Required] Gets the username of this CreateBasicImagePullSecretDetails. The username which should be used with the registry for authentication. The value is expected in base64 format.
- Returns
The username of this CreateBasicImagePullSecretDetails.
- Return type
str