Class PluginMarketplaceValidateRepositoryParams.Body
-
- All Implemented Interfaces:
public final class PluginMarketplaceValidateRepositoryParams.BodyThe repository to validate: its URL, and optionally the branch or commit to read.
repository_urlis required and any other field is refused; arepository_urlorrefthat fails the checks listed on its field is a 400, and a repository, branch, or commit that cannot be read is reported in the response, not refused.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPluginMarketplaceValidateRepositoryParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final StringrepositoryUrl()The https://URL of a public repository on github.com that holds the marketplace.final Optional<String>ref()The branch to validate the tip of, or the full 40-character SHA of the commit to validate. final JsonField<String>_repositoryUrl()Returns the raw JSON value of repositoryUrl. final JsonField<String>_ref()Returns the raw JSON value of ref. final Map<String, JsonValue>_additionalProperties()final PluginMarketplaceValidateRepositoryParams.Body.BuildertoBuilder()final PluginMarketplaceValidateRepositoryParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PluginMarketplaceValidateRepositoryParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. final static PluginMarketplaceValidateRepositoryParams.Bodyof(String repositoryUrl)Returns an immutable instance of Body with the required repositoryUrl set to the given value. -
-
Method Detail
-
repositoryUrl
final String repositoryUrl()
The
https://URL of a public repository on github.com that holds the marketplace. A URL longer than 2,048 characters, on any other host or scheme, with a port other than 443 or 80, with credentials in it, or that does not name exactlyowner/repo(a trailing.gitor/is accepted) is a 400. A private or missing repository is reported in the response, not refused.
-
ref
final Optional<String> ref()
The branch to validate the tip of, or the full 40-character SHA of the commit to validate. When omitted, the branch a synchronization would read (usually the repository's default branch); if that is not the default branch, the report's
refsays which branch was read. An empty string, a value longer than 255 characters, or one that contains..or a character other than ASCII letters, digits,.,_,-,+, and/, is a 400. Any other value that is not a 40-character SHA is read as a branch name; if the repository has no such branch, the response is a report withvalid: false, not a 400.
-
_repositoryUrl
final JsonField<String> _repositoryUrl()
Returns the raw JSON value of repositoryUrl.
Unlike repositoryUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_ref
final JsonField<String> _ref()
Returns the raw JSON value of ref.
Unlike ref, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PluginMarketplaceValidateRepositoryParams.Body.Builder toBuilder()
-
validate
final PluginMarketplaceValidateRepositoryParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static PluginMarketplaceValidateRepositoryParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.repositoryUrl()
-
of
final static PluginMarketplaceValidateRepositoryParams.Body of(String repositoryUrl)
Returns an immutable instance of Body with the required repositoryUrl set to the given value.
-
-
-
-