Skip to content

GetFileRequest

Source code in docs_src/capo_amplifygen3/types/get_file_request.py
class GetFileRequest(TypedDict, closed=True):
    provider: "capo_amplifygen3.types.git_provider.GitProvider"
    """<p>The Git provider.</p>"""
    owner: "capo_amplifygen3.types.git_owner_name.GitOwnerName"
    """<p>The account that the Git connection is for. The value depends on the provider:</p> <ul> <li> <p>For GitHub, specify the user or organization name.</p> </li> <li> <p>For GitLab, specify the user name.</p> </li> </ul> <p>To get this value, call ListGitConnections.</p>"""
    repository_name: NotRequired[
        "capo_amplifygen3.types.git_repository_name.GitRepositoryName"
    ]
    """<p>The name of the repository, which is the last segment of RepositoryPath.</p>"""
    repository_path: "capo_amplifygen3.types.git_repository_path.GitRepositoryPath"
    """<p>The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.</p>"""
    file_path: "capo_amplifygen3.types.git_file_path.GitFilePath"
    """<p>The path of the file, relative to the root of the repository, for example package.json.</p>"""
    branch: "capo_amplifygen3.types.git_branch_name.GitBranchName"
    """<p>The name of the branch to read from.</p>"""

branch instance-attribute

branch: GitBranchName

The name of the branch to read from.

file_path instance-attribute

file_path: GitFilePath

The path of the file, relative to the root of the repository, for example package.json.

owner instance-attribute

owner: GitOwnerName

The account that the Git connection is for. The value depends on the provider:

  • For GitHub, specify the user or organization name.

  • For GitLab, specify the user name.

To get this value, call ListGitConnections.

provider instance-attribute

provider: GitProvider

The Git provider.

repository_name instance-attribute

repository_name: NotRequired[GitRepositoryName]

The name of the repository, which is the last segment of RepositoryPath.

repository_path instance-attribute

repository_path: GitRepositoryPath

The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.