Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the contents of a specified folder in a repository.
Synopsis
- data GetFolder = GetFolder' {}
- newGetFolder :: Text -> Text -> GetFolder
- getFolder_commitSpecifier :: Lens' GetFolder (Maybe Text)
- getFolder_repositoryName :: Lens' GetFolder Text
- getFolder_folderPath :: Lens' GetFolder Text
- data GetFolderResponse = GetFolderResponse' {
- subModules :: Maybe [SubModule]
- treeId :: Maybe Text
- subFolders :: Maybe [Folder]
- symbolicLinks :: Maybe [SymbolicLink]
- files :: Maybe [File]
- httpStatus :: Int
- commitId :: Text
- folderPath :: Text
- newGetFolderResponse :: Int -> Text -> Text -> GetFolderResponse
- getFolderResponse_subModules :: Lens' GetFolderResponse (Maybe [SubModule])
- getFolderResponse_treeId :: Lens' GetFolderResponse (Maybe Text)
- getFolderResponse_subFolders :: Lens' GetFolderResponse (Maybe [Folder])
- getFolderResponse_symbolicLinks :: Lens' GetFolderResponse (Maybe [SymbolicLink])
- getFolderResponse_files :: Lens' GetFolderResponse (Maybe [File])
- getFolderResponse_httpStatus :: Lens' GetFolderResponse Int
- getFolderResponse_commitId :: Lens' GetFolderResponse Text
- getFolderResponse_folderPath :: Lens' GetFolderResponse Text
Creating a Request
See: newGetFolder
smart constructor.
GetFolder' | |
|
Instances
Create a value of GetFolder
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:commitSpecifier:GetFolder'
, getFolder_commitSpecifier
- A fully qualified reference used to identify a commit that contains the
version of the folder's content to return. A fully qualified reference
can be a commit ID, branch name, tag, or reference such as HEAD. If no
specifier is provided, the folder content is returned as it exists in
the HEAD commit.
$sel:repositoryName:GetFolder'
, getFolder_repositoryName
- The name of the repository.
$sel:folderPath:GetFolder'
, getFolder_folderPath
- The fully qualified path to the folder whose contents are returned,
including the folder name. For example, /examples is a fully-qualified
path to a folder named examples that was created off of the root
directory (/) of a repository.
Request Lenses
getFolder_commitSpecifier :: Lens' GetFolder (Maybe Text) Source #
A fully qualified reference used to identify a commit that contains the version of the folder's content to return. A fully qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit.
getFolder_folderPath :: Lens' GetFolder Text Source #
The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
Destructuring the Response
data GetFolderResponse Source #
See: newGetFolderResponse
smart constructor.
GetFolderResponse' | |
|
Instances
:: Int | |
-> Text | |
-> Text | |
-> GetFolderResponse |
Create a value of GetFolderResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:subModules:GetFolderResponse'
, getFolderResponse_subModules
- The list of submodules in the specified folder, if any.
$sel:treeId:GetFolderResponse'
, getFolderResponse_treeId
- The full SHA-1 pointer of the tree information for the commit that
contains the folder.
$sel:subFolders:GetFolderResponse'
, getFolderResponse_subFolders
- The list of folders that exist under the specified folder, if any.
$sel:symbolicLinks:GetFolderResponse'
, getFolderResponse_symbolicLinks
- The list of symbolic links to other files and folders in the specified
folder, if any.
$sel:files:GetFolderResponse'
, getFolderResponse_files
- The list of files in the specified folder, if any.
$sel:httpStatus:GetFolderResponse'
, getFolderResponse_httpStatus
- The response's http status code.
$sel:commitId:GetFolderResponse'
, getFolderResponse_commitId
- The full commit ID used as a reference for the returned version of the
folder content.
$sel:folderPath:GetFolder'
, getFolderResponse_folderPath
- The fully qualified path of the folder whose contents are returned.
Response Lenses
getFolderResponse_subModules :: Lens' GetFolderResponse (Maybe [SubModule]) Source #
The list of submodules in the specified folder, if any.
getFolderResponse_treeId :: Lens' GetFolderResponse (Maybe Text) Source #
The full SHA-1 pointer of the tree information for the commit that contains the folder.
getFolderResponse_subFolders :: Lens' GetFolderResponse (Maybe [Folder]) Source #
The list of folders that exist under the specified folder, if any.
getFolderResponse_symbolicLinks :: Lens' GetFolderResponse (Maybe [SymbolicLink]) Source #
The list of symbolic links to other files and folders in the specified folder, if any.
getFolderResponse_files :: Lens' GetFolderResponse (Maybe [File]) Source #
The list of files in the specified folder, if any.
getFolderResponse_httpStatus :: Lens' GetFolderResponse Int Source #
The response's http status code.
getFolderResponse_commitId :: Lens' GetFolderResponse Text Source #
The full commit ID used as a reference for the returned version of the folder content.
getFolderResponse_folderPath :: Lens' GetFolderResponse Text Source #
The fully qualified path of the folder whose contents are returned.