Class BetaManagedAgentsGitHubRepositoryResourceParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsGitHubRepositoryResourceParamsMount a GitHub repository into the session's container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsGitHubRepositoryResourceParams.BuilderA builder for BetaManagedAgentsGitHubRepositoryResourceParams.
public final classBetaManagedAgentsGitHubRepositoryResourceParams.CheckoutBranch or commit to check out. Defaults to the repository's default branch.
-
Method Summary
Modifier and Type Method Description final Stringurl()Github URL of the repository final Optional<String>authorizationToken()GitHub authorization token used to clone the repository. final Optional<BetaManagedAgentsGitHubRepositoryResourceParams.Checkout>checkout()Branch or commit to check out. final Optional<String>mountPath()Mount path in the container. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("github_repository")final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<String>_authorizationToken()Returns the raw JSON value of authorizationToken. final JsonField<BetaManagedAgentsGitHubRepositoryResourceParams.Checkout>_checkout()Returns the raw JSON value of checkout. final JsonField<String>_mountPath()Returns the raw JSON value of mountPath. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsGitHubRepositoryResourceParams.BuildertoBuilder()final BetaManagedAgentsGitHubRepositoryResourceParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsGitHubRepositoryResourceParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsGitHubRepositoryResourceParams. final static BetaManagedAgentsGitHubRepositoryResourceParamsof(String url)Returns an immutable instance of BetaManagedAgentsGitHubRepositoryResourceParams with the required url set to the given value. -
-
Method Detail
-
authorizationToken
final Optional<String> authorizationToken()
GitHub authorization token used to clone the repository. Required for private repositories; optional for public ones.
-
checkout
final Optional<BetaManagedAgentsGitHubRepositoryResourceParams.Checkout> checkout()
Branch or commit to check out. Defaults to the repository's default branch.
-
mountPath
final Optional<String> mountPath()
Mount path in the container. Defaults to
/workspace/<repo-name>.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("github_repository")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_authorizationToken
final JsonField<String> _authorizationToken()
Returns the raw JSON value of authorizationToken.
Unlike authorizationToken, this method doesn't throw if the JSON field has an unexpected type.
-
_checkout
final JsonField<BetaManagedAgentsGitHubRepositoryResourceParams.Checkout> _checkout()
Returns the raw JSON value of checkout.
Unlike checkout, this method doesn't throw if the JSON field has an unexpected type.
-
_mountPath
final JsonField<String> _mountPath()
Returns the raw JSON value of mountPath.
Unlike mountPath, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsGitHubRepositoryResourceParams.Builder toBuilder()
-
validate
final BetaManagedAgentsGitHubRepositoryResourceParams 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 BetaManagedAgentsGitHubRepositoryResourceParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsGitHubRepositoryResourceParams.
The following fields are required:
.url()
-
of
final static BetaManagedAgentsGitHubRepositoryResourceParams of(String url)
Returns an immutable instance of BetaManagedAgentsGitHubRepositoryResourceParams with the required url set to the given value.
-
-
-
-