Class BetaManagedAgentsGitHubRepositoryResourceConfig
-
- All Implemented Interfaces:
public final class BetaManagedAgentsGitHubRepositoryResourceConfigA GitHub repository mounted into each session's container. The authorization token is write-only and never returned.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsGitHubRepositoryResourceConfig.BuilderA builder for BetaManagedAgentsGitHubRepositoryResourceConfig.
public final classBetaManagedAgentsGitHubRepositoryResourceConfig.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<BetaManagedAgentsGitHubRepositoryResourceConfig.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<BetaManagedAgentsGitHubRepositoryResourceConfig.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 BetaManagedAgentsGitHubRepositoryResourceConfig.BuildertoBuilder()final BetaManagedAgentsGitHubRepositoryResourceConfigvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsGitHubRepositoryResourceConfig.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsGitHubRepositoryResourceConfig. final static BetaManagedAgentsGitHubRepositoryResourceConfigof(String url)Returns an immutable instance of BetaManagedAgentsGitHubRepositoryResourceConfig with the required url set to the given value. -
-
Method Detail
-
checkout
final Optional<BetaManagedAgentsGitHubRepositoryResourceConfig.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.
-
_checkout
final JsonField<BetaManagedAgentsGitHubRepositoryResourceConfig.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 BetaManagedAgentsGitHubRepositoryResourceConfig.Builder toBuilder()
-
validate
final BetaManagedAgentsGitHubRepositoryResourceConfig 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 BetaManagedAgentsGitHubRepositoryResourceConfig.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsGitHubRepositoryResourceConfig.
The following fields are required:
.url()
-
of
final static BetaManagedAgentsGitHubRepositoryResourceConfig of(String url)
Returns an immutable instance of BetaManagedAgentsGitHubRepositoryResourceConfig with the required url set to the given value.
-
-
-
-