CodeRepositoryDetails¶
- pydantic model openapi_client.models.code_repository_details.CodeRepositoryDetails¶
GET representation of a code repository. Credentials is a ParameterKey string (or “N/A”), not the create/update Credentials object.
- Fields:
- field repository_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None (alias 'RepositoryName')¶
Unique repository name.
- field repository_type: Optional[StrictStr] = None (alias 'RepositoryType')¶
Git provider.
- field description: Optional[StrictStr] = None (alias 'Description')¶
Optional free-text description.
- field repository_url: Optional[StrictStr] = None (alias 'RepositoryUrl')¶
HTTPS git URL.
- field default_repository_branch: Optional[StrictStr] = None (alias 'DefaultRepositoryBranch')¶
Branch passed to SageMaker GitConfig.Branch (for example main).
- field credentials: Optional[StrictStr] = None (alias 'Credentials')¶
ParameterKey of the git credentials, or “N/A” when none are attached. SecretArn is never returned.
- field keywords: Optional[List[StrictStr]] = None (alias 'Keywords')¶
Tags stored on the repository.
- field access_type: Optional[StrictStr] = None (alias 'AccessType')¶
Caller’s ACL on the repository.
- field created_by: Optional[StrictStr] = None (alias 'CreatedBy')¶
User ID that created the repository.
- field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')¶
User ID that last updated the repository.
- field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')¶
Last update timestamp in UTC, format %Y-%m-%d %H:%M:%S.
- 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 CodeRepositoryDetails 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 CodeRepositoryDetails from a dict
- Return type:
Optional[Self]