CodeRepositoryPost¶
- pydantic model openapi_client.models.code_repository_post.CodeRepositoryPost¶
Create-repository request. RepositoryName and RepositoryType are required. RepositoryUrl is required unless creating a new CodeCommit repository via CodeCommitRepositoryName.
- Fields:
- field repository_name: Annotated[str, Field(min_length=1, strict=True, max_length=60)] [Required] (alias 'RepositoryName')¶
Unique name, 1-60 characters. Must match ^[a-zA-Z][a-zA-Z0-9-]{2,49}$ (letter start, alphanumeric and hyphen).
- Constraints:
strict = True
min_length = 1
max_length = 60
- field repository_type: StrictStr [Required] (alias 'RepositoryType')¶
Git provider. Must match the RepositoryUrl host pattern.
- Constraints:
strict = True
- field description: Optional[StrictStr] = None (alias 'Description')¶
Optional free-text description. Defaults to empty string.
- field code_commit_repository_name: Optional[StrictStr] = None (alias 'CodeCommitRepositoryName')¶
When RepositoryType is code-commit, create a new CodeCommit repository with this name instead of linking RepositoryUrl.
- field code_commit_repository_description: Optional[StrictStr] = None (alias 'CodeCommitRepositoryDescription')¶
Description for a newly created CodeCommit repository. Defaults to “This repository is created as part of code repository in Amorphic Data Cloud Platform.”
- field repository_url: Optional[StrictStr] = None (alias 'RepositoryUrl')¶
HTTPS git URL. github must be https://github.com/…, gitlab https://gitlab.com/…, bitbucket bitbucket.org/…git, code-commit https://git-codecommit.<region>.amazonaws.com/v1/repos/…
- field default_repository_branch: Optional[StrictStr] = None (alias 'DefaultRepositoryBranch')¶
Branch passed to SageMaker GitConfig.Branch (for example main).
- field credentials: Optional[CodeRepositoryCredential] = None (alias 'Credentials')¶
- field keywords: Optional[List[StrictStr]] = None (alias 'Keywords')¶
Optional tags stored on the repository. Defaults to [].
- 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 CodeRepositoryPost 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 CodeRepositoryPost from a dict
- Return type:
Optional[Self]