Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- type AcceptInvitationJSONRequestBody
- type AcceptInvitationRequest
- type AcceptPrivacyPolicyJSONRequestBody
- type AcceptPrivacyPolicyRequest
- type AddProjectMembersJSONRequestBody
- type AddProjectMembersRequest
- type AddProjectServiceAccountJSONRequestBody
- type AddProjectServiceAccountRequest
- type AnalyticsConfig
- type ApiErrorCode
- type ApiKeyId
- type AsyncOperation
- type AuditActionGroup
- type AuditActionList
- type AuditConfig
- type AuditLogEntry
- type AuditLogPage
- type AutomaticTopUp
- type Balance
- type BalanceApplicableTo
- type BalanceNotification
- type BalancePage
- type BalanceType
- type BillingAddress
- type BillingContact
- type BillingPeriod
- type BillingPlan
- type BillingProfile
- type BillingSession
- type BillingTaxId
- type BillingTaxIdType
- type BillingType
- type BillingUsagePeriod
- type BucketCredentials
- type BucketOptions
- type BuildContextUpload
- type BuildContextUploadPart
- type BuildContextUploadState
- type BuildLogsUrl
- type ChangeImageFormatParams
- type ChangeImpact
- type Charge
- type ChargePage
- type ChargeReceiptPdf
- type ChargeStatus
- type CompleteBuildContextUploadJSONRequestBody
- type CompleteBuildContextUploadRequest
- type Config
- type CouponRedemption
- type CpuArchAvailability
- type CpuArchitecture
- type CpuCatalog
- type CpuCatalogRegion
- type CpuType
- type CreateBuildContextUploadJSONRequestBody
- type CreateBuildContextUploadRequest
- type CreateImageJSONRequestBody
- type CreateImageMultipartRequest
- type CreateImageMultipartRequestBody
- type CreateImageRequest
- type CreateInvitationJSONRequestBody
- type CreateInvitationRequest
- type CreateMacosSandboxJSONRequestBody
- type CreateMacosSandboxRequest
- type CreateOrgApiKeyJSONRequestBody
- type CreateOrgJSONRequestBody
- type CreateOrganizationApiKeyRequest
- type CreateOrganizationRegionJSONRequestBody
- type CreateOrganizationRegionRequest
- type CreateOrganizationRequest
- type CreateOrganizationRoleJSONRequestBody
- type CreateOrganizationRoleRequest
- type CreateProjectApiKeyJSONRequestBody
- type CreateProjectApiKeyRequest
- type CreateProjectJSONRequestBody
- type CreateProjectRequest
- type CreateRegionProxyTokenJSONRequestBody
- type CreateRegionProxyTokenRequest
- type CreateRegionRegistrationTokenJSONRequestBody
- type CreateRegionRegistrationTokenRequest
- type CreateReservationJSONRequestBody
- type CreateReservationParams
- type CreateReservationRenewalParams
- type CreateReservationRequest
- type CreateReservationsBulkJSONRequestBody
- type CreateReservationsBulkParams
- type CreateReservationsBulkRequest
- type CreateSandboxFromSnapshotJSONRequestBody
- type CreateSandboxFromSnapshotRequest
- type CreateSandboxImageJSONRequestBody
- type CreateSandboxImageRequest
- type CreateSandboxJSONRequestBody
- type CreateSandboxRequest
- type CreateSandboxSignedPreviewUrlJSONBody
- type CreateSandboxSignedPreviewUrlJSONRequestBody
- type CreateSandboxSignedPreviewUrlRequest
- type CreateSandboxSnapshotJSONRequestBody
- type CreateSandboxSnapshotRequest
- type CreateServiceAccountJSONRequestBody
- type CreateServiceAccountRequest
- type CreateSsoSetupLinkJSONRequestBody
- type CreateSsoSetupLinkRequest
- type CreateTopUpSessionJSONRequestBody
- type CreateTopUpSessionRequest
- type CreateV0SandboxImportJSONBody
- type CreateV0SandboxImportJSONRequestBody
- type CreateV0SandboxImportRequest
- type CreateVolumeJSONRequestBody
- type CreateVolumeRequest
- type Cursor
- type DeclineInvitationJSONRequestBody
- type DeclineInvitationRequest
- type DeleteImageParams
- type DeleteSnapshotParams
- type DeleteVolumeParams
- type EffectiveLifecyclePolicies
- type EffectiveLifecyclePolicy
- type EffectiveLinuxLifecyclePolicies
- type EffectiveMacosLifecyclePolicies
- type EntitlementRequired
- type Entitlements
- type EphemeralLifecycleDefaults
- type ErrorBody
- type ExchangeTokenFormdataRequestBody
- type ExchangeTokenJSONRequestBody
- type ExchangeTokenRequest
- type ExternalBucketOrigin
- type Forbidden
- type ForkSandboxJSONBody
- type ForkSandboxJSONRequestBody
- type ForkSandboxOperation
- type ForkSandboxRequest
- type GetCpuCatalogParams
- type GetImageBuildLogsUrlParams
- type GetImageParams
- type GetMacCatalogParams
- type GetSandboxParams
- type GetSandboxUsageHistoryParams
- type GetSandboxUsageHistoryParamsResolution
- type GetSnapshotParams
- type GetUsageReportParams
- type GetUsageReportParamsResolution
- type GetVolumeParams
- type Health
- type IdOnly
- type Image
- type ImageBuildLimits
- type ImageConversion
- type ImageIdOrName
- type ImageListItem
- type ImageOrigin
- type ImagePage
- type ImagePlatformFilter
- type ImageReference
- type ImageRetention
- type ImageSearchClass
- type ImageSearchPage
- type ImageSearchSort
- type ImageSourceValue
- func (t ImageSourceValue) AsImageSourceValue0() (ImageSourceValue0, error)
- func (t ImageSourceValue) AsImageSourceValue1() (ImageSourceValue1, error)
- func (t ImageSourceValue) AsImageSourceValue2() (ImageSourceValue2, error)
- func (t ImageSourceValue) AsImageSourceValue3() (ImageSourceValue3, error)
- func (t *ImageSourceValue) FromImageSourceValue0(v ImageSourceValue0) error
- func (t *ImageSourceValue) FromImageSourceValue1(v ImageSourceValue1) error
- func (t *ImageSourceValue) FromImageSourceValue2(v ImageSourceValue2) error
- func (t *ImageSourceValue) FromImageSourceValue3(v ImageSourceValue3) error
- func (t ImageSourceValue) MarshalJSON() ([]byte, error)
- func (t *ImageSourceValue) MergeImageSourceValue0(v ImageSourceValue0) error
- func (t *ImageSourceValue) MergeImageSourceValue1(v ImageSourceValue1) error
- func (t *ImageSourceValue) MergeImageSourceValue2(v ImageSourceValue2) error
- func (t *ImageSourceValue) MergeImageSourceValue3(v ImageSourceValue3) error
- func (t *ImageSourceValue) UnmarshalJSON(b []byte) error
- type ImageSourceValue0
- type ImageSourceValue0Type
- type ImageSourceValue1
- type ImageSourceValue1Type
- type ImageSourceValue2
- type ImageSourceValue2Type
- type ImageSourceValue3
- type ImageSourceValue3Type
- type ImageStatus
- type ImportedFrom
- type Invitation
- type InvitationLookup
- type InvitationPage
- type InvitationStatus
- type InvitationWithToken
- type Invoice
- type InvoiceId
- type InvoicePage
- type InvoicePaymentStatus
- type InvoicePdf
- type InvoiceStatus
- type InvoiceType
- type LifecycleAction
- type LifecyclePolicy
- type Limit
- type ListAuditLogsParams
- type ListBalancesParams
- type ListChargesParams
- type ListImagesParams
- type ListInvoicesParams
- type ListMembersParams
- type ListOrgApiKeysParams
- type ListOrgInvitationsParams
- type ListOrganizationRegionsParams
- type ListOrgsParams
- type ListPaymentMethodsParams
- type ListPermissionsParams
- type ListPermissionsParamsScope
- type ListProjectApiKeysParams
- type ListProjectMembersParams
- type ListProjectServiceAccountsParams
- type ListProjectsParams
- type ListRegionProxyTokensParams
- type ListRegionRegistrationTokensParams
- type ListRegionRunnersParams
- type ListRegistriesParams
- type ListReservationsParams
- type ListSandboxPortsParams
- type ListSandboxesParams
- type ListSecretsParams
- type ListServiceAccountsParams
- type ListSnapshotsParams
- type ListSsoConnectionsParams
- type ListUsagePeriodsParams
- type ListV0SandboxesParams
- type ListVolumesParams
- type LookupInvitationJSONRequestBody
- type LookupInvitationRequest
- type MacCatalog
- type MacCatalogModel
- type MacCatalogRegion
- type MacModel
- type MacModelList
- type MacPrice
- type MacReservation
- type MacReservationBatch
- type MacReservationEndReason
- type MacReservationOrigin
- type MacReservationStatus
- type MacResources
- type MacosSettings
- type MemberLimits
- type MemberRemovalPreview
- type MintSandboxAccessTokenJSONBody
- type MintSandboxAccessTokenJSONRequestBody
- type MintSandboxAccessTokenRequest
- type Msa
- type MsaCommit
- type MsaCommitType
- type MsaDiscount
- type MsaDiscountType
- type MsaStatus
- type NetworkPolicy
- type NetworkPolicyRules
- type OidcProvider
- type OidcPublicConfig
- type Organization
- type OrganizationApiKey
- type OrganizationApiKeyPage
- type OrganizationApiKeyWithToken
- type OrganizationFeatureFlags
- type OrganizationId
- type OrganizationLimits
- type OrganizationListItem
- type OrganizationMember
- type OrganizationMemberPage
- type OrganizationMembership
- type OrganizationPage
- type OrganizationRegion
- type OrganizationRegionId
- type OrganizationRegionPage
- type OrganizationRole
- type OrganizationRoleKind
- type OrganizationRoleList
- type OrganizationRoleUpdate
- type OrganizationRunner
- type OrganizationRunnerAdminState
- type OrganizationRunnerPage
- type OrganizationRunnerStatus
- type OrganizationServiceAccount
- type OrganizationServiceAccountPage
- type OtelConfig
- type ParentRegion
- type ParentRegionList
- type PaymentMethod
- type PaymentMethodBrand
- type PaymentMethodPage
- type PendingPlanChange
- type Permission
- type PermissionList
- type Plan
- type PlanLimits
- type PlanList
- type PlanName
- type PortAssignment
- type PortMapping
- type PortNumber
- type PortProtocol
- type PortalIntent
- type PreviewMemberUpdateJSONRequestBody
- type PreviewMemberUpdateRequest
- type PreviewOrganizationRoleUpdateJSONRequestBody
- type PreviewOrganizationRoleUpdateRequest
- type PreviewServiceAccountUpdateJSONRequestBody
- type PreviewServiceAccountUpdateRequest
- type PreviewUrl
- type PreviewWarning
- type PrivacyPolicyStatus
- type Project
- type ProjectApiKey
- type ProjectApiKeyContext
- type ProjectApiKeyPage
- type ProjectApiKeyWithContext
- type ProjectApiKeyWithToken
- type ProjectBudget
- type ProjectId
- type ProjectImageBuildLimits
- type ProjectLifecycleDefaults
- type ProjectLifecyclePolicy
- type ProjectLimits
- type ProjectMember
- type ProjectMemberList
- type ProjectMemberPage
- type ProjectPage
- type ProjectSandboxLimits
- type ProjectServiceAccount
- type ProjectServiceAccountList
- type ProjectServiceAccountPage
- type PublicImageSource
- func (t PublicImageSource) AsPublicImageSource0() (PublicImageSource0, error)
- func (t PublicImageSource) AsPublicImageSource1() (PublicImageSource1, error)
- func (t *PublicImageSource) FromPublicImageSource0(v PublicImageSource0) error
- func (t *PublicImageSource) FromPublicImageSource1(v PublicImageSource1) error
- func (t PublicImageSource) MarshalJSON() ([]byte, error)
- func (t *PublicImageSource) MergePublicImageSource0(v PublicImageSource0) error
- func (t *PublicImageSource) MergePublicImageSource1(v PublicImageSource1) error
- func (t *PublicImageSource) UnmarshalJSON(b []byte) error
- type PublicImageSource0
- type PublicImageSource0Type
- type PublicImageSource1
- type PublicImageSource1Type
- type RedeemCouponJSONRequestBody
- type RedeemCouponRequest
- type Region
- type RegionInstallation
- type RegionList
- type RegionMultiplier
- type RegionMultiplierList
- type RegionProxyToken
- type RegionProxyTokenId
- type RegionProxyTokenPage
- type RegionProxyTokenWithToken
- type RegionStatus
- type RegionTag
- type RegistrationToken
- type RegistrationTokenPage
- type RegistrationTokenWithToken
- type Registry
- type RegistryHost
- type RegistryKind
- type RegistryPage
- type ReservationId
- type ReservationPage
- type Role
- type RoleChangeImpact
- type RoleId
- type RoleList
- type RotateRegionProxyTokenJSONRequestBody
- type RotateRegionProxyTokenRequest
- type RunnerId
- type Sandbox
- type SandboxAccessToken
- type SandboxClass
- type SandboxCreateOperation
- type SandboxEventTicket
- type SandboxId
- type SandboxLabels
- type SandboxLifecyclePolicy
- type SandboxLimits
- type SandboxList
- type SandboxListItem
- type SandboxPage
- type SandboxPort
- type SandboxPortPage
- type SandboxResourceLimits
- type SandboxSearchPage
- type SandboxSearchSort
- type SandboxSecrets
- type SandboxStatus
- type SandboxTimeoutLimits
- type SandboxUsage
- type SandboxUsageHistory
- type SandboxUsageSample
- type SearchImagesParams
- type SearchSandboxesParams
- type SearchSecretsParams
- type SearchSnapshotsParams
- type SearchTotalRelation
- type SearchVolumesParams
- type Secret
- type SecretName
- type SecretPage
- type SecretSearchListItem
- type SecretSearchPage
- type SecretSearchSort
- type ServiceAccountId
- type SetAutomaticTopUpJSONRequestBody
- type SetAutomaticTopUpRequest
- type SetBalanceNotificationJSONRequestBody
- type SetBalanceNotificationRequest
- type SetBillingContactJSONRequestBody
- type SetBillingContactRequest
- type SetOtelConfigJSONRequestBody
- type SetOtelConfigRequest
- type SetPlanJSONRequestBody
- type SetPlanRequest
- type SetProjectBudgetJSONRequestBody
- type SetProjectBudgetRequest
- type SetRegistryJSONRequestBody
- type SetRegistryRequest
- type SetRegistryRequestKind
- type SetSandboxLabelsJSONRequestBody
- type SetSandboxLabelsRequest
- type SetSandboxNetworkPolicyJSONBody
- type SetSandboxNetworkPolicyJSONRequestBody
- type SetSandboxNetworkPolicyParams
- type SetSandboxNetworkPolicyRequest
- type SetSandboxPortJSONRequestBody
- type SetSandboxPortRequest
- type SetSandboxSecretsJSONRequestBody
- type SetSandboxSecretsParams
- type SetSandboxSecretsRequest
- type SetSecretJSONRequestBody
- type SetSecretParams
- type SetSecretRequest
- type SignSandboxFileUrlJSONRequestBody
- type SignSandboxFileUrlRequest
- type SignedFileUrl
- type SignedPreviewUrl
- type Snapshot
- type SnapshotClass
- type SnapshotIdOrName
- type SnapshotKind
- type SnapshotListItem
- type SnapshotPage
- type SnapshotReference
- type SnapshotSearchClass
- type SnapshotSearchPage
- type SnapshotSearchSort
- type SnapshotStatus
- type SortOrder
- type SshGatewayConfig
- type SsoConnection
- type SsoConnectionPage
- type SsoSetupLink
- type StorageLimits
- type TimeoutMs
- type TimeoutSource
- type TokenExchange
- type TooManyRequests
- type Unauthorized
- type UpdateAuditConfigJSONRequestBody
- type UpdateAuditConfigRequest
- type UpdateEphemeralLifecycleDefaults
- type UpdateImageJSONRequestBody
- type UpdateImageParams
- type UpdateImageRequest
- type UpdateMacosSettingsJSONRequestBody
- type UpdateMacosSettingsRequest
- type UpdateMemberJSONRequestBody
- type UpdateMemberRequest
- type UpdateOrgJSONRequestBody
- type UpdateOrganizationRegionJSONRequestBody
- type UpdateOrganizationRegionRequest
- type UpdateOrganizationRequest
- type UpdateOrganizationRoleJSONRequestBody
- type UpdateOrganizationRoleRequest
- type UpdatePreviewWarningJSONRequestBody
- type UpdatePreviewWarningRequest
- type UpdateProjectApiKeyJSONRequestBody
- type UpdateProjectApiKeyRequest
- type UpdateProjectJSONRequestBody
- type UpdateProjectLifecyclePolicyJSONRequestBody
- type UpdateProjectLifecyclePolicyRequest
- type UpdateProjectLimitsJSONRequestBody
- type UpdateProjectLimitsRequest
- type UpdateProjectRequest
- type UpdateReservationJSONRequestBody
- type UpdateReservationRequest
- type UpdateSandboxLifecyclePolicyJSONRequestBody
- type UpdateSandboxLifecyclePolicyRequest
- type UpdateServiceAccountJSONRequestBody
- type UpdateServiceAccountRequest
- type UsageCharge
- type UsageHistoryResolution
- type UsageLimit
- type UsagePeriod
- type UsagePeriodPage
- type UsagePeriodStatus
- type UsageReport
- type UsageReportEntry
- type UsageReportResolution
- type UsageResources
- type User
- type UserId
- type V0MigrationSummary
- type V0Sandbox
- type V0SandboxImport
- type V0SandboxPage
- type Volume
- type VolumeBucketOrigin
- type VolumeIdOrName
- type VolumeMount
- type VolumePage
- type VolumeSearchListItem
- type VolumeSearchPage
- type VolumeSearchSort
- type VolumeSearchStatus
- type VolumeStatus
- type VolumeType
- type Wait
- type WaitSandboxesParams
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptInvitationJSONRequestBody ¶
type AcceptInvitationJSONRequestBody = AcceptInvitationRequest
AcceptInvitationJSONRequestBody defines body for AcceptInvitation for application/json ContentType.
type AcceptInvitationRequest ¶
type AcceptInvitationRequest struct {
// Token The invitation token.
Token string `json:"token"`
}
AcceptInvitationRequest defines model for AcceptInvitationRequest.
type AcceptPrivacyPolicyJSONRequestBody ¶
type AcceptPrivacyPolicyJSONRequestBody = AcceptPrivacyPolicyRequest
AcceptPrivacyPolicyJSONRequestBody defines body for AcceptPrivacyPolicy for application/json ContentType.
type AcceptPrivacyPolicyRequest ¶
type AcceptPrivacyPolicyRequest struct {
// Version The policy version the user was shown and accepts.
Version string `json:"version"`
}
AcceptPrivacyPolicyRequest The privacy policy version the user was shown and accepts. It must equal the version the platform requires now, so an acceptance of an older version is refused rather than recorded as consent to text the user never saw.
type AddProjectMembersJSONRequestBody ¶
type AddProjectMembersJSONRequestBody = AddProjectMembersRequest
AddProjectMembersJSONRequestBody defines body for AddProjectMembers for application/json ContentType.
type AddProjectMembersRequest ¶
type AddProjectMembersRequest struct {
// UserIds The user IDs.
UserIds []openapi_types.UUID `json:"user_ids"`
}
AddProjectMembersRequest defines model for AddProjectMembersRequest.
type AddProjectServiceAccountJSONRequestBody ¶
type AddProjectServiceAccountJSONRequestBody = AddProjectServiceAccountRequest
AddProjectServiceAccountJSONRequestBody defines body for AddProjectServiceAccount for application/json ContentType.
type AddProjectServiceAccountRequest ¶
type AddProjectServiceAccountRequest struct {
// ServiceAccountId The service account ID.
ServiceAccountId openapi_types.UUID `json:"service_account_id"`
}
AddProjectServiceAccountRequest defines model for AddProjectServiceAccountRequest.
type AnalyticsConfig ¶
type AnalyticsConfig struct {
// ApiKey Public browser analytics key.
ApiKey string `json:"api_key"`
// Environment Environment tag the browser stamps on its events.
Environment string `json:"environment"`
// Host Ingestion host the browser talks to.
Host string `json:"host"`
}
AnalyticsConfig Browser analytics configuration.
type ApiErrorCode ¶
type ApiErrorCode string
ApiErrorCode Stable machine-readable error codes, returned as `ErrorBody.code` when `source` is `DAYTONA_API`.
const ( AUTOMATICTOPUPNOTAVAILABLE ApiErrorCode = "AUTOMATIC_TOP_UP_NOT_AVAILABLE" AUTORESERVELIMITREACHED ApiErrorCode = "AUTO_RESERVE_LIMIT_REACHED" BADGATEWAY ApiErrorCode = "BAD_GATEWAY" BADRANGE ApiErrorCode = "BAD_RANGE" BADREQUEST ApiErrorCode = "BAD_REQUEST" BADRESOLUTION ApiErrorCode = "BAD_RESOLUTION" BILLINGACCOUNTCONFLICT ApiErrorCode = "BILLING_ACCOUNT_CONFLICT" BILLINGDISABLED ApiErrorCode = "BILLING_DISABLED" BILLINGERROR ApiErrorCode = "BILLING_ERROR" BILLINGFORBIDDEN ApiErrorCode = "BILLING_FORBIDDEN" BILLINGNOTPROVISIONED ApiErrorCode = "BILLING_NOT_PROVISIONED" BILLINGUNAVAILABLE ApiErrorCode = "BILLING_UNAVAILABLE" BILLINGUNREACHABLE ApiErrorCode = "BILLING_UNREACHABLE" BUCKETCREATEFAILED ApiErrorCode = "BUCKET_CREATE_FAILED" BUCKETDELETEFAILED ApiErrorCode = "BUCKET_DELETE_FAILED" BUCKETNOTEMPTY ApiErrorCode = "BUCKET_NOT_EMPTY" CHARGEFAILED ApiErrorCode = "CHARGE_FAILED" CHARGENOTFOUND ApiErrorCode = "CHARGE_NOT_FOUND" CHARGENOTSUCCEEDED ApiErrorCode = "CHARGE_NOT_SUCCEEDED" CONFLICT ApiErrorCode = "CONFLICT" COUPONALREADYREDEEMED ApiErrorCode = "COUPON_ALREADY_REDEEMED" COUPONEXPIRED ApiErrorCode = "COUPON_EXPIRED" COUPONLIMITREACHED ApiErrorCode = "COUPON_LIMIT_REACHED" COUPONNOTFOUND ApiErrorCode = "COUPON_NOT_FOUND" CREATEBODYTOOLARGE ApiErrorCode = "CREATE_BODY_TOO_LARGE" CREATETTLOUTOFRANGE ApiErrorCode = "CREATE_TTL_OUT_OF_RANGE" DEFAULTIMAGENOTCONFIGURED ApiErrorCode = "DEFAULT_IMAGE_NOT_CONFIGURED" DISKNOTREADY ApiErrorCode = "DISK_NOT_READY" ECRACCOUNTMISMATCH ApiErrorCode = "ECR_ACCOUNT_MISMATCH" ECRCREDENTIALSINVALID ApiErrorCode = "ECR_CREDENTIALS_INVALID" ECROWNERSHIPUNVERIFIABLE ApiErrorCode = "ECR_OWNERSHIP_UNVERIFIABLE" EMAILACCESSDENIED ApiErrorCode = "EMAIL_ACCESS_DENIED" ENTITLEMENTREQUIRED ApiErrorCode = "ENTITLEMENT_REQUIRED" FEATURENOTENABLED ApiErrorCode = "FEATURE_NOT_ENABLED" FORBIDDEN ApiErrorCode = "FORBIDDEN" GATEWAYTIMEOUT ApiErrorCode = "GATEWAY_TIMEOUT" GONE ApiErrorCode = "GONE" GPUACCESSUNDERREVIEW ApiErrorCode = "GPU_ACCESS_UNDER_REVIEW" IDEMPOTENCYKEYREUSED ApiErrorCode = "IDEMPOTENCY_KEY_REUSED" IDLEOUTOFRANGE ApiErrorCode = "IDLE_OUT_OF_RANGE" IFMATCHREQUIRED ApiErrorCode = "IF_MATCH_REQUIRED" IMAGEBUILDFAILED ApiErrorCode = "IMAGE_BUILD_FAILED" IMAGECLASSMISMATCH ApiErrorCode = "IMAGE_CLASS_MISMATCH" IMAGEFORMATOUTDATED ApiErrorCode = "IMAGE_FORMAT_OUTDATED" IMAGENAMERESERVED ApiErrorCode = "IMAGE_NAME_RESERVED" IMAGENAMETAKEN ApiErrorCode = "IMAGE_NAME_TAKEN" IMAGENOTFOUND ApiErrorCode = "IMAGE_NOT_FOUND" IMAGENOTREADY ApiErrorCode = "IMAGE_NOT_READY" IMAGETOOLARGE ApiErrorCode = "IMAGE_TOO_LARGE" IMPORTEDKEYALWAYSSYNCED ApiErrorCode = "IMPORTED_KEY_ALWAYS_SYNCED" INSUFFICIENTBALANCE ApiErrorCode = "INSUFFICIENT_BALANCE" INTERNALSERVERERROR ApiErrorCode = "INTERNAL_SERVER_ERROR" INVALIDFORSOURCE ApiErrorCode = "INVALID_FOR_SOURCE" INVALIDPARENTREGION ApiErrorCode = "INVALID_PARENT_REGION" INVALIDPREVIEWDOMAIN ApiErrorCode = "INVALID_PREVIEW_DOMAIN" INVALIDSANDBOXCIDR ApiErrorCode = "INVALID_SANDBOX_CIDR" INVALIDTOOLBOXPROXYURL ApiErrorCode = "INVALID_TOOLBOX_PROXY_URL" INVOICENOTFINALIZED ApiErrorCode = "INVOICE_NOT_FINALIZED" INVOICENOTFOUND ApiErrorCode = "INVOICE_NOT_FOUND" INVOICENOTPAYABLE ApiErrorCode = "INVOICE_NOT_PAYABLE" KEYSYNCNOTAPPLICABLE ApiErrorCode = "KEY_SYNC_NOT_APPLICABLE" LIMITEXCEEDED ApiErrorCode = "LIMIT_EXCEEDED" MACDISKFULL ApiErrorCode = "MAC_DISK_FULL" MANAGEMENTPLANEELSEWHERE ApiErrorCode = "MANAGEMENT_PLANE_ELSEWHERE" MEMBERSHIPEDITSFROZEN ApiErrorCode = "MEMBERSHIP_EDITS_FROZEN" METHODNOTALLOWED ApiErrorCode = "METHOD_NOT_ALLOWED" NETWORKPOLICYDOMAINSREQUIREBLOCKALL ApiErrorCode = "NETWORK_POLICY_DOMAINS_REQUIRE_BLOCK_ALL" NETWORKPOLICYTRANSITIONINPROGRESS ApiErrorCode = "NETWORK_POLICY_TRANSITION_IN_PROGRESS" NOACTIVERESERVATION ApiErrorCode = "NO_ACTIVE_RESERVATION" NOFREESLOT ApiErrorCode = "NO_FREE_SLOT" NOMACAVAILABLE ApiErrorCode = "NO_MAC_AVAILABLE" NOTFOUND ApiErrorCode = "NOT_FOUND" NOTIMPLEMENTED ApiErrorCode = "NOT_IMPLEMENTED" NOTSUPPORTEDFORCLASS ApiErrorCode = "NOT_SUPPORTED_FOR_CLASS" ORGSUSPENDED ApiErrorCode = "ORG_SUSPENDED" ORIGINIMPORTONLY ApiErrorCode = "ORIGIN_IMPORT_ONLY" OVERLOADED ApiErrorCode = "OVERLOADED" PAYLOADTOOLARGE ApiErrorCode = "PAYLOAD_TOO_LARGE" PAYMENTMETHODREQUIRED ApiErrorCode = "PAYMENT_METHOD_REQUIRED" PAYMENTREQUIRED ApiErrorCode = "PAYMENT_REQUIRED" PLACEMENTUNAVAILABLE ApiErrorCode = "PLACEMENT_UNAVAILABLE" PLANCHANGEPENDING ApiErrorCode = "PLAN_CHANGE_PENDING" PLANMANAGEDBYOPERATOR ApiErrorCode = "PLAN_MANAGED_BY_OPERATOR" PLANREQUIRESSALES ApiErrorCode = "PLAN_REQUIRES_SALES" PLANUNCHANGED ApiErrorCode = "PLAN_UNCHANGED" PROJECTBUDGETEXCEEDED ApiErrorCode = "PROJECT_BUDGET_EXCEEDED" RATELIMITED ApiErrorCode = "RATE_LIMITED" READONLYUNSUPPORTED ApiErrorCode = "READ_ONLY_UNSUPPORTED" REGIONLIMITREACHED ApiErrorCode = "REGION_LIMIT_REACHED" REGIONNOTEMPTY ApiErrorCode = "REGION_NOT_EMPTY" REGIONNOTFOUND ApiErrorCode = "REGION_NOT_FOUND" REGIONSUBNETSEXHAUSTED ApiErrorCode = "REGION_SUBNETS_EXHAUSTED" REGIONUNAVAILABLE ApiErrorCode = "REGION_UNAVAILABLE" REQUESTTIMEOUT ApiErrorCode = "REQUEST_TIMEOUT" RESERVATIONNOTFOUND ApiErrorCode = "RESERVATION_NOT_FOUND" ROLEINUSE ApiErrorCode = "ROLE_IN_USE" RUNNERHASSANDBOXES ApiErrorCode = "RUNNER_HAS_SANDBOXES" SANDBOXABUSEHOLD ApiErrorCode = "SANDBOX_ABUSE_HOLD" SANDBOXTRANSITIONINPROGRESS ApiErrorCode = "SANDBOX_TRANSITION_IN_PROGRESS" SEARCHNOTCONFIGURED ApiErrorCode = "SEARCH_NOT_CONFIGURED" SEARCHUNAVAILABLE ApiErrorCode = "SEARCH_UNAVAILABLE" SECRETALREADYEXISTS ApiErrorCode = "SECRET_ALREADY_EXISTS" SECRETSTRANSITIONINPROGRESS ApiErrorCode = "SECRETS_TRANSITION_IN_PROGRESS" SERVICEUNAVAILABLE ApiErrorCode = "SERVICE_UNAVAILABLE" SIGNUPNOTINVITED ApiErrorCode = "SIGNUP_NOT_INVITED" SNAPSHOTCLASSMISMATCH ApiErrorCode = "SNAPSHOT_CLASS_MISMATCH" SNAPSHOTINPROGRESS ApiErrorCode = "SNAPSHOT_IN_PROGRESS" SNAPSHOTNOTFOUND ApiErrorCode = "SNAPSHOT_NOT_FOUND" SNAPSHOTNOTREADY ApiErrorCode = "SNAPSHOT_NOT_READY" SNAPSHOTTOOLARGE ApiErrorCode = "SNAPSHOT_TOO_LARGE" SOURCEAMBIGUOUS ApiErrorCode = "SOURCE_AMBIGUOUS" STALENETWORKPOLICYREVISION ApiErrorCode = "STALE_NETWORK_POLICY_REVISION" STALESECRETSREVISION ApiErrorCode = "STALE_SECRETS_REVISION" TOOMANYREQUESTS ApiErrorCode = "TOO_MANY_REQUESTS" UNAUTHORIZED ApiErrorCode = "UNAUTHORIZED" UNKNOWNPLAN ApiErrorCode = "UNKNOWN_PLAN" UNPROCESSABLEENTITY ApiErrorCode = "UNPROCESSABLE_ENTITY" UNSUPPORTEDMEDIATYPE ApiErrorCode = "UNSUPPORTED_MEDIA_TYPE" UNSUPPORTEDVOLUMETYPE ApiErrorCode = "UNSUPPORTED_VOLUME_TYPE" USAGEUNAVAILABLE ApiErrorCode = "USAGE_UNAVAILABLE" USERSUSPENDED ApiErrorCode = "USER_SUSPENDED" V0BACKUPREGISTRYUNCONFIGURED ApiErrorCode = "V0_BACKUP_REGISTRY_UNCONFIGURED" V0BRIDGEUNAVAILABLE ApiErrorCode = "V0_BRIDGE_UNAVAILABLE" V0MIGRATIONDEFAULTPROJECTONLY ApiErrorCode = "V0_MIGRATION_DEFAULT_PROJECT_ONLY" V0SANDBOXNOTFOUND ApiErrorCode = "V0_SANDBOX_NOT_FOUND" V0SANDBOXNOTIMPORTABLE ApiErrorCode = "V0_SANDBOX_NOT_IMPORTABLE" VOLUMENOTFOUND ApiErrorCode = "VOLUME_NOT_FOUND" WORKLOADPLANEELSEWHERE ApiErrorCode = "WORKLOAD_PLANE_ELSEWHERE" )
Defines values for ApiErrorCode.
func (ApiErrorCode) Valid ¶
func (e ApiErrorCode) Valid() bool
Valid indicates whether the value is a known member of the ApiErrorCode enum.
type AsyncOperation ¶
type AsyncOperation struct {
// Id The ID of the resource the operation acts on.
Id string `json:"id"`
// Status The resource's lifecycle status at acceptance.
Status string `json:"status"`
}
AsyncOperation An accepted asynchronous operation.
type AuditActionGroup ¶
type AuditActionGroup struct {
// Actions Actions that can appear against this target type, sorted
// alphabetically.
Actions []string `json:"actions"`
// TargetType The resource type the actions apply to. It matches `target_type` on
// an audit log entry.
TargetType string `json:"target_type"`
}
AuditActionGroup Actions the audit log can record against one target type.
type AuditActionList ¶
type AuditActionList struct {
// Targets One entry per target type, sorted by target type.
Targets []AuditActionGroup `json:"targets"`
}
AuditActionList The supported audit actions, grouped by target type.
type AuditConfig ¶
type AuditConfig struct {
// Disabled Whether audit capture is disabled.
Disabled bool `json:"disabled"`
}
AuditConfig defines model for AuditConfig.
type AuditLogEntry ¶
type AuditLogEntry struct {
// Action The action name.
Action string `json:"action"`
// ActorCreatedBy The user who created the actor key, or `null` when unavailable or hidden.
ActorCreatedBy *openapi_types.UUID `json:"actor_created_by,omitempty"`
// ActorEmail The actor's email address, or `null`.
ActorEmail *string `json:"actor_email,omitempty"`
// ActorKeyId The actor's key ID, or `null`.
ActorKeyId *openapi_types.UUID `json:"actor_key_id,omitempty"`
// ActorKeyPrefix The actor key prefix, or `null`.
ActorKeyPrefix *string `json:"actor_key_prefix,omitempty"`
// ActorKind The actor type.
ActorKind string `json:"actor_kind"`
// ActorPartner The partner application that authenticated the actor, or `null`.
ActorPartner *string `json:"actor_partner,omitempty"`
// ActorServiceAccountId The actor's service account ID, or `null`.
ActorServiceAccountId *openapi_types.UUID `json:"actor_service_account_id,omitempty"`
// ActorUserId The actor's user ID, or `null`.
ActorUserId *openapi_types.UUID `json:"actor_user_id,omitempty"`
// CreatedAt When the action occurred.
CreatedAt time.Time `json:"created_at"`
// ErrorMessage The failure message, or `null` for a successful action.
ErrorMessage *string `json:"error_message,omitempty"`
// Id The audit log entry ID.
Id openapi_types.UUID `json:"id"`
// IpAddress The request IP address, or `null`.
IpAddress *string `json:"ip_address,omitempty"`
// Metadata Additional action details, or `null`.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// ProjectId The project ID, or `null` when the action is organization-wide.
ProjectId *openapi_types.UUID `json:"project_id,omitempty"`
// StatusCode The response status code.
StatusCode int32 `json:"status_code"`
// TargetId The target resource ID, or `null`.
TargetId *string `json:"target_id,omitempty"`
// TargetType The target resource type.
TargetType string `json:"target_type"`
// UserAgent The request user agent, or `null`.
UserAgent *string `json:"user_agent,omitempty"`
}
AuditLogEntry An organization audit log entry.
type AuditLogPage ¶
type AuditLogPage struct {
// AuditLogs The audit log entries.
AuditLogs []AuditLogEntry `json:"audit_logs"`
// NextCursor The cursor for the next page, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
}
AuditLogPage defines model for AuditLogPage.
type AutomaticTopUp ¶
type AutomaticTopUp struct {
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// Enabled Whether automatic top-up is enabled.
Enabled bool `json:"enabled"`
// TargetCents The balance targeted by a top-up, in cents, or `null` when unset.
TargetCents *int64 `json:"target_cents,omitempty"`
// ThresholdCents The balance that triggers a top-up, in cents, or `null` when unset.
ThresholdCents *int64 `json:"threshold_cents,omitempty"`
}
AutomaticTopUp defines model for AutomaticTopUp.
type Balance ¶
type Balance struct {
// ApplicableTo Product restrictions, or `null` when unrestricted.
ApplicableTo *BalanceApplicableTo `json:"applicable_to,omitempty"`
// BalanceCents The remaining balance in cents.
BalanceCents int64 `json:"balance_cents"`
// CreatedAt When the balance was created.
CreatedAt time.Time `json:"created_at"`
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// ExpiresAt When the balance expires, or `null` when it does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// GrantedAmountCents The amount originally granted, in cents.
GrantedAmountCents int64 `json:"granted_amount_cents"`
// Id The balance ID.
Id string `json:"id"`
// Name The balance display name.
Name string `json:"name"`
// Type The balance type.
Type BalanceType `json:"type"`
}
Balance defines model for Balance.
type BalanceApplicableTo ¶
type BalanceApplicableTo struct {
// ProductNames Product names that can consume the balance, or `null` for no name filter.
ProductNames *[]string `json:"product_names,omitempty"`
// ProductTags Product tags that can consume the balance, or `null` for no tag filter.
ProductTags *[]string `json:"product_tags,omitempty"`
}
BalanceApplicableTo defines model for BalanceApplicableTo.
type BalanceNotification ¶
type BalanceNotification struct {
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// Enabled Whether low-balance notifications are enabled.
Enabled bool `json:"enabled"`
// ThresholdCents The notification threshold in cents, or `null` when unset.
ThresholdCents *int64 `json:"threshold_cents,omitempty"`
}
BalanceNotification defines model for BalanceNotification.
type BalancePage ¶
type BalancePage struct {
// Balances The balances in this page.
Balances []Balance `json:"balances"`
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
}
BalancePage defines model for BalancePage.
type BalanceType ¶
type BalanceType string
BalanceType defines model for BalanceType.
const ( Commit BalanceType = "commit" Credit BalanceType = "credit" )
Defines values for BalanceType.
func (BalanceType) Valid ¶
func (e BalanceType) Valid() bool
Valid indicates whether the value is a known member of the BalanceType enum.
type BillingAddress ¶
type BillingAddress struct {
// City The city or locality.
City string `json:"city"`
// Country The two-letter country code.
Country string `json:"country"`
// Line1 The first street-address line.
Line1 string `json:"line1"`
// Line2 The second street-address line.
Line2 string `json:"line2"`
// PostalCode The postal code.
PostalCode string `json:"postal_code"`
// State The state, province, or region.
State string `json:"state"`
}
BillingAddress defines model for BillingAddress.
type BillingContact ¶
type BillingContact struct {
// EffectiveEmail The email currently used for billing notices, or `null` when unavailable.
EffectiveEmail *string `json:"effective_email,omitempty"`
// Email The configured billing email, or `null` when unset.
Email *string `json:"email,omitempty"`
}
BillingContact defines model for BillingContact.
type BillingPeriod ¶
type BillingPeriod struct {
// EndAt The end of the billing period.
EndAt time.Time `json:"end_at"`
// StartAt The beginning of the billing period.
StartAt time.Time `json:"start_at"`
}
BillingPeriod defines model for BillingPeriod.
type BillingPlan ¶
type BillingPlan struct {
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// CurrentPeriod The current billing period, or `null` when unavailable.
CurrentPeriod *BillingPeriod `json:"current_period,omitempty"`
// Entitlements The entitlement keys included in the plan.
Entitlements []string `json:"entitlements"`
// FeeCents The recurring plan fee in cents.
FeeCents int64 `json:"fee_cents"`
// Limits The plan limits.
Limits PlanLimits `json:"limits"`
// MonthlyCreditCents The monthly included credit in cents.
MonthlyCreditCents int64 `json:"monthly_credit_cents"`
// Pending The scheduled plan change, or `null` when none is pending.
Pending *PendingPlanChange `json:"pending,omitempty"`
// Plan The current plan.
Plan PlanName `json:"plan"`
// SelfServe Whether members can change this plan through the API.
SelfServe bool `json:"self_serve"`
}
BillingPlan defines model for BillingPlan.
type BillingProfile ¶
type BillingProfile struct {
// Address The billing address.
Address BillingAddress `json:"address"`
// Email The billing contact email.
Email string `json:"email"`
// Name The legal billing name.
Name string `json:"name"`
// Phone The billing contact phone number.
Phone string `json:"phone"`
// TaxIds The registered tax identifiers.
TaxIds []BillingTaxId `json:"tax_ids"`
}
BillingProfile defines model for BillingProfile.
type BillingSession ¶
type BillingSession struct {
// ExpiresAt When the session expires, or `null` when the provider does not expose an expiry.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Url The generated session URL.
Url string `json:"url"`
}
BillingSession defines model for BillingSession.
type BillingTaxId ¶
type BillingTaxId struct {
// Type The tax identifier type.
Type BillingTaxIdType `json:"type"`
// Value The tax identifier value.
Value string `json:"value"`
}
BillingTaxId defines model for BillingTaxId.
type BillingTaxIdType ¶
type BillingTaxIdType string
BillingTaxIdType defines model for BillingTaxIdType.
const ( BillingTaxIdTypeAdNrt BillingTaxIdType = "ad_nrt" BillingTaxIdTypeAeTrn BillingTaxIdType = "ae_trn" BillingTaxIdTypeAlTin BillingTaxIdType = "al_tin" BillingTaxIdTypeAmTin BillingTaxIdType = "am_tin" BillingTaxIdTypeAoTin BillingTaxIdType = "ao_tin" BillingTaxIdTypeArCuit BillingTaxIdType = "ar_cuit" BillingTaxIdTypeAuAbn BillingTaxIdType = "au_abn" BillingTaxIdTypeAuArn BillingTaxIdType = "au_arn" BillingTaxIdTypeAwTin BillingTaxIdType = "aw_tin" BillingTaxIdTypeAzTin BillingTaxIdType = "az_tin" BillingTaxIdTypeBaTin BillingTaxIdType = "ba_tin" BillingTaxIdTypeBbTin BillingTaxIdType = "bb_tin" BillingTaxIdTypeBdBin BillingTaxIdType = "bd_bin" BillingTaxIdTypeBfIfu BillingTaxIdType = "bf_ifu" BillingTaxIdTypeBgUic BillingTaxIdType = "bg_uic" BillingTaxIdTypeBhVat BillingTaxIdType = "bh_vat" BillingTaxIdTypeBjIfu BillingTaxIdType = "bj_ifu" BillingTaxIdTypeBoTin BillingTaxIdType = "bo_tin" BillingTaxIdTypeBrCnpj BillingTaxIdType = "br_cnpj" BillingTaxIdTypeBrCpf BillingTaxIdType = "br_cpf" BillingTaxIdTypeBsTin BillingTaxIdType = "bs_tin" BillingTaxIdTypeByTin BillingTaxIdType = "by_tin" BillingTaxIdTypeCaBn BillingTaxIdType = "ca_bn" BillingTaxIdTypeCaGstHst BillingTaxIdType = "ca_gst_hst" BillingTaxIdTypeCaPstBc BillingTaxIdType = "ca_pst_bc" BillingTaxIdTypeCaPstMb BillingTaxIdType = "ca_pst_mb" BillingTaxIdTypeCaPstSk BillingTaxIdType = "ca_pst_sk" BillingTaxIdTypeCaQst BillingTaxIdType = "ca_qst" BillingTaxIdTypeCdNif BillingTaxIdType = "cd_nif" BillingTaxIdTypeChUid BillingTaxIdType = "ch_uid" BillingTaxIdTypeChVat BillingTaxIdType = "ch_vat" BillingTaxIdTypeClTin BillingTaxIdType = "cl_tin" BillingTaxIdTypeCmNiu BillingTaxIdType = "cm_niu" BillingTaxIdTypeCnTin BillingTaxIdType = "cn_tin" BillingTaxIdTypeCoNit BillingTaxIdType = "co_nit" BillingTaxIdTypeCrTin BillingTaxIdType = "cr_tin" BillingTaxIdTypeCvNif BillingTaxIdType = "cv_nif" BillingTaxIdTypeDeStn BillingTaxIdType = "de_stn" BillingTaxIdTypeDoRcn BillingTaxIdType = "do_rcn" BillingTaxIdTypeEcRuc BillingTaxIdType = "ec_ruc" BillingTaxIdTypeEgTin BillingTaxIdType = "eg_tin" BillingTaxIdTypeEsCif BillingTaxIdType = "es_cif" BillingTaxIdTypeEtTin BillingTaxIdType = "et_tin" BillingTaxIdTypeEuOssVat BillingTaxIdType = "eu_oss_vat" BillingTaxIdTypeEuVat BillingTaxIdType = "eu_vat" BillingTaxIdTypeGbVat BillingTaxIdType = "gb_vat" BillingTaxIdTypeGeVat BillingTaxIdType = "ge_vat" BillingTaxIdTypeGnNif BillingTaxIdType = "gn_nif" BillingTaxIdTypeHkBr BillingTaxIdType = "hk_br" BillingTaxIdTypeHrOib BillingTaxIdType = "hr_oib" BillingTaxIdTypeHuTin BillingTaxIdType = "hu_tin" BillingTaxIdTypeIdNpwp BillingTaxIdType = "id_npwp" BillingTaxIdTypeIlVat BillingTaxIdType = "il_vat" BillingTaxIdTypeInGst BillingTaxIdType = "in_gst" BillingTaxIdTypeIsVat BillingTaxIdType = "is_vat" BillingTaxIdTypeJpCn BillingTaxIdType = "jp_cn" BillingTaxIdTypeJpRn BillingTaxIdType = "jp_rn" BillingTaxIdTypeJpTrn BillingTaxIdType = "jp_trn" BillingTaxIdTypeKePin BillingTaxIdType = "ke_pin" BillingTaxIdTypeKgTin BillingTaxIdType = "kg_tin" BillingTaxIdTypeKhTin BillingTaxIdType = "kh_tin" BillingTaxIdTypeKrBrn BillingTaxIdType = "kr_brn" BillingTaxIdTypeKzBin BillingTaxIdType = "kz_bin" BillingTaxIdTypeLaTin BillingTaxIdType = "la_tin" BillingTaxIdTypeLiUid BillingTaxIdType = "li_uid" BillingTaxIdTypeLiVat BillingTaxIdType = "li_vat" BillingTaxIdTypeMaVat BillingTaxIdType = "ma_vat" BillingTaxIdTypeMdVat BillingTaxIdType = "md_vat" BillingTaxIdTypeMePib BillingTaxIdType = "me_pib" BillingTaxIdTypeMkVat BillingTaxIdType = "mk_vat" BillingTaxIdTypeMrNif BillingTaxIdType = "mr_nif" BillingTaxIdTypeMxRfc BillingTaxIdType = "mx_rfc" BillingTaxIdTypeMyFrp BillingTaxIdType = "my_frp" BillingTaxIdTypeMyItn BillingTaxIdType = "my_itn" BillingTaxIdTypeMySst BillingTaxIdType = "my_sst" BillingTaxIdTypeNgTin BillingTaxIdType = "ng_tin" BillingTaxIdTypeNoVat BillingTaxIdType = "no_vat" BillingTaxIdTypeNoVoec BillingTaxIdType = "no_voec" BillingTaxIdTypeNpPan BillingTaxIdType = "np_pan" BillingTaxIdTypeNzGst BillingTaxIdType = "nz_gst" BillingTaxIdTypeOmVat BillingTaxIdType = "om_vat" BillingTaxIdTypeOther BillingTaxIdType = "other" BillingTaxIdTypePeRuc BillingTaxIdType = "pe_ruc" BillingTaxIdTypePhTin BillingTaxIdType = "ph_tin" BillingTaxIdTypeRoTin BillingTaxIdType = "ro_tin" BillingTaxIdTypeRsPib BillingTaxIdType = "rs_pib" BillingTaxIdTypeRuInn BillingTaxIdType = "ru_inn" BillingTaxIdTypeRuKpp BillingTaxIdType = "ru_kpp" BillingTaxIdTypeSaVat BillingTaxIdType = "sa_vat" BillingTaxIdTypeSgGst BillingTaxIdType = "sg_gst" BillingTaxIdTypeSgUen BillingTaxIdType = "sg_uen" BillingTaxIdTypeSiTin BillingTaxIdType = "si_tin" BillingTaxIdTypeSnNinea BillingTaxIdType = "sn_ninea" BillingTaxIdTypeSrFin BillingTaxIdType = "sr_fin" BillingTaxIdTypeSvNit BillingTaxIdType = "sv_nit" BillingTaxIdTypeThVat BillingTaxIdType = "th_vat" BillingTaxIdTypeTjTin BillingTaxIdType = "tj_tin" BillingTaxIdTypeTrTin BillingTaxIdType = "tr_tin" BillingTaxIdTypeTwVat BillingTaxIdType = "tw_vat" BillingTaxIdTypeTzVat BillingTaxIdType = "tz_vat" BillingTaxIdTypeUaVat BillingTaxIdType = "ua_vat" BillingTaxIdTypeUgTin BillingTaxIdType = "ug_tin" BillingTaxIdTypeUsEin BillingTaxIdType = "us_ein" BillingTaxIdTypeUyRuc BillingTaxIdType = "uy_ruc" BillingTaxIdTypeUzTin BillingTaxIdType = "uz_tin" BillingTaxIdTypeUzVat BillingTaxIdType = "uz_vat" BillingTaxIdTypeVeRif BillingTaxIdType = "ve_rif" BillingTaxIdTypeVnTin BillingTaxIdType = "vn_tin" BillingTaxIdTypeZaVat BillingTaxIdType = "za_vat" BillingTaxIdTypeZmTin BillingTaxIdType = "zm_tin" BillingTaxIdTypeZwTin BillingTaxIdType = "zw_tin" )
Defines values for BillingTaxIdType.
func (BillingTaxIdType) Valid ¶
func (e BillingTaxIdType) Valid() bool
Valid indicates whether the value is a known member of the BillingTaxIdType enum.
type BillingType ¶
type BillingType string
BillingType defines model for BillingType.
const ( PostPaid BillingType = "post-paid" PrePaid BillingType = "pre-paid" )
Defines values for BillingType.
func (BillingType) Valid ¶
func (e BillingType) Valid() bool
Valid indicates whether the value is a known member of the BillingType enum.
type BillingUsagePeriod ¶
type BillingUsagePeriod struct {
// AmountCents The pre-tax usage amount in cents.
AmountCents int64 `json:"amount_cents"`
// Charges The itemized usage charges.
Charges []UsageCharge `json:"charges"`
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// EndAt The exclusive end of the usage period.
EndAt time.Time `json:"end_at"`
// IssuedAt When the usage statement was issued.
IssuedAt time.Time `json:"issued_at"`
// StartAt The inclusive beginning of the usage period.
StartAt time.Time `json:"start_at"`
// Status The usage period status.
Status UsagePeriodStatus `json:"status"`
// TaxesAmountCents The tax amount in cents.
TaxesAmountCents int64 `json:"taxes_amount_cents"`
// TotalAmountCents The usage amount including taxes, in cents.
TotalAmountCents int64 `json:"total_amount_cents"`
}
BillingUsagePeriod defines model for BillingUsagePeriod.
type BucketCredentials ¶
type BucketCredentials struct {
// AccessKeySecret The project secret containing the access key.
AccessKeySecret string `json:"access_key_secret"`
// SecretKeySecret The project secret containing the secret key.
SecretKeySecret string `json:"secret_key_secret"`
}
BucketCredentials Secret names used to access an external bucket.
type BucketOptions ¶
type BucketOptions struct {
// Credentials The secret names used to access the bucket.
Credentials *BucketCredentials `json:"credentials,omitempty"`
// Endpoint Non-AWS S3 endpoint (`http(s)://…`); absent or empty means AWS.
Endpoint *string `json:"endpoint,omitempty"`
// Name The bucket name.
Name string `json:"name"`
// Origin The bucket origin. Defaults to `external`; managed buckets are requested
// by omitting this whole object.
Origin *ExternalBucketOrigin `json:"origin,omitempty"`
// PathStyle Whether requests use path-style bucket addressing. Defaults to `false`.
PathStyle *bool `json:"path_style,omitempty"`
// Prefix Key prefix the volume is scoped to. A trailing `/` is added if missing.
Prefix *string `json:"prefix,omitempty"`
// Region The S3 bucket's region. The default bucket region is used when
// omitted.
Region *string `json:"region,omitempty"`
}
BucketOptions The customer's own bucket, for a bucket volume with origin `external`.
type BuildContextUpload ¶
type BuildContextUpload struct {
// Bytes The size of the build-context tar in bytes.
Bytes int64 `json:"bytes"`
// Dockerfile Path of the Dockerfile within the context.
Dockerfile string `json:"dockerfile"`
// ExpiresAt When a `ready` upload can no longer be used by a build.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The upload ID.
Id openapi_types.UUID `json:"id"`
// PartSize The size of every part but the last, in bytes. Set while `uploading`.
PartSize *int64 `json:"part_size,omitempty"`
// Parts The parts to upload. Empty once the upload is `ready`.
Parts []BuildContextUploadPart `json:"parts"`
// RegionId The region the upload belongs to.
RegionId string `json:"region_id"`
// Sha256 The SHA-256 of the build-context tar.
Sha256 string `json:"sha256"`
// State `uploading` until the upload is completed and verified, then `ready`.
State BuildContextUploadState `json:"state"`
// UploadExpiresAt When an upload that was not completed expires and is deleted. Set
// while `uploading`.
UploadExpiresAt *time.Time `json:"upload_expires_at,omitempty"`
// UrlsExpireAt When the part URLs stop accepting uploads. Set while `uploading`.
UrlsExpireAt *time.Time `json:"urls_expire_at,omitempty"`
}
BuildContextUpload A build-context upload.
type BuildContextUploadPart ¶
type BuildContextUploadPart struct {
// Bytes The exact size of the part's body in bytes.
Bytes int64 `json:"bytes"`
// PartNumber The part's 1-based number. Part `n` holds the archive bytes from
// `(n - 1) * part_size` on.
PartNumber int32 `json:"part_number"`
// Url A presigned URL that accepts one `PUT` of exactly `bytes` bytes until
// `urls_expire_at`. It is a credential: do not log or share it.
Url string `json:"url"`
}
BuildContextUploadPart One part of a build-context upload.
type BuildContextUploadState ¶
type BuildContextUploadState string
BuildContextUploadState The state of a build-context upload.
const ( BuildContextUploadStateReady BuildContextUploadState = "ready" BuildContextUploadStateUploading BuildContextUploadState = "uploading" )
Defines values for BuildContextUploadState.
func (BuildContextUploadState) Valid ¶
func (e BuildContextUploadState) Valid() bool
Valid indicates whether the value is a known member of the BuildContextUploadState enum.
type BuildLogsUrl ¶
type BuildLogsUrl struct {
// Url The URL for reading the build logs.
Url string `json:"url"`
}
BuildLogsUrl A link to build logs.
type ChangeImageFormatParams ¶
type ChangeImageFormatParams struct {
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
ChangeImageFormatParams defines parameters for ChangeImageFormat.
type ChangeImpact ¶
type ChangeImpact struct {
// RevokedApiKeys The number of API keys the change would revoke.
RevokedApiKeys int64 `json:"revoked_api_keys"`
}
ChangeImpact defines model for ChangeImpact.
type Charge ¶
type Charge struct {
// AmountCents The charged amount in cents.
AmountCents int64 `json:"amount_cents"`
// CreatedAt When the charge was created.
CreatedAt time.Time `json:"created_at"`
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// Description The charge description.
Description string `json:"description"`
// FailureMessage The payment failure detail, or `null` when no failure occurred.
FailureMessage *string `json:"failure_message,omitempty"`
// HasInvoice Whether an invoice is attached.
HasInvoice bool `json:"has_invoice"`
// HasPdf Whether a downloadable PDF receipt is available.
HasPdf bool `json:"has_pdf"`
// Id The charge ID.
Id string `json:"id"`
// InvoiceUrl The hosted invoice URL, or `null` when unavailable.
InvoiceUrl *string `json:"invoice_url,omitempty"`
// ReceiptUrl The hosted receipt URL, or `null` when unavailable.
ReceiptUrl *string `json:"receipt_url,omitempty"`
// Status The charge status.
Status ChargeStatus `json:"status"`
}
Charge defines model for Charge.
type ChargePage ¶
type ChargePage struct {
// Charges The charges in this page.
Charges []Charge `json:"charges"`
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
}
ChargePage defines model for ChargePage.
type ChargeReceiptPdf ¶
type ChargeReceiptPdf = openapi_types.File
ChargeReceiptPdf The charge receipt PDF.
type ChargeStatus ¶
type ChargeStatus string
ChargeStatus defines model for ChargeStatus.
const ( ChargeStatusFailed ChargeStatus = "failed" ChargeStatusPending ChargeStatus = "pending" ChargeStatusSucceeded ChargeStatus = "succeeded" )
Defines values for ChargeStatus.
func (ChargeStatus) Valid ¶
func (e ChargeStatus) Valid() bool
Valid indicates whether the value is a known member of the ChargeStatus enum.
type CompleteBuildContextUploadJSONRequestBody ¶
type CompleteBuildContextUploadJSONRequestBody = CompleteBuildContextUploadRequest
CompleteBuildContextUploadJSONRequestBody defines body for CompleteBuildContextUpload for application/json ContentType.
type CompleteBuildContextUploadRequest ¶
type CompleteBuildContextUploadRequest struct {
// RegionId The region the upload was created in, as `POST /build-contexts`
// returned it. Required: a multi-region deployment routes the request
// to that region's servers by it.
RegionId string `json:"region_id"`
}
CompleteBuildContextUploadRequest defines model for CompleteBuildContextUploadRequest.
type Config ¶
type Config struct {
// Analytics Browser analytics configuration. `null` when analytics is disabled.
Analytics *AnalyticsConfig `json:"analytics"`
// AnalyticsUrl Public base URL for spending analytics. `null` when unavailable.
AnalyticsUrl *string `json:"analytics_url,omitempty"`
// ApiUrl Public base URL of this API when the deployment advertises one.
ApiUrl *string `json:"api_url,omitempty"`
// BillingEnabled Whether billing features are available.
BillingEnabled bool `json:"billing_enabled"`
// BuildSha API build identifier; `unknown` when unavailable.
BuildSha string `json:"build_sha"`
// BuiltAt API build time; `null` when unavailable.
BuiltAt *time.Time `json:"built_at,omitempty"`
// DocsUrl Public documentation site URL for this deployment.
DocsUrl *string `json:"docs_url,omitempty"`
// Oidc Login settings. `null` when login is unavailable.
Oidc *OidcPublicConfig `json:"oidc"`
// SshGateway SSH gateway endpoint clients should use. `null` when the deployment does
// not publish one.
SshGateway *SshGatewayConfig `json:"ssh_gateway"`
// ToolboxUrl Base URL for sandbox tools that the browser should use.
ToolboxUrl *string `json:"toolbox_url,omitempty"`
// Version Platform version, or `0.0.0-dev` when unavailable.
Version string `json:"version"`
}
Config The `/config` response body.
type CouponRedemption ¶
type CouponRedemption struct {
// Code The redeemed coupon code.
Code string `json:"code"`
// CreditCents The granted credit in cents.
CreditCents int64 `json:"credit_cents"`
// CreditExpiresAt When the granted credit expires, or `null` when the expiry is not known.
CreditExpiresAt *time.Time `json:"credit_expires_at,omitempty"`
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// RedeemedAt When the coupon was redeemed.
RedeemedAt time.Time `json:"redeemed_at"`
}
CouponRedemption defines model for CouponRedemption.
type CpuArchAvailability ¶
type CpuArchAvailability struct {
// Available Whether the architecture is available in at least one included region.
Available bool `json:"available"`
// Id CPU architecture.
Id CpuArchitecture `json:"id"`
// RegionIds Included regions where this architecture is available.
RegionIds []string `json:"region_ids"`
}
CpuArchAvailability Availability of one CPU architecture across the covered regions.
type CpuArchitecture ¶
type CpuArchitecture string
CpuArchitecture defines model for CpuArchitecture.
const ( Amd64 CpuArchitecture = "amd64" Arm64 CpuArchitecture = "arm64" )
Defines values for CpuArchitecture.
func (CpuArchitecture) Valid ¶
func (e CpuArchitecture) Valid() bool
Valid indicates whether the value is a known member of the CpuArchitecture enum.
type CpuCatalog ¶
type CpuCatalog struct {
// Arches The CPU architectures present in the catalog, with their availability.
Arches []CpuArchAvailability `json:"arches"`
// CpuTypes CPU types and their availability.
CpuTypes []CpuType `json:"cpu_types"`
// Regions Regions included in the catalog.
Regions []CpuCatalogRegion `json:"regions"`
}
CpuCatalog `GET /cpu-catalog` body.
type CpuCatalogRegion ¶
type CpuCatalogRegion struct {
// DefaultArch Default CPU architecture for an unhinted create.
DefaultArch CpuArchitecture `json:"default_arch"`
// DefaultType Default CPU type for an unhinted create, when configured.
DefaultType *string `json:"default_type,omitempty"`
// Id Region identifier.
Id string `json:"id"`
}
CpuCatalogRegion CPU defaults for one included region.
type CpuType ¶
type CpuType struct {
// Available Whether the CPU type is available in at least one included region.
Available bool `json:"available"`
// CpuArch CPU architecture.
CpuArch CpuArchitecture `json:"cpu_arch"`
// ExactRegionIds Included regions that offer this CPU type directly.
ExactRegionIds []string `json:"exact_region_ids"`
// FallbackRegionIds Included regions that can satisfy this CPU type with compatible hardware.
FallbackRegionIds []string `json:"fallback_region_ids"`
// Id CPU type identifier accepted by sandbox create requests.
Id string `json:"id"`
// Name Display name.
Name string `json:"name"`
// Tier Relative performance rank within the architecture; higher is faster.
Tier int32 `json:"tier"`
}
CpuType A CPU type from the platform catalog with its availability across the covered regions.
type CreateBuildContextUploadJSONRequestBody ¶
type CreateBuildContextUploadJSONRequestBody = CreateBuildContextUploadRequest
CreateBuildContextUploadJSONRequestBody defines body for CreateBuildContextUpload for application/json ContentType.
type CreateBuildContextUploadRequest ¶
type CreateBuildContextUploadRequest struct {
// Bytes The size of the build-context tar in bytes, at most 1 GiB.
Bytes int64 `json:"bytes"`
// Dockerfile Path of the Dockerfile within the context. Defaults to `Dockerfile`.
Dockerfile *string `json:"dockerfile,omitempty"`
// RegionId The region the image will be built in. When omitted, the project's
// default region is used, then the organization's, then the platform's
// default region. A build can use the upload only in this region.
RegionId *string `json:"region_id,omitempty"`
// Sha256 The SHA-256 of the build-context tar, as 64 lowercase hex characters.
Sha256 string `json:"sha256"`
// TreeHash The canonical tree hash of the build context, as 64 lowercase hex
// characters. Optional: when set, the upload is refused unless the
// stored archive hashes to it.
TreeHash *string `json:"tree_hash,omitempty"`
}
CreateBuildContextUploadRequest defines model for CreateBuildContextUploadRequest.
type CreateImageJSONRequestBody ¶
type CreateImageJSONRequestBody = CreateImageRequest
CreateImageJSONRequestBody defines body for CreateImage for application/json ContentType.
type CreateImageMultipartRequest ¶
type CreateImageMultipartRequest struct {
// Context The build-context tar, at most 64 MiB. Upload a larger context, up to
// 1 GiB, with `POST /build-contexts` and build it with `context_upload_id`.
Context openapi_types.File `json:"context"`
// CpuArch The CPU architecture: `amd64` or `arm64`. Omit it to use the region default.
CpuArch *string `json:"cpu_arch,omitempty"`
// Dockerfile Path of the Dockerfile within the context. Defaults to `Dockerfile`.
Dockerfile *string `json:"dockerfile,omitempty"`
// IdleExpirySeconds The idle retention window in seconds for an anonymous image. Omitted
// or -1 uses the server maximum. Reuse only extends retention; promote to keep it.
IdleExpirySeconds *int64 `json:"idle_expiry_seconds,omitempty"`
// Name The project-unique image name. Omit it to create an anonymous image.
Name *string `json:"name,omitempty"`
// RegionId The region to create the image in. When omitted, the project's default
// region is used, then the organization's, then the platform's default
// region.
RegionId *string `json:"region_id,omitempty"`
}
CreateImageMultipartRequest The `multipart/form-data` variant of `POST /images`: a Dockerfile build with an uploaded build context.
type CreateImageMultipartRequestBody ¶
type CreateImageMultipartRequestBody = CreateImageMultipartRequest
CreateImageMultipartRequestBody defines body for CreateImage for multipart/form-data ContentType.
type CreateImageRequest ¶
type CreateImageRequest struct {
// ContextUploadId A `ready` build-context upload from `POST /build-contexts` to build:
// the Dockerfile at the upload's `dockerfile` path, with the uploaded
// archive as its context. The image must be created in the upload's
// region. Mutually exclusive with `source` and `dockerfile`.
ContextUploadId *openapi_types.UUID `json:"context_upload_id,omitempty"`
// CpuArch The CPU architecture: `amd64` or `arm64`. Omit it to use the region default.
CpuArch *string `json:"cpu_arch,omitempty"`
// Dockerfile An inline, self-contained Dockerfile body to build. Local files cannot be used with `COPY` or `ADD`; use `multipart/form-data` to upload a build context. Mutually exclusive with `source`.
Dockerfile *string `json:"dockerfile,omitempty"`
// IdleExpirySeconds The idle-retention window in seconds for an anonymous image: the image
// is deleted once this long has passed without a sandbox being created
// from it, and every create from the image restarts the clock. Allowed
// only without `name`; a named image is permanent, and
// `idle_expiry_seconds` with `name` is a `400`. Omitted or `-1` uses the
// maximum, 7 days by default; `1` up to that maximum sets the window.
// Reusing an anonymous image only extends its retention. Promote it to keep it.
// `0`, values below `-1`, and values above the maximum answer
// `400 IDLE_OUT_OF_RANGE`, whose body carries `max`.
IdleExpirySeconds *int64 `json:"idle_expiry_seconds,omitempty"`
// Name The project-unique image name. Omit it to create an anonymous image.
Name *string `json:"name,omitempty"`
// RegionId The region to create the image in. When omitted, the project's default
// region is used, then the organization's, then the platform's default
// region.
RegionId *string `json:"region_id,omitempty"`
// Source A registry image or an existing project image. Mutually exclusive with
// `dockerfile`; exactly one source is required.
Source *PublicImageSource `json:"source,omitempty"`
}
CreateImageRequest defines model for CreateImageRequest.
type CreateInvitationJSONRequestBody ¶
type CreateInvitationJSONRequestBody = CreateInvitationRequest
CreateInvitationJSONRequestBody defines body for CreateInvitation for application/json ContentType.
type CreateInvitationRequest ¶
type CreateInvitationRequest struct {
// Email The email address to invite.
Email string `json:"email"`
// Roles Absent ⇒ `["developer"]`; an explicit empty array is a 400.
Roles *[]string `json:"roles,omitempty"`
}
CreateInvitationRequest defines model for CreateInvitationRequest.
type CreateMacosSandboxJSONRequestBody ¶
type CreateMacosSandboxJSONRequestBody = CreateMacosSandboxRequest
CreateMacosSandboxJSONRequestBody defines body for CreateMacosSandbox for application/json ContentType.
type CreateMacosSandboxRequest ¶
type CreateMacosSandboxRequest struct {
// AutoRenew With `reservation: "new"` only: whether the bought reservation renews itself
// while a sandbox is active on it. Defaults to the organization's
// auto-reserve setting.
AutoRenew *bool `json:"auto_renew,omitempty"`
// Cores CPU cores for this sandbox, at least 4. A Mac core is one CPU of the Mac (Apple Silicon has no SMT). Omitted or null uses the Mac model's default size (`default_size` in `GET /mac-models`).
Cores *int32 `json:"cores,omitempty"`
// CreateTimeoutSeconds Seconds the sandbox can take to reach `running`: 3600 by default, or
// 86400 for an image captured on an earlier version of macOS sandboxes.
// `-1` uses the maximum, 86400. After this time, the platform deletes the
// sandbox. The time includes the wait for a Mac. A reservation that this
// create bought stays bought and charged after that delete.
CreateTimeoutSeconds *int64 `json:"create_timeout_seconds,omitempty"`
// DiskMib Disk for this sandbox in MiB, macOS included, at least 81920. Omitted or null uses the Mac model's default size (`default_size` in `GET /mac-models`). For a create from a captured image, omitted or null uses the image's `disk_mib`, and a smaller value returns 400. The disk and the disk volumes must fit the disk space of the sandbox's Mac (`sandbox_disk_mib` in `GET /mac-models`).
DiskMib *int32 `json:"disk_mib,omitempty"`
// Env Sandbox-specific environment variables. Names must be valid environment variable names.
Env *map[string]string `json:"env,omitempty"`
// IdempotencyKey Idempotency key; the `Idempotency-Key` header wins if both are set.
// It also covers a reservation the create buys: a retry never buys two.
IdempotencyKey *string `json:"idempotency_key,omitempty"`
// Image The macOS image, by name or `img_…` id: a platform macOS image,
// typically `base-macos`, or a macOS image of this project in the
// request's region, such as an image captured from a macOS sandbox.
Image string `json:"image"`
// Labels User-defined labels. Not visible inside the sandbox.
Labels *map[string]string `json:"labels,omitempty"`
// LifecyclePolicy Sandbox lifecycle policy: idle stop and delete timeouts and a wall-clock deadline. Use `POST /sandboxes/{id}/pause` to pause a macOS sandbox. Project lifecycle defaults do not apply to macOS: omitted fields use platform defaults.
LifecyclePolicy *UpdateSandboxLifecyclePolicyRequest `json:"lifecycle_policy,omitempty"`
// MemoryMib Memory for this sandbox in MiB, at least 4096. Omitted or null uses the Mac model's default size (`default_size` in `GET /mac-models`).
MemoryMib *int32 `json:"memory_mib,omitempty"`
// Name Optional sandbox name (defaults to `sandbox-<short-id>`).
Name *string `json:"name,omitempty"`
// NetworkPolicy Egress policy, as on the Linux create: enforced from the sandbox's
// first boot. Change it later with `PUT /sandboxes/{id}/network-policy`.
NetworkPolicy *SetSandboxNetworkPolicyRequest `json:"network_policy,omitempty"`
// Persistent Keep the sandbox's disk and machine across stop and start, and its memory across pause and resume. A start can run on any Mac of the organization. After a start on a different Mac, iCloud asks the user to sign in again. A reservation end or a Mac failure stops a sandbox that has started and never deletes it.
Persistent *bool `json:"persistent,omitempty"`
// Ports Ports exposed when the sandbox starts.
Ports *[]PortMapping `json:"ports,omitempty"`
// RegionId The region to create the sandbox in. When omitted: the named
// reservation's region. Otherwise, when Macs are offered in exactly one
// region, that region; when they are offered in several, the project's or
// organization's default region if it is one of them, else `region_id` is
// required (`400 BAD_REQUEST`). With no Mac region offered, the project's
// default region, then the organization's, then `earth`.
RegionId *string `json:"region_id,omitempty"`
// Reservation Omitted uses any Mac reservation of the organization in the region that fits this size. "new" buys a reservation of the cheapest available Mac model that fits this size. A reservation ID uses only that reservation. An accepted create can wait for space on a Mac until `create_timeout_seconds`.
Reservation *string `json:"reservation,omitempty"`
// Secrets Names of project secrets to attach. Secret values are used only for requests to their allowed hosts.
Secrets *[]string `json:"secrets,omitempty"`
// Volumes Disk volumes to attach, as on Linux: at most 8, each read-write. Each
// volume uses its `size_gib` (100 GiB when omitted) of disk space on the
// sandbox's Mac, beside the sandbox's disk. A sandbox with volumes cannot
// be persistent. A bucket volume returns 400.
Volumes *[]VolumeMount `json:"volumes,omitempty"`
// WaitSeconds Seconds to hold the response until the sandbox is `running`, capped at 3 by default. Omitted uses the cap, `0` returns immediately, and a negative value returns 400. The response carries the status reached when the wait ends.
WaitSeconds *int64 `json:"wait_seconds,omitempty"`
}
CreateMacosSandboxRequest Settings for creating a macOS sandbox.
type CreateOrgApiKeyJSONRequestBody ¶
type CreateOrgApiKeyJSONRequestBody = CreateOrganizationApiKeyRequest
CreateOrgApiKeyJSONRequestBody defines body for CreateOrgApiKey for application/json ContentType.
type CreateOrgJSONRequestBody ¶
type CreateOrgJSONRequestBody = CreateOrganizationRequest
CreateOrgJSONRequestBody defines body for CreateOrg for application/json ContentType.
type CreateOrganizationApiKeyRequest ¶
type CreateOrganizationApiKeyRequest struct {
// ExpiresAt Optional expiry; must be in the future. Absent means it never expires.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Name The key's display name.
Name string `json:"name"`
// OrgPermissions The organization permissions the key holds. Required, with at least
// one entry: a key never gets a default or implied permission set. A
// project permission is not a valid value here.
OrgPermissions []string `json:"org_permissions"`
}
CreateOrganizationApiKeyRequest defines model for CreateOrganizationApiKeyRequest.
type CreateOrganizationRegionJSONRequestBody ¶
type CreateOrganizationRegionJSONRequestBody = CreateOrganizationRegionRequest
CreateOrganizationRegionJSONRequestBody defines body for CreateOrganizationRegion for application/json ContentType.
type CreateOrganizationRegionRequest ¶
type CreateOrganizationRegionRequest struct {
// Name The display name, 1 to 100 characters.
Name string `json:"name"`
// ParentRegionId The ID of a parent region from the organization's parent regions.
ParentRegionId string `json:"parent_region_id"`
// SandboxCidr The private IPv4 range sandbox addresses are allocated from, a prefix
// length between 12 and 20. Default `10.213.0.0/16`.
SandboxCidr *string `json:"sandbox_cidr,omitempty"`
// SubnetPrefixLength The prefix length of each runner's subnet, between 22 and 28 and longer
// than the prefix length of `sandbox_cidr`. Default 24.
SubnetPrefixLength *int32 `json:"subnet_prefix_length,omitempty"`
}
CreateOrganizationRegionRequest The body of an organization-region create.
type CreateOrganizationRequest ¶
type CreateOrganizationRequest struct {
// Name The organization name: at most 64 characters after trimming, with no control characters.
Name string `json:"name"`
}
CreateOrganizationRequest defines model for CreateOrganizationRequest.
type CreateOrganizationRoleJSONRequestBody ¶
type CreateOrganizationRoleJSONRequestBody = CreateOrganizationRoleRequest
CreateOrganizationRoleJSONRequestBody defines body for CreateOrganizationRole for application/json ContentType.
type CreateOrganizationRoleRequest ¶
type CreateOrganizationRoleRequest struct {
// Description The role's purpose.
Description *string `json:"description,omitempty"`
// Name The role name, unique in the organization ignoring case. Leading and
// trailing whitespace is removed and internal whitespace runs collapse
// to one space; the result must be 1 to 64 characters.
Name string `json:"name"`
// OrganizationPermissions The organization permissions the role grants.
OrganizationPermissions []string `json:"organization_permissions"`
// ProjectPermissions The project permissions the role grants.
ProjectPermissions []string `json:"project_permissions"`
}
CreateOrganizationRoleRequest defines model for CreateOrganizationRoleRequest.
type CreateProjectApiKeyJSONRequestBody ¶
type CreateProjectApiKeyJSONRequestBody = CreateProjectApiKeyRequest
CreateProjectApiKeyJSONRequestBody defines body for CreateProjectApiKey for application/json ContentType.
type CreateProjectApiKeyRequest ¶
type CreateProjectApiKeyRequest struct {
// ExpiresAt Optional expiry; must be in the future. Absent means it never expires.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Name The key's display name.
Name *string `json:"name,omitempty"`
// ProjectPermissions The project permissions the key holds. Required, with at least one
// entry: a key never gets a default or implied permission set.
ProjectPermissions []string `json:"project_permissions"`
// ServiceAccountId The service account that owns this key, or `null` for the current user.
ServiceAccountId *openapi_types.UUID `json:"service_account_id,omitempty"`
// SyncToV0 Whether the v0 ↔ v2 key sync may copy this key to Daytona v0. Absent
// = `true`. Only a key a person mints in the organization's `default`
// project is ever copied; elsewhere the field is ignored and the
// response says `false`. A Daytona v0 copy can read every sandbox,
// snapshot and registry of the organization on Daytona v0, which has no
// read permissions; `false` keeps the key on this platform only. Change
// it later by updating the API key.
SyncToV0 *bool `json:"sync_to_v0,omitempty"`
}
CreateProjectApiKeyRequest defines model for CreateProjectApiKeyRequest.
type CreateProjectJSONRequestBody ¶
type CreateProjectJSONRequestBody = CreateProjectRequest
CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
type CreateProjectRequest ¶
type CreateProjectRequest struct {
// Name The project name: at most 64 characters after trimming, with no control characters. `default` is reserved.
Name string `json:"name"`
}
CreateProjectRequest defines model for CreateProjectRequest.
type CreateRegionProxyTokenJSONRequestBody ¶
type CreateRegionProxyTokenJSONRequestBody = CreateRegionProxyTokenRequest
CreateRegionProxyTokenJSONRequestBody defines body for CreateRegionProxyToken for application/json ContentType.
type CreateRegionProxyTokenRequest ¶
type CreateRegionProxyTokenRequest struct {
// ExpiresAt When the token expires; must be in the future.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Name The display name, 1 to 100 characters.
Name *string `json:"name,omitempty"`
// NoExpiry Whether the token never expires.
NoExpiry *bool `json:"no_expiry,omitempty"`
}
CreateRegionProxyTokenRequest The body of a proxy-token create. Name `expires_at` or set `no_expiry`.
type CreateRegionRegistrationTokenJSONRequestBody ¶
type CreateRegionRegistrationTokenJSONRequestBody = CreateRegionRegistrationTokenRequest
CreateRegionRegistrationTokenJSONRequestBody defines body for CreateRegionRegistrationToken for application/json ContentType.
type CreateRegionRegistrationTokenRequest ¶
type CreateRegionRegistrationTokenRequest struct {
// ExpiresInSeconds Seconds until the token expires, 300 to 2592000. Default 604800.
ExpiresInSeconds *int64 `json:"expires_in_seconds,omitempty"`
// MaxUses How many runners the token may enroll, 1 to 1000. Default 100.
MaxUses *int32 `json:"max_uses,omitempty"`
// Name The display name, 1 to 100 characters.
Name string `json:"name"`
}
CreateRegionRegistrationTokenRequest The body of a registration-token create.
type CreateReservationJSONRequestBody ¶
type CreateReservationJSONRequestBody = CreateReservationRequest
CreateReservationJSONRequestBody defines body for CreateReservation for application/json ContentType.
type CreateReservationParams ¶
type CreateReservationParams struct {
// IdempotencyKey Unique per organization. A replay with the same body returns the existing reservation
IdempotencyKey string `json:"Idempotency-Key"`
}
CreateReservationParams defines parameters for CreateReservation.
type CreateReservationRenewalParams ¶
type CreateReservationRenewalParams struct {
// IdempotencyKey Unique per reservation renewal. A replay returns the reservation without charging another period
IdempotencyKey string `json:"Idempotency-Key"`
}
CreateReservationRenewalParams defines parameters for CreateReservationRenewal.
type CreateReservationRequest ¶
type CreateReservationRequest struct {
// AutoRenew Renew the reservation near each period end while a macOS sandbox is active
// on it. Defaults to the organization's auto-reserve setting.
AutoRenew *bool `json:"auto_renew,omitempty"`
// Model Mac model slug from GET /mac-models. Omitted, null, or blank uses the region's default model, initially m4-10c-16g. If that model is unavailable, the purchase fails; it never upgrades to another model.
Model *string `json:"model,omitempty"`
// RegionId Region slug whose Macs to reserve. Blank or `local` names no region:
// when this API serves exactly one region with Macs, the reservation is
// made there; otherwise the project, organization, then platform default
// applies.
RegionId string `json:"region_id"`
}
CreateReservationRequest POST /reservations body.
type CreateReservationsBulkJSONRequestBody ¶
type CreateReservationsBulkJSONRequestBody = CreateReservationsBulkRequest
CreateReservationsBulkJSONRequestBody defines body for CreateReservationsBulk for application/json ContentType.
type CreateReservationsBulkParams ¶
type CreateReservationsBulkParams struct {
// IdempotencyKey Unique per organization. A replay with the same body returns the same reservations
IdempotencyKey string `json:"Idempotency-Key"`
}
CreateReservationsBulkParams defines parameters for CreateReservationsBulk.
type CreateReservationsBulkRequest ¶
type CreateReservationsBulkRequest struct {
// AutoRenew Renew each reservation near each period end while a macOS sandbox is
// active on it. Defaults to the organization's auto-reserve setting.
AutoRenew *bool `json:"auto_renew,omitempty"`
// Count How many Macs to reserve, 1 to 100.
Count int32 `json:"count"`
// MinCount The fewest Macs to accept, 1 to `count`. Omitted means `count`: all or nothing. With fewer than `count` Macs free, or fewer left under the organization's Mac reservation limit, but at least `min_count`, the request reserves as many as it can.
MinCount *int32 `json:"min_count,omitempty"`
// Model Mac model slug from GET /mac-models. Omitted, null, or blank uses the region's default model, initially m4-10c-16g. If that model is unavailable, the purchase fails; it never upgrades to another model.
Model *string `json:"model,omitempty"`
// RegionId Region slug whose Macs to reserve. Blank or `local` names no region:
// when this API serves exactly one region with Macs, the reservations are
// made there; otherwise the project, organization, then platform default
// applies.
RegionId string `json:"region_id"`
}
CreateReservationsBulkRequest POST /reservations/bulk body.
type CreateSandboxFromSnapshotJSONRequestBody ¶
type CreateSandboxFromSnapshotJSONRequestBody = CreateSandboxFromSnapshotRequest
CreateSandboxFromSnapshotJSONRequestBody defines body for CreateSandboxFromSnapshot for application/json ContentType.
type CreateSandboxFromSnapshotRequest ¶
type CreateSandboxFromSnapshotRequest struct {
// CreateTimeoutSeconds Seconds allowed for the sandbox to reach `running`. Defaults to 3600; `-1` uses the maximum.
CreateTimeoutSeconds *int64 `json:"create_timeout_seconds,omitempty"`
// IdempotencyKey Key used to replay the same create operation safely.
IdempotencyKey *string `json:"idempotency_key,omitempty"`
// Labels User-defined labels.
Labels *map[string]string `json:"labels,omitempty"`
// LifecyclePolicy Automatic timeout and idle-expiry behavior.
LifecyclePolicy *UpdateSandboxLifecyclePolicyRequest `json:"lifecycle_policy,omitempty"`
// Name Sandbox name. A name is generated when omitted.
Name *string `json:"name,omitempty"`
// Ports Ports exposed when the sandbox starts.
Ports *[]PortMapping `json:"ports,omitempty"`
// RegionId The region to create the sandbox in. When omitted, the snapshot's region.
RegionId *string `json:"region_id,omitempty"`
// Snapshot Snapshot name or `snap_…` id. Required.
Snapshot string `json:"snapshot"`
// WaitSeconds Seconds to wait before returning. Defaults to 3; `0` returns immediately.
WaitSeconds *int64 `json:"wait_seconds,omitempty"`
}
CreateSandboxFromSnapshotRequest Settings for creating a Linux sandbox from a snapshot.
type CreateSandboxImageJSONRequestBody ¶
type CreateSandboxImageJSONRequestBody = CreateSandboxImageRequest
CreateSandboxImageJSONRequestBody defines body for CreateSandboxImage for application/json ContentType.
type CreateSandboxImageRequest ¶
type CreateSandboxImageRequest struct {
// IdleExpirySeconds The idle-retention window in seconds for an anonymous image: the image
// is deleted once this long has passed without a sandbox being created
// from it, and every create from the image restarts the clock. Allowed
// only without `name`; a named image is permanent, and
// `idle_expiry_seconds` with `name` is a `400`. The same rule as
// `POST /images`: omitted or `-1` uses the maximum, 7 days by default;
// `1` up to that maximum sets the window; `0`, values below `-1`, and
// values above the maximum answer `400 IDLE_OUT_OF_RANGE`, whose body
// carries `max`. Promote the image (`PATCH /images/{id}`) to keep it.
IdleExpirySeconds *int64 `json:"idle_expiry_seconds,omitempty"`
// Name The project-unique image name, or `null` for an anonymous image.
Name *string `json:"name,omitempty"`
}
CreateSandboxImageRequest defines model for CreateSandboxImageRequest.
type CreateSandboxJSONRequestBody ¶
type CreateSandboxJSONRequestBody = CreateSandboxRequest
CreateSandboxJSONRequestBody defines body for CreateSandbox for application/json ContentType.
type CreateSandboxRequest ¶
type CreateSandboxRequest struct {
// CoresMax Maximum CPU, in cores (1 core = 2 vCPUs): the size the sandbox boots
// at. A positive multiple of 0.5; the system or plan cap when omitted.
CoresMax *float64 `json:"cores_max,omitempty"`
// Cpu Reserved CPU, in cores (1 core = 2 vCPUs).
Cpu *float64 `json:"cpu,omitempty"`
// CpuArch The CPU architecture the sandbox requires. Omit it to use the region
// default — unless the image was imported from Daytona v0 and
// `cpu_type` is omitted too, in which case the architecture that image
// was imported for is used.
CpuArch *string `json:"cpu_arch,omitempty"`
// CpuType Preferred CPU type.
CpuType *string `json:"cpu_type,omitempty"`
// CreateTimeoutSeconds Seconds allowed for the sandbox to reach `running`. Defaults to 3600; `-1` uses the maximum.
CreateTimeoutSeconds *int64 `json:"create_timeout_seconds,omitempty"`
// DiskMaxMib Per-sandbox disk limit in MiB. Same semantics as `cores_max`; when
// restoring a snapshot, it must equal the captured disk size or be absent.
DiskMaxMib *int32 `json:"disk_max_mib,omitempty"`
// DiskMib Writable disk size in MiB.
DiskMib *int32 `json:"disk_mib,omitempty"`
// Env Sandbox-specific environment variables (real values, verbatim). Names
// must be POSIX-ish identifiers (`[A-Za-z_][A-Za-z0-9_]*`). Names the
// platform reserves for its own use, including every `DAYTONA_*` name
// other than `DAYTONA_API_URL`, `DAYTONA_OTEL_ENDPOINT` and
// `DAYTONA_DOCKER_START` (so `DAYTONA_SANDBOX_TOKEN` too), fail the
// create with 400 naming the key.
Env *map[string]string `json:"env,omitempty"`
// IdempotencyKey Key used to replay the same create operation safely.
IdempotencyKey *string `json:"idempotency_key,omitempty"`
// Image Image name or `img_…` id. Omit to boot the platform default image.
Image *string `json:"image,omitempty"`
// Labels User-defined labels.
Labels *map[string]string `json:"labels,omitempty"`
// LifecyclePolicy Automatic timeout and idle-expiry behavior.
LifecyclePolicy *UpdateSandboxLifecyclePolicyRequest `json:"lifecycle_policy,omitempty"`
// MemoryMaxMib Per-sandbox memory limit in MiB; same semantics as `cores_max`.
MemoryMaxMib *int32 `json:"memory_max_mib,omitempty"`
// MemoryMib Reserved memory in MiB.
MemoryMib *int32 `json:"memory_mib,omitempty"`
// Name Sandbox name. A name is generated when omitted.
Name *string `json:"name,omitempty"`
// NetworkPolicy Outbound network rules applied to the sandbox.
NetworkPolicy *SetSandboxNetworkPolicyRequest `json:"network_policy,omitempty"`
// Persistent Whether writable state persists across stops. Defaults to `false`.
Persistent *bool `json:"persistent,omitempty"`
// Ports Ports exposed when the sandbox starts.
Ports *[]PortMapping `json:"ports,omitempty"`
// RegionId The region to create the sandbox in. Any listed region, including
// `earth` (anywhere). When omitted: the project's default region, then
// the organization's, then `earth`.
RegionId *string `json:"region_id,omitempty"`
// Secrets Secret names made available to the sandbox.
Secrets *[]string `json:"secrets,omitempty"`
// Spot Whether to use discounted interruptible capacity. Defaults to `false`.
Spot *bool `json:"spot,omitempty"`
// User Default operating-system user.
User *string `json:"user,omitempty"`
// Volumes Volumes mounted in the sandbox.
Volumes *[]VolumeMount `json:"volumes,omitempty"`
// WaitSeconds Seconds to wait before returning. Defaults to 3; `0` returns immediately.
WaitSeconds *int64 `json:"wait_seconds,omitempty"`
}
CreateSandboxRequest Settings for creating a Linux sandbox from an image.
type CreateSandboxSignedPreviewUrlJSONBody ¶
type CreateSandboxSignedPreviewUrlJSONBody = CreateSandboxSignedPreviewUrlRequest
CreateSandboxSignedPreviewUrlJSONBody defines parameters for CreateSandboxSignedPreviewUrl.
type CreateSandboxSignedPreviewUrlJSONRequestBody ¶
type CreateSandboxSignedPreviewUrlJSONRequestBody = CreateSandboxSignedPreviewUrlJSONBody
CreateSandboxSignedPreviewUrlJSONRequestBody defines body for CreateSandboxSignedPreviewUrl for application/json ContentType.
type CreateSandboxSignedPreviewUrlRequest ¶
type CreateSandboxSignedPreviewUrlRequest struct {
// ExpiresInSeconds Link lifetime in seconds. Defaults to 60. A value below 1, or above
// the deployment's ceiling — 7 days by default — answers 400.
ExpiresInSeconds *int64 `json:"expires_in_seconds,omitempty"`
}
CreateSandboxSignedPreviewUrlRequest defines model for CreateSandboxSignedPreviewUrlRequest.
type CreateSandboxSnapshotJSONRequestBody ¶
type CreateSandboxSnapshotJSONRequestBody = CreateSandboxSnapshotRequest
CreateSandboxSnapshotJSONRequestBody defines body for CreateSandboxSnapshot for application/json ContentType.
type CreateSandboxSnapshotRequest ¶
type CreateSandboxSnapshotRequest struct {
// Name The project-unique snapshot name.
Name string `json:"name"`
}
CreateSandboxSnapshotRequest defines model for CreateSandboxSnapshotRequest.
type CreateServiceAccountJSONRequestBody ¶
type CreateServiceAccountJSONRequestBody = CreateServiceAccountRequest
CreateServiceAccountJSONRequestBody defines body for CreateServiceAccount for application/json ContentType.
type CreateServiceAccountRequest ¶
type CreateServiceAccountRequest struct {
// Description The service account purpose, or `null` when omitted.
Description *string `json:"description,omitempty"`
// Name The service account name.
Name string `json:"name"`
// Roles The role identifiers to assign.
Roles []string `json:"roles"`
}
CreateServiceAccountRequest defines model for CreateServiceAccountRequest.
type CreateSsoSetupLinkJSONRequestBody ¶
type CreateSsoSetupLinkJSONRequestBody = CreateSsoSetupLinkRequest
CreateSsoSetupLinkJSONRequestBody defines body for CreateSsoSetupLink for application/json ContentType.
type CreateSsoSetupLinkRequest ¶
type CreateSsoSetupLinkRequest struct {
// Intent The setup area to open: `sso` for single sign-on or `dsync` for directory sync.
Intent PortalIntent `json:"intent"`
}
CreateSsoSetupLinkRequest Settings for creating a single sign-on setup link.
type CreateTopUpSessionJSONRequestBody ¶
type CreateTopUpSessionJSONRequestBody = CreateTopUpSessionRequest
CreateTopUpSessionJSONRequestBody defines body for CreateTopUpSession for application/json ContentType.
type CreateTopUpSessionRequest ¶
type CreateTopUpSessionRequest struct {
// AmountCents The amount to add in cents.
AmountCents int64 `json:"amount_cents"`
}
CreateTopUpSessionRequest defines model for CreateTopUpSessionRequest.
type CreateV0SandboxImportJSONBody ¶
type CreateV0SandboxImportJSONBody = CreateV0SandboxImportRequest
CreateV0SandboxImportJSONBody defines parameters for CreateV0SandboxImport.
type CreateV0SandboxImportJSONRequestBody ¶
type CreateV0SandboxImportJSONRequestBody = CreateV0SandboxImportJSONBody
CreateV0SandboxImportJSONRequestBody defines body for CreateV0SandboxImport for application/json ContentType.
type CreateV0SandboxImportRequest ¶
type CreateV0SandboxImportRequest struct {
// Force Whether to create another import when a live import already exists; default `false`.
Force *bool `json:"force,omitempty"`
}
CreateV0SandboxImportRequest Settings for creating a sandbox import from Daytona v0.
type CreateVolumeJSONRequestBody ¶
type CreateVolumeJSONRequestBody = CreateVolumeRequest
CreateVolumeJSONRequestBody defines body for CreateVolume for application/json ContentType.
type CreateVolumeRequest ¶
type CreateVolumeRequest struct {
// Bucket Settings for an existing bucket. Omit them to create a managed bucket.
Bucket *BucketOptions `json:"bucket,omitempty"`
// Name The project-unique volume name.
Name string `json:"name"`
// SizeGib Scratch size in GiB. Defaults to 100. Disk volumes only — supplying
// it on a bucket volume is a 400.
SizeGib *int32 `json:"size_gib,omitempty"`
// Type The volume type. Defaults to `disk`.
Type *VolumeType `json:"type,omitempty"`
}
CreateVolumeRequest defines model for CreateVolumeRequest.
type DeclineInvitationJSONRequestBody ¶
type DeclineInvitationJSONRequestBody = DeclineInvitationRequest
DeclineInvitationJSONRequestBody defines body for DeclineInvitation for application/json ContentType.
type DeclineInvitationRequest ¶
type DeclineInvitationRequest struct {
// Token The invitation token.
Token string `json:"token"`
}
DeclineInvitationRequest defines model for DeclineInvitationRequest.
type DeleteImageParams ¶
type DeleteImageParams struct {
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
DeleteImageParams defines parameters for DeleteImage.
type DeleteSnapshotParams ¶
type DeleteSnapshotParams struct {
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
DeleteSnapshotParams defines parameters for DeleteSnapshot.
type DeleteVolumeParams ¶
type DeleteVolumeParams struct {
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
DeleteVolumeParams defines parameters for DeleteVolume.
type EffectiveLifecyclePolicies ¶
type EffectiveLifecyclePolicies struct {
// Linux Effective Linux sandbox policies.
Linux EffectiveLinuxLifecyclePolicies `json:"linux"`
// Macos A macOS create does not take the project's lifecycle defaults, so this
// block always shows the platform defaults.
Macos EffectiveMacosLifecyclePolicies `json:"macos"`
}
EffectiveLifecyclePolicies defines model for EffectiveLifecyclePolicies.
type EffectiveLifecyclePolicy ¶
type EffectiveLifecyclePolicy struct {
// IdleTimeoutSeconds The effective idle timeout in seconds.
IdleTimeoutSeconds *int64 `json:"idle_timeout_seconds"`
// OnIdleTimeout The effective action at the idle timeout.
OnIdleTimeout *LifecycleAction `json:"on_idle_timeout"`
// OnTimeout The effective action at the maximum lifetime.
OnTimeout *LifecycleAction `json:"on_timeout"`
// TimeoutCapped Whether a higher requested timeout was capped.
TimeoutCapped bool `json:"timeout_capped"`
// TimeoutSeconds The effective maximum lifetime in seconds.
TimeoutSeconds *int64 `json:"timeout_seconds"`
// TimeoutSource Where the effective maximum lifetime came from.
TimeoutSource TimeoutSource `json:"timeout_source"`
}
EffectiveLifecyclePolicy defines model for EffectiveLifecyclePolicy.
type EffectiveLinuxLifecyclePolicies ¶
type EffectiveLinuxLifecyclePolicies struct {
// Ephemeral The effective ephemeral policy.
Ephemeral EffectiveLifecyclePolicy `json:"ephemeral"`
}
EffectiveLinuxLifecyclePolicies defines model for EffectiveLinuxLifecyclePolicies.
type EffectiveMacosLifecyclePolicies ¶
type EffectiveMacosLifecyclePolicies struct {
// Ephemeral The effective ephemeral policy.
Ephemeral EffectiveLifecyclePolicy `json:"ephemeral"`
Persistent EffectiveLifecyclePolicy `json:"persistent"`
}
EffectiveMacosLifecyclePolicies defines model for EffectiveMacosLifecyclePolicies.
type EntitlementRequired ¶
type EntitlementRequired = ErrorBody
EntitlementRequired The JSON error envelope every non-2xx response carries.
type Entitlements ¶
type Entitlements struct {
// Entitlements Every entitlement key, `true` when it is available to the
// organization.
Entitlements map[string]bool `json:"entitlements"`
}
Entitlements The entitlements available to an organization.
type EphemeralLifecycleDefaults ¶
type EphemeralLifecycleDefaults struct {
// IdleTimeoutSeconds Idle time before cleanup in seconds, or null to disable it.
IdleTimeoutSeconds *int64 `json:"idle_timeout_seconds"`
// TimeoutSeconds Maximum sandbox lifetime in seconds, or null to inherit it.
TimeoutSeconds *int64 `json:"timeout_seconds"`
}
EphemeralLifecycleDefaults defines model for EphemeralLifecycleDefaults.
type ErrorBody ¶
type ErrorBody struct {
// Bytes Measured artifact size, in bytes.
Bytes *int64 `json:"bytes,omitempty"`
// Code Stable machine-readable error code.
Code ApiErrorCode `json:"code"`
// Current Current usage measured for the limit.
Current *int64 `json:"current,omitempty"`
// Entitlement Organization capability required by the operation.
Entitlement *string `json:"entitlement,omitempty"`
// Feature Product capability that is not enabled.
Feature *string `json:"feature,omitempty"`
// Limit Name of the limit that was reached.
Limit *string `json:"limit,omitempty"`
// Max Maximum allowed value or usage cap.
Max *int64 `json:"max,omitempty"`
// MaxBytes Maximum allowed artifact size, in bytes.
MaxBytes *int64 `json:"max_bytes,omitempty"`
// Message Human-readable explanation of the error.
Message string `json:"message"`
// Replacement Suggested alternative route.
Replacement *string `json:"replacement,omitempty"`
// RetryAfterSeconds Suggested number of seconds to wait before retrying.
RetryAfterSeconds *int64 `json:"retry_after_seconds,omitempty"`
// Source Service that produced the error.
Source string `json:"source"`
// TraceId Trace ID to quote when contacting support.
TraceId *string `json:"trace_id,omitempty"`
}
ErrorBody The JSON error envelope every non-2xx response carries.
type ExchangeTokenFormdataRequestBody ¶
type ExchangeTokenFormdataRequestBody = ExchangeTokenRequest
ExchangeTokenFormdataRequestBody defines body for ExchangeToken for application/x-www-form-urlencoded ContentType.
type ExchangeTokenJSONRequestBody ¶
type ExchangeTokenJSONRequestBody = ExchangeTokenRequest
ExchangeTokenJSONRequestBody defines body for ExchangeToken for application/json ContentType.
type ExchangeTokenRequest ¶
type ExchangeTokenRequest struct {
// Audience Target audience. Omit it, or send `daytona:api`, for a project-scoped token;
// send `daytona:analytics` for an organization-scoped token. Any other
// value is refused; the parameter may not be repeated.
Audience *string `json:"audience,omitempty"`
// GrantType Must be `urn:ietf:params:oauth:grant-type:token-exchange`.
GrantType string `json:"grant_type"`
// OrgId The organization for the analytics token. Required when
// `audience` is `daytona:analytics`; omitted (or `null`) otherwise.
OrgId *openapi_types.UUID `json:"org_id,omitempty"`
// ProjectId The project for the API token. Required when `audience` is absent or `daytona:api`;
// omitted (or `null`) when `audience` is `daytona:analytics`.
ProjectId *openapi_types.UUID `json:"project_id,omitempty"`
// Resource RFC 8693 target resource. Explicit down-scoping is not supported; omit
// this parameter.
Resource *string `json:"resource,omitempty"`
// Scope RFC 8693 scope request. Explicit down-scoping is not supported; omit
// this parameter.
Scope *string `json:"scope,omitempty"`
// SubjectToken The sign-in token. It must match the bearer token on the request.
SubjectToken string `json:"subject_token"`
// SubjectTokenType Subject token type.
SubjectTokenType string `json:"subject_token_type"`
}
ExchangeTokenRequest A token exchange request accepted as JSON or form data.
type ExternalBucketOrigin ¶
type ExternalBucketOrigin string
ExternalBucketOrigin defines model for ExternalBucketOrigin.
const (
ExternalBucketOriginExternal ExternalBucketOrigin = "external"
)
Defines values for ExternalBucketOrigin.
func (ExternalBucketOrigin) Valid ¶
func (e ExternalBucketOrigin) Valid() bool
Valid indicates whether the value is a known member of the ExternalBucketOrigin enum.
type Forbidden ¶
type Forbidden = ErrorBody
Forbidden The JSON error envelope every non-2xx response carries.
type ForkSandboxJSONBody ¶
type ForkSandboxJSONBody = ForkSandboxRequest
ForkSandboxJSONBody defines parameters for ForkSandbox.
type ForkSandboxJSONRequestBody ¶
type ForkSandboxJSONRequestBody = ForkSandboxJSONBody
ForkSandboxJSONRequestBody defines body for ForkSandbox for application/json ContentType.
type ForkSandboxOperation ¶
type ForkSandboxOperation struct {
// ForkedFrom The ID of the source sandbox.
ForkedFrom string `json:"forked_from"`
// Id The ID of the new fork.
Id string `json:"id"`
// Status The fork's status at acceptance, always `pending`. A memory fork then
// lands `paused` and a disk-only fork lands `stopped`; a fork of a
// `running` source is brought up automatically.
Status string `json:"status"`
// ToolboxProxyUrl The fork’s toolbox base URL in its source region, also returned by `GET /sandboxes/{id}`.
ToolboxProxyUrl string `json:"toolbox_proxy_url"`
}
ForkSandboxOperation The result of forking a sandbox.
type ForkSandboxRequest ¶
type ForkSandboxRequest struct {
// Memory Whether to include memory (default `true`), allowing the fork to continue running processes. `false` copies only the disk and starts fresh, without pausing the source. A stopped source is always copied disk-only. macOS supports disk-only forks: omitted selects disk-only, and `true` returns `409 NOT_SUPPORTED_FOR_CLASS`.
Memory *bool `json:"memory,omitempty"`
// Name Optional name for the fork (defaults to "<source>-fork").
Name *string `json:"name,omitempty"`
}
ForkSandboxRequest defines model for ForkSandboxRequest.
type GetCpuCatalogParams ¶
type GetCpuCatalogParams struct {
// RegionIds Comma-separated list of regions to include. Defaults to all regions.
RegionIds *string `form:"region_ids,omitempty" json:"region_ids,omitempty"`
}
GetCpuCatalogParams defines parameters for GetCpuCatalog.
type GetImageBuildLogsUrlParams ¶
type GetImageBuildLogsUrlParams struct {
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
GetImageBuildLogsUrlParams defines parameters for GetImageBuildLogsUrl.
type GetImageParams ¶
type GetImageParams struct {
// Wait Block until the resource reaches this status or a terminal status. Omit to return immediately.
Wait *Wait `form:"wait,omitempty" json:"wait,omitempty"`
// TimeoutMs Maximum time to block, in milliseconds. Default 30000, maximum 60000.
TimeoutMs *TimeoutMs `form:"timeout_ms,omitempty" json:"timeout_ms,omitempty"`
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
GetImageParams defines parameters for GetImage.
type GetMacCatalogParams ¶
type GetMacCatalogParams struct {
// RegionIds Comma-separated list of regions to include. Defaults to all regions.
RegionIds *string `form:"region_ids,omitempty" json:"region_ids,omitempty"`
}
GetMacCatalogParams defines parameters for GetMacCatalog.
type GetSandboxParams ¶
type GetSandboxParams struct {
// Wait Block until the resource reaches this status or a terminal status. Omit to return immediately.
Wait *Wait `form:"wait,omitempty" json:"wait,omitempty"`
// WaitExact Exact status to wait for. Another terminal status ends the wait without satisfying it.
WaitExact *string `form:"wait_exact,omitempty" json:"wait_exact,omitempty"`
// TimeoutMs Maximum time to block, in milliseconds. Default 30000, maximum 60000.
TimeoutMs *TimeoutMs `form:"timeout_ms,omitempty" json:"timeout_ms,omitempty"`
}
GetSandboxParams defines parameters for GetSandbox.
type GetSandboxUsageHistoryParams ¶
type GetSandboxUsageHistoryParams struct {
// StartAt Start of the time range, inclusive. Defaults to 24 hours before `end_at`.
StartAt *time.Time `form:"start_at,omitempty" json:"start_at,omitempty"`
// EndAt End of the time range, exclusive. Defaults to now.
EndAt *time.Time `form:"end_at,omitempty" json:"end_at,omitempty"`
// Resolution Bucket size. Defaults to `minute`.
Resolution *GetSandboxUsageHistoryParamsResolution `form:"resolution,omitempty" json:"resolution,omitempty"`
}
GetSandboxUsageHistoryParams defines parameters for GetSandboxUsageHistory.
type GetSandboxUsageHistoryParamsResolution ¶
type GetSandboxUsageHistoryParamsResolution string
GetSandboxUsageHistoryParamsResolution defines parameters for GetSandboxUsageHistory.
const ( GetSandboxUsageHistoryParamsResolutionHour GetSandboxUsageHistoryParamsResolution = "hour" GetSandboxUsageHistoryParamsResolutionMinute GetSandboxUsageHistoryParamsResolution = "minute" )
Defines values for GetSandboxUsageHistoryParamsResolution.
func (GetSandboxUsageHistoryParamsResolution) Valid ¶
func (e GetSandboxUsageHistoryParamsResolution) Valid() bool
Valid indicates whether the value is a known member of the GetSandboxUsageHistoryParamsResolution enum.
type GetSnapshotParams ¶
type GetSnapshotParams struct {
// Wait Block until the resource reaches this status or a terminal status. Omit to return immediately.
Wait *Wait `form:"wait,omitempty" json:"wait,omitempty"`
// TimeoutMs Maximum time to block, in milliseconds. Default 30000, maximum 60000.
TimeoutMs *TimeoutMs `form:"timeout_ms,omitempty" json:"timeout_ms,omitempty"`
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
GetSnapshotParams defines parameters for GetSnapshot.
type GetUsageReportParams ¶
type GetUsageReportParams struct {
// StartAt Start of the time range, inclusive. Defaults to 24 hours before `end_at`.
StartAt *time.Time `form:"start_at,omitempty" json:"start_at,omitempty"`
// EndAt End of the time range, exclusive. Defaults to now.
EndAt *time.Time `form:"end_at,omitempty" json:"end_at,omitempty"`
// Resolution Bucket size. Defaults to `hour`.
Resolution *GetUsageReportParamsResolution `form:"resolution,omitempty" json:"resolution,omitempty"`
}
GetUsageReportParams defines parameters for GetUsageReport.
type GetUsageReportParamsResolution ¶
type GetUsageReportParamsResolution string
GetUsageReportParamsResolution defines parameters for GetUsageReport.
const ( GetUsageReportParamsResolutionDay GetUsageReportParamsResolution = "day" GetUsageReportParamsResolutionHour GetUsageReportParamsResolution = "hour" )
Defines values for GetUsageReportParamsResolution.
func (GetUsageReportParamsResolution) Valid ¶
func (e GetUsageReportParamsResolution) Valid() bool
Valid indicates whether the value is a known member of the GetUsageReportParamsResolution enum.
type GetVolumeParams ¶
type GetVolumeParams struct {
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
GetVolumeParams defines parameters for GetVolume.
type Health ¶
type Health struct {
// BuildSha API build identifier; `unknown` when unavailable.
BuildSha string `json:"build_sha"`
// BuiltAt API build time; `null` when unavailable.
BuiltAt *time.Time `json:"built_at,omitempty"`
// Status Health status.
Status string `json:"status"`
// Version Platform release version; `0.0.0-dev` when unavailable.
Version string `json:"version"`
}
Health API health and build identity.
type Image ¶
type Image struct {
// Anonymous Whether the image has no permanent name.
Anonymous bool `json:"anonymous"`
// Bytes The image size in bytes, or null until the build completes.
Bytes *int64 `json:"bytes,omitempty"`
// Class The sandbox class supported by the image.
Class string `json:"class"`
// CreatedAt When the image was created.
CreatedAt time.Time `json:"created_at"`
// Default Whether this is the image a sandbox create without `image` boots.
Default bool `json:"default"`
// Deprecated Whether this platform image is deprecated. A deprecated image is not
// listed and cannot be used by name, but its ID still resolves.
Deprecated bool `json:"deprecated"`
// DiskMib The disk size in MiB that a macOS sandbox created from this image gets
// when the create omits `disk_mib`; a create cannot ask for less. Set for
// images captured from a macOS sandbox; null for other images.
DiskMib *int64 `json:"disk_mib,omitempty"`
// Error Build failure reason; null unless `status` is `failed`.
Error *string `json:"error,omitempty"`
// ExpiresAt When an anonymous image expires, or null for a permanent image.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// FormatOutdated `format_version` is below the current format. Such an image converts
// on its first Linux sandbox create (which waits `queued` meanwhile) or
// ahead of time with `POST /images/{id}/convert`; other operations refuse
// it with `IMAGE_FORMAT_OUTDATED` until then.
FormatOutdated bool `json:"format_outdated"`
// FormatVersion Image format version: `1` for images imported from Daytona v0, `2` for the current format. See `status` for image readiness.
FormatVersion int32 `json:"format_version"`
// Id The image ID.
Id string `json:"id"`
// ImportedFrom The source platform and resource ID when this image was imported.
ImportedFrom *ImportedFrom `json:"imported_from,omitempty"`
// LayerCount The number of filesystem layers, or null until the build completes.
LayerCount *int32 `json:"layer_count,omitempty"`
// Name The image name, or null for an anonymous image.
Name *string `json:"name,omitempty"`
// Origin How the image was created.
Origin string `json:"origin"`
// Platform Whether the platform publishes this image for every project. A
// project's own image with the same name takes precedence for that
// project, and platform images cannot be renamed, converted, or deleted.
Platform bool `json:"platform"`
// RegionId The home region.
RegionId string `json:"region_id"`
// RegionIds Every region where the image is available.
RegionIds []string `json:"region_ids"`
// Retention The retention policy: `permanent` or `idle`.
Retention ImageRetention `json:"retention"`
// Source The image source.
Source *ImageSourceValue `json:"source,omitempty"`
// Status The build status.
Status string `json:"status"`
// UpdatedAt When the image was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
Image defines model for Image.
type ImageBuildLimits ¶
type ImageBuildLimits struct {
// Concurrent The concurrent image-build limit and current usage.
Concurrent UsageLimit `json:"concurrent"`
}
ImageBuildLimits defines model for ImageBuildLimits.
type ImageConversion ¶
type ImageConversion struct {
// Converted `true` when this call started or joined a conversion; `false` when the
// image was already at the current format and nothing was enqueued.
Converted bool `json:"converted"`
// FromFormat The image's format before the call, as `Image.format_version`
// reported it.
FromFormat int32 `json:"from_format"`
// Id The image ID.
Id string `json:"id"`
// Status The image's status after the call: `pending`/`building` while it
// converts, or its own status when it was already at the current format.
Status string `json:"status"`
// ToFormat The format the conversion targets: the current one.
ToFormat int32 `json:"to_format"`
}
ImageConversion An image format conversion result.
type ImageListItem ¶
type ImageListItem struct {
// Anonymous Whether the image has no permanent name.
Anonymous bool `json:"anonymous"`
// Bytes The image size in bytes, or null until the build completes.
Bytes *int64 `json:"bytes,omitempty"`
// Class The sandbox class supported by the image.
Class string `json:"class"`
// CreatedAt When the image was created.
CreatedAt time.Time `json:"created_at"`
// Cursor Opaque continuation token for the next image in the list.
Cursor string `json:"cursor"`
// Default Whether this is the image a sandbox create without `image` boots.
Default bool `json:"default"`
// Deprecated Whether this platform image is deprecated. A deprecated image is not
// listed and cannot be used by name, but its ID still resolves.
Deprecated bool `json:"deprecated"`
// DiskMib The disk size in MiB that a macOS sandbox created from this image gets
// when the create omits `disk_mib`; a create cannot ask for less. Set for
// images captured from a macOS sandbox; null for other images.
DiskMib *int64 `json:"disk_mib,omitempty"`
// Error Build failure reason; null unless `status` is `failed`.
Error *string `json:"error,omitempty"`
// ExpiresAt When an anonymous image expires, or null for a permanent image.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// FormatOutdated `format_version` is below the current format. Such an image converts
// on its first Linux sandbox create (which waits `queued` meanwhile) or
// ahead of time with `POST /images/{id}/convert`; other operations refuse
// it with `IMAGE_FORMAT_OUTDATED` until then.
FormatOutdated bool `json:"format_outdated"`
// FormatVersion Image format version: `1` for images imported from Daytona v0, `2` for the current format. See `status` for image readiness.
FormatVersion int32 `json:"format_version"`
// Id The image ID.
Id string `json:"id"`
// ImportedFrom The source platform and resource ID when this image was imported.
ImportedFrom *ImportedFrom `json:"imported_from,omitempty"`
// LayerCount The number of filesystem layers, or null until the build completes.
LayerCount *int32 `json:"layer_count,omitempty"`
// Name The image name, or null for an anonymous image.
Name *string `json:"name,omitempty"`
// Origin How the image was created.
Origin string `json:"origin"`
// Platform Whether the platform publishes this image for every project. A
// project's own image with the same name takes precedence for that
// project, and platform images cannot be renamed, converted, or deleted.
Platform bool `json:"platform"`
// RegionId The home region.
RegionId string `json:"region_id"`
// RegionIds Every region where the image is available.
RegionIds []string `json:"region_ids"`
// Retention The retention policy: `permanent` or `idle`.
Retention ImageRetention `json:"retention"`
// Source The image source.
Source *ImageSourceValue `json:"source,omitempty"`
// Status The build status.
Status string `json:"status"`
// UpdatedAt When the image was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
ImageListItem An image with its pagination cursor.
type ImageOrigin ¶
type ImageOrigin string
ImageOrigin How an image was created.
const ( ImageOriginCapture ImageOrigin = "capture" ImageOriginDockerfile ImageOrigin = "dockerfile" ImageOriginMacos ImageOrigin = "macos" ImageOriginRegistry ImageOrigin = "registry" ImageOriginWindows ImageOrigin = "windows" )
Defines values for ImageOrigin.
func (ImageOrigin) Valid ¶
func (e ImageOrigin) Valid() bool
Valid indicates whether the value is a known member of the ImageOrigin enum.
type ImagePage ¶
type ImagePage struct {
// Images The images in this page.
Images []ImageListItem `json:"images"`
// NextCursor Opaque keyset token for the next page; null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
}
ImagePage Page of images (`GET /images`).
type ImagePlatformFilter ¶
type ImagePlatformFilter string
ImagePlatformFilter defines model for ImagePlatformFilter.
const ( Any ImagePlatformFilter = "any" False ImagePlatformFilter = "false" True ImagePlatformFilter = "true" )
Defines values for ImagePlatformFilter.
func (ImagePlatformFilter) Valid ¶
func (e ImagePlatformFilter) Valid() bool
Valid indicates whether the value is a known member of the ImagePlatformFilter enum.
type ImageReference ¶
type ImageReference struct {
// Id The image ID.
Id string `json:"id"`
// Name The image name, when one is assigned.
Name *string `json:"name,omitempty"`
}
ImageReference Image used to create a sandbox.
type ImageRetention ¶
type ImageRetention string
ImageRetention defines model for ImageRetention.
const ( Idle ImageRetention = "idle" Permanent ImageRetention = "permanent" )
Defines values for ImageRetention.
func (ImageRetention) Valid ¶
func (e ImageRetention) Valid() bool
Valid indicates whether the value is a known member of the ImageRetention enum.
type ImageSearchClass ¶
type ImageSearchClass string
ImageSearchClass The `class` filter of `GET /images/search`.
const ( ImageSearchClassLinux ImageSearchClass = "linux" ImageSearchClassMacos ImageSearchClass = "macos" ImageSearchClassWindows ImageSearchClass = "windows" )
Defines values for ImageSearchClass.
func (ImageSearchClass) Valid ¶
func (e ImageSearchClass) Valid() bool
Valid indicates whether the value is a known member of the ImageSearchClass enum.
type ImageSearchPage ¶
type ImageSearchPage struct {
// Images Matching images in this page.
Images []ImageListItem `json:"images"`
// NextCursor Continuation token for the next page; null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Total The number of matching images. Exact when `total_relation` is `eq`,
// and a lower bound of 10000 when it is `gte`.
Total int64 `json:"total"`
// TotalRelation Whether `total` is exact (`eq`) or a lower bound (`gte`).
TotalRelation SearchTotalRelation `json:"total_relation"`
}
ImageSearchPage A page of matching images.
type ImageSearchSort ¶
type ImageSearchSort string
ImageSearchSort The `sort` values of `GET /images/search`.
const ( ImageSearchSortBytes ImageSearchSort = "bytes" ImageSearchSortCreatedAt ImageSearchSort = "created_at" ImageSearchSortName ImageSearchSort = "name" ImageSearchSortUpdatedAt ImageSearchSort = "updated_at" )
Defines values for ImageSearchSort.
func (ImageSearchSort) Valid ¶
func (e ImageSearchSort) Valid() bool
Valid indicates whether the value is a known member of the ImageSearchSort enum.
type ImageSourceValue ¶
type ImageSourceValue struct {
// contains filtered or unexported fields
}
ImageSourceValue defines model for ImageSourceValue.
func (ImageSourceValue) AsImageSourceValue0 ¶
func (t ImageSourceValue) AsImageSourceValue0() (ImageSourceValue0, error)
AsImageSourceValue0 returns the union data inside the ImageSourceValue as a ImageSourceValue0
func (ImageSourceValue) AsImageSourceValue1 ¶
func (t ImageSourceValue) AsImageSourceValue1() (ImageSourceValue1, error)
AsImageSourceValue1 returns the union data inside the ImageSourceValue as a ImageSourceValue1
func (ImageSourceValue) AsImageSourceValue2 ¶
func (t ImageSourceValue) AsImageSourceValue2() (ImageSourceValue2, error)
AsImageSourceValue2 returns the union data inside the ImageSourceValue as a ImageSourceValue2
func (ImageSourceValue) AsImageSourceValue3 ¶
func (t ImageSourceValue) AsImageSourceValue3() (ImageSourceValue3, error)
AsImageSourceValue3 returns the union data inside the ImageSourceValue as a ImageSourceValue3
func (*ImageSourceValue) FromImageSourceValue0 ¶
func (t *ImageSourceValue) FromImageSourceValue0(v ImageSourceValue0) error
FromImageSourceValue0 overwrites any union data inside the ImageSourceValue as the provided ImageSourceValue0
func (*ImageSourceValue) FromImageSourceValue1 ¶
func (t *ImageSourceValue) FromImageSourceValue1(v ImageSourceValue1) error
FromImageSourceValue1 overwrites any union data inside the ImageSourceValue as the provided ImageSourceValue1
func (*ImageSourceValue) FromImageSourceValue2 ¶
func (t *ImageSourceValue) FromImageSourceValue2(v ImageSourceValue2) error
FromImageSourceValue2 overwrites any union data inside the ImageSourceValue as the provided ImageSourceValue2
func (*ImageSourceValue) FromImageSourceValue3 ¶
func (t *ImageSourceValue) FromImageSourceValue3(v ImageSourceValue3) error
FromImageSourceValue3 overwrites any union data inside the ImageSourceValue as the provided ImageSourceValue3
func (ImageSourceValue) MarshalJSON ¶
func (t ImageSourceValue) MarshalJSON() ([]byte, error)
func (*ImageSourceValue) MergeImageSourceValue0 ¶
func (t *ImageSourceValue) MergeImageSourceValue0(v ImageSourceValue0) error
MergeImageSourceValue0 performs a merge with any union data inside the ImageSourceValue, using the provided ImageSourceValue0
func (*ImageSourceValue) MergeImageSourceValue1 ¶
func (t *ImageSourceValue) MergeImageSourceValue1(v ImageSourceValue1) error
MergeImageSourceValue1 performs a merge with any union data inside the ImageSourceValue, using the provided ImageSourceValue1
func (*ImageSourceValue) MergeImageSourceValue2 ¶
func (t *ImageSourceValue) MergeImageSourceValue2(v ImageSourceValue2) error
MergeImageSourceValue2 performs a merge with any union data inside the ImageSourceValue, using the provided ImageSourceValue2
func (*ImageSourceValue) MergeImageSourceValue3 ¶
func (t *ImageSourceValue) MergeImageSourceValue3(v ImageSourceValue3) error
MergeImageSourceValue3 performs a merge with any union data inside the ImageSourceValue, using the provided ImageSourceValue3
func (*ImageSourceValue) UnmarshalJSON ¶
func (t *ImageSourceValue) UnmarshalJSON(b []byte) error
type ImageSourceValue0 ¶
type ImageSourceValue0 struct {
// Ref The OCI image reference.
Ref string `json:"ref"`
// Type The object type.
Type ImageSourceValue0Type `json:"type"`
}
ImageSourceValue0 An OCI registry source.
type ImageSourceValue0Type ¶
type ImageSourceValue0Type string
ImageSourceValue0Type The object type.
const (
ImageSourceValue0TypeRegistry ImageSourceValue0Type = "registry"
)
Defines values for ImageSourceValue0Type.
func (ImageSourceValue0Type) Valid ¶
func (e ImageSourceValue0Type) Valid() bool
Valid indicates whether the value is a known member of the ImageSourceValue0Type enum.
type ImageSourceValue1 ¶
type ImageSourceValue1 struct {
// ContextObject The build context object identifier.
ContextObject string `json:"context_object"`
// Dockerfile The Dockerfile path within the build context.
Dockerfile string `json:"dockerfile"`
// Type The object type.
Type ImageSourceValue1Type `json:"type"`
}
ImageSourceValue1 A Dockerfile build source.
type ImageSourceValue1Type ¶
type ImageSourceValue1Type string
ImageSourceValue1Type The object type.
const (
ImageSourceValue1TypeDockerfile ImageSourceValue1Type = "dockerfile"
)
Defines values for ImageSourceValue1Type.
func (ImageSourceValue1Type) Valid ¶
func (e ImageSourceValue1Type) Valid() bool
Valid indicates whether the value is a known member of the ImageSourceValue1Type enum.
type ImageSourceValue2 ¶
type ImageSourceValue2 struct {
// Name The image name.
Name string `json:"name"`
// Type The object type.
Type ImageSourceValue2Type `json:"type"`
}
ImageSourceValue2 Another image in the project.
type ImageSourceValue2Type ¶
type ImageSourceValue2Type string
ImageSourceValue2Type The object type.
const (
ImageSourceValue2TypeNamed ImageSourceValue2Type = "named"
)
Defines values for ImageSourceValue2Type.
func (ImageSourceValue2Type) Valid ¶
func (e ImageSourceValue2Type) Valid() bool
Valid indicates whether the value is a known member of the ImageSourceValue2Type enum.
type ImageSourceValue3 ¶
type ImageSourceValue3 struct {
// Name The manifest name.
Name string `json:"name"`
// Type The object type.
Type ImageSourceValue3Type `json:"type"`
}
ImageSourceValue3 An immutable image manifest.
type ImageSourceValue3Type ¶
type ImageSourceValue3Type string
ImageSourceValue3Type The object type.
const (
Manifest ImageSourceValue3Type = "manifest"
)
Defines values for ImageSourceValue3Type.
func (ImageSourceValue3Type) Valid ¶
func (e ImageSourceValue3Type) Valid() bool
Valid indicates whether the value is a known member of the ImageSourceValue3Type enum.
type ImageStatus ¶
type ImageStatus string
ImageStatus The build status of an image.
const ( ImageStatusBuilding ImageStatus = "building" ImageStatusFailed ImageStatus = "failed" ImageStatusPending ImageStatus = "pending" ImageStatusReady ImageStatus = "ready" )
Defines values for ImageStatus.
func (ImageStatus) Valid ¶
func (e ImageStatus) Valid() bool
Valid indicates whether the value is a known member of the ImageStatus enum.
type ImportedFrom ¶
type ImportedFrom struct {
// Id The resource's ID on the source platform.
Id string `json:"id"`
// Platform The source platform. `v0` (Daytona v0) is the only value.
Platform string `json:"platform"`
}
ImportedFrom The source platform and resource ID of an imported resource.
type Invitation ¶
type Invitation struct {
// CreatedAt When the invitation was created or last re-issued.
CreatedAt time.Time `json:"created_at"`
// DeclinedAt When the invitation was declined, or `null`.
DeclinedAt *time.Time `json:"declined_at,omitempty"`
// Email The invited email address.
Email string `json:"email"`
// ExpiresAt When the invitation expires.
ExpiresAt time.Time `json:"expires_at"`
// Id The invitation ID.
Id openapi_types.UUID `json:"id"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// Roles The role identifiers granted on acceptance.
Roles []string `json:"roles"`
// Status The invitation status.
Status InvitationStatus `json:"status"`
}
Invitation defines model for Invitation.
type InvitationLookup ¶
type InvitationLookup struct {
// Email The invited address — the one the email went to.
Email string `json:"email"`
// ExpiresAt When the invitation expires.
ExpiresAt time.Time `json:"expires_at"`
// Id The invitation ID.
Id openapi_types.UUID `json:"id"`
// InvitedBy The inviter's display name, else their email; `null` when the
// inviting account no longer exists.
InvitedBy *string `json:"invited_by,omitempty"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// OrgName The organization name.
OrgName string `json:"org_name"`
// RoleNames The display names of `roles`, in the same order.
RoleNames []string `json:"role_names"`
// Roles The role identifiers granted on acceptance.
Roles []string `json:"roles"`
}
InvitationLookup What `POST /invitations/lookup` shows the token holder before they decide.
type InvitationPage ¶
type InvitationPage struct {
// Invitations The organization invitations.
Invitations []Invitation `json:"invitations"`
// NextCursor The cursor for the next page, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
}
InvitationPage defines model for InvitationPage.
type InvitationStatus ¶
type InvitationStatus string
InvitationStatus defines model for InvitationStatus.
const ( InvitationStatusDeclined InvitationStatus = "declined" InvitationStatusExpired InvitationStatus = "expired" InvitationStatusPending InvitationStatus = "pending" )
Defines values for InvitationStatus.
func (InvitationStatus) Valid ¶
func (e InvitationStatus) Valid() bool
Valid indicates whether the value is a known member of the InvitationStatus enum.
type InvitationWithToken ¶
type InvitationWithToken struct {
// AcceptUrl The invitation acceptance URL, or `null` when it was delivered by email.
AcceptUrl *string `json:"accept_url,omitempty"`
// CreatedAt When the invitation was created or last re-issued.
CreatedAt time.Time `json:"created_at"`
// DeclinedAt When the invitation was declined, or `null`.
DeclinedAt *time.Time `json:"declined_at,omitempty"`
// Email The invited email address.
Email string `json:"email"`
// ExpiresAt When the invitation expires.
ExpiresAt time.Time `json:"expires_at"`
// Id The invitation ID.
Id openapi_types.UUID `json:"id"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// Roles The role identifiers granted on acceptance.
Roles []string `json:"roles"`
// Status The invitation status.
Status InvitationStatus `json:"status"`
}
InvitationWithToken defines model for InvitationWithToken.
type Invoice ¶
type Invoice struct {
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// FileUrl The hosted invoice URL.
FileUrl string `json:"file_url"`
// HasPdf Whether a downloadable PDF is available.
HasPdf bool `json:"has_pdf"`
// Id The invoice ID.
Id string `json:"id"`
// IssuedAt When the invoice was issued.
IssuedAt *time.Time `json:"issued_at,omitempty"`
// Number The human-readable invoice number.
Number string `json:"number"`
// PaymentDueAt When payment is due.
PaymentDueAt *time.Time `json:"payment_due_at,omitempty"`
// PaymentOverdue Whether payment is overdue.
PaymentOverdue bool `json:"payment_overdue"`
// PaymentStatus The payment status.
PaymentStatus InvoicePaymentStatus `json:"payment_status"`
// Status The invoice status.
Status InvoiceStatus `json:"status"`
// SubtotalAmountCents The subtotal in cents.
SubtotalAmountCents int64 `json:"subtotal_amount_cents"`
// SuspendsAt When nonpayment will suspend the organization, or `null` when not scheduled.
SuspendsAt *time.Time `json:"suspends_at,omitempty"`
// TaxesAmountCents The tax amount in cents.
TaxesAmountCents int64 `json:"taxes_amount_cents"`
// TotalAmountCents The total in cents.
TotalAmountCents int64 `json:"total_amount_cents"`
// TotalDueAmountCents The unpaid amount in cents.
TotalDueAmountCents int64 `json:"total_due_amount_cents"`
// Type The invoice type.
Type InvoiceType `json:"type"`
}
Invoice defines model for Invoice.
type InvoicePage ¶
type InvoicePage struct {
// Invoices The invoices in this page.
Invoices []Invoice `json:"invoices"`
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
}
InvoicePage defines model for InvoicePage.
type InvoicePaymentStatus ¶
type InvoicePaymentStatus string
InvoicePaymentStatus defines model for InvoicePaymentStatus.
const ( InvoicePaymentStatusFailed InvoicePaymentStatus = "failed" InvoicePaymentStatusPending InvoicePaymentStatus = "pending" InvoicePaymentStatusSucceeded InvoicePaymentStatus = "succeeded" )
Defines values for InvoicePaymentStatus.
func (InvoicePaymentStatus) Valid ¶
func (e InvoicePaymentStatus) Valid() bool
Valid indicates whether the value is a known member of the InvoicePaymentStatus enum.
type InvoiceStatus ¶
type InvoiceStatus string
InvoiceStatus defines model for InvoiceStatus.
const ( Draft InvoiceStatus = "draft" Finalized InvoiceStatus = "finalized" Voided InvoiceStatus = "voided" )
Defines values for InvoiceStatus.
func (InvoiceStatus) Valid ¶
func (e InvoiceStatus) Valid() bool
Valid indicates whether the value is a known member of the InvoiceStatus enum.
type InvoiceType ¶
type InvoiceType string
InvoiceType defines model for InvoiceType.
const ( OneOff InvoiceType = "one_off" Scheduled InvoiceType = "scheduled" Subscription InvoiceType = "subscription" Usage InvoiceType = "usage" )
Defines values for InvoiceType.
func (InvoiceType) Valid ¶
func (e InvoiceType) Valid() bool
Valid indicates whether the value is a known member of the InvoiceType enum.
type LifecycleAction ¶
type LifecycleAction string
LifecycleAction The action a lifecycle trigger fires: `stop`, `pause`, or `delete`.
const ( Delete LifecycleAction = "delete" Pause LifecycleAction = "pause" Stop LifecycleAction = "stop" )
Defines values for LifecycleAction.
func (LifecycleAction) Valid ¶
func (e LifecycleAction) Valid() bool
Valid indicates whether the value is a known member of the LifecycleAction enum.
type LifecyclePolicy ¶
type LifecyclePolicy struct {
// IdleExpirySeconds Configured idle expiry in seconds.
IdleExpirySeconds *int32 `json:"idle_expiry_seconds,omitempty"`
// IdleTimeoutAt Absolute idle-expiry deadline, or null when idle expiry is not armed.
IdleTimeoutAt *time.Time `json:"idle_timeout_at,omitempty"`
// LastActivityAt When activity was last observed, or null when no activity is recorded.
LastActivityAt *time.Time `json:"last_activity_at,omitempty"`
// LastActivitySource The kind of activity most recently observed, such as an explicit idle-timer reset (`api`), a running command, or sandbox traffic. Open vocabulary: treat an unrecognized value as sandbox activity.
LastActivitySource *string `json:"last_activity_source,omitempty"`
// OnIdleTimeout The action run when the idle expiry elapses, or null when idle expiry
// is not armed.
OnIdleTimeout *LifecycleAction `json:"on_idle_timeout,omitempty"`
// OnTimeout The action run when the timeout expires, or null when no timeout is
// armed.
OnTimeout *LifecycleAction `json:"on_timeout,omitempty"`
// TimeoutAt Absolute timeout deadline, or null when no timeout is armed.
TimeoutAt *time.Time `json:"timeout_at,omitempty"`
// TimeoutSeconds Configured timeout in seconds.
TimeoutSeconds *int32 `json:"timeout_seconds,omitempty"`
}
LifecyclePolicy The sandbox's lifecycle policy: the configured timeout and idle expiry, the deadlines derived from them, and the activity clock.
type ListAuditLogsParams ¶
type ListAuditLogsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Action The action filter
Action *string `form:"action,omitempty" json:"action,omitempty"`
// TargetType The target resource type filter
TargetType *string `form:"target_type,omitempty" json:"target_type,omitempty"`
// TargetId The target resource ID filter
TargetId *string `form:"target_id,omitempty" json:"target_id,omitempty"`
// Actor The actor user or API key ID
Actor *openapi_types.UUID `form:"actor,omitempty" json:"actor,omitempty"`
// Status The response status code filter
Status *int32 `form:"status,omitempty" json:"status,omitempty"`
// StartAt The inclusive start of the time range
StartAt *time.Time `form:"start_at,omitempty" json:"start_at,omitempty"`
// EndAt The exclusive end of the time range
EndAt *time.Time `form:"end_at,omitempty" json:"end_at,omitempty"`
// ActorPartner The partner application filter
ActorPartner *string `form:"actor_partner,omitempty" json:"actor_partner,omitempty"`
}
ListAuditLogsParams defines parameters for ListAuditLogs.
type ListBalancesParams ¶
type ListBalancesParams struct {
// Limit The maximum number of balances to return (default 25, maximum 100)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListBalancesParams defines parameters for ListBalances.
type ListChargesParams ¶
type ListChargesParams struct {
// Limit The maximum number of charges to return (default 25, maximum 100)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListChargesParams defines parameters for ListCharges.
type ListImagesParams ¶
type ListImagesParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Name Match this exact image name.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// SandboxId Return images captured from this sandbox ID.
SandboxId *string `form:"sandbox_id,omitempty" json:"sandbox_id,omitempty"`
// Anonymous Return anonymous images when true and named images when false. Defaults to false.
Anonymous *bool `form:"anonymous,omitempty" json:"anonymous,omitempty"`
// Platform Which images to list. Defaults to `false`.
Platform *ImagePlatformFilter `form:"platform,omitempty" json:"platform,omitempty"`
}
ListImagesParams defines parameters for ListImages.
type ListInvoicesParams ¶
type ListInvoicesParams struct {
// Limit The maximum number of invoices to return (default 25, maximum 100)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Unpaid Whether to return only unpaid invoices (default false)
Unpaid *bool `form:"unpaid,omitempty" json:"unpaid,omitempty"`
}
ListInvoicesParams defines parameters for ListInvoices.
type ListMembersParams ¶
type ListMembersParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListMembersParams defines parameters for ListMembers.
type ListOrgApiKeysParams ¶
type ListOrgApiKeysParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListOrgApiKeysParams defines parameters for ListOrgApiKeys.
type ListOrgInvitationsParams ¶
type ListOrgInvitationsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListOrgInvitationsParams defines parameters for ListOrgInvitations.
type ListOrganizationRegionsParams ¶
type ListOrganizationRegionsParams struct {
// Limit Maximum number of items to return (1–100, default 50)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListOrganizationRegionsParams defines parameters for ListOrganizationRegions.
type ListOrgsParams ¶
type ListOrgsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListOrgsParams defines parameters for ListOrgs.
type ListPaymentMethodsParams ¶
type ListPaymentMethodsParams struct {
// Limit The maximum number of payment methods to return (default 20, maximum 100)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListPaymentMethodsParams defines parameters for ListPaymentMethods.
type ListPermissionsParams ¶
type ListPermissionsParams struct {
// Scope Restrict the catalog to one permission scope.
Scope *ListPermissionsParamsScope `form:"scope,omitempty" json:"scope,omitempty"`
}
ListPermissionsParams defines parameters for ListPermissions.
type ListPermissionsParamsScope ¶
type ListPermissionsParamsScope string
ListPermissionsParamsScope defines parameters for ListPermissions.
const ( ListPermissionsParamsScopeOrganization ListPermissionsParamsScope = "organization" ListPermissionsParamsScopeProject ListPermissionsParamsScope = "project" )
Defines values for ListPermissionsParamsScope.
func (ListPermissionsParamsScope) Valid ¶
func (e ListPermissionsParamsScope) Valid() bool
Valid indicates whether the value is a known member of the ListPermissionsParamsScope enum.
type ListProjectApiKeysParams ¶
type ListProjectApiKeysParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListProjectApiKeysParams defines parameters for ListProjectApiKeys.
type ListProjectMembersParams ¶
type ListProjectMembersParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListProjectMembersParams defines parameters for ListProjectMembers.
type ListProjectServiceAccountsParams ¶
type ListProjectServiceAccountsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListProjectServiceAccountsParams defines parameters for ListProjectServiceAccounts.
type ListProjectsParams ¶
type ListProjectsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListProjectsParams defines parameters for ListProjects.
type ListRegionProxyTokensParams ¶
type ListRegionProxyTokensParams struct {
// Limit Maximum number of items to return (1–100, default 50)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListRegionProxyTokensParams defines parameters for ListRegionProxyTokens.
type ListRegionRegistrationTokensParams ¶
type ListRegionRegistrationTokensParams struct {
// Limit Maximum number of items to return (1–100, default 50)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListRegionRegistrationTokensParams defines parameters for ListRegionRegistrationTokens.
type ListRegionRunnersParams ¶
type ListRegionRunnersParams struct {
// Limit Maximum number of items to return (1–100, default 50)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListRegionRunnersParams defines parameters for ListRegionRunners.
type ListRegistriesParams ¶
type ListRegistriesParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListRegistriesParams defines parameters for ListRegistries.
type ListReservationsParams ¶
type ListReservationsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListReservationsParams defines parameters for ListReservations.
type ListSandboxPortsParams ¶
type ListSandboxPortsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListSandboxPortsParams defines parameters for ListSandboxPorts.
type ListSandboxesParams ¶
type ListSandboxesParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListSandboxesParams defines parameters for ListSandboxes.
type ListSecretsParams ¶
type ListSecretsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListSecretsParams defines parameters for ListSecrets.
type ListServiceAccountsParams ¶
type ListServiceAccountsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListServiceAccountsParams defines parameters for ListServiceAccounts.
type ListSnapshotsParams ¶
type ListSnapshotsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Name Match this exact snapshot name.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// SandboxId Return snapshots captured from this sandbox ID.
SandboxId *string `form:"sandbox_id,omitempty" json:"sandbox_id,omitempty"`
}
ListSnapshotsParams defines parameters for ListSnapshots.
type ListSsoConnectionsParams ¶
type ListSsoConnectionsParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListSsoConnectionsParams defines parameters for ListSsoConnections.
type ListUsagePeriodsParams ¶
type ListUsagePeriodsParams struct {
// Limit The maximum number of usage periods to return (default 12, maximum 60)
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListUsagePeriodsParams defines parameters for ListUsagePeriods.
type ListV0SandboxesParams ¶
type ListV0SandboxesParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListV0SandboxesParams defines parameters for ListV0Sandboxes.
type ListVolumesParams ¶
type ListVolumesParams struct {
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListVolumesParams defines parameters for ListVolumes.
type LookupInvitationJSONRequestBody ¶
type LookupInvitationJSONRequestBody = LookupInvitationRequest
LookupInvitationJSONRequestBody defines body for LookupInvitation for application/json ContentType.
type LookupInvitationRequest ¶
type LookupInvitationRequest struct {
// Token The invitation token.
Token string `json:"token"`
}
LookupInvitationRequest defines model for LookupInvitationRequest.
type MacCatalog ¶
type MacCatalog struct {
// Regions Every region the answer covers, in catalog order.
Regions []MacCatalogRegion `json:"regions"`
}
MacCatalog Free Macs and prices per Mac model, per region.
type MacCatalogModel ¶
type MacCatalogModel struct {
// Available Macs of this model that a purchase in this region can reserve now. Another purchase can take a Mac first. 0 when the model has no price.
Available int64 `json:"available"`
// Model The Mac model, as `GET /mac-models` lists it.
Model MacModel `json:"model"`
// Price What one reservation of this model costs. Null where billing is not
// enabled.
Price *MacPrice `json:"price"`
}
MacCatalogModel One Mac model in one region.
type MacCatalogRegion ¶
type MacCatalogRegion struct {
// DefaultModel The model a purchase that names none reserves.
DefaultModel string `json:"default_model"`
// Id The region ID.
Id string `json:"id"`
// Models One entry per Mac model, in `GET /mac-models` order.
Models []MacCatalogModel `json:"models"`
}
MacCatalogRegion One covered region.
type MacModel ¶
type MacModel struct {
// Cores CPU cores in the Mac. A Mac core is one CPU (Apple Silicon has no SMT).
Cores int32 `json:"cores"`
// DefaultSize The default size: the cores, memory and disk that a create gives each size field it omits. A create from a captured image gets the image's disk size instead. Null when this Mac model takes no sandbox.
DefaultSize *MacResources `json:"default_size"`
// DiskMib Size of the Mac's SSD in MiB. Sandboxes use the disk space in `sandbox_disk_mib`.
DiskMib int32 `json:"disk_mib"`
// Id Mac model slug accepted by POST /reservations.
Id string `json:"id"`
// MaxSandboxes Most sandboxes on one Mac of this model at once. Stopped sandboxes do not count. The sizes of the sandboxes on one Mac must fit that Mac. 0 when this Mac model takes no sandbox.
MaxSandboxes int32 `json:"max_sandboxes"`
// MemoryMib Physical memory in MiB.
MemoryMib int32 `json:"memory_mib"`
// Name Display name of the Mac model.
Name string `json:"name"`
// SandboxDiskMib Disk space for sandboxes on one Mac of this model, in MiB. The disks and disk volumes of the sandboxes on one Mac must fit in it. 0 until this Mac model's disk space is known.
SandboxDiskMib int32 `json:"sandbox_disk_mib"`
}
MacModel A Mac model.
type MacModelList ¶
type MacModelList struct {
// MacModels Every registered Mac model, ordered by ID.
MacModels []MacModel `json:"mac_models"`
}
MacModelList The registered Mac models.
type MacPrice ¶
type MacPrice struct {
// CentsPerHour The hourly rate of one Mac in cents, which can be fractional. The
// amount charged is `period_cents`.
CentsPerHour float64 `json:"cents_per_hour"`
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// PeriodCents Price of one reservation period in cents, rounded up to a whole cent.
// Each period is charged when it is bought.
PeriodCents int64 `json:"period_cents"`
// PeriodSeconds The reservation period in seconds.
PeriodSeconds int64 `json:"period_seconds"`
}
MacPrice One reservation's price.
type MacReservation ¶
type MacReservation struct {
// ActivatedAt When the reservation became active.
ActivatedAt *time.Time `json:"activated_at,omitempty"`
// AutoRenew The reservation renews itself shortly before `period_end` (an hour by
// default) while a macOS sandbox is active on it; an idle reservation lapses
// instead.
AutoRenew bool `json:"auto_renew"`
// Capacity The cores, memory and disk space for sandboxes of this reservation's Mac, set at purchase. Null when unknown; such a reservation accepts no new sandbox.
Capacity *MacResources `json:"capacity,omitempty"`
// CreatedAt When the reservation was created.
CreatedAt time.Time `json:"created_at"`
// EndReason Why the reservation ended, or `null` while it is live.
EndReason *MacReservationEndReason `json:"end_reason,omitempty"`
// EndedAt When the reservation ended.
EndedAt *time.Time `json:"ended_at,omitempty"`
// Id The reservation ID.
Id string `json:"id"`
// Model The reserved Mac model, fixed at purchase, including renewal and replacement. Null when model information is unavailable; such a reservation accepts no new sandbox.
Model *string `json:"model,omitempty"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// Origin How the reservation was bought: `explicit` by `POST /reservations` or a
// create with `reservation: "new"`, and `auto` by a macOS create or start
// under the organization's auto-reserve setting.
Origin MacReservationOrigin `json:"origin"`
// PendingMacStartedAt When the reservation last began to wait for a Mac: at its first
// charge, or when it moved after a Mac failure. Kept after a Mac takes
// it.
PendingMacStartedAt *time.Time `json:"pending_mac_started_at,omitempty"`
// PeriodEnd When the reservation ends unless renewed. Absent until a Mac first takes
// the reservation; period 1 starts then, so the wait for a Mac is not paid
// time.
PeriodEnd *time.Time `json:"period_end,omitempty"`
// PeriodN The current paid period (1-based).
PeriodN int32 `json:"period_n"`
// PeriodSeconds The period length in seconds.
PeriodSeconds int64 `json:"period_seconds"`
// PeriodStartedAt When the current period started.
PeriodStartedAt *time.Time `json:"period_started_at,omitempty"`
// ProjectId The project whose key bought the reservation. The reservation serves
// every project of the organization; this project's monthly budget gates
// its renewals, manual and automatic, which answer
// `PROJECT_BUDGET_EXCEEDED` while the project is held.
ProjectId openapi_types.UUID `json:"project_id"`
// RegionId The reservation region.
RegionId string `json:"region_id"`
// ReissuedAt Set when the reservation moved to another Mac after a Mac failure.
ReissuedAt *time.Time `json:"reissued_at,omitempty"`
// RenewalError Why the renewal of the next period failed (billing refused it, or the
// balance was too low); the reservation ends at `period_end` unless renewed by
// hand. Null when no renewal has failed.
RenewalError *string `json:"renewal_error,omitempty"`
// RenewalPending A renewal charge is still waiting for billing's answer.
RenewalPending bool `json:"renewal_pending"`
// ResourcesUsed The cores, memory and disk space in use on this reservation's Mac.
// Paused sandboxes and sandboxes with status `deleting` count.
ResourcesUsed MacResources `json:"resources_used"`
// SlotsUsed macOS sandboxes currently occupying this reservation's Mac.
SlotsUsed int64 `json:"slots_used"`
// Status The reservation status.
Status MacReservationStatus `json:"status"`
}
MacReservation A Mac reservation.
type MacReservationBatch ¶
type MacReservationBatch struct {
// Requested The request's count.
Requested int32 `json:"requested"`
// Reservations The created reservations, one per reserved Mac, each with its own ID, period and charge.
Reservations []MacReservation `json:"reservations"`
// Reserved How many reservations this request created, from `min_count` to `count`. A reservation whose charge did not succeed counts here and shows status `failed` with end reason `charge_failed`.
Reserved int32 `json:"reserved"`
}
MacReservationBatch The reservations one bulk purchase created.
type MacReservationEndReason ¶
type MacReservationEndReason string
MacReservationEndReason defines model for MacReservationEndReason.
const ( MacReservationEndReasonChargeFailed MacReservationEndReason = "charge_failed" MacReservationEndReasonExpired MacReservationEndReason = "expired" MacReservationEndReasonNotAccepted MacReservationEndReason = "not_accepted" MacReservationEndReasonOperator MacReservationEndReason = "operator" MacReservationEndReasonReissued MacReservationEndReason = "reissued" MacReservationEndReasonReleased MacReservationEndReason = "released" )
Defines values for MacReservationEndReason.
func (MacReservationEndReason) Valid ¶
func (e MacReservationEndReason) Valid() bool
Valid indicates whether the value is a known member of the MacReservationEndReason enum.
type MacReservationOrigin ¶
type MacReservationOrigin string
MacReservationOrigin defines model for MacReservationOrigin.
const ( Auto MacReservationOrigin = "auto" Explicit MacReservationOrigin = "explicit" )
Defines values for MacReservationOrigin.
func (MacReservationOrigin) Valid ¶
func (e MacReservationOrigin) Valid() bool
Valid indicates whether the value is a known member of the MacReservationOrigin enum.
type MacReservationStatus ¶
type MacReservationStatus string
MacReservationStatus defines model for MacReservationStatus.
const ( MacReservationStatusActive MacReservationStatus = "active" MacReservationStatusEnding MacReservationStatus = "ending" MacReservationStatusFailed MacReservationStatus = "failed" MacReservationStatusPendingCharge MacReservationStatus = "pending_charge" MacReservationStatusPendingMac MacReservationStatus = "pending_mac" MacReservationStatusReleased MacReservationStatus = "released" )
Defines values for MacReservationStatus.
func (MacReservationStatus) Valid ¶
func (e MacReservationStatus) Valid() bool
Valid indicates whether the value is a known member of the MacReservationStatus enum.
type MacResources ¶
type MacResources struct {
// Cores CPU cores.
Cores int32 `json:"cores"`
// DiskMib Sandbox disk in MiB.
DiskMib int32 `json:"disk_mib"`
// MemoryMib Memory in MiB.
MemoryMib int32 `json:"memory_mib"`
}
MacResources CPU cores, memory and disk, in cores and MiB. A Mac core is one CPU of the Mac (Apple Silicon has no SMT).
type MacosSettings ¶
type MacosSettings struct {
// MacosAutoReserve Whether a macOS create or start buys a Mac reservation when the organization has none in the region. On unless an admin turns it off.
MacosAutoReserve bool `json:"macos_auto_reserve"`
// MacosAutoReserveDisabledAt When an admin last turned auto-reserve off; null while it is on.
MacosAutoReserveDisabledAt *time.Time `json:"macos_auto_reserve_disabled_at,omitempty"`
// MacosAutoReserveDisabledBy The admin who last turned auto-reserve off; null while it is on, or when no admin was recorded.
MacosAutoReserveDisabledBy *openapi_types.UUID `json:"macos_auto_reserve_disabled_by,omitempty"`
// MacosAutoReserveMaxReservations The most live auto-created reservations the org may hold at once.
MacosAutoReserveMaxReservations int32 `json:"macos_auto_reserve_max_reservations"`
}
MacosSettings An organization's macOS settings.
type MemberLimits ¶
type MemberLimits struct {
// Limit The effective cap; `null` means no limit, except on a count whose
// limit is not returned. A ceiling, not a reservation: reaching it
// refuses new work, but nothing is set aside.
Limit *int64 `json:"limit"`
// PendingInvitations Invitations that reserve a member slot until accepted or declined.
PendingInvitations int64 `json:"pending_invitations"`
// Usage The current usage counted against the limit.
Usage int64 `json:"usage"`
}
MemberLimits defines model for MemberLimits.
type MemberRemovalPreview ¶
type MemberRemovalPreview struct {
// RevokedApiKeys The number of API keys the removal would revoke.
RevokedApiKeys int64 `json:"revoked_api_keys"`
// UserId The user ID that would be removed.
UserId openapi_types.UUID `json:"user_id"`
}
MemberRemovalPreview defines model for MemberRemovalPreview.
type MintSandboxAccessTokenJSONBody ¶
type MintSandboxAccessTokenJSONBody = MintSandboxAccessTokenRequest
MintSandboxAccessTokenJSONBody defines parameters for MintSandboxAccessToken.
type MintSandboxAccessTokenJSONRequestBody ¶
type MintSandboxAccessTokenJSONRequestBody = MintSandboxAccessTokenJSONBody
MintSandboxAccessTokenJSONRequestBody defines body for MintSandboxAccessToken for application/json ContentType.
type MintSandboxAccessTokenRequest ¶
type MintSandboxAccessTokenRequest struct {
// Operations Requested operation subset (the sandbox-operation vocabulary:
// `toolbox`, `toolbox:exec`, `toolbox:fs`, `toolbox:git`, `desktop`,
// `ssh`, `sandbox:stop`, `sandbox:pause`, `sandbox:delete`).
// Omitted = the minter's full grantable set. An empty list is a valid
// ports-only grant. Unknown strings, and operations outside the
// minter's grantable set, are a 400 — never a silent narrowing.
Operations *[]string `json:"operations,omitempty"`
// Ports Private-preview ports the token may reach: 1 to 65535, at most 128,
// with duplicates collapsed. The sandbox daemon's ports 2280, 2281 and
// 22220 are never preview ports and are refused. Omitted grants all
// ports, and `[]` grants none.
Ports *[]int32 `json:"ports,omitempty"`
// TtlSeconds Token lifetime in seconds. Omitted = the deployment default
// (3600 unless the deployment overrides it); values above the
// deployment cap (86400 by default) are a 400. `expires_at` in the
// response is authoritative.
TtlSeconds *int64 `json:"ttl_seconds,omitempty"`
}
MintSandboxAccessTokenRequest `POST …/access-token` request. All fields optional; an absent (or empty) body is the full default mint.
type Msa ¶
type Msa struct {
// Commits The commits under the organization's MSA, including upcoming and
// expired ones; empty when the organization has no MSA.
Commits []MsaCommit `json:"commits"`
// Discounts The negotiated price discounts on the organization's billing contracts.
Discounts []MsaDiscount `json:"discounts"`
}
Msa The organization's master services agreement (MSA) with Daytona: its commits and its negotiated discounts.
type MsaCommit ¶
type MsaCommit struct {
// CommittedCents The committed amount in cents. For a commit released in installments,
// the installments available now; otherwise the whole commitment.
CommittedCents int64 `json:"committed_cents"`
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// ExpiresAt When the commit expires, or `null` when it does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// ExpiringSoon Whether the active commit expires within 30 days and no other commit
// under the MSA continues coverage after it.
ExpiringSoon bool `json:"expiring_soon"`
// Id The commit ID.
Id string `json:"id"`
// LowBalance Whether at most 20% of the active commit's committed amount remains.
LowBalance bool `json:"low_balance"`
// Name The commit display name, which falls back to the product name.
Name string `json:"name"`
// ProductName The name of the product the commit was sold as.
ProductName string `json:"product_name"`
// RemainingCents The amount of the commitment not yet used, in cents.
RemainingCents int64 `json:"remaining_cents"`
// ScheduledCents The whole commitment in cents, across every installment. Equals
// `committed_cents` unless the commit is released in installments.
ScheduledCents int64 `json:"scheduled_cents"`
// StartsAt When the commit starts.
StartsAt time.Time `json:"starts_at"`
// Status The commit status: `upcoming` before `starts_at`, `expired` from
// `expires_at` on, and `active` in between.
Status MsaStatus `json:"status"`
// Type Whether the commitment is paid up front or invoiced at the end.
Type MsaCommitType `json:"type"`
// UsedCents The amount of the commitment already used, in cents.
UsedCents int64 `json:"used_cents"`
}
MsaCommit defines model for MsaCommit.
type MsaCommitType ¶
type MsaCommitType string
MsaCommitType defines model for MsaCommitType.
const ( Postpaid MsaCommitType = "postpaid" Prepaid MsaCommitType = "prepaid" )
Defines values for MsaCommitType.
func (MsaCommitType) Valid ¶
func (e MsaCommitType) Valid() bool
Valid indicates whether the value is a known member of the MsaCommitType enum.
type MsaDiscount ¶
type MsaDiscount struct {
// EndsAt When the discount ends, or `null` when it does not end.
EndsAt *time.Time `json:"ends_at,omitempty"`
// Id The discount ID: the rate override ID, suffixed with `:<n>` when one
// override has several scopes (each listed as its own discount).
Id string `json:"id"`
// Multiplier The factor applied to the list price for a `multiplier` discount, or
// `null` for other types.
Multiplier *float64 `json:"multiplier,omitempty"`
// OverwriteCentsPerUnit The replacement price for an `overwrite` discount with a flat rate, in
// cents per product unit, which can be fractional, or `null` for other
// types and for tiered or percentage overwrites.
OverwriteCentsPerUnit *float64 `json:"overwrite_cents_per_unit,omitempty"`
// PricingGroupValues The pricing dimension values the discount is limited to, by dimension
// name; empty when it applies to every value.
PricingGroupValues map[string]string `json:"pricing_group_values"`
// ProductNames The names of the products the discount applies to; empty with empty
// `product_tags` when it applies to every product.
ProductNames []string `json:"product_names"`
// ProductTags The product tags the discount applies to; empty with empty
// `product_names` when it applies to every product.
ProductTags []string `json:"product_tags"`
// StartsAt When the discount starts.
StartsAt time.Time `json:"starts_at"`
// Status The discount status: `upcoming` before `starts_at`, `expired` from
// `ends_at` on, and `active` in between.
Status MsaStatus `json:"status"`
// Type How the discount changes the price: a multiplier on the list price, a
// replacement price, or replacement price tiers.
Type MsaDiscountType `json:"type"`
}
MsaDiscount defines model for MsaDiscount.
type MsaDiscountType ¶
type MsaDiscountType string
MsaDiscountType defines model for MsaDiscountType.
const ( Multiplier MsaDiscountType = "multiplier" Overwrite MsaDiscountType = "overwrite" Tiered MsaDiscountType = "tiered" )
Defines values for MsaDiscountType.
func (MsaDiscountType) Valid ¶
func (e MsaDiscountType) Valid() bool
Valid indicates whether the value is a known member of the MsaDiscountType enum.
type MsaStatus ¶
type MsaStatus string
MsaStatus defines model for MsaStatus.
type NetworkPolicy ¶
type NetworkPolicy struct {
// Applied Rules currently active for the sandbox, or null when the policy is open.
Applied *NetworkPolicyRules `json:"applied,omitempty"`
// AppliedRevision Revision currently active for the sandbox.
AppliedRevision *int64 `json:"applied_revision,omitempty"`
// AppliedStartId The sandbox start the active revision was applied to, or `null` when
// no revision is active.
AppliedStartId *string `json:"applied_start_id,omitempty"`
// Desired Requested rules, or null when the policy is open.
Desired *NetworkPolicyRules `json:"desired,omitempty"`
// DesiredRevision Revision of the requested rules.
DesiredRevision int64 `json:"desired_revision"`
// Error Failure detail when the requested rules could not be applied.
Error *string `json:"error,omitempty"`
// Status Application status of the requested rules.
Status *string `json:"status,omitempty"`
}
NetworkPolicy defines model for NetworkPolicy.
type NetworkPolicyRules ¶
type NetworkPolicyRules struct {
// AllowCidrs IPv4 addresses and CIDR ranges allowed by the policy.
AllowCidrs []string `json:"allow_cidrs"`
// AllowDomains Domain names allowed by the policy, or null when domain filtering is not configured.
AllowDomains *[]string `json:"allow_domains,omitempty"`
// BlockAll Whether traffic is denied unless an allow rule matches.
BlockAll bool `json:"block_all"`
// Version Policy format version.
Version int32 `json:"version"`
}
NetworkPolicyRules defines model for NetworkPolicyRules.
type OidcProvider ¶
type OidcProvider string
OidcProvider Login provider used by the dashboard.
const ( Oidc OidcProvider = "oidc" Workos OidcProvider = "workos" )
Defines values for OidcProvider.
func (OidcProvider) Valid ¶
func (e OidcProvider) Valid() bool
Valid indicates whether the value is a known member of the OidcProvider enum.
type OidcPublicConfig ¶
type OidcPublicConfig struct {
// Audience The API identifier requested during login. Present with the `oidc` provider; null with `workos`.
Audience *string `json:"audience,omitempty"`
// CliClientId Public OAuth client ID for native clients. `null` when unavailable.
CliClientId *string `json:"cli_client_id,omitempty"`
// ClientId The dashboard's public OAuth client ID.
ClientId string `json:"client_id"`
// Issuer The issuer the API validates user tokens against.
Issuer string `json:"issuer"`
// Provider Login provider used by the dashboard.
Provider OidcProvider `json:"provider"`
// Scope Default authorization scope requested during login.
Scope string `json:"scope"`
}
OidcPublicConfig OpenID Connect login settings.
type Organization ¶
type Organization struct {
// BudgetStopGraceSeconds The delay before budget-held sandboxes are stopped or deleted; macOS
// sandboxes, which run on a prepaid Mac reservation, keep running.
BudgetStopGraceSeconds int64 `json:"budget_stop_grace_seconds"`
// CreatedAt When the organization was created.
CreatedAt time.Time `json:"created_at"`
// FromV0 Whether the organization was migrated from Daytona v0.
FromV0 bool `json:"from_v0"`
// Id The organization ID.
Id openapi_types.UUID `json:"id"`
// MaxSandboxTimeoutSeconds The organization's own cap on sandbox timeouts, in seconds; null uses the plan maximum, or the platform maximum when there is no plan maximum. The plan maximum bounds this value; `GET /orgs/{id}/limits` reports the cap in effect.
MaxSandboxTimeoutSeconds *int32 `json:"max_sandbox_timeout_seconds"`
// Name The organization name.
Name string `json:"name"`
// Personal Whether this is the user's personal organization.
Personal bool `json:"personal"`
// PreviewWarningDisabled Whether sandbox previews skip the warning page.
PreviewWarningDisabled bool `json:"preview_warning_disabled"`
// SsoLinked Whether the organization is linked to its single sign-on configuration.
SsoLinked bool `json:"sso_linked"`
// SsoOrganizationId The ID of the single sign-on organization the organization is linked
// to; null when `sso_linked` is false.
SsoOrganizationId *string `json:"sso_organization_id"`
// Suspended Whether new resource creation is suspended.
Suspended bool `json:"suspended"`
// SuspendedReason The member-visible suspension reason, when available.
SuspendedReason *string `json:"suspended_reason,omitempty"`
// UpdatedAt When the organization was last updated.
UpdatedAt time.Time `json:"updated_at"`
// V0MembershipSyncEnabled Whether membership changes sync with the Daytona v0 organization of the
// same ID. When true, removing a member also removes them from the
// Daytona v0 organization.
V0MembershipSyncEnabled bool `json:"v0_membership_sync_enabled"`
}
Organization An organization.
type OrganizationApiKey ¶
type OrganizationApiKey struct {
// CreatedAt When the API key was created.
CreatedAt time.Time `json:"created_at"`
// CreatedBy The user who created the API key, when visible.
CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`
// ExpiresAt When the API key expires, or null when it does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The API key ID.
Id openapi_types.UUID `json:"id"`
// KeyPrefix The recognizable leading token characters, when available.
KeyPrefix *string `json:"key_prefix,omitempty"`
// KeySuffix The recognizable trailing token characters, when available.
KeySuffix *string `json:"key_suffix,omitempty"`
// LastUsedAt When the API key was last used, or null when unknown.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The API key name.
Name string `json:"name"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// OrgPermissions The organization permissions granted to the API key.
OrgPermissions []string `json:"org_permissions"`
// RevokedAt When the API key was revoked, or null while active.
RevokedAt *time.Time `json:"revoked_at,omitempty"`
}
OrganizationApiKey An organization API key without its secret token.
type OrganizationApiKeyPage ¶
type OrganizationApiKeyPage struct {
// NextCursor The cursor for the next page, or null when this is the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// OrganizationApiKeys The organization API keys in this page.
OrganizationApiKeys []OrganizationApiKey `json:"organization_api_keys"`
}
OrganizationApiKeyPage A page of organization API keys.
type OrganizationApiKeyWithToken ¶
type OrganizationApiKeyWithToken struct {
// CreatedAt When the API key was created.
CreatedAt time.Time `json:"created_at"`
// CreatedBy The user who created the API key, when visible.
CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`
// ExpiresAt When the API key expires, or null when it does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The API key ID.
Id openapi_types.UUID `json:"id"`
// KeyPrefix The recognizable leading token characters, when available.
KeyPrefix *string `json:"key_prefix,omitempty"`
// KeySuffix The recognizable trailing token characters, when available.
KeySuffix *string `json:"key_suffix,omitempty"`
// LastUsedAt When the API key was last used, or null when unknown.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The API key name.
Name string `json:"name"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// OrgPermissions The organization permissions granted to the API key.
OrgPermissions []string `json:"org_permissions"`
// RevokedAt When the API key was revoked, or null while active.
RevokedAt *time.Time `json:"revoked_at,omitempty"`
// Token The secret token, returned only when the key is created.
Token string `json:"token"`
}
OrganizationApiKeyWithToken A newly created organization API key and its one-time secret token.
type OrganizationFeatureFlags ¶
type OrganizationFeatureFlags struct {
// Flags The published feature keys enabled for the organization. Disabled keys
// are omitted.
Flags map[string]bool `json:"flags"`
}
OrganizationFeatureFlags defines model for OrganizationFeatureFlags.
type OrganizationId ¶
type OrganizationId = openapi_types.UUID
OrganizationId defines model for OrganizationId.
type OrganizationLimits ¶
type OrganizationLimits struct {
// ApiKeysPerOrganization The organization's live API-key limit and current usage.
ApiKeysPerOrganization UsageLimit `json:"api_keys_per_organization"`
// ApiKeysPerProject The maximum number of live API keys in any one project and the highest current usage.
ApiKeysPerProject UsageLimit `json:"api_keys_per_project"`
// ImageBuilds Concurrent image-build limits.
ImageBuilds ImageBuildLimits `json:"image_builds"`
// MacReservations Mac reservations the organization holds: pending, active or ending. Renewals do not count again.
MacReservations *UsageLimit `json:"mac_reservations,omitempty"`
// Members Organization member limits. Omitted for project-scoped callers.
Members *MemberLimits `json:"members,omitempty"`
// SandboxResources Per-sandbox resource maximums for Linux sandboxes.
SandboxResources *SandboxResourceLimits `json:"sandbox_resources,omitempty"`
// SandboxTimeout Sandbox timeout maximums.
SandboxTimeout SandboxTimeoutLimits `json:"sandbox_timeout"`
// Sandboxes Sandbox count limits.
Sandboxes SandboxLimits `json:"sandboxes"`
// SecretsPerProject The maximum number of secrets in any one project and the highest current usage.
SecretsPerProject UsageLimit `json:"secrets_per_project"`
// Storage Volume, image, and snapshot counts. Their organization limits are not returned.
Storage StorageLimits `json:"storage"`
}
OrganizationLimits An organization's limits and current usage. Some organization limits are not returned. Daytona determines them for each organization to keep the platform available for everyone. A create that reaches one is refused with `LIMIT_EXCEEDED`; contact support to request a higher limit.
type OrganizationListItem ¶
type OrganizationListItem struct {
// BudgetStopGraceSeconds The delay before budget-held sandboxes are stopped or deleted; macOS
// sandboxes, which run on a prepaid Mac reservation, keep running.
BudgetStopGraceSeconds int64 `json:"budget_stop_grace_seconds"`
// CreatedAt When the organization was created.
CreatedAt time.Time `json:"created_at"`
// FromV0 Whether the organization was migrated from Daytona v0.
FromV0 bool `json:"from_v0"`
// Id The organization ID.
Id openapi_types.UUID `json:"id"`
// MaxSandboxTimeoutSeconds The organization's own cap on sandbox timeouts, in seconds; null uses the plan maximum, or the platform maximum when there is no plan maximum. The plan maximum bounds this value; `GET /orgs/{id}/limits` reports the cap in effect.
MaxSandboxTimeoutSeconds *int32 `json:"max_sandbox_timeout_seconds"`
// Membership The signed-in user's membership in this organization.
Membership OrganizationMembership `json:"membership"`
// Name The organization name.
Name string `json:"name"`
// Personal Whether this is the user's personal organization.
Personal bool `json:"personal"`
// PreviewWarningDisabled Whether sandbox previews skip the warning page.
PreviewWarningDisabled bool `json:"preview_warning_disabled"`
// SsoLinked Whether the organization is linked to its single sign-on configuration.
SsoLinked bool `json:"sso_linked"`
// SsoOrganizationId The ID of the single sign-on organization the organization is linked
// to; null when `sso_linked` is false.
SsoOrganizationId *string `json:"sso_organization_id"`
// Suspended Whether new resource creation is suspended.
Suspended bool `json:"suspended"`
// SuspendedReason The member-visible suspension reason, when available.
SuspendedReason *string `json:"suspended_reason,omitempty"`
// UpdatedAt When the organization was last updated.
UpdatedAt time.Time `json:"updated_at"`
// V0MembershipSyncEnabled Whether membership changes sync with the Daytona v0 organization of the
// same ID. When true, removing a member also removes them from the
// Daytona v0 organization.
V0MembershipSyncEnabled bool `json:"v0_membership_sync_enabled"`
}
OrganizationListItem An organization together with the signed-in user's membership.
type OrganizationMember ¶
type OrganizationMember struct {
// AssignableProjectPermissions The project permissions the member may grant.
AssignableProjectPermissions []string `json:"assignable_project_permissions"`
// Email The member's email address.
Email string `json:"email"`
// JoinedAt When the user joined the organization.
JoinedAt time.Time `json:"joined_at"`
// Name The member's display name.
Name *string `json:"name,omitempty"`
// OrgPermissions The member's effective organization permissions.
OrgPermissions []string `json:"org_permissions"`
// Roles The assigned role identifiers.
Roles []string `json:"roles"`
// UserId The user ID.
UserId openapi_types.UUID `json:"user_id"`
}
OrganizationMember defines model for OrganizationMember.
type OrganizationMemberPage ¶
type OrganizationMemberPage struct {
// Members The organization members.
Members []OrganizationMember `json:"members"`
// NextCursor The cursor for the next page, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
}
OrganizationMemberPage defines model for OrganizationMemberPage.
type OrganizationMembership ¶
type OrganizationMembership struct {
// DefaultProjectId The organization's default project ID.
DefaultProjectId openapi_types.UUID `json:"default_project_id"`
// GrantableProjectPermissions The project permissions this member may grant to others.
GrantableProjectPermissions []string `json:"grantable_project_permissions"`
// Permissions The effective organization permissions.
Permissions []string `json:"permissions"`
// Roles The role slugs assigned to the member.
Roles []string `json:"roles"`
}
OrganizationMembership The signed-in user's membership in an organization.
type OrganizationPage ¶
type OrganizationPage struct {
// NextCursor The cursor for the next page, or null when this is the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Organizations The organizations in this page.
Organizations []OrganizationListItem `json:"organizations"`
}
OrganizationPage A page of organizations.
type OrganizationRegion ¶
type OrganizationRegion struct {
// CreatedAt When the region was created.
CreatedAt time.Time `json:"created_at"`
// Id The region ID. Generated when the region is created; pass it as the
// region of a sandbox create.
Id string `json:"id"`
// Name The display name.
Name string `json:"name"`
// ParentRegionId The ID of the parent region this region was created under.
ParentRegionId string `json:"parent_region_id"`
// PreviewDomain The base domain of the region's preview URLs, or `null` when none is
// set.
PreviewDomain *string `json:"preview_domain,omitempty"`
// RunnerCount The number of runners enrolled in the region.
RunnerCount int64 `json:"runner_count"`
// SandboxCidr The private IPv4 range sandbox addresses are allocated from.
SandboxCidr string `json:"sandbox_cidr"`
// Status Whether the region accepts new sandboxes.
Status RegionStatus `json:"status"`
// SubnetPrefixLength The prefix length of the subnet each runner receives from
// `sandbox_cidr`.
SubnetPrefixLength int32 `json:"subnet_prefix_length"`
// ToolboxProxyUrl The base URL of the region's proxy, or `null` when none is
// set.
ToolboxProxyUrl *string `json:"toolbox_proxy_url,omitempty"`
// UpdatedAt When the region last changed.
UpdatedAt time.Time `json:"updated_at"`
}
OrganizationRegion A region an organization created on its own infrastructure.
type OrganizationRegionId ¶
type OrganizationRegionId = string
OrganizationRegionId defines model for OrganizationRegionId.
type OrganizationRegionPage ¶
type OrganizationRegionPage struct {
// NextCursor The cursor for the next page, or `null` on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Regions The regions on this page, ordered by ID.
Regions []OrganizationRegion `json:"regions"`
}
OrganizationRegionPage A page of organization regions.
type OrganizationRole ¶
type OrganizationRole struct {
// CreatedAt When the role was created, or `null` for a built-in role.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Description The role's purpose.
Description string `json:"description"`
// Id The role ID: a built-in role's identifier, or a custom role's UUID.
Id string `json:"id"`
// Kind Whether the role is built in or defined by the organization.
Kind OrganizationRoleKind `json:"kind"`
// Name The display name.
Name string `json:"name"`
// OrganizationPermissions The organization permissions the role grants.
OrganizationPermissions []string `json:"organization_permissions"`
// Permissions Every permission the role grants: the project permissions, then the
// organization permissions.
Permissions []string `json:"permissions"`
// ProjectPermissions The project permissions the role grants.
ProjectPermissions []string `json:"project_permissions"`
// UpdatedAt When the role was last changed, or `null` for a built-in role.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
OrganizationRole defines model for OrganizationRole.
type OrganizationRoleKind ¶
type OrganizationRoleKind string
OrganizationRoleKind Whether a role is part of the platform catalog or defined by the organization. The server may add kinds later.
const ( BuiltIn OrganizationRoleKind = "built_in" Custom OrganizationRoleKind = "custom" )
Defines values for OrganizationRoleKind.
func (OrganizationRoleKind) Valid ¶
func (e OrganizationRoleKind) Valid() bool
Valid indicates whether the value is a known member of the OrganizationRoleKind enum.
type OrganizationRoleList ¶
type OrganizationRoleList struct {
// MaxCustomRoles The most custom roles the organization can define.
MaxCustomRoles int64 `json:"max_custom_roles"`
// Roles The built-in roles, then the organization's custom roles.
Roles []OrganizationRole `json:"roles"`
}
OrganizationRoleList defines model for OrganizationRoleList.
type OrganizationRoleUpdate ¶
type OrganizationRoleUpdate struct {
// RevokedApiKeys The number of API keys the update revoked.
RevokedApiKeys int64 `json:"revoked_api_keys"`
// Role The updated role.
Role OrganizationRole `json:"role"`
}
OrganizationRoleUpdate A role update's result: the role and the keys the update revoked.
type OrganizationRunner ¶
type OrganizationRunner struct {
// AdminState Whether the runner accepts new sandboxes.
AdminState OrganizationRunnerAdminState `json:"admin_state"`
// BilledCores The cores the runner is billed at per hour: its logical CPUs ÷ 2.
// `null` before the runner first reports its CPUs.
BilledCores *float64 `json:"billed_cores,omitempty"`
// EnrolledAt When the runner enrolled.
EnrolledAt time.Time `json:"enrolled_at"`
// Id The runner ID.
Id string `json:"id"`
// LastSeenAt When the runner was last heard from, or `null` when never.
LastSeenAt *time.Time `json:"last_seen_at,omitempty"`
// NodeName The Kubernetes node name the runner enrolled with.
NodeName string `json:"node_name"`
// RegionId The region the runner is enrolled in.
RegionId string `json:"region_id"`
// SandboxCount The number of sandboxes on the runner.
SandboxCount int64 `json:"sandbox_count"`
// Status Whether the runner is connected.
Status OrganizationRunnerStatus `json:"status"`
// UpdatedAt When the runner was last cordoned or uncordoned, or when it enrolled.
UpdatedAt time.Time `json:"updated_at"`
// Version The runner software version, or `null` when not reported yet.
Version *string `json:"version,omitempty"`
}
OrganizationRunner A runner enrolled in an organization region.
type OrganizationRunnerAdminState ¶
type OrganizationRunnerAdminState string
OrganizationRunnerAdminState Whether a runner accepts new sandboxes.
const ( OrganizationRunnerAdminStateActive OrganizationRunnerAdminState = "active" OrganizationRunnerAdminStateCordoned OrganizationRunnerAdminState = "cordoned" )
Defines values for OrganizationRunnerAdminState.
func (OrganizationRunnerAdminState) Valid ¶
func (e OrganizationRunnerAdminState) Valid() bool
Valid indicates whether the value is a known member of the OrganizationRunnerAdminState enum.
type OrganizationRunnerPage ¶
type OrganizationRunnerPage struct {
// NextCursor The cursor for the next page, or `null` on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Runners The runners on this page.
Runners []OrganizationRunner `json:"runners"`
}
OrganizationRunnerPage A page of a region's runners.
type OrganizationRunnerStatus ¶
type OrganizationRunnerStatus string
OrganizationRunnerStatus Whether a runner is connected.
const ( OrganizationRunnerStatusLost OrganizationRunnerStatus = "lost" OrganizationRunnerStatusOffline OrganizationRunnerStatus = "offline" OrganizationRunnerStatusOnline OrganizationRunnerStatus = "online" )
Defines values for OrganizationRunnerStatus.
func (OrganizationRunnerStatus) Valid ¶
func (e OrganizationRunnerStatus) Valid() bool
Valid indicates whether the value is a known member of the OrganizationRunnerStatus enum.
type OrganizationServiceAccount ¶
type OrganizationServiceAccount struct {
// ArchivedAt When the service account was archived, or `null`.
ArchivedAt *time.Time `json:"archived_at,omitempty"`
// CreatedAt When the service account was created.
CreatedAt time.Time `json:"created_at"`
// CreatedBy The user who created the service account, or `null`.
CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`
// Description The optional description.
Description *string `json:"description,omitempty"`
// Id The service account ID.
Id openapi_types.UUID `json:"id"`
// LiveKeyCount The number of active API keys owned by the service account.
LiveKeyCount int64 `json:"live_key_count"`
// Name The service account name.
Name string `json:"name"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// OrgPermissions The effective permissions granted by the roles.
OrgPermissions []string `json:"org_permissions"`
// Roles The assigned role identifiers.
Roles []string `json:"roles"`
// UpdatedAt When the service account was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
OrganizationServiceAccount defines model for OrganizationServiceAccount.
type OrganizationServiceAccountPage ¶
type OrganizationServiceAccountPage struct {
// NextCursor The cursor for the next page, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
// ServiceAccounts The service accounts.
ServiceAccounts []OrganizationServiceAccount `json:"service_accounts"`
}
OrganizationServiceAccountPage defines model for OrganizationServiceAccountPage.
type OtelConfig ¶
type OtelConfig struct {
// CreatedAt When the configuration was created, or null when it is unset.
CreatedAt *time.Time `json:"created_at"`
// Endpoint The tenant's OTLP/HTTP endpoint.
Endpoint *string `json:"endpoint"`
// HeaderNames Names of the request headers configured; values are write-only and never returned.
HeaderNames []string `json:"header_names"`
// UpdatedAt When the configuration was last updated, or null when it is unset.
UpdatedAt *time.Time `json:"updated_at"`
}
OtelConfig An organization's telemetry configuration: the endpoint and the names of the configured request headers. Header values are write-only and are never returned.
type ParentRegion ¶
type ParentRegion struct {
// Id The parent region ID, for `parent_region_id`.
Id string `json:"id"`
// Name The display name.
Name string `json:"name"`
}
ParentRegion A parent region the organization may create a region under.
type ParentRegionList ¶
type ParentRegionList struct {
// ParentRegions The parent regions, ordered by ID.
ParentRegions []ParentRegion `json:"parent_regions"`
}
ParentRegionList The parent regions the organization may create a region under.
type PaymentMethod ¶
type PaymentMethod struct {
// Brand The payment-card brand.
Brand PaymentMethodBrand `json:"brand"`
// ExpMonth The card's expiration month.
ExpMonth int32 `json:"exp_month"`
// ExpYear The card's expiration year.
ExpYear int32 `json:"exp_year"`
// Id The payment method ID.
Id string `json:"id"`
// IsDefault Whether this is the default payment method.
IsDefault bool `json:"is_default"`
// Last4 The final four digits of the card number.
Last4 string `json:"last4"`
}
PaymentMethod defines model for PaymentMethod.
type PaymentMethodBrand ¶
type PaymentMethodBrand string
PaymentMethodBrand defines model for PaymentMethodBrand.
const ( PaymentMethodBrandAmex PaymentMethodBrand = "amex" PaymentMethodBrandCartesBancaires PaymentMethodBrand = "cartes_bancaires" PaymentMethodBrandDiners PaymentMethodBrand = "diners" PaymentMethodBrandDiscover PaymentMethodBrand = "discover" PaymentMethodBrandEftposAu PaymentMethodBrand = "eftpos_au" PaymentMethodBrandInterac PaymentMethodBrand = "interac" PaymentMethodBrandJcb PaymentMethodBrand = "jcb" PaymentMethodBrandLink PaymentMethodBrand = "link" PaymentMethodBrandMastercard PaymentMethodBrand = "mastercard" PaymentMethodBrandOther PaymentMethodBrand = "other" PaymentMethodBrandUnionpay PaymentMethodBrand = "unionpay" PaymentMethodBrandVisa PaymentMethodBrand = "visa" )
Defines values for PaymentMethodBrand.
func (PaymentMethodBrand) Valid ¶
func (e PaymentMethodBrand) Valid() bool
Valid indicates whether the value is a known member of the PaymentMethodBrand enum.
type PaymentMethodPage ¶
type PaymentMethodPage struct {
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
// PaymentMethods The payment methods in this page.
PaymentMethods []PaymentMethod `json:"payment_methods"`
}
PaymentMethodPage defines model for PaymentMethodPage.
type PendingPlanChange ¶
type PendingPlanChange struct {
// EffectiveAt When the scheduled plan takes effect.
EffectiveAt time.Time `json:"effective_at"`
// Plan The scheduled plan.
Plan PlanName `json:"plan"`
}
PendingPlanChange defines model for PendingPlanChange.
type Permission ¶
type Permission struct {
// Category The display category.
Category string `json:"category"`
// Id The permission identifier.
Id string `json:"id"`
// Name The display name.
Name string `json:"name"`
}
Permission defines model for Permission.
type PermissionList ¶
type PermissionList struct {
// Permissions The available permissions.
Permissions []Permission `json:"permissions"`
}
PermissionList defines model for PermissionList.
type Plan ¶
type Plan struct {
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// Entitlements The entitlement keys included in the plan.
Entitlements []string `json:"entitlements"`
// FeeCents The recurring plan fee in cents.
FeeCents int64 `json:"fee_cents"`
// Limits The plan limits.
Limits PlanLimits `json:"limits"`
// MonthlyCreditCents The monthly included credit in cents.
MonthlyCreditCents int64 `json:"monthly_credit_cents"`
// Plan The catalog plan.
Plan PlanName `json:"plan"`
// SelfServe Whether members can select this plan through the API.
SelfServe bool `json:"self_serve"`
}
Plan defines model for Plan.
type PlanLimits ¶
type PlanLimits struct {
// MaxConcurrentSandboxes The concurrent sandbox limit, or `null` when unlimited.
MaxConcurrentSandboxes *int64 `json:"max_concurrent_sandboxes,omitempty"`
// MaxMacReservations The most Mac reservations the organization can hold at once.
MaxMacReservations *int64 `json:"max_mac_reservations,omitempty"`
// MaxMembers The member limit, or `null` when unlimited.
MaxMembers *int64 `json:"max_members,omitempty"`
// MaxSandboxCores The CPU limit of one Linux sandbox in cores (1 core = 2 vCPUs), or `null` when only the platform maximum applies.
MaxSandboxCores *float64 `json:"max_sandbox_cores,omitempty"`
// MaxSandboxMemoryMib The memory limit of one Linux sandbox in MiB, or `null` when only the platform maximum applies.
MaxSandboxMemoryMib *int64 `json:"max_sandbox_memory_mib,omitempty"`
// MaxSandboxTimeoutSeconds The longest timeout a sandbox may have on this plan, in seconds, or `null` when the plan sets no maximum.
MaxSandboxTimeoutSeconds *int64 `json:"max_sandbox_timeout_seconds,omitempty"`
}
PlanLimits defines model for PlanLimits.
type PlanList ¶
type PlanList struct {
// Plans The billing plan catalog.
Plans []Plan `json:"plans"`
}
PlanList defines model for PlanList.
type PlanName ¶
type PlanName string
PlanName defines model for PlanName.
Defines values for PlanName.
type PortAssignment ¶
type PortAssignment struct {
// HostPort The port exposed on the platform side.
HostPort int32 `json:"host_port"`
// Proto The transport protocol.
Proto PortProtocol `json:"proto"`
// VmPort The port inside the sandbox.
VmPort int32 `json:"vm_port"`
}
PortAssignment A port the platform exposes for a sandbox.
type PortMapping ¶
type PortMapping struct {
// Port The sandbox TCP or UDP port.
Port int32 `json:"port"`
// Proto The transport protocol. Defaults to `tcp`.
Proto *string `json:"proto,omitempty"`
}
PortMapping One port exposed when the sandbox is created.
type PortProtocol ¶
type PortProtocol string
PortProtocol defines model for PortProtocol.
const ( Tcp PortProtocol = "tcp" Udp PortProtocol = "udp" )
Defines values for PortProtocol.
func (PortProtocol) Valid ¶
func (e PortProtocol) Valid() bool
Valid indicates whether the value is a known member of the PortProtocol enum.
type PortalIntent ¶
type PortalIntent string
PortalIntent The setup area opened by a configuration link.
const ( Dsync PortalIntent = "dsync" Sso PortalIntent = "sso" )
Defines values for PortalIntent.
func (PortalIntent) Valid ¶
func (e PortalIntent) Valid() bool
Valid indicates whether the value is a known member of the PortalIntent enum.
type PreviewMemberUpdateJSONRequestBody ¶
type PreviewMemberUpdateJSONRequestBody = PreviewMemberUpdateRequest
PreviewMemberUpdateJSONRequestBody defines body for PreviewMemberUpdate for application/json ContentType.
type PreviewMemberUpdateRequest ¶
type PreviewMemberUpdateRequest struct {
// Roles The member's complete new role set.
Roles []string `json:"roles"`
}
PreviewMemberUpdateRequest defines model for PreviewMemberUpdateRequest.
type PreviewOrganizationRoleUpdateJSONRequestBody ¶
type PreviewOrganizationRoleUpdateJSONRequestBody = PreviewOrganizationRoleUpdateRequest
PreviewOrganizationRoleUpdateJSONRequestBody defines body for PreviewOrganizationRoleUpdate for application/json ContentType.
type PreviewOrganizationRoleUpdateRequest ¶
type PreviewOrganizationRoleUpdateRequest struct {
// Description The new role purpose.
Description *string `json:"description,omitempty"`
// Name The new role name. Whitespace is normalized as on create; the result
// must be 1 to 64 characters.
Name *string `json:"name,omitempty"`
// OrganizationPermissions The complete new set of organization permissions.
OrganizationPermissions *[]string `json:"organization_permissions,omitempty"`
// ProjectPermissions The complete new set of project permissions.
ProjectPermissions *[]string `json:"project_permissions,omitempty"`
}
PreviewOrganizationRoleUpdateRequest defines model for PreviewOrganizationRoleUpdateRequest.
type PreviewServiceAccountUpdateJSONRequestBody ¶
type PreviewServiceAccountUpdateJSONRequestBody = PreviewServiceAccountUpdateRequest
PreviewServiceAccountUpdateJSONRequestBody defines body for PreviewServiceAccountUpdate for application/json ContentType.
type PreviewServiceAccountUpdateRequest ¶
type PreviewServiceAccountUpdateRequest struct {
// Description The replacement description; `null` clears it.
Description *string `json:"description,omitempty"`
// Name The replacement name.
Name *string `json:"name,omitempty"`
// Roles The replacement role identifiers.
Roles *[]string `json:"roles,omitempty"`
}
PreviewServiceAccountUpdateRequest The same body as the update, previewed without applying it.
type PreviewUrl ¶
type PreviewUrl struct {
// Token Secret value sent in the `x-daytona-preview-token` header. A sandbox access token also works as an Authorization Bearer token or in the `daytona_token` query parameter; an opaque preview token works only in the header.
Token string `json:"token"`
// Url Host-based preview URL, `<scheme>://<port>-<sandbox_id>.<domain>/`.
Url string `json:"url"`
}
PreviewUrl A preview URL and its access token.
type PreviewWarning ¶
type PreviewWarning struct {
// Disabled Whether sandbox previews skip the warning page.
Disabled bool `json:"disabled"`
}
PreviewWarning An organization's preview-warning setting.
type PrivacyPolicyStatus ¶
type PrivacyPolicyStatus struct {
// Accepted Whether the user has accepted the required version. A client should
// prompt for consent only on an explicit `false`.
Accepted bool `json:"accepted"`
// AcceptedAt When the user last accepted a version; `null` if never.
AcceptedAt *time.Time `json:"accepted_at,omitempty"`
// AcceptedVersion The version the user last accepted, whatever version is required now.
AcceptedVersion *string `json:"accepted_version,omitempty"`
// Url Where the current policy text is published; `null` when no consent is
// required.
Url *string `json:"url,omitempty"`
// Version Version the platform currently requires; `null` when it requires no
// consent, in which case `accepted` is always `true`.
Version *string `json:"version,omitempty"`
}
PrivacyPolicyStatus The signed-in user's standing against the required privacy policy.
type Project ¶
type Project struct {
// CreatedAt When the project was created.
CreatedAt time.Time `json:"created_at"`
// CreatedBy The user who created the project, when visible.
CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`
// Default Whether this is the organization's default project.
Default bool `json:"default"`
// Id The project ID.
Id openapi_types.UUID `json:"id"`
// Name The project name.
Name string `json:"name"`
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// UpdatedAt When the project was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
Project defines model for Project.
type ProjectApiKey ¶
type ProjectApiKey struct {
// CreatedAt When the API key was created.
CreatedAt time.Time `json:"created_at"`
// CreatedBy The user who created the API key, when visible.
CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`
// ExpiresAt When the API key expires, or null when it does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The API key ID.
Id openapi_types.UUID `json:"id"`
// ImportedFrom `"v0"` when the key was created on Daytona v0 and imported by the
// v0 ↔ v2 key sync; `null` for a key created on this platform.
ImportedFrom *string `json:"imported_from,omitempty"`
// KeyPrefix The recognizable leading token characters, when available.
KeyPrefix *string `json:"key_prefix,omitempty"`
// KeySuffix The recognizable trailing token characters, when available.
KeySuffix *string `json:"key_suffix,omitempty"`
// LastUsedAt When the API key was last used, or null when unknown.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The API key name.
Name string `json:"name"`
// ProjectId The project ID.
ProjectId openapi_types.UUID `json:"project_id"`
// ProjectPermissions The project permissions granted to the API key.
ProjectPermissions []string `json:"project_permissions"`
// RevokedAt When the API key was revoked, or null while active.
RevokedAt *time.Time `json:"revoked_at,omitempty"`
// ServiceAccountId The service account that owns the API key, when applicable.
ServiceAccountId *openapi_types.UUID `json:"service_account_id,omitempty"`
// ServiceAccountName The service account name, when applicable and available.
ServiceAccountName *string `json:"service_account_name,omitempty"`
// SyncToV0 Whether the v0 ↔ v2 key sync copies this key to Daytona v0 (for an
// organization that is kept in sync with Daytona v0). `true` for a live
// key a person minted in the organization's `default` project unless it
// was opted out by updating the API key, and always for a live key
// imported from Daytona v0. `false` for every key the sync never copies:
// keys in other projects, service-account keys, the dashboard's own key
// named `default`, and revoked or expired keys. A Daytona v0 copy can
// read every sandbox, snapshot and registry of the organization on
// Daytona v0, which has no read permissions.
SyncToV0 bool `json:"sync_to_v0"`
}
ProjectApiKey A project API key without its secret token.
type ProjectApiKeyContext ¶
type ProjectApiKeyContext struct {
// OrgId The organization ID.
OrgId openapi_types.UUID `json:"org_id"`
// OrgName The organization name.
OrgName string `json:"org_name"`
// ProjectName The project name.
ProjectName string `json:"project_name"`
}
ProjectApiKeyContext The project and organization in which an API key acts.
type ProjectApiKeyPage ¶
type ProjectApiKeyPage struct {
// NextCursor The cursor for the next page, or null when this is the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// ProjectApiKeys The project API keys in this page.
ProjectApiKeys []ProjectApiKey `json:"project_api_keys"`
}
ProjectApiKeyPage A page of project API keys.
type ProjectApiKeyWithContext ¶
type ProjectApiKeyWithContext struct {
// Context The project and organization in which the key acts.
Context ProjectApiKeyContext `json:"context"`
// CreatedAt When the API key was created.
CreatedAt time.Time `json:"created_at"`
// CreatedBy The user who created the API key, when visible.
CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`
// ExpiresAt When the API key expires, or null when it does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The API key ID.
Id openapi_types.UUID `json:"id"`
// ImportedFrom `"v0"` when the key was created on Daytona v0 and imported by the
// v0 ↔ v2 key sync; `null` for a key created on this platform.
ImportedFrom *string `json:"imported_from,omitempty"`
// KeyPrefix The recognizable leading token characters, when available.
KeyPrefix *string `json:"key_prefix,omitempty"`
// KeySuffix The recognizable trailing token characters, when available.
KeySuffix *string `json:"key_suffix,omitempty"`
// LastUsedAt When the API key was last used, or null when unknown.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The API key name.
Name string `json:"name"`
// ProjectId The project ID.
ProjectId openapi_types.UUID `json:"project_id"`
// ProjectPermissions The project permissions granted to the API key.
ProjectPermissions []string `json:"project_permissions"`
// RevokedAt When the API key was revoked, or null while active.
RevokedAt *time.Time `json:"revoked_at,omitempty"`
// ServiceAccountId The service account that owns the API key, when applicable.
ServiceAccountId *openapi_types.UUID `json:"service_account_id,omitempty"`
// ServiceAccountName The service account name, when applicable and available.
ServiceAccountName *string `json:"service_account_name,omitempty"`
// SyncToV0 Whether the v0 ↔ v2 key sync copies this key to Daytona v0 (for an
// organization that is kept in sync with Daytona v0). `true` for a live
// key a person minted in the organization's `default` project unless it
// was opted out by updating the API key, and always for a live key
// imported from Daytona v0. `false` for every key the sync never copies:
// keys in other projects, service-account keys, the dashboard's own key
// named `default`, and revoked or expired keys. A Daytona v0 copy can
// read every sandbox, snapshot and registry of the organization on
// Daytona v0, which has no read permissions.
SyncToV0 bool `json:"sync_to_v0"`
}
ProjectApiKeyWithContext A project API key together with its tenant context.
type ProjectApiKeyWithToken ¶
type ProjectApiKeyWithToken struct {
// CreatedAt When the API key was created.
CreatedAt time.Time `json:"created_at"`
// CreatedBy The user who created the API key, when visible.
CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`
// ExpiresAt When the API key expires, or null when it does not expire.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The API key ID.
Id openapi_types.UUID `json:"id"`
// ImportedFrom `"v0"` when the key was created on Daytona v0 and imported by the
// v0 ↔ v2 key sync; `null` for a key created on this platform.
ImportedFrom *string `json:"imported_from,omitempty"`
// KeyPrefix The recognizable leading token characters, when available.
KeyPrefix *string `json:"key_prefix,omitempty"`
// KeySuffix The recognizable trailing token characters, when available.
KeySuffix *string `json:"key_suffix,omitempty"`
// LastUsedAt When the API key was last used, or null when unknown.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The API key name.
Name string `json:"name"`
// ProjectId The project ID.
ProjectId openapi_types.UUID `json:"project_id"`
// ProjectPermissions The project permissions granted to the API key.
ProjectPermissions []string `json:"project_permissions"`
// RevokedAt When the API key was revoked, or null while active.
RevokedAt *time.Time `json:"revoked_at,omitempty"`
// ServiceAccountId The service account that owns the API key, when applicable.
ServiceAccountId *openapi_types.UUID `json:"service_account_id,omitempty"`
// ServiceAccountName The service account name, when applicable and available.
ServiceAccountName *string `json:"service_account_name,omitempty"`
// SyncToV0 Whether the v0 ↔ v2 key sync copies this key to Daytona v0 (for an
// organization that is kept in sync with Daytona v0). `true` for a live
// key a person minted in the organization's `default` project unless it
// was opted out by updating the API key, and always for a live key
// imported from Daytona v0. `false` for every key the sync never copies:
// keys in other projects, service-account keys, the dashboard's own key
// named `default`, and revoked or expired keys. A Daytona v0 copy can
// read every sandbox, snapshot and registry of the organization on
// Daytona v0, which has no read permissions.
SyncToV0 bool `json:"sync_to_v0"`
// Token The secret token, returned only when the key is created.
Token string `json:"token"`
}
ProjectApiKeyWithToken A newly created project API key and its one-time secret token.
type ProjectBudget ¶
type ProjectBudget struct {
// CreatedAt When the budget was first set, or null when no budget is set.
CreatedAt *time.Time `json:"created_at"`
// EvaluatedAt When spend was last evaluated in the current period. `null` until the
// first evaluation in the period.
EvaluatedAt *time.Time `json:"evaluated_at,omitempty"`
// ExceededAt When the project reached its budget this period. `null` while the
// project is under its budget.
ExceededAt *time.Time `json:"exceeded_at,omitempty"`
// MonthlyLimitCents The monthly budget, in US cents, or null when no budget is set.
MonthlyLimitCents *int64 `json:"monthly_limit_cents"`
// PeriodStartDate The first day of the current budget period (the calendar month in
// UTC), as `YYYY-MM-DD`.
PeriodStartDate *openapi_types.Date `json:"period_start_date"`
// SpentCents Month-to-date spend at list price, in US cents, from the last
// evaluation in the current period. `null` until the first evaluation in
// the period.
SpentCents *int64 `json:"spent_cents,omitempty"`
// StopAt When the budget grace period ends: `exceeded_at` plus the grace period. Running sandboxes may then be stopped or deleted; macOS sandboxes on prepaid reservations keep running. Null when there is no active hold or the deadline falls on or after the next UTC month, when the hold expires.
StopAt *time.Time `json:"stop_at,omitempty"`
// UpdatedAt When a member last set the budget, or null when no budget is set.
// Spend evaluations do not change it.
UpdatedAt *time.Time `json:"updated_at"`
}
ProjectBudget A project's monthly spend budget and its current state.
type ProjectImageBuildLimits ¶
type ProjectImageBuildLimits struct {
// Concurrent The project's concurrent image-build limit and current usage.
Concurrent UsageLimit `json:"concurrent"`
}
ProjectImageBuildLimits The project's concurrent image-build limit and current usage.
type ProjectLifecycleDefaults ¶
type ProjectLifecycleDefaults struct {
// Ephemeral Defaults for ephemeral sandboxes.
Ephemeral EphemeralLifecycleDefaults `json:"ephemeral"`
}
ProjectLifecycleDefaults defines model for ProjectLifecycleDefaults.
type ProjectLifecyclePolicy ¶
type ProjectLifecyclePolicy struct {
// Effective The effective policies by sandbox class and persistence mode.
Effective EffectiveLifecyclePolicies `json:"effective"`
// Policy The project-level lifecycle defaults.
Policy ProjectLifecycleDefaults `json:"policy"`
}
ProjectLifecyclePolicy defines model for ProjectLifecyclePolicy.
type ProjectLimits ¶
type ProjectLimits struct {
// ImageBuilds The project's image-build limits.
ImageBuilds ProjectImageBuildLimits `json:"image_builds"`
// Sandboxes The project's sandbox counts. Only the concurrent count can carry a
// project limit.
Sandboxes ProjectSandboxLimits `json:"sandboxes"`
}
ProjectLimits The project's own limits on sandboxes and image builds, each with the project's current usage against it.
type ProjectMember ¶
type ProjectMember struct {
// AddedAt When the member was added, or `null` for an implicit membership.
AddedAt *time.Time `json:"added_at,omitempty"`
// Email The member's email address.
Email string `json:"email"`
// Implicit Whether every organization member receives this membership automatically.
Implicit bool `json:"implicit"`
// Name The member's display name, or `null` when unavailable.
Name *string `json:"name,omitempty"`
// UserId The member's user ID.
UserId openapi_types.UUID `json:"user_id"`
}
ProjectMember defines model for ProjectMember.
type ProjectMemberList ¶
type ProjectMemberList struct {
// AddedUserIds The user IDs added by the request.
AddedUserIds []openapi_types.UUID `json:"added_user_ids"`
}
ProjectMemberList defines model for ProjectMemberList.
type ProjectMemberPage ¶
type ProjectMemberPage struct {
// Members The project members in this page.
Members []ProjectMember `json:"members"`
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
}
ProjectMemberPage defines model for ProjectMemberPage.
type ProjectPage ¶
type ProjectPage struct {
// NextCursor The cursor for the next page, or null when this is the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Projects The projects in this page.
Projects []Project `json:"projects"`
}
ProjectPage A page of projects.
type ProjectSandboxLimits ¶
type ProjectSandboxLimits struct {
// Concurrent The project's concurrent sandbox limit and current usage.
Concurrent UsageLimit `json:"concurrent"`
// Persistent The project's persistent sandbox count. Stopped and paused persistent
// sandboxes count. Projects have no persistent sandbox limit of their
// own, so `limit` is always `null`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Persistent UsageLimit `json:"persistent"`
// Total The project's total sandbox count. Projects have no total sandbox
// limit of their own, so `limit` is always `null`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Total UsageLimit `json:"total"`
}
ProjectSandboxLimits The project's sandbox counts, each with its current usage. Only the concurrent count can carry a project limit.
type ProjectServiceAccount ¶
type ProjectServiceAccount struct {
// AddedAt When project access was added, or `null` for implicit access.
AddedAt *time.Time `json:"added_at,omitempty"`
// ArchivedAt When the service account was archived, or `null` while active.
ArchivedAt *time.Time `json:"archived_at,omitempty"`
// Id The service account ID.
Id openapi_types.UUID `json:"id"`
// Implicit Whether every service account receives this project access automatically.
Implicit bool `json:"implicit"`
// Name The service account name.
Name string `json:"name"`
}
ProjectServiceAccount defines model for ProjectServiceAccount.
type ProjectServiceAccountList ¶
type ProjectServiceAccountList struct {
// AddedServiceAccountIds The service account IDs added by the request.
AddedServiceAccountIds []openapi_types.UUID `json:"added_service_account_ids"`
}
ProjectServiceAccountList defines model for ProjectServiceAccountList.
type ProjectServiceAccountPage ¶
type ProjectServiceAccountPage struct {
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
// ServiceAccounts The service accounts in this page.
ServiceAccounts []ProjectServiceAccount `json:"service_accounts"`
}
ProjectServiceAccountPage defines model for ProjectServiceAccountPage.
type PublicImageSource ¶
type PublicImageSource struct {
// contains filtered or unexported fields
}
PublicImageSource A caller-selectable image source.
func (PublicImageSource) AsPublicImageSource0 ¶
func (t PublicImageSource) AsPublicImageSource0() (PublicImageSource0, error)
AsPublicImageSource0 returns the union data inside the PublicImageSource as a PublicImageSource0
func (PublicImageSource) AsPublicImageSource1 ¶
func (t PublicImageSource) AsPublicImageSource1() (PublicImageSource1, error)
AsPublicImageSource1 returns the union data inside the PublicImageSource as a PublicImageSource1
func (*PublicImageSource) FromPublicImageSource0 ¶
func (t *PublicImageSource) FromPublicImageSource0(v PublicImageSource0) error
FromPublicImageSource0 overwrites any union data inside the PublicImageSource as the provided PublicImageSource0
func (*PublicImageSource) FromPublicImageSource1 ¶
func (t *PublicImageSource) FromPublicImageSource1(v PublicImageSource1) error
FromPublicImageSource1 overwrites any union data inside the PublicImageSource as the provided PublicImageSource1
func (PublicImageSource) MarshalJSON ¶
func (t PublicImageSource) MarshalJSON() ([]byte, error)
func (*PublicImageSource) MergePublicImageSource0 ¶
func (t *PublicImageSource) MergePublicImageSource0(v PublicImageSource0) error
MergePublicImageSource0 performs a merge with any union data inside the PublicImageSource, using the provided PublicImageSource0
func (*PublicImageSource) MergePublicImageSource1 ¶
func (t *PublicImageSource) MergePublicImageSource1(v PublicImageSource1) error
MergePublicImageSource1 performs a merge with any union data inside the PublicImageSource, using the provided PublicImageSource1
func (*PublicImageSource) UnmarshalJSON ¶
func (t *PublicImageSource) UnmarshalJSON(b []byte) error
type PublicImageSource0 ¶
type PublicImageSource0 struct {
// Ref The OCI image reference.
Ref string `json:"ref"`
// Type The object type.
Type PublicImageSource0Type `json:"type"`
}
PublicImageSource0 Pull an image from an OCI registry.
type PublicImageSource0Type ¶
type PublicImageSource0Type string
PublicImageSource0Type The object type.
const (
PublicImageSource0TypeRegistry PublicImageSource0Type = "registry"
)
Defines values for PublicImageSource0Type.
func (PublicImageSource0Type) Valid ¶
func (e PublicImageSource0Type) Valid() bool
Valid indicates whether the value is a known member of the PublicImageSource0Type enum.
type PublicImageSource1 ¶
type PublicImageSource1 struct {
// Name The existing image name.
Name string `json:"name"`
// Type The object type.
Type PublicImageSource1Type `json:"type"`
}
PublicImageSource1 Use an existing image in the same project.
type PublicImageSource1Type ¶
type PublicImageSource1Type string
PublicImageSource1Type The object type.
const (
PublicImageSource1TypeNamed PublicImageSource1Type = "named"
)
Defines values for PublicImageSource1Type.
func (PublicImageSource1Type) Valid ¶
func (e PublicImageSource1Type) Valid() bool
Valid indicates whether the value is a known member of the PublicImageSource1Type enum.
type RedeemCouponJSONRequestBody ¶
type RedeemCouponJSONRequestBody = RedeemCouponRequest
RedeemCouponJSONRequestBody defines body for RedeemCoupon for application/json ContentType.
type RedeemCouponRequest ¶
type RedeemCouponRequest struct {
// Code The coupon code.
Code string `json:"code"`
}
RedeemCouponRequest defines model for RedeemCouponRequest.
type Region ¶
type Region struct {
// ApiBaseUrl API base URL when this region publishes one.
ApiBaseUrl *string `json:"api_base_url,omitempty"`
// Available Whether this region can be requested when creating a sandbox. For a region containing other regions, at least one must accept new sandboxes. This is not a health or capacity guarantee.
Available bool `json:"available"`
// Id Region ID, the value a create request names in `region_id`.
Id string `json:"id"`
// Name Display name.
Name string `json:"name"`
// ParentRegionIds IDs of the containing regions, outermost first; the last is the direct parent. Empty for `earth`. All IDs appear in this response. A create that names one of these regions is placed here only if this region accepts automatic placement, and membership does not guarantee capacity.
ParentRegionIds []string `json:"parent_region_ids"`
}
Region A region that can be named in a create.
type RegionInstallation ¶
type RegionInstallation struct {
// ApiUrl The API URL runners enroll against, or `null` when not configured.
ApiUrl *string `json:"api_url,omitempty"`
// BootstrapImage The image that runs the bootstrap script, or `null` when not
// configured.
BootstrapImage *string `json:"bootstrap_image,omitempty"`
// BusUrl The message bus address the region's runners connect out to, or `null`
// when not configured. Allow it in your firewall.
BusUrl *string `json:"bus_url,omitempty"`
// Chart The Helm chart that installs the region's runners, as an OCI reference.
Chart string `json:"chart"`
// ChartVersion The chart version to install, or `null` for the latest.
ChartVersion *string `json:"chart_version,omitempty"`
// InstallerImage The installer image, or `null` when not configured.
InstallerImage *string `json:"installer_image,omitempty"`
// ProxyImage The proxy image, or `null` when not configured.
ProxyImage *string `json:"proxy_image,omitempty"`
// RegionId The region ID.
RegionId string `json:"region_id"`
// TerraformModule The Terraform module, as an OCI reference, or `null` when not
// configured.
TerraformModule *string `json:"terraform_module,omitempty"`
// UsageReportingUrl The address the region's runners report sandbox usage to, or `null`
// when not configured. Allow it in your firewall.
UsageReportingUrl *string `json:"usage_reporting_url,omitempty"`
}
RegionInstallation The non-secret values an installation in the region needs.
type RegionList ¶
type RegionList struct {
// DefaultRegionId ID of the caller's default region: the project's default region, else
// the organization's, else the platform's. A client sends a create that
// names no region to this region's `api_base_url`. `null` when that
// region is not listed.
DefaultRegionId *string `json:"default_region_id"`
// Regions Every listed region in tree order: Earth first, then each region followed by the regions inside it.
Regions []Region `json:"regions"`
}
RegionList The caller's regions.
type RegionMultiplier ¶
type RegionMultiplier struct {
// Multiplier The multiplier applied to base resource prices.
Multiplier float64 `json:"multiplier"`
// RegionId The region ID accepted by create requests.
RegionId string `json:"region_id"`
}
RegionMultiplier defines model for RegionMultiplier.
type RegionMultiplierList ¶
type RegionMultiplierList struct {
// RegionMultipliers Region price multipliers, with Earth first and the rest ordered by ID.
RegionMultipliers []RegionMultiplier `json:"region_multipliers"`
}
RegionMultiplierList defines model for RegionMultiplierList.
type RegionProxyToken ¶
type RegionProxyToken struct {
// CreatedAt When the token was created.
CreatedAt time.Time `json:"created_at"`
// ExpiresAt When the token expires, or `null` when it does not.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The proxy token ID.
Id openapi_types.UUID `json:"id"`
// LastUsedAt When the token last authenticated, or `null` when it never has.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The display name, or `null` when none was given.
Name *string `json:"name,omitempty"`
// RegionId The region the token is bound to.
RegionId string `json:"region_id"`
// RotatedFrom The ID of the token this one replaced, or `null`.
RotatedFrom *openapi_types.UUID `json:"rotated_from,omitempty"`
// UpdatedAt When the token last changed: a rotation shortens the replaced token's
// lifetime.
UpdatedAt time.Time `json:"updated_at"`
}
RegionProxyToken A token the region's own proxy authenticates with.
type RegionProxyTokenId ¶
type RegionProxyTokenId = openapi_types.UUID
RegionProxyTokenId defines model for RegionProxyTokenId.
type RegionProxyTokenPage ¶
type RegionProxyTokenPage struct {
// NextCursor The cursor for the next page, or `null` on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// ProxyTokens The proxy tokens, newest first.
ProxyTokens []RegionProxyToken `json:"proxy_tokens"`
}
RegionProxyTokenPage A page of the region's live proxy tokens.
type RegionProxyTokenWithToken ¶
type RegionProxyTokenWithToken struct {
// CreatedAt When the token was created.
CreatedAt time.Time `json:"created_at"`
// ExpiresAt When the token expires, or `null` when it does not.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id The proxy token ID.
Id openapi_types.UUID `json:"id"`
// LastUsedAt When the token last authenticated, or `null` when it never has.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The display name, or `null` when none was given.
Name *string `json:"name,omitempty"`
// RegionId The region the token is bound to.
RegionId string `json:"region_id"`
// RotatedFrom The ID of the token this one replaced, or `null`.
RotatedFrom *openapi_types.UUID `json:"rotated_from,omitempty"`
// Token The secret, returned only when the token is created.
Token string `json:"token"`
// UpdatedAt When the token last changed: a rotation shortens the replaced token's
// lifetime.
UpdatedAt time.Time `json:"updated_at"`
}
RegionProxyTokenWithToken A newly created proxy token and its one-time secret.
type RegionStatus ¶
type RegionStatus string
RegionStatus defines model for RegionStatus.
const ( RegionStatusActive RegionStatus = "active" RegionStatusDisabled RegionStatus = "disabled" )
Defines values for RegionStatus.
func (RegionStatus) Valid ¶
func (e RegionStatus) Valid() bool
Valid indicates whether the value is a known member of the RegionStatus enum.
type RegistrationToken ¶
type RegistrationToken struct {
// CreatedAt When the token was created.
CreatedAt time.Time `json:"created_at"`
// ExpiresAt When the token stops enrolling runners.
ExpiresAt time.Time `json:"expires_at"`
// Id The registration token ID.
Id openapi_types.UUID `json:"id"`
// MaxUses How many runners the token may enroll.
MaxUses int32 `json:"max_uses"`
// Name The display name.
Name string `json:"name"`
// RegionId The region the token enrolls runners into.
RegionId string `json:"region_id"`
// UpdatedAt When the token last changed.
UpdatedAt time.Time `json:"updated_at"`
// Uses How many runners the token has enrolled.
Uses int32 `json:"uses"`
}
RegistrationToken A token that enrolls runners into one region until it expires or its uses run out.
type RegistrationTokenPage ¶
type RegistrationTokenPage struct {
// NextCursor The cursor for the next page, or `null` on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// RegistrationTokens The registration tokens, newest first.
RegistrationTokens []RegistrationToken `json:"registration_tokens"`
}
RegistrationTokenPage A page of the region's live registration tokens.
type RegistrationTokenWithToken ¶
type RegistrationTokenWithToken struct {
// CreatedAt When the token was created.
CreatedAt time.Time `json:"created_at"`
// ExpiresAt When the token stops enrolling runners.
ExpiresAt time.Time `json:"expires_at"`
// Id The registration token ID.
Id openapi_types.UUID `json:"id"`
// MaxUses How many runners the token may enroll.
MaxUses int32 `json:"max_uses"`
// Name The display name.
Name string `json:"name"`
// RegionId The region the token enrolls runners into.
RegionId string `json:"region_id"`
// Token The secret, returned only when the token is created.
Token string `json:"token"`
// UpdatedAt When the token last changed.
UpdatedAt time.Time `json:"updated_at"`
// Uses How many runners the token has enrolled.
Uses int32 `json:"uses"`
}
RegistrationTokenWithToken A newly created registration token and its one-time secret.
type Registry ¶
type Registry struct {
// CreatedAt When the credentials were created.
CreatedAt time.Time `json:"created_at"`
// Description The user-facing description, or null when absent.
Description *string `json:"description,omitempty"`
// Host Normalized registry host (Docker Hub aliases collapse to
// `index.docker.io`).
Host string `json:"host"`
// Kind Authentication kind. For `ecr_role` the username is the IAM role ARN
// the platform assumes.
Kind RegistryKind `json:"kind"`
// UpdatedAt When the credentials were last updated.
UpdatedAt time.Time `json:"updated_at"`
// Username The registry username.
Username string `json:"username"`
}
Registry Registry credential metadata returned by list and get endpoints. Passwords are write-only and never returned.
type RegistryKind ¶
type RegistryKind string
RegistryKind defines model for RegistryKind.
const ( RegistryKindBasic RegistryKind = "basic" RegistryKindEcr RegistryKind = "ecr" RegistryKindEcrRole RegistryKind = "ecr_role" RegistryKindGcr RegistryKind = "gcr" RegistryKindGhcr RegistryKind = "ghcr" )
Defines values for RegistryKind.
func (RegistryKind) Valid ¶
func (e RegistryKind) Valid() bool
Valid indicates whether the value is a known member of the RegistryKind enum.
type RegistryPage ¶
type RegistryPage struct {
// NextCursor The opaque continuation token, or null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Registries The registry credentials in this page.
Registries []Registry `json:"registries"`
}
RegistryPage Response for `GET /registries`: metadata only, never passwords.
type ReservationPage ¶
type ReservationPage struct {
// NextCursor The cursor for the next page, or null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Reservations The reservations in this page.
Reservations []MacReservation `json:"reservations"`
}
ReservationPage GET /reservations response.
type Role ¶
type Role struct {
// Description The role's purpose.
Description string `json:"description"`
// Id The role identifier.
Id string `json:"id"`
// Name The display name.
Name string `json:"name"`
// Permissions The permissions granted by the role.
Permissions []string `json:"permissions"`
}
Role defines model for Role.
type RoleChangeImpact ¶
type RoleChangeImpact struct {
// AffectedMembers The number of members who hold the role.
AffectedMembers int64 `json:"affected_members"`
// AffectedServiceAccounts The number of active service accounts that hold the role.
AffectedServiceAccounts int64 `json:"affected_service_accounts"`
// PendingInvitations The number of pending invitations that grant the role.
PendingInvitations int64 `json:"pending_invitations"`
// RevokedApiKeys The number of API keys the update would revoke.
RevokedApiKeys int64 `json:"revoked_api_keys"`
}
RoleChangeImpact defines model for RoleChangeImpact.
type RoleList ¶
type RoleList struct {
// Roles The available roles.
Roles []Role `json:"roles"`
}
RoleList defines model for RoleList.
type RotateRegionProxyTokenJSONRequestBody ¶
type RotateRegionProxyTokenJSONRequestBody = RotateRegionProxyTokenRequest
RotateRegionProxyTokenJSONRequestBody defines body for RotateRegionProxyToken for application/json ContentType.
type RotateRegionProxyTokenRequest ¶
type RotateRegionProxyTokenRequest struct {
// ExpiresAt When the successor expires; must be in the future.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Name The successor's display name, 1 to 100 characters.
Name *string `json:"name,omitempty"`
// NoExpiry Whether the successor never expires.
NoExpiry *bool `json:"no_expiry,omitempty"`
// OverlapSeconds Seconds the replaced token keeps working, 0 to 86400. Default 0.
OverlapSeconds *int64 `json:"overlap_seconds,omitempty"`
}
RotateRegionProxyTokenRequest The body of a proxy-token rotation: the successor's lifetime, and how long the replaced token keeps working.
type Sandbox ¶
type Sandbox struct {
// Class Sandbox class.
Class SandboxClass `json:"class"`
// CoresMax Maximum CPU, in cores (1 core = 2 vCPUs): the size the sandbox boots
// at, a multiple of 0.5.
CoresMax float64 `json:"cores_max"`
// Cpu Reserved CPU, in cores (1 core = 2 vCPUs).
Cpu float64 `json:"cpu"`
// CreateTimeoutAt Create deadline; absent after the sandbox reaches its target status.
CreateTimeoutAt *time.Time `json:"create_timeout_at,omitempty"`
// CreatedAt When the sandbox was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// DiskMaxMib Maximum writable disk size in MiB.
DiskMaxMib *int32 `json:"disk_max_mib,omitempty"`
// DiskMib Writable disk size in MiB.
DiskMib int32 `json:"disk_mib"`
// Error Failure detail, or null when no failure is recorded.
Error *string `json:"error,omitempty"`
// ForkedFrom Source sandbox ID when this sandbox is a fork.
ForkedFrom *string `json:"forked_from,omitempty"`
// Id The sandbox ID.
Id string `json:"id"`
// Image The image the sandbox was created from; absent when it was created
// from a snapshot.
Image *ImageReference `json:"image,omitempty"`
// ImageBuildId Build ID associated with the sandbox image.
ImageBuildId *openapi_types.UUID `json:"image_build_id,omitempty"`
// ImageRef The original image reference when no image resource is associated.
ImageRef *string `json:"image_ref,omitempty"`
// ImportedFrom The platform and sandbox ID this sandbox was imported from; absent for
// a sandbox created here.
ImportedFrom *ImportedFrom `json:"imported_from,omitempty"`
// Labels User-defined sandbox labels.
Labels *map[string]string `json:"labels,omitempty"`
// LastActivityAt When activity was last observed.
LastActivityAt *time.Time `json:"last_activity_at,omitempty"`
// LifecyclePolicy Automatic timeout and idle-expiry behavior.
LifecyclePolicy *LifecyclePolicy `json:"lifecycle_policy,omitempty"`
// MacBootMode How a macOS sandbox resumed; absent when it has not resumed.
MacBootMode *string `json:"mac_boot_mode,omitempty"`
// MemoryMaxMib Maximum memory in MiB.
MemoryMaxMib *int32 `json:"memory_max_mib,omitempty"`
// MemoryMib Reserved memory in MiB.
MemoryMib int32 `json:"memory_mib"`
// Name The sandbox name.
Name string `json:"name"`
// Persistent Whether the sandbox keeps its disk across stop and start.
Persistent *bool `json:"persistent,omitempty"`
// PortMap Port assignments reported for the sandbox.
PortMap []PortAssignment `json:"port_map"`
// RegionId The region the sandbox runs in.
RegionId string `json:"region_id"`
// ReservationId The Mac reservation that the macOS sandbox runs on, or ran on last.
// Null before the sandbox first reaches a Mac; absent for other sandbox
// classes.
ReservationId *string `json:"reservation_id,omitempty"`
// Snapshot The snapshot the sandbox was created from; absent when it was
// created from an image.
Snapshot *SnapshotReference `json:"snapshot,omitempty"`
// Spot Whether discounted interruptible capacity was requested.
Spot *bool `json:"spot,omitempty"`
// SpotEvictedAt When discounted capacity reclaimed the sandbox; absent when it has
// not been reclaimed.
SpotEvictedAt *time.Time `json:"spot_evicted_at,omitempty"`
// SshGatewayHost SSH gateway host for the sandbox region.
SshGatewayHost *string `json:"ssh_gateway_host,omitempty"`
// SshGatewayPort SSH gateway port for the sandbox region.
SshGatewayPort *int32 `json:"ssh_gateway_port,omitempty"`
// StartedAt When the sandbox most recently started.
StartedAt *time.Time `json:"started_at,omitempty"`
// Status Current lifecycle status.
Status string `json:"status"`
// StoppedAt When the sandbox most recently stopped.
StoppedAt *time.Time `json:"stopped_at,omitempty"`
// ToolboxProxyUrl Base URL for sandbox tools.
ToolboxProxyUrl *string `json:"toolbox_proxy_url,omitempty"`
// UpdatedAt When the sandbox was last updated.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
// User Default operating-system user.
User *string `json:"user,omitempty"`
}
Sandbox A sandbox and its current configuration.
type SandboxAccessToken ¶
type SandboxAccessToken struct {
// AccessToken The sandbox access token.
AccessToken string `json:"access_token"`
// ExpiresAt Absolute expiry (RFC 3339). The token cannot be refreshed — mint a
// fresh one through this route instead.
ExpiresAt time.Time `json:"expires_at"`
// Operations The granted operations, canonical order — echoes what the token's
// `scope` claim carries.
Operations []string `json:"operations"`
// Ports The granted ports (sorted, deduped), or null for all ports.
Ports *[]int32 `json:"ports,omitempty"`
// TokenType Always `Bearer`.
TokenType string `json:"token_type"`
}
SandboxAccessToken `POST …/access-token` response.
type SandboxClass ¶
type SandboxClass string
SandboxClass defines model for SandboxClass.
const ( SandboxClassLinux SandboxClass = "linux" SandboxClassMacos SandboxClass = "macos" )
Defines values for SandboxClass.
func (SandboxClass) Valid ¶
func (e SandboxClass) Valid() bool
Valid indicates whether the value is a known member of the SandboxClass enum.
type SandboxCreateOperation ¶
type SandboxCreateOperation struct {
// AccessToken Secret access value returned once, or null on a replay.
AccessToken *string `json:"access_token,omitempty"`
// AccessTokenExpiresAt When the access value expires, or null when it has no expiry or this is a replay.
AccessTokenExpiresAt *time.Time `json:"access_token_expires_at,omitempty"`
// CreateTimeoutAt Create deadline, or null after the sandbox reaches its target status.
CreateTimeoutAt *time.Time `json:"create_timeout_at,omitempty"`
// Id The sandbox ID.
Id string `json:"id"`
// Image The image the sandbox boots. For a create without `image`, this is the
// platform default image; omitted for a sandbox restored from a snapshot.
Image *ImageReference `json:"image,omitempty"`
// LifecyclePolicy Automatic timeout and idle-expiry behavior: the object
// `GET /sandboxes/{id}` returns, as the create set it (on an idempotent
// replay, as the sandbox has it now). Starting the sandbox restarts
// `timeout_at` and `idle_timeout_at`, so after a start, even one `status`
// already reports as `running`, `GET /sandboxes/{id}` returns the new
// deadlines. Null when the policy could not be read.
LifecyclePolicy *LifecyclePolicy `json:"lifecycle_policy,omitempty"`
// Name Sandbox name (caller-provided or the generated `sandbox-<short-id>`).
Name string `json:"name"`
// ReservationId The Mac reservation that the sandbox runs on; null until the sandbox
// reaches a Mac.
ReservationId *string `json:"reservation_id,omitempty"`
// Status Initial lifecycle status — `pending`, or the sandbox's current status on
// an idempotent replay.
Status string `json:"status"`
// ToolboxProxyUrl The sandbox’s toolbox base URL, also returned by `GET /sandboxes/{id}`. Use this URL for sandbox operations.
ToolboxProxyUrl string `json:"toolbox_proxy_url"`
// WaitCapSeconds Maximum server-side create wait in seconds. `0` when the server skipped
// the hold because the organization already has its limit of held
// creates; wait for the rest of `wait_seconds` client-side.
WaitCapSeconds int64 `json:"wait_cap_seconds"`
}
SandboxCreateOperation The result of an accepted sandbox create.
type SandboxEventTicket ¶
type SandboxEventTicket struct {
// ExpiresInMs Milliseconds until the ticket expires unused.
ExpiresInMs int64 `json:"expires_in_ms"`
// Subprotocol Protocol negotiated for the event stream.
Subprotocol string `json:"subprotocol"`
// Ticket One-time value presented when opening the event stream.
Ticket string `json:"ticket"`
}
SandboxEventTicket defines model for SandboxEventTicket.
type SandboxLabels ¶
type SandboxLabels struct {
// Id The sandbox ID.
Id string `json:"id"`
// Labels The sandbox’s labels.
Labels map[string]string `json:"labels"`
}
SandboxLabels Response for `PUT /sandboxes/{id}/labels`.
type SandboxLifecyclePolicy ¶
type SandboxLifecyclePolicy struct {
// Id The sandbox ID.
Id string `json:"id"`
// LifecyclePolicy The updated policy and its effective deadlines and activity information.
LifecyclePolicy LifecyclePolicy `json:"lifecycle_policy"`
}
SandboxLifecyclePolicy Lifecycle update response for `PATCH /sandboxes/{id}/lifecycle-policy` and `POST /sandboxes/{id}/reset-idle-timer`.
type SandboxLimits ¶
type SandboxLimits struct {
// Concurrent The concurrent sandbox limit and current usage.
Concurrent UsageLimit `json:"concurrent"`
// Total The total sandbox count. Its organization limit is not returned, so `limit` is always `null`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Total UsageLimit `json:"total"`
}
SandboxLimits defines model for SandboxLimits.
type SandboxList ¶
type SandboxList struct {
// Sandboxes The requested sandboxes.
Sandboxes []Sandbox `json:"sandboxes"`
}
SandboxList The requested sandboxes, after the optional wait.
type SandboxListItem ¶
type SandboxListItem struct {
// Class Sandbox class.
Class SandboxClass `json:"class"`
// CoresMax Maximum CPU, in cores (1 core = 2 vCPUs): the size the sandbox boots
// at, a multiple of 0.5.
CoresMax float64 `json:"cores_max"`
// Cpu Reserved CPU, in cores (1 core = 2 vCPUs).
Cpu float64 `json:"cpu"`
// CreateTimeoutAt Create deadline; absent after the sandbox reaches its target status.
CreateTimeoutAt *time.Time `json:"create_timeout_at,omitempty"`
// CreatedAt When the sandbox was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Cursor Opaque token that resumes immediately after this sandbox.
Cursor string `json:"cursor"`
// DiskMaxMib Maximum writable disk size in MiB.
DiskMaxMib *int32 `json:"disk_max_mib,omitempty"`
// DiskMib Writable disk size in MiB.
DiskMib int32 `json:"disk_mib"`
// Error Failure detail, or null when no failure is recorded.
Error *string `json:"error,omitempty"`
// ForkedFrom Source sandbox ID when this sandbox is a fork.
ForkedFrom *string `json:"forked_from,omitempty"`
// Id The sandbox ID.
Id string `json:"id"`
// Image The image the sandbox was created from; absent when it was created
// from a snapshot.
Image *ImageReference `json:"image,omitempty"`
// ImageBuildId Build ID associated with the sandbox image.
ImageBuildId *openapi_types.UUID `json:"image_build_id,omitempty"`
// ImageRef The original image reference when no image resource is associated.
ImageRef *string `json:"image_ref,omitempty"`
// ImportedFrom The platform and sandbox ID this sandbox was imported from; absent for
// a sandbox created here.
ImportedFrom *ImportedFrom `json:"imported_from,omitempty"`
// Labels User-defined sandbox labels.
Labels *map[string]string `json:"labels,omitempty"`
// LastActivityAt When activity was last observed.
LastActivityAt *time.Time `json:"last_activity_at,omitempty"`
// LifecyclePolicy Automatic timeout and idle-expiry behavior.
LifecyclePolicy *LifecyclePolicy `json:"lifecycle_policy,omitempty"`
// MacBootMode How a macOS sandbox resumed; absent when it has not resumed.
MacBootMode *string `json:"mac_boot_mode,omitempty"`
// MemoryMaxMib Maximum memory in MiB.
MemoryMaxMib *int32 `json:"memory_max_mib,omitempty"`
// MemoryMib Reserved memory in MiB.
MemoryMib int32 `json:"memory_mib"`
// Name The sandbox name.
Name string `json:"name"`
// Persistent Whether the sandbox keeps its disk across stop and start.
Persistent *bool `json:"persistent,omitempty"`
// PortMap Port assignments reported for the sandbox.
PortMap []PortAssignment `json:"port_map"`
// RegionId The region the sandbox runs in.
RegionId string `json:"region_id"`
// ReservationId The Mac reservation that the macOS sandbox runs on, or ran on last.
// Null before the sandbox first reaches a Mac; absent for other sandbox
// classes.
ReservationId *string `json:"reservation_id,omitempty"`
// Snapshot The snapshot the sandbox was created from; absent when it was
// created from an image.
Snapshot *SnapshotReference `json:"snapshot,omitempty"`
// Spot Whether discounted interruptible capacity was requested.
Spot *bool `json:"spot,omitempty"`
// SpotEvictedAt When discounted capacity reclaimed the sandbox; absent when it has
// not been reclaimed.
SpotEvictedAt *time.Time `json:"spot_evicted_at,omitempty"`
// SshGatewayHost SSH gateway host for the sandbox region.
SshGatewayHost *string `json:"ssh_gateway_host,omitempty"`
// SshGatewayPort SSH gateway port for the sandbox region.
SshGatewayPort *int32 `json:"ssh_gateway_port,omitempty"`
// StartedAt When the sandbox most recently started.
StartedAt *time.Time `json:"started_at,omitempty"`
// Status Current lifecycle status.
Status string `json:"status"`
// StoppedAt When the sandbox most recently stopped.
StoppedAt *time.Time `json:"stopped_at,omitempty"`
// ToolboxProxyUrl Base URL for sandbox tools.
ToolboxProxyUrl *string `json:"toolbox_proxy_url,omitempty"`
// UpdatedAt When the sandbox was last updated.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
// User Default operating-system user.
User *string `json:"user,omitempty"`
}
SandboxListItem One sandbox in a paginated response.
type SandboxPage ¶
type SandboxPage struct {
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
// Sandboxes The sandboxes in this page.
Sandboxes []SandboxListItem `json:"sandboxes"`
}
SandboxPage A page of sandboxes.
type SandboxPort ¶
type SandboxPort struct {
// CreatedAt When the port was first exposed.
CreatedAt time.Time `json:"created_at"`
// Port TCP port exposed from the sandbox.
Port int32 `json:"port"`
// Public Whether the port is publicly accessible.
Public bool `json:"public"`
// Url Host-based preview URL, `<scheme>://<port>-<sandbox_id>.<domain>/`.
Url string `json:"url"`
}
SandboxPort One exposed sandbox port on the wire (with the computed URL).
type SandboxPortPage ¶
type SandboxPortPage struct {
// NextCursor Opaque continuation token, or null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Ports Exposed sandbox ports in this page.
Ports []SandboxPort `json:"ports"`
}
SandboxPortPage A keyset page of exposed sandbox ports.
type SandboxResourceLimits ¶
type SandboxResourceLimits struct {
// MaxCores The maximum `cores_max` of one sandbox, in cores (1 core = 2 vCPUs).
MaxCores float64 `json:"max_cores"`
// MaxMemoryMib The maximum `memory_max_mib` of one sandbox, in MiB.
MaxMemoryMib int64 `json:"max_memory_mib"`
}
SandboxResourceLimits The largest resources one Linux sandbox may be created with: the organization's plan cap, bounded by the platform maximum.
type SandboxSearchPage ¶
type SandboxSearchPage struct {
// NextCursor Continuation token for the next page; null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Sandboxes Matching sandboxes in this page.
Sandboxes []SandboxListItem `json:"sandboxes"`
// Total The number of matching sandboxes. Exact when `total_relation` is
// `eq`, and a lower bound of 10000 when it is `gte`.
Total int64 `json:"total"`
// TotalRelation Whether `total` is exact (`eq`) or a lower bound (`gte`).
TotalRelation SearchTotalRelation `json:"total_relation"`
}
SandboxSearchPage A page of matching sandboxes.
type SandboxSearchSort ¶
type SandboxSearchSort string
SandboxSearchSort defines model for SandboxSearchSort.
const ( SandboxSearchSortCores SandboxSearchSort = "cores" SandboxSearchSortCreatedAt SandboxSearchSort = "created_at" SandboxSearchSortDiskMib SandboxSearchSort = "disk_mib" SandboxSearchSortLastActivityAt SandboxSearchSort = "last_activity_at" SandboxSearchSortMemoryMib SandboxSearchSort = "memory_mib" SandboxSearchSortName SandboxSearchSort = "name" SandboxSearchSortUpdatedAt SandboxSearchSort = "updated_at" )
Defines values for SandboxSearchSort.
func (SandboxSearchSort) Valid ¶
func (e SandboxSearchSort) Valid() bool
Valid indicates whether the value is a known member of the SandboxSearchSort enum.
type SandboxSecrets ¶
type SandboxSecrets struct {
// AppliedRevision Revision the sandbox has applied, or null before the first one.
AppliedRevision *int64 `json:"applied_revision,omitempty"`
// CaptureStatus For a restored or forked sandbox, how much of the source's secrets the
// copy received: `complete`, `partial` or an unknown status.
CaptureStatus *string `json:"capture_status,omitempty"`
// CaptureUnresolvedCount For a `partial` copy, how many of the source's secrets the copy did not
// receive.
CaptureUnresolvedCount *int32 `json:"capture_unresolved_count,omitempty"`
// DesiredRevision Revision of the requested secrets.
DesiredRevision int64 `json:"desired_revision"`
// Error Failure detail when the requested secrets could not be applied.
Error *string `json:"error,omitempty"`
// Secrets Names of the project secrets requested for the sandbox.
Secrets []string `json:"secrets"`
// Status Application status of the requested secrets: `pending`, `applied` or
// `failed`; null before the first change.
Status *string `json:"status,omitempty"`
}
SandboxSecrets The secrets attached to a sandbox: the requested names and how far the sandbox has applied them.
type SandboxStatus ¶
type SandboxStatus string
SandboxStatus defines model for SandboxStatus.
const ( SandboxStatusAssigned SandboxStatus = "assigned" SandboxStatusBooting SandboxStatus = "booting" SandboxStatusDeleted SandboxStatus = "deleted" SandboxStatusDeleting SandboxStatus = "deleting" SandboxStatusFailed SandboxStatus = "failed" SandboxStatusLost SandboxStatus = "lost" SandboxStatusPaused SandboxStatus = "paused" SandboxStatusPausing SandboxStatus = "pausing" SandboxStatusPending SandboxStatus = "pending" SandboxStatusQueued SandboxStatus = "queued" SandboxStatusRunning SandboxStatus = "running" SandboxStatusStopped SandboxStatus = "stopped" SandboxStatusStopping SandboxStatus = "stopping" )
Defines values for SandboxStatus.
func (SandboxStatus) Valid ¶
func (e SandboxStatus) Valid() bool
Valid indicates whether the value is a known member of the SandboxStatus enum.
type SandboxTimeoutLimits ¶
type SandboxTimeoutLimits struct {
// CeilingSeconds The highest value the organization's own cap may be set to, in seconds: the plan maximum, or the platform maximum when there is no plan maximum.
CeilingSeconds int64 `json:"ceiling_seconds"`
// MaxSeconds The longest `timeout_seconds` a sandbox may have now, in seconds: the organization's own cap, bounded by the plan maximum.
MaxSeconds int64 `json:"max_seconds"`
}
SandboxTimeoutLimits The longest sandbox timeout the organization allows now, and how high its own cap may go.
type SandboxUsage ¶
type SandboxUsage struct {
// SandboxId The sandbox ID.
SandboxId string `json:"sandbox_id"`
// Usage Latest resource measurements for the sandbox.
Usage []SandboxUsageSample `json:"usage"`
}
SandboxUsage Current resource use for a sandbox.
type SandboxUsageHistory ¶
type SandboxUsageHistory struct {
// Available Whether usage history is available. When `false`, `periods` is empty
// and `resolution` is absent.
Available bool `json:"available"`
// Periods Usage buckets in chronological order.
Periods []UsagePeriod `json:"periods"`
// Resolution Effective bucket size. Omitted when usage history is unavailable.
Resolution *UsageHistoryResolution `json:"resolution,omitempty"`
// SandboxId The sandbox ID.
SandboxId string `json:"sandbox_id"`
}
SandboxUsageHistory Historical resource usage for a sandbox.
type SandboxUsageSample ¶
type SandboxUsageSample struct {
// CpuCores Average CPU used over the latest sampling interval, in cores (1 core =
// 2 vCPUs; a macOS core is one Mac CPU).
CpuCores float64 `json:"cpu_cores"`
// CpuMemoryAvailable Whether CPU and memory measurements are available.
CpuMemoryAvailable bool `json:"cpu_memory_available"`
// CpuNanoseconds CPU time used since the sandbox started, in core-nanoseconds (1 core =
// 2 vCPUs; a macOS core is one Mac CPU).
CpuNanoseconds int64 `json:"cpu_nanoseconds"`
// DiskReadBytes Disk bytes read since the sandbox started.
DiskReadBytes int64 `json:"disk_read_bytes"`
// DiskReadBytesPerSecond Disk bytes read per second over the latest sampling interval.
DiskReadBytesPerSecond float64 `json:"disk_read_bytes_per_second"`
// DiskTotalBytes Total sandbox disk size, in bytes.
DiskTotalBytes int64 `json:"disk_total_bytes"`
// DiskUsedBytes Current disk space used, in bytes.
DiskUsedBytes int64 `json:"disk_used_bytes"`
// DiskWrittenBytes Disk bytes written since the sandbox started.
DiskWrittenBytes int64 `json:"disk_written_bytes"`
// DiskWrittenBytesPerSecond Disk bytes written per second over the latest sampling interval.
DiskWrittenBytesPerSecond float64 `json:"disk_written_bytes_per_second"`
// MemoryBytes Current physical memory use, in bytes.
MemoryBytes int64 `json:"memory_bytes"`
// NetworkReceivedBytes Network bytes received since the sandbox started.
NetworkReceivedBytes int64 `json:"network_received_bytes"`
// NetworkReceivedBytesPerSecond Network bytes received per second over the latest sampling interval.
NetworkReceivedBytesPerSecond float64 `json:"network_received_bytes_per_second"`
// NetworkSentBytes Network bytes sent since the sandbox started.
NetworkSentBytes int64 `json:"network_sent_bytes"`
// NetworkSentBytesPerSecond Network bytes sent per second over the latest sampling interval.
NetworkSentBytesPerSecond float64 `json:"network_sent_bytes_per_second"`
// SampledAt Time the measurement was taken.
SampledAt time.Time `json:"sampled_at"`
}
SandboxUsageSample defines model for SandboxUsageSample.
type SearchImagesParams ¶
type SearchImagesParams struct {
// Q Free text over the image name. A value that is an image ID matches
// that image exactly.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// Name Match this exact image name.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// NamePrefix `name` starts with this string (case-sensitive).
NamePrefix *string `form:"name_prefix,omitempty" json:"name_prefix,omitempty"`
// Status Comma-separated build statuses. An unrecognized value answers 400.
Status *[]ImageStatus `form:"status,omitempty" json:"status,omitempty"`
// Class Comma-separated sandbox classes the image supports.
Class *[]ImageSearchClass `form:"class,omitempty" json:"class,omitempty"`
// Origin Comma-separated origins: how the image was created.
Origin *[]ImageOrigin `form:"origin,omitempty" json:"origin,omitempty"`
// RegionIds Comma-separated home region IDs. A broader region (a geo group, or
// `earth`) matches every region inside it. An unknown region answers
// 400. Defaults to every region.
RegionIds *string `form:"region_ids,omitempty" json:"region_ids,omitempty"`
// SandboxId Images captured from this sandbox ID.
SandboxId *string `form:"sandbox_id,omitempty" json:"sandbox_id,omitempty"`
// Anonymous Return anonymous images when true and named images when false.
// Defaults to false.
Anonymous *bool `form:"anonymous,omitempty" json:"anonymous,omitempty"`
// Platform Which images to return: the project's own (`false`, the default),
// the platform's (`true`), or both (`any`). Deprecated platform images
// are never returned.
Platform *ImagePlatformFilter `form:"platform,omitempty" json:"platform,omitempty"`
// CreatedStartAt Inclusive lower bound on creation time.
CreatedStartAt *time.Time `form:"created_start_at,omitempty" json:"created_start_at,omitempty"`
// CreatedEndAt Exclusive upper bound on creation time.
CreatedEndAt *time.Time `form:"created_end_at,omitempty" json:"created_end_at,omitempty"`
// UpdatedStartAt Inclusive lower bound on last-modified time.
UpdatedStartAt *time.Time `form:"updated_start_at,omitempty" json:"updated_start_at,omitempty"`
// UpdatedEndAt Exclusive upper bound on last-modified time.
UpdatedEndAt *time.Time `form:"updated_end_at,omitempty" json:"updated_end_at,omitempty"`
// Sort Sort field. Defaults to `created_at`; ties break on the ID.
Sort *ImageSearchSort `form:"sort,omitempty" json:"sort,omitempty"`
// Order Sort order. Defaults to `desc`.
Order *SortOrder `form:"order,omitempty" json:"order,omitempty"`
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
SearchImagesParams defines parameters for SearchImages.
type SearchSandboxesParams ¶
type SearchSandboxesParams struct {
// Q Free text over the sandbox `name` and `image_ref`. A value that is a
// sandbox ID matches that sandbox exactly.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// NamePrefix `name` starts with this string (case-sensitive).
NamePrefix *string `form:"name_prefix,omitempty" json:"name_prefix,omitempty"`
// IdPrefix The sandbox ID starts with this string.
IdPrefix *string `form:"id_prefix,omitempty" json:"id_prefix,omitempty"`
// Status Comma-separated lifecycle statuses. An unrecognized value answers 400.
Status *[]SandboxStatus `form:"status,omitempty" json:"status,omitempty"`
// Class Comma-separated sandbox classes.
Class *[]SandboxClass `form:"class,omitempty" json:"class,omitempty"`
// RegionIds Comma-separated region IDs. A broader region (a geo group, or
// `earth`) matches every region inside it. An unknown region answers
// 400. Defaults to every region.
RegionIds *string `form:"region_ids,omitempty" json:"region_ids,omitempty"`
// ImageRef Exact image reference.
ImageRef *string `form:"image_ref,omitempty" json:"image_ref,omitempty"`
// ImageRefPrefix `image_ref` starts with this string.
ImageRefPrefix *string `form:"image_ref_prefix,omitempty" json:"image_ref_prefix,omitempty"`
// Labels Label containment filter: a JSON-encoded object `{"k":"v",...}`; only
// sandboxes whose labels contain every pair match. A malformed or
// non-object value answers 400. The whole query string, URL-encoded,
// may be at most 12,288 bytes; a longer one answers 400.
Labels *string `form:"labels,omitempty" json:"labels,omitempty"`
// Persistent Filter by persistence: `true` for persistent sandboxes, `false` for ephemeral sandboxes.
Persistent *bool `form:"persistent,omitempty" json:"persistent,omitempty"`
// Spot Spot-tier sandboxes only (`true`) or on-demand only (`false`).
Spot *bool `form:"spot,omitempty" json:"spot,omitempty"`
// ForkedFrom Sandboxes forked from this sandbox ID.
ForkedFrom *string `form:"forked_from,omitempty" json:"forked_from,omitempty"`
// ReservationId macOS sandboxes that run, or last ran, on this Mac reservation ID.
ReservationId *string `form:"reservation_id,omitempty" json:"reservation_id,omitempty"`
// MinCores Inclusive lower bound on `cores_max`, in cores (1 core = 2 vCPUs).
MinCores *float64 `form:"min_cores,omitempty" json:"min_cores,omitempty"`
// MaxCores Inclusive upper bound on `cores_max`, in cores (1 core = 2 vCPUs).
MaxCores *float64 `form:"max_cores,omitempty" json:"max_cores,omitempty"`
// MinMemoryMib Inclusive lower bound on `memory_mib`.
MinMemoryMib *int64 `form:"min_memory_mib,omitempty" json:"min_memory_mib,omitempty"`
// MaxMemoryMib Inclusive upper bound on `memory_mib`.
MaxMemoryMib *int64 `form:"max_memory_mib,omitempty" json:"max_memory_mib,omitempty"`
// MinDiskMib Inclusive lower bound on `disk_mib`.
MinDiskMib *int64 `form:"min_disk_mib,omitempty" json:"min_disk_mib,omitempty"`
// MaxDiskMib Inclusive upper bound on `disk_mib`.
MaxDiskMib *int64 `form:"max_disk_mib,omitempty" json:"max_disk_mib,omitempty"`
// CreatedStartAt Inclusive lower bound on creation time.
CreatedStartAt *time.Time `form:"created_start_at,omitempty" json:"created_start_at,omitempty"`
// CreatedEndAt Exclusive upper bound on creation time.
CreatedEndAt *time.Time `form:"created_end_at,omitempty" json:"created_end_at,omitempty"`
// UpdatedStartAt Inclusive lower bound on last-modified time.
UpdatedStartAt *time.Time `form:"updated_start_at,omitempty" json:"updated_start_at,omitempty"`
// UpdatedEndAt Exclusive upper bound on last-modified time.
UpdatedEndAt *time.Time `form:"updated_end_at,omitempty" json:"updated_end_at,omitempty"`
// LastActivityStartAt Inclusive lower bound on last-activity time.
LastActivityStartAt *time.Time `form:"last_activity_start_at,omitempty" json:"last_activity_start_at,omitempty"`
// LastActivityEndAt Exclusive upper bound on last-activity time.
LastActivityEndAt *time.Time `form:"last_activity_end_at,omitempty" json:"last_activity_end_at,omitempty"`
// Sort Sort field. Defaults to `created_at`; ties break on the ID.
Sort *SandboxSearchSort `form:"sort,omitempty" json:"sort,omitempty"`
// Order Sort order. Defaults to `desc`.
Order *SortOrder `form:"order,omitempty" json:"order,omitempty"`
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
SearchSandboxesParams defines parameters for SearchSandboxes.
type SearchSecretsParams ¶
type SearchSecretsParams struct {
// Q Free text over the secret name (any substring, case-insensitive) and description.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// Name Match this exact secret name.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// NamePrefix Match names starting with this case-sensitive prefix.
NamePrefix *string `form:"name_prefix,omitempty" json:"name_prefix,omitempty"`
// AllowedDomain Match an allowed domain exactly.
AllowedDomain *string `form:"allowed_domain,omitempty" json:"allowed_domain,omitempty"`
// CreatedStartAt Inclusive lower bound on creation time.
CreatedStartAt *time.Time `form:"created_start_at,omitempty" json:"created_start_at,omitempty"`
// CreatedEndAt Exclusive upper bound on creation time.
CreatedEndAt *time.Time `form:"created_end_at,omitempty" json:"created_end_at,omitempty"`
// UpdatedStartAt Inclusive lower bound on last-modified time.
UpdatedStartAt *time.Time `form:"updated_start_at,omitempty" json:"updated_start_at,omitempty"`
// UpdatedEndAt Exclusive upper bound on last-modified time.
UpdatedEndAt *time.Time `form:"updated_end_at,omitempty" json:"updated_end_at,omitempty"`
// Sort Sort field. Defaults to `name`.
Sort *SecretSearchSort `form:"sort,omitempty" json:"sort,omitempty"`
// Order Sort order. Defaults to `asc`.
Order *SortOrder `form:"order,omitempty" json:"order,omitempty"`
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
SearchSecretsParams defines parameters for SearchSecrets.
type SearchSnapshotsParams ¶
type SearchSnapshotsParams struct {
// Q Free text over the snapshot name. A value that is a snapshot ID
// matches that snapshot exactly.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// Name Match this exact snapshot name.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// NamePrefix `name` starts with this string (case-sensitive).
NamePrefix *string `form:"name_prefix,omitempty" json:"name_prefix,omitempty"`
// Status Comma-separated capture statuses. An unrecognized value answers 400.
Status *[]SnapshotStatus `form:"status,omitempty" json:"status,omitempty"`
// Class Comma-separated sandbox classes.
Class *[]SnapshotSearchClass `form:"class,omitempty" json:"class,omitempty"`
// Kind Comma-separated snapshot kinds.
Kind *[]SnapshotKind `form:"kind,omitempty" json:"kind,omitempty"`
// RegionIds Comma-separated home region IDs. A broader region (a geo group, or
// `earth`) matches every region inside it. An unknown region answers
// 400. Defaults to every region.
RegionIds *string `form:"region_ids,omitempty" json:"region_ids,omitempty"`
// SandboxId Snapshots captured from this sandbox ID.
SandboxId *string `form:"sandbox_id,omitempty" json:"sandbox_id,omitempty"`
// CreatedStartAt Inclusive lower bound on creation time.
CreatedStartAt *time.Time `form:"created_start_at,omitempty" json:"created_start_at,omitempty"`
// CreatedEndAt Exclusive upper bound on creation time.
CreatedEndAt *time.Time `form:"created_end_at,omitempty" json:"created_end_at,omitempty"`
// UpdatedStartAt Inclusive lower bound on last-modified time.
UpdatedStartAt *time.Time `form:"updated_start_at,omitempty" json:"updated_start_at,omitempty"`
// UpdatedEndAt Exclusive upper bound on last-modified time.
UpdatedEndAt *time.Time `form:"updated_end_at,omitempty" json:"updated_end_at,omitempty"`
// Sort Sort field. Defaults to `created_at`; ties break on the ID.
Sort *SnapshotSearchSort `form:"sort,omitempty" json:"sort,omitempty"`
// Order Sort order. Defaults to `desc`.
Order *SortOrder `form:"order,omitempty" json:"order,omitempty"`
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
SearchSnapshotsParams defines parameters for SearchSnapshots.
type SearchTotalRelation ¶
type SearchTotalRelation string
SearchTotalRelation defines model for SearchTotalRelation.
const ( Eq SearchTotalRelation = "eq" Gte SearchTotalRelation = "gte" )
Defines values for SearchTotalRelation.
func (SearchTotalRelation) Valid ¶
func (e SearchTotalRelation) Valid() bool
Valid indicates whether the value is a known member of the SearchTotalRelation enum.
type SearchVolumesParams ¶
type SearchVolumesParams struct {
// Q Free text over the volume name (any substring, case-insensitive); a volume ID matches exactly.
Q *string `form:"q,omitempty" json:"q,omitempty"`
// Name Match this exact volume name.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// NamePrefix Match names starting with this case-sensitive prefix.
NamePrefix *string `form:"name_prefix,omitempty" json:"name_prefix,omitempty"`
// Type Comma-separated volume types.
Type *[]VolumeType `form:"type,omitempty" json:"type,omitempty"`
// Status Comma-separated non-deleted volume statuses.
Status *[]VolumeSearchStatus `form:"status,omitempty" json:"status,omitempty"`
// Origin Comma-separated bucket origins. Only bucket volumes match.
Origin *[]VolumeBucketOrigin `form:"origin,omitempty" json:"origin,omitempty"`
// Imported True returns imported volumes, false returns native volumes, absent returns both.
Imported *bool `form:"imported,omitempty" json:"imported,omitempty"`
// CreatedStartAt Inclusive lower bound on creation time.
CreatedStartAt *time.Time `form:"created_start_at,omitempty" json:"created_start_at,omitempty"`
// CreatedEndAt Exclusive upper bound on creation time.
CreatedEndAt *time.Time `form:"created_end_at,omitempty" json:"created_end_at,omitempty"`
// UpdatedStartAt Inclusive lower bound on last-modified time.
UpdatedStartAt *time.Time `form:"updated_start_at,omitempty" json:"updated_start_at,omitempty"`
// UpdatedEndAt Exclusive upper bound on last-modified time.
UpdatedEndAt *time.Time `form:"updated_end_at,omitempty" json:"updated_end_at,omitempty"`
// LastUsedStartAt Inclusive lower bound on last-used time.
LastUsedStartAt *time.Time `form:"last_used_start_at,omitempty" json:"last_used_start_at,omitempty"`
// LastUsedEndAt Exclusive upper bound on last-used time.
LastUsedEndAt *time.Time `form:"last_used_end_at,omitempty" json:"last_used_end_at,omitempty"`
// Sort Sort field. Defaults to `created_at`.
Sort *VolumeSearchSort `form:"sort,omitempty" json:"sort,omitempty"`
// Order Sort order. Defaults to `desc`.
Order *SortOrder `form:"order,omitempty" json:"order,omitempty"`
// Limit Maximum number of items to return, 1–200 (default 100). A value below 1 is treated as 1, and a value above 200 as 200.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque continuation token returned as `next_cursor` by a previous request
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}
SearchVolumesParams defines parameters for SearchVolumes.
type Secret ¶
type Secret struct {
// AllowedDomains The hosts the secret's value may be sent to. `["*"]` means any host
// the platform has verified; an empty list means the secret is sent
// nowhere.
AllowedDomains []string `json:"allowed_domains"`
// CreatedAt When the secret was created.
CreatedAt time.Time `json:"created_at"`
// Description The user-facing description, or null when absent.
Description *string `json:"description,omitempty"`
// Name The secret name.
Name string `json:"name"`
// UpdatedAt When the secret was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
Secret Secret metadata. The value is write-only.
type SecretPage ¶
type SecretPage struct {
// NextCursor The opaque continuation token, or null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Secrets The secrets in this page.
Secrets []Secret `json:"secrets"`
}
SecretPage GET /secrets response envelope.
type SecretSearchListItem ¶
type SecretSearchListItem struct {
// AllowedDomains The hosts the secret's value may be sent to. `["*"]` means any host
// the platform has verified; an empty list means the secret is sent
// nowhere.
AllowedDomains []string `json:"allowed_domains"`
// CreatedAt When the secret was created.
CreatedAt time.Time `json:"created_at"`
// Cursor Opaque cursor for this item.
Cursor string `json:"cursor"`
// Description The user-facing description, or null when absent.
Description *string `json:"description,omitempty"`
// Name The secret name.
Name string `json:"name"`
// UpdatedAt When the secret was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
SecretSearchListItem defines model for SecretSearchListItem.
type SecretSearchPage ¶
type SecretSearchPage struct {
// NextCursor Continuation token; null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Secrets Matching secrets in this page.
Secrets []SecretSearchListItem `json:"secrets"`
// Total Number of matching secrets, exact when `total_relation` is `eq`.
Total int64 `json:"total"`
// TotalRelation Whether total is exact (`eq`) or a lower bound (`gte`).
TotalRelation SearchTotalRelation `json:"total_relation"`
}
SecretSearchPage A page of matching secrets.
type SecretSearchSort ¶
type SecretSearchSort string
SecretSearchSort defines model for SecretSearchSort.
const ( SecretSearchSortCreatedAt SecretSearchSort = "created_at" SecretSearchSortName SecretSearchSort = "name" SecretSearchSortUpdatedAt SecretSearchSort = "updated_at" )
Defines values for SecretSearchSort.
func (SecretSearchSort) Valid ¶
func (e SecretSearchSort) Valid() bool
Valid indicates whether the value is a known member of the SecretSearchSort enum.
type ServiceAccountId ¶
type ServiceAccountId = openapi_types.UUID
ServiceAccountId defines model for ServiceAccountId.
type SetAutomaticTopUpJSONRequestBody ¶
type SetAutomaticTopUpJSONRequestBody = SetAutomaticTopUpRequest
SetAutomaticTopUpJSONRequestBody defines body for SetAutomaticTopUp for application/json ContentType.
type SetAutomaticTopUpRequest ¶
type SetAutomaticTopUpRequest struct {
// TargetCents The balance targeted by a top-up, in cents.
TargetCents int64 `json:"target_cents"`
// ThresholdCents The balance that triggers a top-up, in cents.
ThresholdCents int64 `json:"threshold_cents"`
}
SetAutomaticTopUpRequest defines model for SetAutomaticTopUpRequest.
type SetBalanceNotificationJSONRequestBody ¶
type SetBalanceNotificationJSONRequestBody = SetBalanceNotificationRequest
SetBalanceNotificationJSONRequestBody defines body for SetBalanceNotification for application/json ContentType.
type SetBalanceNotificationRequest ¶
type SetBalanceNotificationRequest struct {
// ThresholdCents The notification threshold in cents.
ThresholdCents int64 `json:"threshold_cents"`
}
SetBalanceNotificationRequest defines model for SetBalanceNotificationRequest.
type SetBillingContactJSONRequestBody ¶
type SetBillingContactJSONRequestBody = SetBillingContactRequest
SetBillingContactJSONRequestBody defines body for SetBillingContact for application/json ContentType.
type SetBillingContactRequest ¶
type SetBillingContactRequest struct {
// Email The billing email to set, or `null` to restore the default.
Email *string `json:"email,omitempty"`
}
SetBillingContactRequest defines model for SetBillingContactRequest.
type SetOtelConfigJSONRequestBody ¶
type SetOtelConfigJSONRequestBody = SetOtelConfigRequest
SetOtelConfigJSONRequestBody defines body for SetOtelConfig for application/json ContentType.
type SetOtelConfigRequest ¶
type SetOtelConfigRequest struct {
// Endpoint OTLP/HTTP endpoint (`https://…`; plaintext `http` only where the deployment allows insecure endpoints).
Endpoint string `json:"endpoint"`
// Headers Request headers sent to the endpoint, name → value. Values are write-only: no read returns them.
Headers *map[string]string `json:"headers,omitempty"`
}
SetOtelConfigRequest The telemetry configuration to set. `headers` defaults to empty, and an unknown field is rejected with `400`.
type SetPlanJSONRequestBody ¶
type SetPlanJSONRequestBody = SetPlanRequest
SetPlanJSONRequestBody defines body for SetPlan for application/json ContentType.
type SetPlanRequest ¶
type SetPlanRequest struct {
// Plan The requested plan.
Plan PlanName `json:"plan"`
}
SetPlanRequest defines model for SetPlanRequest.
type SetProjectBudgetJSONRequestBody ¶
type SetProjectBudgetJSONRequestBody = SetProjectBudgetRequest
SetProjectBudgetJSONRequestBody defines body for SetProjectBudget for application/json ContentType.
type SetProjectBudgetRequest ¶
type SetProjectBudgetRequest struct {
// MonthlyLimitCents The monthly budget, in US cents: an integer from `100` ($1.00) to
// `100000000000` ($1 billion).
MonthlyLimitCents int64 `json:"monthly_limit_cents"`
}
SetProjectBudgetRequest `PUT /projects/{id}/budget` body.
type SetRegistryJSONRequestBody ¶
type SetRegistryJSONRequestBody = SetRegistryRequest
SetRegistryJSONRequestBody defines body for SetRegistry for application/json ContentType.
type SetRegistryRequest ¶
type SetRegistryRequest struct {
// Description An optional user-facing description.
Description *string `json:"description,omitempty"`
// Kind The authentication kind. For `ecr_role`, the username is the role ARN and the password is ignored.
Kind *SetRegistryRequestKind `json:"kind,omitempty"`
// Password Registry password/token (max 64 KiB). Write-only — never echoed back
// by any public read endpoint. Required for every kind but `ecr_role`,
// which ignores it.
Password *string `json:"password,omitempty"`
// Username The registry username.
Username string `json:"username"`
}
SetRegistryRequest Registry credentials. Passwords are encrypted at rest and are write-only.
type SetRegistryRequestKind ¶
type SetRegistryRequestKind string
SetRegistryRequestKind The authentication kind. For `ecr_role`, the username is the role ARN and the password is ignored.
const ( SetRegistryRequestKindBasic SetRegistryRequestKind = "basic" SetRegistryRequestKindEcr SetRegistryRequestKind = "ecr" SetRegistryRequestKindEcrRole SetRegistryRequestKind = "ecr_role" SetRegistryRequestKindGcr SetRegistryRequestKind = "gcr" SetRegistryRequestKindGhcr SetRegistryRequestKind = "ghcr" )
Defines values for SetRegistryRequestKind.
func (SetRegistryRequestKind) Valid ¶
func (e SetRegistryRequestKind) Valid() bool
Valid indicates whether the value is a known member of the SetRegistryRequestKind enum.
type SetSandboxLabelsJSONRequestBody ¶
type SetSandboxLabelsJSONRequestBody = SetSandboxLabelsRequest
SetSandboxLabelsJSONRequestBody defines body for SetSandboxLabels for application/json ContentType.
type SetSandboxLabelsRequest ¶
type SetSandboxLabelsRequest struct {
// Labels The new label set. It replaces the current one, and `{}` clears all
// labels.
Labels *map[string]string `json:"labels,omitempty"`
}
SetSandboxLabelsRequest Request body for `PUT /sandboxes/{id}/labels`: the full replacement label set.
type SetSandboxNetworkPolicyJSONBody ¶
type SetSandboxNetworkPolicyJSONBody = SetSandboxNetworkPolicyRequest
SetSandboxNetworkPolicyJSONBody defines parameters for SetSandboxNetworkPolicy.
type SetSandboxNetworkPolicyJSONRequestBody ¶
type SetSandboxNetworkPolicyJSONRequestBody = SetSandboxNetworkPolicyJSONBody
SetSandboxNetworkPolicyJSONRequestBody defines body for SetSandboxNetworkPolicy for application/json ContentType.
type SetSandboxNetworkPolicyParams ¶
type SetSandboxNetworkPolicyParams struct {
// IfMatch The `ETag` from the last read or update of this policy
IfMatch string `json:"If-Match"`
}
SetSandboxNetworkPolicyParams defines parameters for SetSandboxNetworkPolicy.
type SetSandboxNetworkPolicyRequest ¶
type SetSandboxNetworkPolicyRequest struct {
// AllowCidrs IPv4 addresses and network-aligned CIDR ranges allowed by the policy.
// Host bits in a CIDR are rejected; bare IPv4 addresses are accepted.
// Duplicates are removed in input order. Defaults to an empty list.
// A non-empty list requires `block_all: true` or non-null `allow_domains`;
// otherwise it has no effect and is rejected with `400 BAD_REQUEST`.
AllowCidrs *[]string `json:"allow_cidrs,omitempty"`
// AllowDomains ASCII hostnames (at least two LDH labels) or leading `*.` wildcards,
// lowercased, with one trailing dot removed and duplicates removed in input
// order. Null means domain filtering is not configured; a non-null list
// implies `block_all: true` when that field is omitted or null.
AllowDomains *[]string `json:"allow_domains,omitempty"`
// BlockAll Default-deny toggle. With a non-null `allow_domains`, omitted or null
// normalizes to `true`, and an explicit `false` is rejected with
// `400 NETWORK_POLICY_DOMAINS_REQUIRE_BLOCK_ALL`. With `allow_domains`
// null, omitted or null normalizes to `false`.
BlockAll *bool `json:"block_all,omitempty"`
}
SetSandboxNetworkPolicyRequest defines model for SetSandboxNetworkPolicyRequest.
type SetSandboxPortJSONRequestBody ¶
type SetSandboxPortJSONRequestBody = SetSandboxPortRequest
SetSandboxPortJSONRequestBody defines body for SetSandboxPort for application/json ContentType.
type SetSandboxPortRequest ¶
type SetSandboxPortRequest struct {
// Public Whether the port is accessible without a credential.
Public bool `json:"public"`
}
SetSandboxPortRequest defines model for SetSandboxPortRequest.
type SetSandboxSecretsJSONRequestBody ¶
type SetSandboxSecretsJSONRequestBody = SetSandboxSecretsRequest
SetSandboxSecretsJSONRequestBody defines body for SetSandboxSecrets for application/json ContentType.
type SetSandboxSecretsParams ¶
type SetSandboxSecretsParams struct {
// IfMatch The `ETag` from the last read or update of these secrets
IfMatch string `json:"If-Match"`
}
SetSandboxSecretsParams defines parameters for SetSandboxSecrets.
type SetSandboxSecretsRequest ¶
type SetSandboxSecretsRequest struct {
// Secrets The complete desired set of project secret names. Required; send `[]`
// to detach every secret.
Secrets []string `json:"secrets"`
}
SetSandboxSecretsRequest defines model for SetSandboxSecretsRequest.
type SetSecretJSONRequestBody ¶
type SetSecretJSONRequestBody = SetSecretRequest
SetSecretJSONRequestBody defines body for SetSecret for application/json ContentType.
type SetSecretParams ¶
type SetSecretParams struct {
// IfNoneMatch Set to `*` to create only when the secret is absent
IfNoneMatch *string `json:"If-None-Match,omitempty"`
}
SetSecretParams defines parameters for SetSecret.
type SetSecretRequest ¶
type SetSecretRequest struct {
// AllowedDomains Required per-secret egress scope: hostnames or `*.` wildcards, or
// `["*"]` for any verified host. Hostnames must be ASCII with at least two
// LDH labels (1..63 characters each, no leading/trailing hyphen; at most
// 253 characters total). IP literals and public-suffix wildcards are
// rejected. Entries are lowercased, one trailing dot is removed, and
// duplicates are removed in input order on create and update.
// Empty or omitted is rejected. Existing stored rows are not migrated.
AllowedDomains *[]string `json:"allowed_domains,omitempty"`
// Description An optional user-facing description.
Description *string `json:"description,omitempty"`
// Value The secret value (max 64 KiB). Write-only — never echoed back.
Value string `json:"value"`
}
SetSecretRequest A secret value and its metadata. Values are encrypted at rest and are write-only.
type SignSandboxFileUrlJSONRequestBody ¶
type SignSandboxFileUrlJSONRequestBody = SignSandboxFileUrlRequest
SignSandboxFileUrlJSONRequestBody defines body for SignSandboxFileUrl for application/json ContentType.
type SignSandboxFileUrlRequest ¶
type SignSandboxFileUrlRequest struct {
// ExpiresAt Absolute expiry. Must lie in the future and at most the deployment's
// signed-URL ceiling ahead (7 days by default).
ExpiresAt time.Time `json:"expires_at"`
// Method `GET` signs a download link (`/files/download`) and `POST` an upload
// link (`/files/upload`); no other method can be signed.
Method string `json:"method"`
// Path Sandbox file path the link addresses. The URL's `path` query parameter must match this string exactly.
Path string `json:"path"`
}
SignSandboxFileUrlRequest A request to sign a sandbox file URL.
type SignedFileUrl ¶
type SignedFileUrl struct {
// ExpiresAt The expiry that was signed.
ExpiresAt time.Time `json:"expires_at"`
// Method `GET` or `POST`, as signed.
Method string `json:"method"`
// Path The sandbox file path, as signed.
Path string `json:"path"`
// Signature The link's signature. Pass it back unchanged.
Signature string `json:"signature"`
// Url The full pre-signed file URL.
Url string `json:"url"`
}
SignedFileUrl A signed sandbox file URL and the fields needed to recompose it.
type SignedPreviewUrl ¶
type SignedPreviewUrl struct {
// ExpiresAt When the link stops resolving (natural expiry), to the second.
ExpiresAt time.Time `json:"expires_at"`
// Token The link's signed token, as it appears in `url`.
Token string `json:"token"`
// Url Host-based preview URL, `<scheme>://<port>-<token>.<domain>/` — the
// token stands in the hostname where the sandbox ID otherwise would.
Url string `json:"url"`
}
SignedPreviewUrl A signed preview link.
type Snapshot ¶
type Snapshot struct {
// Bytes The disk size in bytes, or null until capture completes.
Bytes *int64 `json:"bytes,omitempty"`
// Class The sandbox class.
Class SnapshotClass `json:"class"`
// CreatedAt When the snapshot was created.
CreatedAt time.Time `json:"created_at"`
// Error The failure detail, or null when capture has not failed.
Error *string `json:"error,omitempty"`
// Id The snapshot ID.
Id string `json:"id"`
// Kind The snapshot kind. A `full` snapshot captures memory and disk.
Kind SnapshotKind `json:"kind"`
// MemoryBytes The memory size in bytes, or null for snapshots without memory state.
MemoryBytes *int64 `json:"memory_bytes,omitempty"`
// Name The project-unique snapshot name.
Name string `json:"name"`
// RegionId The home region.
RegionId string `json:"region_id"`
// RegionIds Every region where the snapshot is available.
RegionIds []string `json:"region_ids"`
// SandboxId The ID of the sandbox the snapshot was captured from, or null when
// that sandbox no longer exists.
SandboxId *string `json:"sandbox_id,omitempty"`
// Status The snapshot status.
Status string `json:"status"`
// UpdatedAt When the snapshot was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
Snapshot defines model for Snapshot.
type SnapshotClass ¶
type SnapshotClass string
SnapshotClass defines model for SnapshotClass.
const (
SnapshotClassLinux SnapshotClass = "linux"
)
Defines values for SnapshotClass.
func (SnapshotClass) Valid ¶
func (e SnapshotClass) Valid() bool
Valid indicates whether the value is a known member of the SnapshotClass enum.
type SnapshotIdOrName ¶
type SnapshotIdOrName = string
SnapshotIdOrName defines model for SnapshotIdOrName.
type SnapshotKind ¶
type SnapshotKind string
SnapshotKind defines model for SnapshotKind.
const (
Full SnapshotKind = "full"
)
Defines values for SnapshotKind.
func (SnapshotKind) Valid ¶
func (e SnapshotKind) Valid() bool
Valid indicates whether the value is a known member of the SnapshotKind enum.
type SnapshotListItem ¶
type SnapshotListItem struct {
// Bytes The disk size in bytes, or null until capture completes.
Bytes *int64 `json:"bytes,omitempty"`
// Class The sandbox class.
Class SnapshotClass `json:"class"`
// CreatedAt When the snapshot was created.
CreatedAt time.Time `json:"created_at"`
// Cursor Opaque continuation token for pagination.
Cursor string `json:"cursor"`
// Error The failure detail, or null when capture has not failed.
Error *string `json:"error,omitempty"`
// Id The snapshot ID.
Id string `json:"id"`
// Kind The snapshot kind. A `full` snapshot captures memory and disk.
Kind SnapshotKind `json:"kind"`
// MemoryBytes The memory size in bytes, or null for snapshots without memory state.
MemoryBytes *int64 `json:"memory_bytes,omitempty"`
// Name The project-unique snapshot name.
Name string `json:"name"`
// RegionId The home region.
RegionId string `json:"region_id"`
// RegionIds Every region where the snapshot is available.
RegionIds []string `json:"region_ids"`
// SandboxId The ID of the sandbox the snapshot was captured from, or null when
// that sandbox no longer exists.
SandboxId *string `json:"sandbox_id,omitempty"`
// Status The snapshot status.
Status string `json:"status"`
// UpdatedAt When the snapshot was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
SnapshotListItem A snapshot with its pagination cursor.
type SnapshotPage ¶
type SnapshotPage struct {
// NextCursor Opaque continuation token; `null` on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Snapshots The snapshots in this page.
Snapshots []SnapshotListItem `json:"snapshots"`
}
SnapshotPage A page of snapshots.
type SnapshotReference ¶
type SnapshotReference struct {
// Id The snapshot ID.
Id string `json:"id"`
// Name The snapshot name, when one is assigned.
Name *string `json:"name,omitempty"`
}
SnapshotReference Snapshot used to create a sandbox.
type SnapshotSearchClass ¶
type SnapshotSearchClass string
SnapshotSearchClass The `class` filter of `GET /snapshots/search`.
const ( SnapshotSearchClassGpu SnapshotSearchClass = "gpu" SnapshotSearchClassLinux SnapshotSearchClass = "linux" SnapshotSearchClassWindows SnapshotSearchClass = "windows" )
Defines values for SnapshotSearchClass.
func (SnapshotSearchClass) Valid ¶
func (e SnapshotSearchClass) Valid() bool
Valid indicates whether the value is a known member of the SnapshotSearchClass enum.
type SnapshotSearchPage ¶
type SnapshotSearchPage struct {
// NextCursor Continuation token for the next page; null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Snapshots Matching snapshots in this page.
Snapshots []SnapshotListItem `json:"snapshots"`
// Total The number of matching snapshots. Exact when `total_relation` is
// `eq`, and a lower bound of 10000 when it is `gte`.
Total int64 `json:"total"`
// TotalRelation Whether `total` is exact (`eq`) or a lower bound (`gte`).
TotalRelation SearchTotalRelation `json:"total_relation"`
}
SnapshotSearchPage A page of matching snapshots.
type SnapshotSearchSort ¶
type SnapshotSearchSort string
SnapshotSearchSort The `sort` values of `GET /snapshots/search`.
const ( SnapshotSearchSortBytes SnapshotSearchSort = "bytes" SnapshotSearchSortCreatedAt SnapshotSearchSort = "created_at" SnapshotSearchSortName SnapshotSearchSort = "name" SnapshotSearchSortUpdatedAt SnapshotSearchSort = "updated_at" )
Defines values for SnapshotSearchSort.
func (SnapshotSearchSort) Valid ¶
func (e SnapshotSearchSort) Valid() bool
Valid indicates whether the value is a known member of the SnapshotSearchSort enum.
type SnapshotStatus ¶
type SnapshotStatus string
SnapshotStatus The capture status of a snapshot.
const ( SnapshotStatusBuilding SnapshotStatus = "building" SnapshotStatusFailed SnapshotStatus = "failed" SnapshotStatusPending SnapshotStatus = "pending" SnapshotStatusReady SnapshotStatus = "ready" )
Defines values for SnapshotStatus.
func (SnapshotStatus) Valid ¶
func (e SnapshotStatus) Valid() bool
Valid indicates whether the value is a known member of the SnapshotStatus enum.
type SshGatewayConfig ¶
type SshGatewayConfig struct {
// Host SSH gateway host.
Host string `json:"host"`
// Port SSH gateway port.
Port int32 `json:"port"`
}
SshGatewayConfig SSH connection settings.
type SsoConnection ¶
type SsoConnection struct {
// ConnectionType The connection protocol and provider type.
ConnectionType string `json:"connection_type"`
// CreatedAt When the connection was created.
CreatedAt time.Time `json:"created_at"`
// Domains The email domains the connection signs in.
Domains []string `json:"domains"`
// Id The connection ID.
Id string `json:"id"`
// Name The connection name.
Name string `json:"name"`
// Status The connection status.
Status string `json:"status"`
// UpdatedAt When the connection was last updated.
UpdatedAt time.Time `json:"updated_at"`
}
SsoConnection One single sign-on connection configured for an organization.
type SsoConnectionPage ¶
type SsoConnectionPage struct {
// Connections The organization's single sign-on connections.
Connections []SsoConnection `json:"connections"`
// NextCursor Opaque continuation token for the next page, or null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
}
SsoConnectionPage defines model for SsoConnectionPage.
type SsoSetupLink ¶
type SsoSetupLink struct {
// Url The setup URL, which expires five minutes after issuance.
Url string `json:"url"`
}
SsoSetupLink defines model for SsoSetupLink.
type StorageLimits ¶
type StorageLimits struct {
// Images The image count. Captured, built, and imported images count; failed images do not. Its organization limit is not returned, so `limit` is always `null`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Images UsageLimit `json:"images"`
// Snapshots The snapshot count. Failed snapshots do not count. Its organization limit is not returned, so `limit` is always `null`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Snapshots UsageLimit `json:"snapshots"`
// Volumes The volume count. Deleted volumes do not count. Its organization limit is not returned, so `limit` is always `null`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Volumes UsageLimit `json:"volumes"`
}
StorageLimits defines model for StorageLimits.
type TimeoutSource ¶
type TimeoutSource string
TimeoutSource defines model for TimeoutSource.
const ( TimeoutSourceNone TimeoutSource = "none" TimeoutSourcePlatform TimeoutSource = "platform" TimeoutSourceProject TimeoutSource = "project" )
Defines values for TimeoutSource.
func (TimeoutSource) Valid ¶
func (e TimeoutSource) Valid() bool
Valid indicates whether the value is a known member of the TimeoutSource enum.
type TokenExchange ¶
type TokenExchange struct {
// AccessToken Project- or organization-scoped access token.
AccessToken string `json:"access_token"`
// ExpiresIn Token lifetime in seconds (default 300).
ExpiresIn int64 `json:"expires_in"`
// IssuedTokenType Always `urn:ietf:params:oauth:token-type:access_token`.
IssuedTokenType string `json:"issued_token_type"`
// TokenType Always `Bearer`.
TokenType string `json:"token_type"`
}
TokenExchange A platform access token.
type TooManyRequests ¶
type TooManyRequests = ErrorBody
TooManyRequests The JSON error envelope every non-2xx response carries.
type Unauthorized ¶
type Unauthorized = ErrorBody
Unauthorized The JSON error envelope every non-2xx response carries.
type UpdateAuditConfigJSONRequestBody ¶
type UpdateAuditConfigJSONRequestBody = UpdateAuditConfigRequest
UpdateAuditConfigJSONRequestBody defines body for UpdateAuditConfig for application/json ContentType.
type UpdateAuditConfigRequest ¶
type UpdateAuditConfigRequest struct {
// Disabled Whether to disable audit capture.
Disabled bool `json:"disabled"`
}
UpdateAuditConfigRequest defines model for UpdateAuditConfigRequest.
type UpdateEphemeralLifecycleDefaults ¶
type UpdateEphemeralLifecycleDefaults struct {
// IdleTimeoutSeconds Idle time before cleanup in seconds, or null to disable it.
IdleTimeoutSeconds *int64 `json:"idle_timeout_seconds,omitempty"`
// TimeoutSeconds Maximum sandbox lifetime in seconds, or null to inherit it.
TimeoutSeconds *int64 `json:"timeout_seconds,omitempty"`
}
UpdateEphemeralLifecycleDefaults defines model for UpdateEphemeralLifecycleDefaults.
type UpdateImageJSONRequestBody ¶
type UpdateImageJSONRequestBody = UpdateImageRequest
UpdateImageJSONRequestBody defines body for UpdateImage for application/json ContentType.
type UpdateImageParams ¶
type UpdateImageParams struct {
// IdOnly Resolve the path value strictly as an ID, without a name fallback.
IdOnly *IdOnly `form:"id_only,omitempty" json:"id_only,omitempty"`
}
UpdateImageParams defines parameters for UpdateImage.
type UpdateImageRequest ¶
type UpdateImageRequest struct {
// Name The permanent image name.
Name string `json:"name"`
}
UpdateImageRequest defines model for UpdateImageRequest.
type UpdateMacosSettingsJSONRequestBody ¶
type UpdateMacosSettingsJSONRequestBody = UpdateMacosSettingsRequest
UpdateMacosSettingsJSONRequestBody defines body for UpdateMacosSettings for application/json ContentType.
type UpdateMacosSettingsRequest ¶
type UpdateMacosSettingsRequest struct {
// MacosAutoReserve Whether a macOS create or start buys a Mac reservation when the organization has none in the region.
MacosAutoReserve *bool `json:"macos_auto_reserve,omitempty"`
// MacosAutoReserveMaxReservations Maximum number of automatically created reservations.
MacosAutoReserveMaxReservations *int32 `json:"macos_auto_reserve_max_reservations,omitempty"`
}
UpdateMacosSettingsRequest The macOS settings to change: any non-empty subset of the fields.
type UpdateMemberJSONRequestBody ¶
type UpdateMemberJSONRequestBody = UpdateMemberRequest
UpdateMemberJSONRequestBody defines body for UpdateMember for application/json ContentType.
type UpdateMemberRequest ¶
type UpdateMemberRequest struct {
// Roles The member's complete new role set. Required, with at least one role.
Roles []string `json:"roles"`
}
UpdateMemberRequest defines model for UpdateMemberRequest.
type UpdateOrgJSONRequestBody ¶
type UpdateOrgJSONRequestBody = UpdateOrganizationRequest
UpdateOrgJSONRequestBody defines body for UpdateOrg for application/json ContentType.
type UpdateOrganizationRegionJSONRequestBody ¶
type UpdateOrganizationRegionJSONRequestBody = UpdateOrganizationRegionRequest
UpdateOrganizationRegionJSONRequestBody defines body for UpdateOrganizationRegion for application/json ContentType.
type UpdateOrganizationRegionRequest ¶
type UpdateOrganizationRegionRequest struct {
// Name The new display name, 1 to 100 characters.
Name *string `json:"name,omitempty"`
// PreviewDomain The base domain of the region's preview URLs. Must be unique, must not
// be a public suffix such as `co.uk`, and must not be, or be inside, a
// domain the platform serves.
PreviewDomain *string `json:"preview_domain,omitempty"`
// ToolboxProxyUrl The base URL of the region's proxy. Must be an `https://` URL.
ToolboxProxyUrl *string `json:"toolbox_proxy_url,omitempty"`
}
UpdateOrganizationRegionRequest The body of an organization-region update. An omitted field keeps its value; `null` clears `toolbox_proxy_url` or `preview_domain`.
type UpdateOrganizationRequest ¶
type UpdateOrganizationRequest struct {
// MaxSandboxTimeoutSeconds The longest timeout a sandbox in this organization may have, in seconds; null uses the plan maximum, or the platform maximum when there is no plan maximum. A value above that maximum is rejected.
MaxSandboxTimeoutSeconds *int64 `json:"max_sandbox_timeout_seconds,omitempty"`
// Name The replacement organization name: at most 64 characters after trimming, with no control characters.
Name *string `json:"name,omitempty"`
}
UpdateOrganizationRequest defines model for UpdateOrganizationRequest.
type UpdateOrganizationRoleJSONRequestBody ¶
type UpdateOrganizationRoleJSONRequestBody = UpdateOrganizationRoleRequest
UpdateOrganizationRoleJSONRequestBody defines body for UpdateOrganizationRole for application/json ContentType.
type UpdateOrganizationRoleRequest ¶
type UpdateOrganizationRoleRequest struct {
// Description The new role purpose.
Description *string `json:"description,omitempty"`
// Name The new role name. Whitespace is normalized as on create; the result
// must be 1 to 64 characters.
Name *string `json:"name,omitempty"`
// OrganizationPermissions The complete new set of organization permissions.
OrganizationPermissions *[]string `json:"organization_permissions,omitempty"`
// ProjectPermissions The complete new set of project permissions.
ProjectPermissions *[]string `json:"project_permissions,omitempty"`
}
UpdateOrganizationRoleRequest defines model for UpdateOrganizationRoleRequest.
type UpdatePreviewWarningJSONRequestBody ¶
type UpdatePreviewWarningJSONRequestBody = UpdatePreviewWarningRequest
UpdatePreviewWarningJSONRequestBody defines body for UpdatePreviewWarning for application/json ContentType.
type UpdatePreviewWarningRequest ¶
type UpdatePreviewWarningRequest struct {
// Disabled `true` turns the preview warning page off for every sandbox preview of
// the organization (needs the `preview_warning_opt_out` entitlement where
// enforcement is on); `false` turns it back on.
Disabled bool `json:"disabled"`
}
UpdatePreviewWarningRequest Turns the preview warning page off or on. Unknown fields are rejected.
type UpdateProjectApiKeyJSONRequestBody ¶
type UpdateProjectApiKeyJSONRequestBody = UpdateProjectApiKeyRequest
UpdateProjectApiKeyJSONRequestBody defines body for UpdateProjectApiKey for application/json ContentType.
type UpdateProjectApiKeyRequest ¶
type UpdateProjectApiKeyRequest struct {
// SyncToV0 Whether the v0 ↔ v2 key sync keeps a copy of this key on Daytona v0.
// `false` deletes the Daytona v0 copy (the key keeps working here);
// `true` copies the key to Daytona v0 again. A Daytona v0 copy can read
// every sandbox, snapshot and registry of the organization on Daytona
// v0, which has no read permissions. Only a key a person minted in the
// organization's `default` project is ever copied; a key imported from
// Daytona v0 always is. Required.
SyncToV0 *bool `json:"sync_to_v0,omitempty"`
}
UpdateProjectApiKeyRequest defines model for UpdateProjectApiKeyRequest.
type UpdateProjectJSONRequestBody ¶
type UpdateProjectJSONRequestBody = UpdateProjectRequest
UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.
type UpdateProjectLifecyclePolicyJSONRequestBody ¶
type UpdateProjectLifecyclePolicyJSONRequestBody = UpdateProjectLifecyclePolicyRequest
UpdateProjectLifecyclePolicyJSONRequestBody defines body for UpdateProjectLifecyclePolicy for application/json ContentType.
type UpdateProjectLifecyclePolicyRequest ¶
type UpdateProjectLifecyclePolicyRequest struct {
// Ephemeral Replacement defaults for ephemeral sandboxes; null clears the block.
Ephemeral *UpdateEphemeralLifecycleDefaults `json:"ephemeral,omitempty"`
}
UpdateProjectLifecyclePolicyRequest A `PATCH` at block granularity: an absent block is kept, `null` clears it, and an object replaces the whole block (a field missing inside it is unset). Blocks never merge field by field, so each block is validated on its own.
type UpdateProjectLimitsJSONRequestBody ¶
type UpdateProjectLimitsJSONRequestBody = UpdateProjectLimitsRequest
UpdateProjectLimitsJSONRequestBody defines body for UpdateProjectLimits for application/json ContentType.
type UpdateProjectLimitsRequest ¶
type UpdateProjectLimitsRequest struct {
// MaxConcurrentBuilds The most image builds the project may run at once, or null for no
// project limit.
MaxConcurrentBuilds *int64 `json:"max_concurrent_builds,omitempty"`
// MaxConcurrentVms The most sandboxes the project may run at once, or null for no project
// limit.
MaxConcurrentVms *int64 `json:"max_concurrent_vms,omitempty"`
// MaxPersistentVms Cannot be set on a project: projects do not limit their persistent sandbox count. Send null
// or omit it; an integer is refused.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MaxPersistentVms *int64 `json:"max_persistent_vms,omitempty"`
// MaxTotalVms Cannot be set on a project: projects do not limit their total sandbox count. Send null or
// omit it; an integer is refused.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MaxTotalVms *int64 `json:"max_total_vms,omitempty"`
}
UpdateProjectLimitsRequest The limits to change. Each one is optional: a missing limit keeps the stored value, `null` removes it, and an integer sets it. Unknown fields are refused.
type UpdateProjectRequest ¶
type UpdateProjectRequest struct {
// Name The new project name: at most 64 characters after trimming, with no control characters. `default` is reserved.
Name string `json:"name"`
}
UpdateProjectRequest defines model for UpdateProjectRequest.
type UpdateReservationJSONRequestBody ¶
type UpdateReservationJSONRequestBody = UpdateReservationRequest
UpdateReservationJSONRequestBody defines body for UpdateReservation for application/json ContentType.
type UpdateReservationRequest ¶
type UpdateReservationRequest struct {
// AutoRenew Renew the reservation near each period end while a macOS sandbox is active
// on it; off lets it lapse at `period_end`.
AutoRenew bool `json:"auto_renew"`
}
UpdateReservationRequest PATCH /reservations/{id} body.
type UpdateSandboxLifecyclePolicyJSONRequestBody ¶
type UpdateSandboxLifecyclePolicyJSONRequestBody = UpdateSandboxLifecyclePolicyRequest
UpdateSandboxLifecyclePolicyJSONRequestBody defines body for UpdateSandboxLifecyclePolicy for application/json ContentType.
type UpdateSandboxLifecyclePolicyRequest ¶
type UpdateSandboxLifecyclePolicyRequest struct {
// IdleExpirySeconds Idle seconds before the idle action runs. A value below 60 is raised to 60; use `-1` to clear the idle expiry.
IdleExpirySeconds *int64 `json:"idle_expiry_seconds,omitempty"`
// OnIdleTimeout Action to run when the idle expiry elapses.
OnIdleTimeout *LifecycleAction `json:"on_idle_timeout,omitempty"`
// OnTimeout Action to run when the timeout expires.
OnTimeout *LifecycleAction `json:"on_timeout,omitempty"`
// TimeoutSeconds Seconds before the timeout action runs. Supplying a value restarts the countdown.
TimeoutSeconds *int64 `json:"timeout_seconds,omitempty"`
}
UpdateSandboxLifecyclePolicyRequest Sandbox lifecycle settings accepted during creation and lifecycle updates. Unknown fields return 400 instead of being ignored.
type UpdateServiceAccountJSONRequestBody ¶
type UpdateServiceAccountJSONRequestBody = UpdateServiceAccountRequest
UpdateServiceAccountJSONRequestBody defines body for UpdateServiceAccount for application/json ContentType.
type UpdateServiceAccountRequest ¶
type UpdateServiceAccountRequest struct {
// Description The replacement description; `null` clears it.
Description *string `json:"description,omitempty"`
// Name The replacement name.
Name *string `json:"name,omitempty"`
// Roles The replacement role identifiers.
Roles *[]string `json:"roles,omitempty"`
}
UpdateServiceAccountRequest defines model for UpdateServiceAccountRequest.
type UsageCharge ¶
type UsageCharge struct {
// BillableMetric The billing metric identifier.
BillableMetric string `json:"billable_metric"`
// EventsCount The number of usage events included.
EventsCount int64 `json:"events_count"`
// Name The charge display name.
Name string `json:"name"`
// Quantity The billed quantity.
Quantity float64 `json:"quantity"`
// TotalCents The charge total in cents.
TotalCents int64 `json:"total_cents"`
// Units The unit used for the billed quantity.
Units string `json:"units"`
}
UsageCharge defines model for UsageCharge.
type UsageHistoryResolution ¶
type UsageHistoryResolution string
UsageHistoryResolution defines model for UsageHistoryResolution.
const ( UsageHistoryResolutionHour UsageHistoryResolution = "hour" UsageHistoryResolutionMinute UsageHistoryResolution = "minute" )
Defines values for UsageHistoryResolution.
func (UsageHistoryResolution) Valid ¶
func (e UsageHistoryResolution) Valid() bool
Valid indicates whether the value is a known member of the UsageHistoryResolution enum.
type UsageLimit ¶
type UsageLimit struct {
// Limit The effective cap; `null` means no limit, except on a count whose
// limit is not returned. A ceiling, not a reservation: reaching it
// refuses new work, but nothing is set aside.
Limit *int64 `json:"limit"`
// Usage The current usage counted against the limit.
Usage int64 `json:"usage"`
}
UsageLimit defines model for UsageLimit.
type UsagePeriod ¶
type UsagePeriod struct {
// CpuCoreSeconds CPU time consumed in the bucket, in core-seconds (1 core = 2 vCPUs; a
// macOS core is one Mac CPU).
CpuCoreSeconds float64 `json:"cpu_core_seconds"`
// DiskReadBytes Bytes read from disk during the bucket.
DiskReadBytes int64 `json:"disk_read_bytes"`
// DiskUsedBytes Disk space used, in bytes: the last sample in the bucket at `minute`
// resolution, and the highest sample in the bucket at `hour` resolution.
DiskUsedBytes int64 `json:"disk_used_bytes"`
// DiskWrittenBytes Bytes written to disk during the bucket.
DiskWrittenBytes int64 `json:"disk_written_bytes"`
// DurationMs Wall-clock span the bucket actually covered, ms.
DurationMs int64 `json:"duration_ms"`
// MemoryByteSeconds Memory integral over the bucket, byte-seconds.
MemoryByteSeconds float64 `json:"memory_byte_seconds"`
// MemoryPeakBytes Peak physical memory use during the bucket, in bytes.
MemoryPeakBytes int64 `json:"memory_peak_bytes"`
// NetworkReceivedBytes Bytes received over the network during the bucket.
NetworkReceivedBytes int64 `json:"network_received_bytes"`
// NetworkSentBytes Bytes sent over the network during the bucket.
NetworkSentBytes int64 `json:"network_sent_bytes"`
// StartAt Start of the bucket.
StartAt time.Time `json:"start_at"`
}
UsagePeriod Resource usage during one time bucket.
type UsagePeriodPage ¶
type UsagePeriodPage struct {
// NextCursor The next page cursor, or `null` at the end.
NextCursor *string `json:"next_cursor,omitempty"`
// UsagePeriods The usage periods in this page, newest first.
UsagePeriods []BillingUsagePeriod `json:"usage_periods"`
}
UsagePeriodPage defines model for UsagePeriodPage.
type UsagePeriodStatus ¶
type UsagePeriodStatus string
UsagePeriodStatus defines model for UsagePeriodStatus.
const ( Closed UsagePeriodStatus = "closed" Open UsagePeriodStatus = "open" )
Defines values for UsagePeriodStatus.
func (UsagePeriodStatus) Valid ¶
func (e UsagePeriodStatus) Valid() bool
Valid indicates whether the value is a known member of the UsagePeriodStatus enum.
type UsageReport ¶
type UsageReport struct {
// Available Whether usage reporting is available.
Available bool `json:"available"`
// EndAt End of the reported time range, exclusive.
EndAt *time.Time `json:"end_at,omitempty"`
// Items Usage grouped by sandbox and interval.
Items []UsageReportEntry `json:"items"`
// Resolution Effective bucket size. Omitted when usage reporting is unavailable.
Resolution *UsageReportResolution `json:"resolution,omitempty"`
// StartAt Start of the reported time range, inclusive.
StartAt *time.Time `json:"start_at,omitempty"`
}
UsageReport Project usage over a time range.
type UsageReportEntry ¶
type UsageReportEntry struct {
// IntervalStartAt Start of the aggregation interval.
IntervalStartAt time.Time `json:"interval_start_at"`
// Resources Resource consumption during the interval.
Resources UsageResources `json:"resources"`
// SandboxId The sandbox ID.
SandboxId string `json:"sandbox_id"`
}
UsageReportEntry Usage for one sandbox and interval.
type UsageReportResolution ¶
type UsageReportResolution string
UsageReportResolution defines model for UsageReportResolution.
const ( UsageReportResolutionDay UsageReportResolution = "day" UsageReportResolutionHour UsageReportResolution = "hour" )
Defines values for UsageReportResolution.
func (UsageReportResolution) Valid ¶
func (e UsageReportResolution) Valid() bool
Valid indicates whether the value is a known member of the UsageReportResolution enum.
type UsageResources ¶
type UsageResources struct {
// CpuCoreSeconds CPU time used during the interval, in core-seconds (1 core = 2 vCPUs;
// a macOS core is one Mac CPU).
CpuCoreSeconds float64 `json:"cpu_core_seconds"`
// DiskReadBytes Bytes read from disk during the interval.
DiskReadBytes int64 `json:"disk_read_bytes"`
// DiskUsedBytes Highest disk space used during the interval, in bytes.
DiskUsedBytes int64 `json:"disk_used_bytes"`
// DiskWrittenBytes Bytes written to disk during the interval.
DiskWrittenBytes int64 `json:"disk_written_bytes"`
// MemoryByteSeconds Memory use integrated over the interval, in byte-seconds.
MemoryByteSeconds float64 `json:"memory_byte_seconds"`
// MemoryPeakBytes Peak physical memory use during the interval, in bytes.
MemoryPeakBytes int64 `json:"memory_peak_bytes"`
// NetworkReceivedBytes Bytes received over the network during the interval.
NetworkReceivedBytes int64 `json:"network_received_bytes"`
// NetworkSentBytes Bytes sent over the network during the interval.
NetworkSentBytes int64 `json:"network_sent_bytes"`
}
UsageResources Resource consumption within one interval.
type User ¶
type User struct {
// Email The user's email address.
Email string `json:"email"`
// Id The user ID.
Id openapi_types.UUID `json:"id"`
// Name The user's display name, when set.
Name *string `json:"name,omitempty"`
}
User The signed-in user.
type V0MigrationSummary ¶
type V0MigrationSummary struct {
// ApiKeys Live API keys of the organization's `default` project. Keys synced from
// Daytona v0 work on both platforms unchanged.
ApiKeys int64 `json:"api_keys"`
// FromV0 The organization was imported from Daytona v0 (it carries the Daytona
// v0 organization id it came from). Personal organizations included.
FromV0 bool `json:"from_v0"`
// ImagesConverted Named images registered from Daytona v0 snapshots that are at the current
// image format.
ImagesConverted int64 `json:"images_converted"`
// ImagesToConvert Named images registered from Daytona v0 snapshots that are still below the
// current image format (`format_outdated`): not converted yet,
// converting, or a failed conversion (retried on the next use). Each
// converts on its first Linux sandbox create, or ahead of time with
// `POST /images/{id}/convert`.
ImagesToConvert int64 `json:"images_to_convert"`
// Personal The organization is a personal organization.
Personal bool `json:"personal"`
// Registries Container registries of the `default` project.
Registries int64 `json:"registries"`
// SandboxesImported Archived Daytona v0 sandboxes imported into the `default` project.
SandboxesImported int64 `json:"sandboxes_imported"`
}
V0MigrationSummary Response of `GET /migration/v0/summary`.
type V0Sandbox ¶
type V0Sandbox struct {
// Class The sandbox class on Daytona v0.
Class string `json:"class"`
// Cpu CPU cores on Daytona v0.
Cpu int64 `json:"cpu"`
// DiskGib Disk storage in GiB on Daytona v0.
DiskGib int64 `json:"disk_gib"`
// Importable Whether `POST /migration/v0/sandboxes/{v0_id}/import` can import it
// now.
Importable bool `json:"importable"`
// ImportedSandboxId The imported sandbox ID when a live import exists.
ImportedSandboxId *string `json:"imported_sandbox_id,omitempty"`
// Labels The sandbox labels.
Labels map[string]string `json:"labels"`
// LastBackupAt When Daytona v0 last completed a backup of the sandbox.
LastBackupAt *time.Time `json:"last_backup_at,omitempty"`
// MemoryGib Memory in GiB on Daytona v0.
MemoryGib int64 `json:"memory_gib"`
// Name The sandbox name.
Name string `json:"name"`
// Reason Reason the sandbox cannot be imported when `importable` is false. Open vocabulary: clients must accept unrecognized reasons.
Reason *string `json:"reason,omitempty"`
// Status The sandbox status on Daytona v0.
Status string `json:"status"`
// V0Id The sandbox ID on Daytona v0.
V0Id string `json:"v0_id"`
}
V0Sandbox One sandbox available from the Daytona v0 migration source.
type V0SandboxImport ¶
type V0SandboxImport struct {
// Existing True when this call returned an earlier import instead of creating a
// sandbox.
Existing bool `json:"existing"`
// ImageId The imported sandbox’s image (`img_…`). The sandbox waits for its image to be ready before starting.
ImageId string `json:"image_id"`
// SandboxId The imported sandbox ID.
SandboxId string `json:"sandbox_id"`
// SecretEnvVars Env variable names whose value on Daytona v0 is a sandbox secret.
// Daytona v0 never hands the value over, so the imported sandbox starts without them:
// set them on it. Empty when the call returned an existing import.
SecretEnvVars []string `json:"secret_env_vars"`
// Status The sandbox’s status. A fresh import remains `queued` until its image is ready.
Status string `json:"status"`
// V0Labeled Whether Daytona v0 confirmed the `daytona.io/migrated-to` label on
// the original sandbox. False means the label could not be set now; the
// import itself succeeded, and repeating the call retries the label.
V0Labeled bool `json:"v0_labeled"`
// Warnings Settings and values that could not be imported.
Warnings []string `json:"warnings"`
}
V0SandboxImport The result of importing a Daytona v0 sandbox.
type V0SandboxPage ¶
type V0SandboxPage struct {
// NextCursor Opaque token for the next page — pass it as `?cursor=`; `null` on the
// last page. A page can be shorter than `limit` without being the last:
// only a `null` ends the walk.
NextCursor *string `json:"next_cursor,omitempty"`
// Sandboxes The Daytona v0 sandboxes in this page.
Sandboxes []V0Sandbox `json:"sandboxes"`
}
V0SandboxPage `GET /migration/v0/sandboxes` response: one page.
type Volume ¶
type Volume struct {
// CreatedAt When the volume was created.
CreatedAt time.Time `json:"created_at"`
// Error The failure detail, or null when the volume has not failed.
Error *string `json:"error,omitempty"`
// Id The volume ID.
Id string `json:"id"`
// ImportedFrom The source platform and resource ID when this volume was imported.
ImportedFrom *ImportedFrom `json:"imported_from,omitempty"`
// LastUsedAt When the volume was last attached, or null when it has not been used.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The project-unique volume name.
Name string `json:"name"`
// Options Type-specific options. Disk volumes use an empty object; bucket volumes
// include their bucket settings and credential secret names.
Options *map[string]interface{} `json:"options,omitempty"`
// SizeGib Scratch capacity in GiB. Disk volumes only — a bucket volume has no
// capacity of its own and reports `null`.
SizeGib *int32 `json:"size_gib,omitempty"`
// Status The volume status.
Status VolumeStatus `json:"status"`
// Type The volume type.
Type VolumeType `json:"type"`
// UpdatedAt When the volume metadata last changed.
UpdatedAt time.Time `json:"updated_at"`
// UsedBytes Logical file usage in bytes, or null before the first usage report.
UsedBytes *int64 `json:"used_bytes,omitempty"`
// UsedBytesAt When `used_bytes` was observed, or null when usage is unknown.
UsedBytesAt *time.Time `json:"used_bytes_at,omitempty"`
}
Volume A volume available to the project.
type VolumeBucketOrigin ¶
type VolumeBucketOrigin string
VolumeBucketOrigin defines model for VolumeBucketOrigin.
const ( VolumeBucketOriginClaimed VolumeBucketOrigin = "claimed" VolumeBucketOriginExternal VolumeBucketOrigin = "external" VolumeBucketOriginPlatform VolumeBucketOrigin = "platform" )
Defines values for VolumeBucketOrigin.
func (VolumeBucketOrigin) Valid ¶
func (e VolumeBucketOrigin) Valid() bool
Valid indicates whether the value is a known member of the VolumeBucketOrigin enum.
type VolumeMount ¶
type VolumeMount struct {
// MountPath The absolute path inside the sandbox, with no `..`. It is normalized
// (repeated slashes, `.` components and a trailing slash removed) and
// may not be `/` or be on or beneath a system directory: `/bin`,
// `/boot`, `/dev`, `/etc`, `/lib`, `/lib32`, `/lib64`, `/mnt/scratch`,
// `/overlay`, `/proc`, `/sbin`, `/sys` or `/usr`. It may not be equal to
// or beneath another mount's `mount_path`.
MountPath string `json:"mount_path"`
// ReadOnly Mount without write access. Supported only for bucket volumes.
ReadOnly *bool `json:"read_only,omitempty"`
// Subpath Mount only this subtree: a subdirectory for a disk volume, a key prefix
// under the volume's own prefix for a bucket volume. A relative path with
// no empty or `..` segments and no control characters.
Subpath *string `json:"subpath,omitempty"`
// Volume The volume name or a `vol_` id. A sandbox can mount a volume once.
Volume string `json:"volume"`
}
VolumeMount A volume attachment as requested on `POST /sandboxes`.
type VolumePage ¶
type VolumePage struct {
// NextCursor The opaque continuation token, or null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Volumes The volumes in this page.
Volumes []Volume `json:"volumes"`
}
VolumePage Response envelope for `GET /volumes`.
type VolumeSearchListItem ¶
type VolumeSearchListItem struct {
// CreatedAt When the volume was created.
CreatedAt time.Time `json:"created_at"`
// Cursor Opaque cursor for this item.
Cursor string `json:"cursor"`
// Error The failure detail, or null when the volume has not failed.
Error *string `json:"error,omitempty"`
// Id The volume ID.
Id string `json:"id"`
// ImportedFrom The source platform and resource ID when this volume was imported.
ImportedFrom *ImportedFrom `json:"imported_from,omitempty"`
// LastUsedAt When the volume was last attached, or null when it has not been used.
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
// Name The project-unique volume name.
Name string `json:"name"`
// Options Type-specific options. Disk volumes use an empty object; bucket volumes
// include their bucket settings and credential secret names.
Options *map[string]interface{} `json:"options,omitempty"`
// SizeGib Scratch capacity in GiB. Disk volumes only — a bucket volume has no
// capacity of its own and reports `null`.
SizeGib *int32 `json:"size_gib,omitempty"`
// Status The volume status.
Status VolumeStatus `json:"status"`
// Type The volume type.
Type VolumeType `json:"type"`
// UpdatedAt When the volume metadata last changed.
UpdatedAt time.Time `json:"updated_at"`
// UsedBytes Logical file usage in bytes, or null before the first usage report.
UsedBytes *int64 `json:"used_bytes,omitempty"`
// UsedBytesAt When `used_bytes` was observed, or null when usage is unknown.
UsedBytesAt *time.Time `json:"used_bytes_at,omitempty"`
}
VolumeSearchListItem defines model for VolumeSearchListItem.
type VolumeSearchPage ¶
type VolumeSearchPage struct {
// NextCursor Continuation token; null on the last page.
NextCursor *string `json:"next_cursor,omitempty"`
// Total Number of matching volumes, exact when `total_relation` is `eq`.
Total int64 `json:"total"`
// TotalRelation Whether total is exact (`eq`) or a lower bound (`gte`).
TotalRelation SearchTotalRelation `json:"total_relation"`
// Volumes Matching volumes in this page.
Volumes []VolumeSearchListItem `json:"volumes"`
}
VolumeSearchPage A page of matching volumes.
type VolumeSearchSort ¶
type VolumeSearchSort string
VolumeSearchSort defines model for VolumeSearchSort.
const ( VolumeSearchSortCreatedAt VolumeSearchSort = "created_at" VolumeSearchSortLastUsedAt VolumeSearchSort = "last_used_at" VolumeSearchSortName VolumeSearchSort = "name" VolumeSearchSortSizeGib VolumeSearchSort = "size_gib" VolumeSearchSortUpdatedAt VolumeSearchSort = "updated_at" VolumeSearchSortUsedBytes VolumeSearchSort = "used_bytes" )
Defines values for VolumeSearchSort.
func (VolumeSearchSort) Valid ¶
func (e VolumeSearchSort) Valid() bool
Valid indicates whether the value is a known member of the VolumeSearchSort enum.
type VolumeSearchStatus ¶
type VolumeSearchStatus string
VolumeSearchStatus defines model for VolumeSearchStatus.
const ( VolumeSearchStatusDeleting VolumeSearchStatus = "deleting" VolumeSearchStatusError VolumeSearchStatus = "error" VolumeSearchStatusReady VolumeSearchStatus = "ready" )
Defines values for VolumeSearchStatus.
func (VolumeSearchStatus) Valid ¶
func (e VolumeSearchStatus) Valid() bool
Valid indicates whether the value is a known member of the VolumeSearchStatus enum.
type VolumeStatus ¶
type VolumeStatus string
VolumeStatus defines model for VolumeStatus.
const ( VolumeStatusDeleted VolumeStatus = "deleted" VolumeStatusDeleting VolumeStatus = "deleting" VolumeStatusError VolumeStatus = "error" VolumeStatusReady VolumeStatus = "ready" )
Defines values for VolumeStatus.
func (VolumeStatus) Valid ¶
func (e VolumeStatus) Valid() bool
Valid indicates whether the value is a known member of the VolumeStatus enum.
type VolumeType ¶
type VolumeType string
VolumeType defines model for VolumeType.
const ( Bucket VolumeType = "bucket" Disk VolumeType = "disk" )
Defines values for VolumeType.
func (VolumeType) Valid ¶
func (e VolumeType) Valid() bool
Valid indicates whether the value is a known member of the VolumeType enum.
type WaitSandboxesParams ¶
type WaitSandboxesParams struct {
// Ids Comma-separated sandbox IDs. At most 200 IDs are accepted.
Ids string `form:"ids" json:"ids"`
// Wait Block until the resource reaches this status or a terminal status. Omit to return immediately.
Wait *Wait `form:"wait,omitempty" json:"wait,omitempty"`
// WaitExact Exact status to wait for. Other terminal states do not satisfy it.
WaitExact *string `form:"wait_exact,omitempty" json:"wait_exact,omitempty"`
// TimeoutMs Maximum time to block, in milliseconds. Default 30000, maximum 60000.
TimeoutMs *TimeoutMs `form:"timeout_ms,omitempty" json:"timeout_ms,omitempty"`
}
WaitSandboxesParams defines parameters for WaitSandboxes.
type Wallet ¶
type Wallet struct {
// AutomaticTopUp The automatic top-up setting, including its unset state.
AutomaticTopUp AutomaticTopUp `json:"automatic_top_up"`
// BalanceCents The total available balance in cents.
BalanceCents int64 `json:"balance_cents"`
// BillingType The organization's billing arrangement.
BillingType BillingType `json:"billing_type"`
// Currency The lowercase ISO 4217 currency code.
Currency string `json:"currency"`
// FreeCreditsBalanceCents The promotional-credit balance in cents.
FreeCreditsBalanceCents int64 `json:"free_credits_balance_cents"`
// PaidCreditsBalanceCents The purchased-credit balance in cents.
PaidCreditsBalanceCents int64 `json:"paid_credits_balance_cents"`
// TotalAmountDueThisMonthCents The amount due in the current month, in cents.
TotalAmountDueThisMonthCents int64 `json:"total_amount_due_this_month_cents"`
// TotalSpentThisMonthCents The amount spent in the current month, in cents.
TotalSpentThisMonthCents int64 `json:"total_spent_this_month_cents"`
}
Wallet defines model for Wallet.