CodeRepositoryCredential¶
- pydantic model openapi_client.models.code_repository_credential.CodeRepositoryCredential¶
Git credentials for create/update. CredentialsName is required when this object is sent. Username and Password are required when creating a new parameter; omit them to attach an existing ParameterKey.
- Fields:
- field credentials_name: Optional[StrictStr] = None (alias 'CredentialsName')¶
New credential short name, or the full ParameterKey of an existing String/SecureString parameter the caller can access.
- field credentials_description: Optional[StrictStr] = None (alias 'CredentialsDescription')¶
Optional description stored on a newly created parameter.
- field tenant_name: Optional[StrictStr] = None (alias 'TenantName')¶
Optional tenant prefix used when multi-tenant Redshift is enabled.
- field username: Optional[StrictStr] = None (alias 'Username')¶
Git username used when creating a new credentials parameter.
- field password: Optional[StrictStr] = None (alias 'Password')¶
Git password or token used when creating a new credentials parameter.
- to_str()¶
Returns the string representation of the model using alias
- Return type:
str
- to_json()¶
Returns the JSON representation of the model using alias
- Return type:
str
- classmethod from_json(json_str)¶
Create an instance of CodeRepositoryCredential from a JSON string
- Return type:
Optional[Self]
- to_dict()¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)¶
Create an instance of CodeRepositoryCredential from a dict
- Return type:
Optional[Self]