Class MigrateRepoOptions
java.lang.Object
build.cursed.genapi.forgejo.model.MigrateRepoOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class MigrateRepoOptions
extends Object
MigrateRepoOptions options for migrating repository's this is used to interact with api v1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets service -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthPassword(String authPassword) authUsername(String authUsername) description(String description) booleanstatic MigrateRepoOptionsCreate an instance of MigrateRepoOptions given an JSON stringGet authPasswordGet authTokenGet authUsernameGet cloneAddrGet descriptionGet issuesGet labelsgetLfs()Get lfsGet lfsEndpointGet milestonesGet mirrorGet mirrorIntervalGet _privateGet pullRequestsGet releasesGet repoNameName of User or Organisation who will own Repo after migrationGet servicegetUid()deprecated (only for backwards compatibility)getWiki()Get wikiinthashCode()lfsEndpoint(String lfsEndpoint) milestones(Boolean milestones) mirrorInterval(String mirrorInterval) pullRequests(Boolean pullRequests) service(MigrateRepoOptions.ServiceEnum service) voidsetAuthPassword(String authPassword) voidsetAuthToken(String authToken) voidsetAuthUsername(String authUsername) voidsetCloneAddr(String cloneAddr) voidsetDescription(String description) voidvoidvoidvoidsetLfsEndpoint(String lfsEndpoint) voidsetMilestones(Boolean milestones) voidvoidsetMirrorInterval(String mirrorInterval) voidsetPrivate(Boolean _private) voidsetPullRequests(Boolean pullRequests) voidsetReleases(Boolean releases) voidsetRepoName(String repoName) voidsetRepoOwner(String repoOwner) voidsetService(MigrateRepoOptions.ServiceEnum service) voidvoidtoJson()Convert an instance of MigrateRepoOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUTH_PASSWORD
- See Also:
-
SERIALIZED_NAME_AUTH_TOKEN
- See Also:
-
SERIALIZED_NAME_AUTH_USERNAME
- See Also:
-
SERIALIZED_NAME_CLONE_ADDR
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ISSUES
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_LFS
- See Also:
-
SERIALIZED_NAME_LFS_ENDPOINT
- See Also:
-
SERIALIZED_NAME_MILESTONES
- See Also:
-
SERIALIZED_NAME_MIRROR
- See Also:
-
SERIALIZED_NAME_MIRROR_INTERVAL
- See Also:
-
SERIALIZED_NAME_PRIVATE
- See Also:
-
SERIALIZED_NAME_PULL_REQUESTS
- See Also:
-
SERIALIZED_NAME_RELEASES
- See Also:
-
SERIALIZED_NAME_REPO_NAME
- See Also:
-
SERIALIZED_NAME_REPO_OWNER
- See Also:
-
SERIALIZED_NAME_SERVICE
- See Also:
-
SERIALIZED_NAME_UID
- See Also:
-
SERIALIZED_NAME_WIKI
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MigrateRepoOptions
public MigrateRepoOptions()
-
-
Method Details
-
authPassword
-
getAuthPassword
Get authPassword- Returns:
- authPassword
-
setAuthPassword
-
authToken
-
getAuthToken
Get authToken- Returns:
- authToken
-
setAuthToken
-
authUsername
-
getAuthUsername
Get authUsername- Returns:
- authUsername
-
setAuthUsername
-
cloneAddr
-
getCloneAddr
Get cloneAddr- Returns:
- cloneAddr
-
setCloneAddr
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
issues
-
getIssues
Get issues- Returns:
- issues
-
setIssues
-
labels
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
lfs
-
getLfs
Get lfs- Returns:
- lfs
-
setLfs
-
lfsEndpoint
-
getLfsEndpoint
Get lfsEndpoint- Returns:
- lfsEndpoint
-
setLfsEndpoint
-
milestones
-
getMilestones
Get milestones- Returns:
- milestones
-
setMilestones
-
mirror
-
getMirror
Get mirror- Returns:
- mirror
-
setMirror
-
mirrorInterval
-
getMirrorInterval
Get mirrorInterval- Returns:
- mirrorInterval
-
setMirrorInterval
-
_private
-
getPrivate
Get _private- Returns:
- _private
-
setPrivate
-
pullRequests
-
getPullRequests
Get pullRequests- Returns:
- pullRequests
-
setPullRequests
-
releases
-
getReleases
Get releases- Returns:
- releases
-
setReleases
-
repoName
-
getRepoName
Get repoName- Returns:
- repoName
-
setRepoName
-
repoOwner
-
getRepoOwner
Name of User or Organisation who will own Repo after migration- Returns:
- repoOwner
-
setRepoOwner
-
service
-
getService
Get service- Returns:
- service
-
setService
-
uid
-
getUid
deprecated (only for backwards compatibility)- Returns:
- uid
-
setUid
-
wiki
-
getWiki
Get wiki- Returns:
- wiki
-
setWiki
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to MigrateRepoOptions
-
fromJson
Create an instance of MigrateRepoOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MigrateRepoOptions
- Throws:
IOException- if the JSON string is invalid with respect to MigrateRepoOptions
-
toJson
Convert an instance of MigrateRepoOptions to an JSON string- Returns:
- JSON string
-