Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.62 KB

CreateSecretRequest.md

File metadata and controls

31 lines (22 loc) · 1.62 KB

CreateSecretRequest

Properties

Name Type Description Notes
name str The name of the secret that will keep the password
value str The secret value that needs to be saved. In case of a password it must match a pattern with at least one upper and lower case character and either one number with two special characters `!@#$^&?_~` or at least three numbers with one special character `!@#$^&?~`. This is expressed in the following regular expression: `^((?=.?[A-Z]{1,})(?=.?[a-z]{1,}))(((?=(?:[^d]d){1})(?=([^^&*?_~][!@#$^&*?~]){2,})) ((?=(?:[^d]d){3})(?=.?[!@#$^&*?_~]+))).{8,}$`
type str The type of the secret. Can be `password` or `ssh`

Example

from pfruck_contabo.models.create_secret_request import CreateSecretRequest

# TODO update the JSON string below
json = "{}"
# create an instance of CreateSecretRequest from a JSON string
create_secret_request_instance = CreateSecretRequest.from_json(json)
# print the JSON string representation of the object
print(CreateSecretRequest.to_json())

# convert the object into a dict
create_secret_request_dict = create_secret_request_instance.to_dict()
# create an instance of CreateSecretRequest from a dict
create_secret_request_from_dict = CreateSecretRequest.from_dict(create_secret_request_dict)

[Back to Model list] [Back to API list] [Back to README]