Documentation
¶
Index ¶
- type AutomationTrigger
- type AutomationTriggerParam
- type EnvironmentClass
- type EnvironmentClassParam
- type EnvironmentVariableItem
- type EnvironmentVariableItemParam
- type EnvironmentVariableSource
- type EnvironmentVariableSourceParam
- type ErrorCode
- type FieldValue
- type FieldValueParam
- type Gateway
- type OrganizationRole
- type Principal
- type ProjectEnvironmentClass
- type ProjectEnvironmentClassParam
- type ResourceType
- type RunsOn
- type RunsOnDocker
- type RunsOnDockerParam
- type RunsOnParam
- type SecretRef
- type SecretRefParam
- type Subject
- type SubjectParam
- type Task
- type TaskExecution
- type TaskExecutionMetadata
- type TaskExecutionPhase
- type TaskExecutionSpec
- type TaskExecutionSpecPlan
- type TaskExecutionSpecPlanStep
- type TaskExecutionSpecPlanStepsTask
- type TaskExecutionStatus
- type TaskExecutionStatusStep
- type TaskMetadata
- type TaskMetadataParam
- type TaskSpec
- type TaskSpecParam
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutomationTrigger ¶
type AutomationTrigger struct {
Manual bool `json:"manual"`
PostDevcontainerStart bool `json:"postDevcontainerStart"`
PostEnvironmentStart bool `json:"postEnvironmentStart"`
PostMachineStart bool `json:"postMachineStart"`
Prebuild bool `json:"prebuild"`
JSON automationTriggerJSON `json:"-"`
}
An AutomationTrigger represents a trigger for an automation action. The `manual` field shows a start button in the UI for manually triggering the automation. The `post_machine_start` field indicates that the automation should be triggered after the machine has started, before the devcontainer is ready. This is used for machine-level services like security agents that need to start early. The `post_environment_start` field indicates that the automation should be triggered after the environment has started (devcontainer ready). The `post_devcontainer_start` field indicates that the automation should be triggered after the dev container has started. The `prebuild` field starts the automation during a prebuild of an environment. This phase does not have user secrets available. Note: The prebuild trigger can only be used with tasks, not services.
func (*AutomationTrigger) UnmarshalJSON ¶
func (r *AutomationTrigger) UnmarshalJSON(data []byte) (err error)
type AutomationTriggerParam ¶
type AutomationTriggerParam struct {
Manual param.Field[bool] `json:"manual"`
PostDevcontainerStart param.Field[bool] `json:"postDevcontainerStart"`
PostEnvironmentStart param.Field[bool] `json:"postEnvironmentStart"`
PostMachineStart param.Field[bool] `json:"postMachineStart"`
Prebuild param.Field[bool] `json:"prebuild"`
}
An AutomationTrigger represents a trigger for an automation action. The `manual` field shows a start button in the UI for manually triggering the automation. The `post_machine_start` field indicates that the automation should be triggered after the machine has started, before the devcontainer is ready. This is used for machine-level services like security agents that need to start early. The `post_environment_start` field indicates that the automation should be triggered after the environment has started (devcontainer ready). The `post_devcontainer_start` field indicates that the automation should be triggered after the dev container has started. The `prebuild` field starts the automation during a prebuild of an environment. This phase does not have user secrets available. Note: The prebuild trigger can only be used with tasks, not services.
func (AutomationTriggerParam) MarshalJSON ¶
func (r AutomationTriggerParam) MarshalJSON() (data []byte, err error)
type EnvironmentClass ¶
type EnvironmentClass struct {
// id is the unique identifier of the environment class
ID string `json:"id,required"`
// runner_id is the unique identifier of the runner the environment class belongs
// to
RunnerID string `json:"runnerId,required"`
// configuration describes the configuration of the environment class
Configuration []FieldValue `json:"configuration"`
// description is a human readable description of the environment class
Description string `json:"description"`
// display_name is the human readable name of the environment class
DisplayName string `json:"displayName"`
// enabled indicates whether the environment class can be used to create new
// environments.
Enabled bool `json:"enabled"`
JSON environmentClassJSON `json:"-"`
}
func (*EnvironmentClass) UnmarshalJSON ¶
func (r *EnvironmentClass) UnmarshalJSON(data []byte) (err error)
type EnvironmentClassParam ¶
type EnvironmentClassParam struct {
// id is the unique identifier of the environment class
ID param.Field[string] `json:"id,required"`
// runner_id is the unique identifier of the runner the environment class belongs
// to
RunnerID param.Field[string] `json:"runnerId,required"`
// configuration describes the configuration of the environment class
Configuration param.Field[[]FieldValueParam] `json:"configuration"`
// description is a human readable description of the environment class
Description param.Field[string] `json:"description"`
// display_name is the human readable name of the environment class
DisplayName param.Field[string] `json:"displayName"`
// enabled indicates whether the environment class can be used to create new
// environments.
Enabled param.Field[bool] `json:"enabled"`
}
func (EnvironmentClassParam) MarshalJSON ¶
func (r EnvironmentClassParam) MarshalJSON() (data []byte, err error)
type EnvironmentVariableItem ¶ added in v0.7.0
type EnvironmentVariableItem struct {
// name is the environment variable name.
Name string `json:"name"`
// value is a literal string value.
Value string `json:"value"`
// value_from specifies a source for the value.
ValueFrom EnvironmentVariableSource `json:"valueFrom"`
JSON environmentVariableItemJSON `json:"-"`
}
EnvironmentVariableItem represents an environment variable that can be set either from a literal value or from a secret reference.
func (*EnvironmentVariableItem) UnmarshalJSON ¶ added in v0.7.0
func (r *EnvironmentVariableItem) UnmarshalJSON(data []byte) (err error)
type EnvironmentVariableItemParam ¶ added in v0.7.0
type EnvironmentVariableItemParam struct {
// name is the environment variable name.
Name param.Field[string] `json:"name"`
// value is a literal string value.
Value param.Field[string] `json:"value"`
// value_from specifies a source for the value.
ValueFrom param.Field[EnvironmentVariableSourceParam] `json:"valueFrom"`
}
EnvironmentVariableItem represents an environment variable that can be set either from a literal value or from a secret reference.
func (EnvironmentVariableItemParam) MarshalJSON ¶ added in v0.7.0
func (r EnvironmentVariableItemParam) MarshalJSON() (data []byte, err error)
type EnvironmentVariableSource ¶ added in v0.7.0
type EnvironmentVariableSource struct {
// secret_ref references a secret by ID.
SecretRef SecretRef `json:"secretRef,required"`
JSON environmentVariableSourceJSON `json:"-"`
}
EnvironmentVariableSource specifies a source for an environment variable value.
func (*EnvironmentVariableSource) UnmarshalJSON ¶ added in v0.7.0
func (r *EnvironmentVariableSource) UnmarshalJSON(data []byte) (err error)
type EnvironmentVariableSourceParam ¶ added in v0.7.0
type EnvironmentVariableSourceParam struct {
// secret_ref references a secret by ID.
SecretRef param.Field[SecretRefParam] `json:"secretRef,required"`
}
EnvironmentVariableSource specifies a source for an environment variable value.
func (EnvironmentVariableSourceParam) MarshalJSON ¶ added in v0.7.0
func (r EnvironmentVariableSourceParam) MarshalJSON() (data []byte, err error)
type ErrorCode ¶ added in v0.3.2
type ErrorCode string
const ( ErrorCodeCanceled ErrorCode = "canceled" ErrorCodeUnknown ErrorCode = "unknown" ErrorCodeInvalidArgument ErrorCode = "invalid_argument" ErrorCodeDeadlineExceeded ErrorCode = "deadline_exceeded" ErrorCodeNotFound ErrorCode = "not_found" ErrorCodeAlreadyExists ErrorCode = "already_exists" ErrorCodePermissionDenied ErrorCode = "permission_denied" ErrorCodeResourceExhausted ErrorCode = "resource_exhausted" ErrorCodeFailedPrecondition ErrorCode = "failed_precondition" ErrorCodeAborted ErrorCode = "aborted" ErrorCodeOutOfRange ErrorCode = "out_of_range" ErrorCodeUnimplemented ErrorCode = "unimplemented" ErrorCodeInternal ErrorCode = "internal" ErrorCodeDataLoss ErrorCode = "data_loss" ErrorCodeUnauthenticated ErrorCode = "unauthenticated" )
type FieldValue ¶
type FieldValue struct {
Key string `json:"key"`
Value string `json:"value"`
JSON fieldValueJSON `json:"-"`
}
func (*FieldValue) UnmarshalJSON ¶
func (r *FieldValue) UnmarshalJSON(data []byte) (err error)
type FieldValueParam ¶
type FieldValueParam struct {
Key param.Field[string] `json:"key"`
Value param.Field[string] `json:"value"`
}
func (FieldValueParam) MarshalJSON ¶
func (r FieldValueParam) MarshalJSON() (data []byte, err error)
type Gateway ¶ added in v0.5.0
type Gateway struct {
// name is the human-readable name of the gateway. name is unique across all
// gateways.
Name string `json:"name,required"`
// url of the gateway
URL string `json:"url,required"`
// region is the geographical region where the gateway is located
Region string `json:"region"`
JSON gatewayJSON `json:"-"`
}
Gateway represents a system gateway that provides access to services
func (*Gateway) UnmarshalJSON ¶ added in v0.5.0
type OrganizationRole ¶
type OrganizationRole string
const ( OrganizationRoleUnspecified OrganizationRole = "ORGANIZATION_ROLE_UNSPECIFIED" OrganizationRoleAdmin OrganizationRole = "ORGANIZATION_ROLE_ADMIN" OrganizationRoleMember OrganizationRole = "ORGANIZATION_ROLE_MEMBER" )
func (OrganizationRole) IsKnown ¶
func (r OrganizationRole) IsKnown() bool
type Principal ¶
type Principal string
const ( PrincipalUnspecified Principal = "PRINCIPAL_UNSPECIFIED" PrincipalAccount Principal = "PRINCIPAL_ACCOUNT" PrincipalUser Principal = "PRINCIPAL_USER" PrincipalRunner Principal = "PRINCIPAL_RUNNER" PrincipalEnvironment Principal = "PRINCIPAL_ENVIRONMENT" PrincipalServiceAccount Principal = "PRINCIPAL_SERVICE_ACCOUNT" PrincipalRunnerManager Principal = "PRINCIPAL_RUNNER_MANAGER" PrincipalAgentExecution Principal = "PRINCIPAL_AGENT_EXECUTION" )
type ProjectEnvironmentClass ¶ added in v0.7.0
type ProjectEnvironmentClass struct {
// Use a fixed environment class on a given Runner. This cannot be a local runner's
// environment class.
EnvironmentClassID string `json:"environmentClassId" format:"uuid"`
// Use a local runner for the user
LocalRunner bool `json:"localRunner"`
// order is the priority of this entry
Order int64 `json:"order"`
JSON projectEnvironmentClassJSON `json:"-"`
}
func (*ProjectEnvironmentClass) UnmarshalJSON ¶ added in v0.7.0
func (r *ProjectEnvironmentClass) UnmarshalJSON(data []byte) (err error)
type ProjectEnvironmentClassParam ¶ added in v0.7.0
type ProjectEnvironmentClassParam struct {
// Use a fixed environment class on a given Runner. This cannot be a local runner's
// environment class.
EnvironmentClassID param.Field[string] `json:"environmentClassId" format:"uuid"`
// Use a local runner for the user
LocalRunner param.Field[bool] `json:"localRunner"`
// order is the priority of this entry
Order param.Field[int64] `json:"order"`
}
func (ProjectEnvironmentClassParam) MarshalJSON ¶ added in v0.7.0
func (r ProjectEnvironmentClassParam) MarshalJSON() (data []byte, err error)
type ResourceType ¶ added in v0.7.0
type ResourceType string
const ( ResourceTypeUnspecified ResourceType = "RESOURCE_TYPE_UNSPECIFIED" ResourceTypeEnvironment ResourceType = "RESOURCE_TYPE_ENVIRONMENT" ResourceTypeRunner ResourceType = "RESOURCE_TYPE_RUNNER" ResourceTypeProject ResourceType = "RESOURCE_TYPE_PROJECT" ResourceTypeTask ResourceType = "RESOURCE_TYPE_TASK" ResourceTypeTaskExecution ResourceType = "RESOURCE_TYPE_TASK_EXECUTION" ResourceTypeService ResourceType = "RESOURCE_TYPE_SERVICE" ResourceTypeOrganization ResourceType = "RESOURCE_TYPE_ORGANIZATION" ResourceTypeUser ResourceType = "RESOURCE_TYPE_USER" ResourceTypeEnvironmentClass ResourceType = "RESOURCE_TYPE_ENVIRONMENT_CLASS" ResourceTypeRunnerScmIntegration ResourceType = "RESOURCE_TYPE_RUNNER_SCM_INTEGRATION" ResourceTypeHostAuthenticationToken ResourceType = "RESOURCE_TYPE_HOST_AUTHENTICATION_TOKEN" ResourceTypeGroup ResourceType = "RESOURCE_TYPE_GROUP" ResourceTypePersonalAccessToken ResourceType = "RESOURCE_TYPE_PERSONAL_ACCESS_TOKEN" ResourceTypeUserPreference ResourceType = "RESOURCE_TYPE_USER_PREFERENCE" ResourceTypeServiceAccount ResourceType = "RESOURCE_TYPE_SERVICE_ACCOUNT" ResourceTypeSecret ResourceType = "RESOURCE_TYPE_SECRET" ResourceTypeSSOConfig ResourceType = "RESOURCE_TYPE_SSO_CONFIG" ResourceTypeDomainVerification ResourceType = "RESOURCE_TYPE_DOMAIN_VERIFICATION" ResourceTypeAgentExecution ResourceType = "RESOURCE_TYPE_AGENT_EXECUTION" ResourceTypeRunnerLlmIntegration ResourceType = "RESOURCE_TYPE_RUNNER_LLM_INTEGRATION" ResourceTypeAgent ResourceType = "RESOURCE_TYPE_AGENT" ResourceTypeEnvironmentSession ResourceType = "RESOURCE_TYPE_ENVIRONMENT_SESSION" ResourceTypeUserSecret ResourceType = "RESOURCE_TYPE_USER_SECRET" ResourceTypeOrganizationPolicy ResourceType = "RESOURCE_TYPE_ORGANIZATION_POLICY" ResourceTypeOrganizationSecret ResourceType = "RESOURCE_TYPE_ORGANIZATION_SECRET" ResourceTypeProjectEnvironmentClass ResourceType = "RESOURCE_TYPE_PROJECT_ENVIRONMENT_CLASS" ResourceTypeBilling ResourceType = "RESOURCE_TYPE_BILLING" ResourceTypePrompt ResourceType = "RESOURCE_TYPE_PROMPT" ResourceTypeCoupon ResourceType = "RESOURCE_TYPE_COUPON" ResourceTypeCouponRedemption ResourceType = "RESOURCE_TYPE_COUPON_REDEMPTION" ResourceTypeAccount ResourceType = "RESOURCE_TYPE_ACCOUNT" ResourceTypeIntegration ResourceType = "RESOURCE_TYPE_INTEGRATION" ResourceTypeWorkflow ResourceType = "RESOURCE_TYPE_WORKFLOW" ResourceTypeWorkflowExecution ResourceType = "RESOURCE_TYPE_WORKFLOW_EXECUTION" ResourceTypeWorkflowExecutionAction ResourceType = "RESOURCE_TYPE_WORKFLOW_EXECUTION_ACTION" ResourceTypeSnapshot ResourceType = "RESOURCE_TYPE_SNAPSHOT" ResourceTypePrebuild ResourceType = "RESOURCE_TYPE_PREBUILD" ResourceTypeOrganizationLlmIntegration ResourceType = "RESOURCE_TYPE_ORGANIZATION_LLM_INTEGRATION" ResourceTypeCustomDomain ResourceType = "RESOURCE_TYPE_CUSTOM_DOMAIN" ResourceTypeRoleAssignmentChanged ResourceType = "RESOURCE_TYPE_ROLE_ASSIGNMENT_CHANGED" ResourceTypeGroupMembershipChanged ResourceType = "RESOURCE_TYPE_GROUP_MEMBERSHIP_CHANGED" )
func (ResourceType) IsKnown ¶ added in v0.7.0
func (r ResourceType) IsKnown() bool
type RunsOn ¶
type RunsOn struct {
Docker RunsOnDocker `json:"docker"`
// Machine runs the service/task directly on the VM/machine level.
Machine interface{} `json:"machine"`
JSON runsOnJSON `json:"-"`
}
func (*RunsOn) UnmarshalJSON ¶
type RunsOnDocker ¶
type RunsOnDocker struct {
Environment []string `json:"environment"`
Image string `json:"image"`
JSON runsOnDockerJSON `json:"-"`
}
func (*RunsOnDocker) UnmarshalJSON ¶
func (r *RunsOnDocker) UnmarshalJSON(data []byte) (err error)
type RunsOnDockerParam ¶
type RunsOnDockerParam struct {
Environment param.Field[[]string] `json:"environment"`
Image param.Field[string] `json:"image"`
}
func (RunsOnDockerParam) MarshalJSON ¶
func (r RunsOnDockerParam) MarshalJSON() (data []byte, err error)
type RunsOnParam ¶
type RunsOnParam struct {
Docker param.Field[RunsOnDockerParam] `json:"docker"`
// Machine runs the service/task directly on the VM/machine level.
Machine param.Field[interface{}] `json:"machine"`
}
func (RunsOnParam) MarshalJSON ¶
func (r RunsOnParam) MarshalJSON() (data []byte, err error)
type SecretRef ¶ added in v0.7.0
type SecretRef struct {
// id is the UUID of the secret to reference.
ID string `json:"id" format:"uuid"`
JSON secretRefJSON `json:"-"`
}
SecretRef references a secret by its ID.
func (*SecretRef) UnmarshalJSON ¶ added in v0.7.0
type SecretRefParam ¶ added in v0.7.0
type SecretRefParam struct {
// id is the UUID of the secret to reference.
ID param.Field[string] `json:"id" format:"uuid"`
}
SecretRef references a secret by its ID.
func (SecretRefParam) MarshalJSON ¶ added in v0.7.0
func (r SecretRefParam) MarshalJSON() (data []byte, err error)
type Subject ¶
type Subject struct {
// id is the UUID of the subject
ID string `json:"id" format:"uuid"`
// Principal is the principal of the subject
Principal Principal `json:"principal"`
JSON subjectJSON `json:"-"`
}
func (*Subject) UnmarshalJSON ¶
type SubjectParam ¶
type SubjectParam struct {
// id is the UUID of the subject
ID param.Field[string] `json:"id" format:"uuid"`
// Principal is the principal of the subject
Principal param.Field[Principal] `json:"principal"`
}
func (SubjectParam) MarshalJSON ¶
func (r SubjectParam) MarshalJSON() (data []byte, err error)
type Task ¶
type Task struct {
ID string `json:"id,required" format:"uuid"`
// dependencies specifies the IDs of the automations this task depends on.
DependsOn []string `json:"dependsOn" format:"uuid"`
EnvironmentID string `json:"environmentId" format:"uuid"`
Metadata TaskMetadata `json:"metadata"`
Spec TaskSpec `json:"spec"`
JSON taskJSON `json:"-"`
}
func (*Task) UnmarshalJSON ¶
type TaskExecution ¶
type TaskExecution struct {
ID string `json:"id,required" format:"uuid"`
Metadata TaskExecutionMetadata `json:"metadata"`
Spec TaskExecutionSpec `json:"spec"`
Status TaskExecutionStatus `json:"status"`
JSON taskExecutionJSON `json:"-"`
}
func (*TaskExecution) UnmarshalJSON ¶
func (r *TaskExecution) UnmarshalJSON(data []byte) (err error)
type TaskExecutionMetadata ¶
type TaskExecutionMetadata struct {
// completed_at is the time the task execution was done.
CompletedAt time.Time `json:"completedAt" format:"date-time"`
// created_at is the time the task was created.
CreatedAt time.Time `json:"createdAt" format:"date-time"`
// creator describes the principal who created/started the task run.
Creator Subject `json:"creator"`
// environment_id is the ID of the environment in which the task run is executed.
EnvironmentID string `json:"environmentId" format:"uuid"`
// started_at is the time the task execution actually started to run.
StartedAt time.Time `json:"startedAt" format:"date-time"`
// started_by describes the trigger that started the task execution.
StartedBy string `json:"startedBy"`
// task_id is the ID of the main task being executed.
TaskID string `json:"taskId" format:"uuid"`
JSON taskExecutionMetadataJSON `json:"-"`
}
func (*TaskExecutionMetadata) UnmarshalJSON ¶
func (r *TaskExecutionMetadata) UnmarshalJSON(data []byte) (err error)
type TaskExecutionPhase ¶
type TaskExecutionPhase string
const ( TaskExecutionPhaseUnspecified TaskExecutionPhase = "TASK_EXECUTION_PHASE_UNSPECIFIED" TaskExecutionPhasePending TaskExecutionPhase = "TASK_EXECUTION_PHASE_PENDING" TaskExecutionPhaseRunning TaskExecutionPhase = "TASK_EXECUTION_PHASE_RUNNING" TaskExecutionPhaseSucceeded TaskExecutionPhase = "TASK_EXECUTION_PHASE_SUCCEEDED" TaskExecutionPhaseFailed TaskExecutionPhase = "TASK_EXECUTION_PHASE_FAILED" TaskExecutionPhaseStopped TaskExecutionPhase = "TASK_EXECUTION_PHASE_STOPPED" )
func (TaskExecutionPhase) IsKnown ¶
func (r TaskExecutionPhase) IsKnown() bool
type TaskExecutionSpec ¶
type TaskExecutionSpec struct {
// desired_phase is the phase the task execution should be in. Used to stop a
// running task execution early.
DesiredPhase TaskExecutionPhase `json:"desiredPhase"`
// plan is a list of groups of steps. The steps in a group are executed
// concurrently, while the groups are executed sequentially. The order of the
// groups is the order in which they are executed.
Plan []TaskExecutionSpecPlan `json:"plan"`
JSON taskExecutionSpecJSON `json:"-"`
}
func (*TaskExecutionSpec) UnmarshalJSON ¶
func (r *TaskExecutionSpec) UnmarshalJSON(data []byte) (err error)
type TaskExecutionSpecPlan ¶
type TaskExecutionSpecPlan struct {
Steps []TaskExecutionSpecPlanStep `json:"steps"`
JSON taskExecutionSpecPlanJSON `json:"-"`
}
func (*TaskExecutionSpecPlan) UnmarshalJSON ¶
func (r *TaskExecutionSpecPlan) UnmarshalJSON(data []byte) (err error)
type TaskExecutionSpecPlanStep ¶
type TaskExecutionSpecPlanStep struct {
// ID is the ID of the execution step
ID string `json:"id" format:"uuid"`
DependsOn []string `json:"dependsOn"`
Label string `json:"label"`
ServiceID string `json:"serviceId" format:"uuid"`
Task TaskExecutionSpecPlanStepsTask `json:"task"`
JSON taskExecutionSpecPlanStepJSON `json:"-"`
}
func (*TaskExecutionSpecPlanStep) UnmarshalJSON ¶
func (r *TaskExecutionSpecPlanStep) UnmarshalJSON(data []byte) (err error)
type TaskExecutionSpecPlanStepsTask ¶
type TaskExecutionSpecPlanStepsTask struct {
ID string `json:"id" format:"uuid"`
Spec TaskSpec `json:"spec"`
JSON taskExecutionSpecPlanStepsTaskJSON `json:"-"`
}
func (*TaskExecutionSpecPlanStepsTask) UnmarshalJSON ¶
func (r *TaskExecutionSpecPlanStepsTask) UnmarshalJSON(data []byte) (err error)
type TaskExecutionStatus ¶
type TaskExecutionStatus struct {
// failure_message summarises why the task execution failed to operate. If this is
// non-empty the task execution has failed to operate and will likely transition to
// a failed state.
FailureMessage string `json:"failureMessage"`
// log_url is the URL to the logs of the task's steps. If this is empty, the task
// either has no logs or has not yet started.
LogURL string `json:"logUrl"`
// the phase of a task execution represents the aggregated phase of all steps.
Phase TaskExecutionPhase `json:"phase"`
// version of the status update. Task executions themselves are unversioned, but
// their status has different versions. The value of this field has no semantic
// meaning (e.g. don't interpret it as as a timestamp), but it can be used to
// impose a partial order. If a.status_version < b.status_version then a was the
// status before b.
StatusVersion string `json:"statusVersion"`
// steps provides the status for each individual step of the task execution. If a
// step is missing it has not yet started.
Steps []TaskExecutionStatusStep `json:"steps"`
JSON taskExecutionStatusJSON `json:"-"`
}
func (*TaskExecutionStatus) UnmarshalJSON ¶
func (r *TaskExecutionStatus) UnmarshalJSON(data []byte) (err error)
type TaskExecutionStatusStep ¶
type TaskExecutionStatusStep struct {
// ID is the ID of the execution step
ID string `json:"id" format:"uuid"`
// failure_message summarises why the step failed to operate. If this is non-empty
// the step has failed to operate and will likely transition to a failed state.
FailureMessage string `json:"failureMessage"`
// output contains the output of the task execution. setting an output field to
// empty string will unset it.
Output map[string]string `json:"output"`
// phase is the current phase of the execution step
Phase TaskExecutionPhase `json:"phase"`
JSON taskExecutionStatusStepJSON `json:"-"`
}
func (*TaskExecutionStatusStep) UnmarshalJSON ¶
func (r *TaskExecutionStatusStep) UnmarshalJSON(data []byte) (err error)
type TaskMetadata ¶
type TaskMetadata struct {
// created_at is the time the task was created.
CreatedAt time.Time `json:"createdAt" format:"date-time"`
// creator describes the principal who created the task.
Creator Subject `json:"creator"`
// description is a user-facing description for the task. It can be used to provide
// context and documentation for the task.
Description string `json:"description"`
// name is a user-facing name for the task. Unlike the reference, this field is not
// unique, and not referenced by the system. This is a short descriptive name for
// the task.
Name string `json:"name"`
// reference is a user-facing identifier for the task which must be unique on the
// environment. It is used to express dependencies between tasks, and to identify
// the task in user interactions (e.g. the CLI).
Reference string `json:"reference"`
// triggered_by is a list of trigger that start the task.
TriggeredBy []AutomationTrigger `json:"triggeredBy"`
JSON taskMetadataJSON `json:"-"`
}
func (*TaskMetadata) UnmarshalJSON ¶
func (r *TaskMetadata) UnmarshalJSON(data []byte) (err error)
type TaskMetadataParam ¶
type TaskMetadataParam struct {
// created_at is the time the task was created.
CreatedAt param.Field[time.Time] `json:"createdAt" format:"date-time"`
// creator describes the principal who created the task.
Creator param.Field[SubjectParam] `json:"creator"`
// description is a user-facing description for the task. It can be used to provide
// context and documentation for the task.
Description param.Field[string] `json:"description"`
// name is a user-facing name for the task. Unlike the reference, this field is not
// unique, and not referenced by the system. This is a short descriptive name for
// the task.
Name param.Field[string] `json:"name"`
// reference is a user-facing identifier for the task which must be unique on the
// environment. It is used to express dependencies between tasks, and to identify
// the task in user interactions (e.g. the CLI).
Reference param.Field[string] `json:"reference"`
// triggered_by is a list of trigger that start the task.
TriggeredBy param.Field[[]AutomationTriggerParam] `json:"triggeredBy"`
}
func (TaskMetadataParam) MarshalJSON ¶
func (r TaskMetadataParam) MarshalJSON() (data []byte, err error)
type TaskSpec ¶
type TaskSpec struct {
// command contains the command the task should execute
Command string `json:"command"`
// env specifies environment variables for the task.
Env []EnvironmentVariableItem `json:"env"`
// runs_on specifies the environment the task should run on.
RunsOn RunsOn `json:"runsOn"`
JSON taskSpecJSON `json:"-"`
}
func (*TaskSpec) UnmarshalJSON ¶
type TaskSpecParam ¶
type TaskSpecParam struct {
// command contains the command the task should execute
Command param.Field[string] `json:"command"`
// env specifies environment variables for the task.
Env param.Field[[]EnvironmentVariableItemParam] `json:"env"`
// runs_on specifies the environment the task should run on.
RunsOn param.Field[RunsOnParam] `json:"runsOn"`
}
func (TaskSpecParam) MarshalJSON ¶
func (r TaskSpecParam) MarshalJSON() (data []byte, err error)
type UserStatus ¶
type UserStatus string
const ( UserStatusUnspecified UserStatus = "USER_STATUS_UNSPECIFIED" UserStatusActive UserStatus = "USER_STATUS_ACTIVE" UserStatusSuspended UserStatus = "USER_STATUS_SUSPENDED" UserStatusLeft UserStatus = "USER_STATUS_LEFT" )
func (UserStatus) IsKnown ¶
func (r UserStatus) IsKnown() bool