GetRepositoryRepositoryLicense

data class GetRepositoryRepositoryLicense(val content: String, val downloadUrl: String, val encoding: String, val gitUrl: String, val htmlUrl: String, val licenses: List<GetRepositoryRepositoryLicenseLicense>, val name: String, val path: String, val sha: String, val size: Int, val type: String, val url: String)

Constructors

Link copied to clipboard
constructor(content: String, downloadUrl: String, encoding: String, gitUrl: String, htmlUrl: String, licenses: List<GetRepositoryRepositoryLicenseLicense>, name: String, path: String, sha: String, size: Int, type: String, url: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Content of the license file, encoded by encoding scheme mentioned below.

Link copied to clipboard

The URL to download the raw content of the license file.

Link copied to clipboard

The encoding used for the content (e.g., "base64").

Link copied to clipboard

The URL to access information about the license file as a Git blob.

Link copied to clipboard

The URL to view the license details on GitHub.

Link copied to clipboard

license block consists of the fields documented below.

Link copied to clipboard

The name of the repository.

Link copied to clipboard

The path to the license file within the repository.

Link copied to clipboard
val sha: String

The SHA hash of the license file.

Link copied to clipboard
val size: Int

The size of the license file in bytes.

Link copied to clipboard

The type of the content, (e.g., "file").

Link copied to clipboard
val url: String

The URL to access information about the license on GitHub.