Documentation ¶
Index ¶
- Constants
- type ArtifactQuery
- type Client
- func (c *Client) CreatePlan(p *PlanCreate) (*PlanCreated, error)
- func (c *Client) CreatePlanFromPlainFile(jsonPlanFile string) (*PlanCreated, error)
- func (c *Client) CreatePlanFromPlainJson(jsonPlan string) (*PlanCreated, error)
- func (c *Client) CreatePlanFromRawFile(jsonRawFile string) (*PlanCreated, error)
- func (c *Client) CreatePlanFromRawJson(jsonRequest string) (*PlanCreated, error)
- func (c *Client) CreateRemoteEngineClustersFromRawJson(jsonRequest string) (*RemoteEngineCluster, error)
- func (c *Client) CreateTask(t *TaskCreate) (*TaskCreated, error)
- func (c *Client) CreateTaskFromPlainFile(jsonTaskFile string) (*TaskCreated, error)
- func (c *Client) CreateTaskFromPlainJson(jsonTask string) (*TaskCreated, error)
- func (c *Client) CreateTaskFromRawFile(jsonRawFile string) (*TaskCreated, error)
- func (c *Client) CreateTaskFromRawJson(jsonRequest string) (*TaskCreated, error)
- func (c *Client) DeletePlan(id string) error
- func (c *Client) DeletePlanRunConfigByPlanId(planId string) error
- func (c *Client) DeleteRemoteEngineClusters(clusterId string) error
- func (c *Client) DeleteRemoteEngines(engineId string) error
- func (c *Client) DeleteTask(id string) error
- func (c *Client) DeleteTaskRunConfigByTaskId(taskId string) error
- func (c *Client) GetArtifacts(artifactQuery ArtifactQuery) (*jArtifact, error)
- func (c *Client) GetPlanById(id string) (*PlanById, error)
- func (c *Client) GetPlanRunConfigByPlanId(planId string) (*PlanRunConfigResponse, error)
- func (c *Client) GetPlans(planQuery PlanQuery) (*PlanAvailable, error)
- func (c *Client) GetRemoteEngineClusters(searchQuery string) (*[]RemoteEngineCluster, error)
- func (c *Client) GetRemoteEngineClustersByClusterId(clusterId string) (*RemoteEngineCluster, error)
- func (c *Client) GetRemoteEngineClustersRunProfile(clusterId string) (*[]ClusterRunProfile, error)
- func (c *Client) GetRemoteEngineClustersRunProfileByProfileId(clusterId string, runProfileId string) (*[]ClusterRunProfile, error)
- func (c *Client) GetRemoteEngines(searchQuery string) (*[]RemoteEngine, error)
- func (c *Client) GetRemoteEnginesByEngineId(engineId string) (*RemoteEngine, error)
- func (c *Client) GetRemoteEnginesRunProfile(engineId string) (*[]RuntimeRunProfile, error)
- func (c *Client) GetRemoteEnginesRunProfileByProfileId(engineId string, runProfileId string) (*RuntimeRunProfile, error)
- func (c *Client) GetTaskById(id string) (*TaskById, error)
- func (c *Client) GetTaskRunConfigByTaskId(taskId string) (*TaskRunConfigResponse, error)
- func (c *Client) GetTasks(taskQuery TaskQuery) (*jTaskAvailable, error)
- func (c *Client) GetWorkspaces(query string) ([]Workspace, error)
- func (c *Client) ParsePlan(p *PlanCreate) (*jPlanCreate, error)
- func (c *Client) ParseTask(t *TaskCreate) (*jTaskCreate, error)
- func (c *Client) UpdatePlan(planId string, p *PlanCreate) (*PlanCreated, error)
- func (c *Client) UpdatePlanFromPlainFile(planId string, jsonPlanFile string) (*PlanCreated, error)
- func (c *Client) UpdatePlanFromPlainJson(planId string, jsonPlan string) (*PlanCreated, error)
- func (c *Client) UpdatePlanFromRawFile(planId string, jsonRawFile string) (*PlanCreated, error)
- func (c *Client) UpdatePlanFromRawJson(planId string, jsonRequest string) (*PlanCreated, error)
- func (c *Client) UpdatePlanRunConfig(planRunConfig *PlanRunConfigRequest) (*PlanRunConfigResponse, error)
- func (c *Client) UpdatePlanRunConfigFromPlainFile(jsonPlanRunConfigFile string) (*PlanRunConfigResponse, error)
- func (c *Client) UpdatePlanRunConfigFromPlainJson(jsonPlanRunConfig string) (*PlanRunConfigResponse, error)
- func (c *Client) UpdatePlanRunConfigFromRawFile(planId string, jsonRawFile string) (*PlanRunConfigResponse, error)
- func (c *Client) UpdatePlanRunConfigFromRawJson(planId string, jsonRequest string) (*PlanRunConfigResponse, error)
- func (c *Client) UpdateTask(taskId string, t *TaskCreate) (*TaskCreated, error)
- func (c *Client) UpdateTaskFromPlainJson(taskId string, jsonTask string) (*TaskCreated, error)
- func (c *Client) UpdateTaskFromRawFile(taskId string, jsonRawFile string) (*TaskCreated, error)
- func (c *Client) UpdateTaskFromRawJson(taskId string, jsonRequest string) (*TaskCreated, error)
- func (c *Client) UpdateTaskRunConfig(taskRunConfig *TaskRunConfigRequest) (*TaskRunConfigResponse, error)
- func (c *Client) UpdateTaskRunConfigFromPlainFile(jsonTaskRunConfigFile string) (*TaskRunConfigResponse, error)
- func (c *Client) UpdateTaskRunConfigFromPlainJson(jsonTaskRunConfig string) (*TaskRunConfigResponse, error)
- func (c *Client) UpdateTaskRunConfigFromRawFile(taskId string, jsonRawFile string) (*TaskRunConfigResponse, error)
- func (c *Client) UpdateTaskRunConfigFromRawJson(taskId string, jsonRequest string) (*TaskRunConfigResponse, error)
- type ClusterRunProfile
- type ExecutionStep
- type PlanAvailable
- type PlanById
- type PlanCreate
- type PlanCreated
- type PlanQuery
- type PlanRunConfig
- type PlanRunConfigRequest
- type PlanRunConfigResponse
- type RemoteEngine
- type RemoteEngineCluster
- type RuntimeRunProfile
- type TaskById
- type TaskCreate
- type TaskCreated
- type TaskQuery
- type TaskRunConfig
- type TaskRunConfigRequest
- type TaskRunConfigResponse
- type Workspace
Constants ¶
View Source
const ArtifactsUrl string = DefaultRestUrl + "/artifacts"
View Source
const DefaultRestUrl string = "https://api.eu.cloud.talend.com/tmc/v2.2"
View Source
const PlansUrl string = DefaultRestUrl + "/executables/plans"
View Source
const RemoteEngineClusterUrl string = DefaultRestUrl + "/runtimes/remote-engine-clusters"
View Source
const RemoteEngineUrl string = DefaultRestUrl + "/runtimes/remote-engines"
View Source
const TasksUrl string = DefaultRestUrl + "/executables/tasks"
View Source
const WorkspacesUrl string = DefaultRestUrl + "/workspaces"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactQuery ¶
type Client ¶
func (*Client) CreatePlan ¶
func (c *Client) CreatePlan(p *PlanCreate) (*PlanCreated, error)
func (*Client) CreatePlanFromPlainFile ¶
func (c *Client) CreatePlanFromPlainFile(jsonPlanFile string) (*PlanCreated, error)
func (*Client) CreatePlanFromPlainJson ¶
func (c *Client) CreatePlanFromPlainJson(jsonPlan string) (*PlanCreated, error)
func (*Client) CreatePlanFromRawFile ¶
func (c *Client) CreatePlanFromRawFile(jsonRawFile string) (*PlanCreated, error)
func (*Client) CreatePlanFromRawJson ¶
func (c *Client) CreatePlanFromRawJson(jsonRequest string) (*PlanCreated, error)
func (*Client) CreateRemoteEngineClustersFromRawJson ¶
func (c *Client) CreateRemoteEngineClustersFromRawJson(jsonRequest string) (*RemoteEngineCluster, error)
func (*Client) CreateTask ¶
func (c *Client) CreateTask(t *TaskCreate) (*TaskCreated, error)
func (*Client) CreateTaskFromPlainFile ¶
func (c *Client) CreateTaskFromPlainFile(jsonTaskFile string) (*TaskCreated, error)
func (*Client) CreateTaskFromPlainJson ¶
func (c *Client) CreateTaskFromPlainJson(jsonTask string) (*TaskCreated, error)
func (*Client) CreateTaskFromRawFile ¶
func (c *Client) CreateTaskFromRawFile(jsonRawFile string) (*TaskCreated, error)
func (*Client) CreateTaskFromRawJson ¶
func (c *Client) CreateTaskFromRawJson(jsonRequest string) (*TaskCreated, error)
func (*Client) DeletePlan ¶
func (*Client) DeletePlanRunConfigByPlanId ¶
func (*Client) DeleteRemoteEngineClusters ¶
func (*Client) DeleteRemoteEngines ¶
func (*Client) DeleteTask ¶
func (*Client) DeleteTaskRunConfigByTaskId ¶
func (*Client) GetArtifacts ¶
func (c *Client) GetArtifacts(artifactQuery ArtifactQuery) (*jArtifact, error)
func (*Client) GetPlanRunConfigByPlanId ¶
func (c *Client) GetPlanRunConfigByPlanId(planId string) (*PlanRunConfigResponse, error)
func (*Client) GetRemoteEngineClusters ¶
func (c *Client) GetRemoteEngineClusters(searchQuery string) (*[]RemoteEngineCluster, error)
func (*Client) GetRemoteEngineClustersByClusterId ¶
func (c *Client) GetRemoteEngineClustersByClusterId(clusterId string) (*RemoteEngineCluster, error)
func (*Client) GetRemoteEngineClustersRunProfile ¶
func (c *Client) GetRemoteEngineClustersRunProfile(clusterId string) (*[]ClusterRunProfile, error)
func (*Client) GetRemoteEngineClustersRunProfileByProfileId ¶
func (c *Client) GetRemoteEngineClustersRunProfileByProfileId(clusterId string, runProfileId string) (*[]ClusterRunProfile, error)
func (*Client) GetRemoteEngines ¶
func (c *Client) GetRemoteEngines(searchQuery string) (*[]RemoteEngine, error)
func (*Client) GetRemoteEnginesByEngineId ¶
func (c *Client) GetRemoteEnginesByEngineId(engineId string) (*RemoteEngine, error)
func (*Client) GetRemoteEnginesRunProfile ¶
func (c *Client) GetRemoteEnginesRunProfile(engineId string) (*[]RuntimeRunProfile, error)
func (*Client) GetRemoteEnginesRunProfileByProfileId ¶
func (c *Client) GetRemoteEnginesRunProfileByProfileId(engineId string, runProfileId string) (*RuntimeRunProfile, error)
func (*Client) GetTaskRunConfigByTaskId ¶
func (c *Client) GetTaskRunConfigByTaskId(taskId string) (*TaskRunConfigResponse, error)
func (*Client) ParsePlan ¶
func (c *Client) ParsePlan(p *PlanCreate) (*jPlanCreate, error)
func (*Client) ParseTask ¶
func (c *Client) ParseTask(t *TaskCreate) (*jTaskCreate, error)
func (*Client) UpdatePlan ¶
func (c *Client) UpdatePlan(planId string, p *PlanCreate) (*PlanCreated, error)
func (*Client) UpdatePlanFromPlainFile ¶
func (c *Client) UpdatePlanFromPlainFile(planId string, jsonPlanFile string) (*PlanCreated, error)
func (*Client) UpdatePlanFromPlainJson ¶
func (c *Client) UpdatePlanFromPlainJson(planId string, jsonPlan string) (*PlanCreated, error)
func (*Client) UpdatePlanFromRawFile ¶
func (c *Client) UpdatePlanFromRawFile(planId string, jsonRawFile string) (*PlanCreated, error)
func (*Client) UpdatePlanFromRawJson ¶
func (c *Client) UpdatePlanFromRawJson(planId string, jsonRequest string) (*PlanCreated, error)
func (*Client) UpdatePlanRunConfig ¶
func (c *Client) UpdatePlanRunConfig(planRunConfig *PlanRunConfigRequest) (*PlanRunConfigResponse, error)
func (*Client) UpdatePlanRunConfigFromPlainFile ¶
func (c *Client) UpdatePlanRunConfigFromPlainFile(jsonPlanRunConfigFile string) (*PlanRunConfigResponse, error)
func (*Client) UpdatePlanRunConfigFromPlainJson ¶
func (c *Client) UpdatePlanRunConfigFromPlainJson(jsonPlanRunConfig string) (*PlanRunConfigResponse, error)
func (*Client) UpdatePlanRunConfigFromRawFile ¶
func (c *Client) UpdatePlanRunConfigFromRawFile(planId string, jsonRawFile string) (*PlanRunConfigResponse, error)
func (*Client) UpdatePlanRunConfigFromRawJson ¶
func (c *Client) UpdatePlanRunConfigFromRawJson(planId string, jsonRequest string) (*PlanRunConfigResponse, error)
func (*Client) UpdateTask ¶
func (c *Client) UpdateTask(taskId string, t *TaskCreate) (*TaskCreated, error)
func (*Client) UpdateTaskFromPlainJson ¶
func (c *Client) UpdateTaskFromPlainJson(taskId string, jsonTask string) (*TaskCreated, error)
func (*Client) UpdateTaskFromRawFile ¶
func (c *Client) UpdateTaskFromRawFile(taskId string, jsonRawFile string) (*TaskCreated, error)
func (*Client) UpdateTaskFromRawJson ¶
func (c *Client) UpdateTaskFromRawJson(taskId string, jsonRequest string) (*TaskCreated, error)
func (*Client) UpdateTaskRunConfig ¶
func (c *Client) UpdateTaskRunConfig(taskRunConfig *TaskRunConfigRequest) (*TaskRunConfigResponse, error)
func (*Client) UpdateTaskRunConfigFromPlainFile ¶
func (c *Client) UpdateTaskRunConfigFromPlainFile(jsonTaskRunConfigFile string) (*TaskRunConfigResponse, error)
func (*Client) UpdateTaskRunConfigFromPlainJson ¶
func (c *Client) UpdateTaskRunConfigFromPlainJson(jsonTaskRunConfig string) (*TaskRunConfigResponse, error)
func (*Client) UpdateTaskRunConfigFromRawFile ¶
func (c *Client) UpdateTaskRunConfigFromRawFile(taskId string, jsonRawFile string) (*TaskRunConfigResponse, error)
func (*Client) UpdateTaskRunConfigFromRawJson ¶
func (c *Client) UpdateTaskRunConfigFromRawJson(taskId string, jsonRequest string) (*TaskRunConfigResponse, error)
type ClusterRunProfile ¶
type ClusterRunProfile struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` CreateDate string `json:"createDate,omitempty"` UpdateDate string `json:"updateDate,omitempty"` Type string `json:"type,omitempty"` JvmArguments []string `json:"jvmArguments,omitempty"` RuntimeId string `json:"runtimeId,omitempty"` Version int `json:"version,omitempty"` }
type ExecutionStep ¶
type ExecutionStep struct { StepId string `json:"stepId,omitempty"` StepName string `json:"stepName,omitempty"` Status string `json:"status,omitempty"` StepOnException *ExecutionStep `json:"stepOnException,omitempty"` NextStep *ExecutionStep `json:"nextStep,omitempty"` Flows []struct { Id string `json:"id"` Name string `json:"name"` Version string `json:"version"` Description string `json:"description"` Destination string `json:"destination"` WorkspaceId string `json:"workspaceId"` Plan bool `json:"plan"` ArtifactVersion struct { Id string `json:"id"` Name string `json:"name"` Version string `json:"version"` Type string `json:"type"` Publisher string `json:"publisher"` MarketplaceProduct string `json:"marketplaceProduct"` Parameters []struct { Name string `json:"name"` Value string `json:"value"` Type string `json:"type"` Required string `json:"required"` Comment string `json:"comment"` } `json:"parameters"` Workspace struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Owner string `json:"owner"` Type string `json:"type"` Environment struct { Id string `json:"id"` Name string `json:"name"` Default bool `json:"default"` } `json:"environment"` } `json:"workspace"` } `json:"artifactVersion"` UpgradeInfo struct { Upgradable bool `json:"upgradable"` AutoUpgradeFailed bool `json:"autoUpgradeFailed"` } `json:"upgradeInfo"` } `json:"flows,omitempty"` }
type PlanAvailable ¶
type PlanAvailable struct { Items []struct { Executable string `json:"executable"` Name string `json:"name"` Workspace struct { Id string `json:"id"` Name string `json:"name"` Owner string `json:"owner"` Type string `json:"type"` Environment struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Default bool `json:"default"` } `json:"environment"` } `json:"workspace"` ArtifactId string `json:"artifactId"` Runtime struct { Type string `json:"type"` Id string `json:"id"` } `json:"runtime"` } `json:"items"` Limit int `json:"limit"` Offset int `json:"offset"` Total int `json:"total"` }
type PlanById ¶
type PlanById struct { Executable string `json:"executable"` Name string `json:"name"` Workspace struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description,omitempty"` Owner string `json:"owner,omitempty"` Type string `json:"type"` Environment struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Default bool `json:"default"` } `json:"environment,omitempty"` } `json:"workspace,omitempty"` Description string `json:"description,omitempty"` Chart ExecutionStep `json:"chart,omitempty"` Status string `json:"status,omitempty"` }
type PlanCreate ¶
type PlanCreate struct { Name string `json:"name"` Workspace struct { Name string `json:"name"` Environment string `json:"environment"` } `json:"workspace"` Description string `json:"description"` Steps []struct { Name string `json:"name"` Condition string `json:"condition"` TaskIds []string `json:"taskIds"` HandlerOnFailure struct { TaskIds []string `json:"taskIds,omitempty"` PlanIds []string `json:"planIds,omitempty"` } `json:"handlerOnFailure,omitempty"` } `json:"steps"` }
type PlanCreated ¶
type PlanRunConfig ¶
type PlanRunConfig struct { Trigger struct { Type string `json:"type"` Interval int `json:"interval,omitempty"` StartDate string `json:"startDate"` TimeZone string `json:"timeZone"` AtTimes struct { Type string `json:"type"` Times []string `json:"times,omitempty"` Time string `json:"time"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` Interval string `json:"interval"` } `json:"atTimes,omitempty"` AtDays struct { Type string `json:"type"` Day int `json:"day,omitempty"` Days []string `json:"days,omitempty"` } `json:"atDays,omitempty"` Webhook struct { Name string `json:"name"` Description string `json:"description,omitempty"` TriggerCalls int `json:"triggerCalls,omitempty"` TriggerTimeout int `json:"triggerTimeout,omitempty"` RunAsUser string `json:"runAsUser,omitempty"` NewUrl bool `json:"newUrl,omitempty"` Url string `json:"url,omitempty"` } `json:"webhook,omitempty"` } `json:"trigger,omitempty"` Runtime struct { Type string `json:"type"` // "type": "CLOUD", Id string `json:"id"` // "id": "5c9a51dc7b353e43c7fc787c", EngineId string `json:"engineId"` // "engineId": "5c9a51dc7b353e43c7fc787c", ClusterId string `json:"clusterId"` // "clusterId": "5c9a51dc7b353e43c7fc787c", RunProfileId string `json:"runProfileId"` // "runProfileId": "5c9a51dc7b353e43c7fc783c" } `json:"runtime,omitempty"` ParallelExecutionAllowed bool `json:"parallelExecutionAllowed,omitempty"` }
type PlanRunConfigRequest ¶
type PlanRunConfigRequest struct { Name string `json:"name"` Workspace struct { Name string `json:"name"` Environment string `json:"environment"` } `json:"workspace"` PlanRunConfig PlanRunConfig `json:"planRunConfig"` }
type PlanRunConfigResponse ¶
type PlanRunConfigResponse struct { PlanId string `json:"planId"` PlanRunConfig PlanRunConfig `json:"planRunConfig"` }
type RemoteEngine ¶
type RemoteEngine struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Workspace struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Owner string `json:"workspace"` Type string `json:"type"` Environment struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Default bool `json:"default"` } `json:"environment"` } `json:"workspace"` CreateDate int `json:"createDate"` UpdateDate int `json:"updateDate"` RuntimeId string `json:"runtimeId"` Availability string `json:"availability"` Managed bool `json:"managed"` EnvironmentId string `json:"environmentId"` WorkspaceId string `json:"workspaceId"` Status string `json:"status"` RunProfiles []string `json:"runProfiles"` Debug struct { Host string `json:"host"` } `json:"debug"` ClusterId string `json:"clusterId"` PreAuthorizedKey string `json:"preAuthorizedKey"` }
type RemoteEngineCluster ¶
type RemoteEngineCluster struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Workspace struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Owner string `json:"workspace"` Type string `json:"type"` Environment struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Default bool `json:"default"` } `json:"environment"` } `json:"workspace"` CreateDate int `json:"createDate"` UpdateDate int `json:"updateDate"` RuntimeId string `json:"runtimeId"` Availability string `json:"availability"` Managed bool `json:"managed"` }
type RuntimeRunProfile ¶
type RuntimeRunProfile struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` CreateDate string `json:"createDate,omitempty"` UpdateDate string `json:"updateDate,omitempty"` Type string `json:"type,omitempty"` JvmArguments []string `json:"jvmArguments,omitempty"` RuntimeId string `json:"runtimeId,omitempty"` Version int `json:"version,omitempty"` }
type TaskById ¶
type TaskById struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Workspace struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Owner string `json:"owner"` Type string `json:"type"` Environment struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` Default bool `json:"default"` } `json:"environment"` } `json:"workspace"` Version string `json:"version"` Artifact struct { Id string `json:"id"` Name string `json:"name"` Version string `json:"version"` } `json:"artifact"` Tags []string `json:"tags,omitempty"` Connections map[string]string `json:"connections,omitempty"` Parameters map[string]string `json:"parameters,omitempty"` Resources map[string]string `json:"resources,omitempty"` AutoUpgradeInfo struct { AutoUpgradable bool `json:"autoUpgradable"` OverrideWithDefaultParameters bool `json:"overrideWithDefaultParameters"` AutoUpgradeFailed bool `json:"autoUpgradeFailed"` } `json:"autoUpgradeInfo,omitempty"` }
type TaskCreate ¶
type TaskCreate struct { Name string `json:"name"` Workspace struct { Name string `json:"name"` Environment string `json:"environment"` } `json:"workspace"` Description string `json:"description"` Parameters map[string]string `json:"parameters,omitempty"` Resources map[string]string `json:"resources,omitempty"` Artifact struct { Name string `json:"name"` } `json:"artifact"` // AutoUpgradeInfo struct { // AutoUpgradable bool // OverrideWithDefaultParameters bool // AutoUpgradeFailed bool // } `json:"autoUpgradeInfo"` // EnvironmentId string `json:"environmentId,omitempty"` Environment string `json:"environment"` }
type TaskCreated ¶
type TaskQuery ¶
type TaskQuery struct { Name string `url:"name,omitempty"` EnvironmentId string `url:"environmentId,omitempty"` WorkspaceId string `url:"workspaceId,omitempty"` Limit int `url:"limit,omitempty"` Offset int `url:"offset,omitempty"` ArtifactId string `url:"artifactId,omitempty"` RuntimeType string `url:"runtimeType,omitempty"` RuntimeId string `url:"runtimeId,omitempty"` RuntimeRunProfileId string `url:"runtimeRunProfileId,omitempty"` }
type TaskRunConfig ¶
type TaskRunConfig struct { Trigger struct { Type string `json:"type"` Interval int `json:"interval,omitempty"` StartDate string `json:"startDate"` TimeZone string `json:"timeZone"` AtTimes struct { Type string `json:"type"` Times []string `json:"times,omitempty"` Time string `json:"time"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` Interval string `json:"interval"` } `json:"atTimes,omitempty"` AtDays struct { Type string `json:"type"` Day int `json:"day,omitempty"` Days []string `json:"days,omitempty"` } `json:"atDays,omitempty"` Webhook struct { Name string `json:"name"` Description string `json:"description,omitempty"` TriggerCalls int `json:"triggerCalls,omitempty"` TriggerTimeout int `json:"triggerTimeout,omitempty"` RunAsUser string `json:"runAsUser,omitempty"` NewUrl bool `json:"newUrl,omitempty"` Url string `json:"url,omitempty"` } `json:"webhook,omitempty"` } `json:"trigger,omitempty"` Runtime struct { Type string `json:"type"` // "type": "CLOUD", Id string `json:"id"` // "id": "5c9a51dc7b353e43c7fc787c", EngineId string `json:"engineId"` // "engineId": "5c9a51dc7b353e43c7fc787c", ClusterId string `json:"clusterId"` // "clusterId": "5c9a51dc7b353e43c7fc787c", RunProfileId string `json:"runProfileId"` // "runProfileId": "5c9a51dc7b353e43c7fc783c" } `json:"runtime,omitempty"` ParallelExecutionAllowed bool `json:"parallelExecutionAllowed,omitempty"` LogLevel string `json:"logLevel,omitempty"` RemoteRunAsUser string `json:"remoteRunAsUser,omitempty"` }
type TaskRunConfigRequest ¶
type TaskRunConfigRequest struct { Name string `json:"name"` Workspace struct { Name string `json:"name"` Environment string `json:"environment"` } `json:"workspace"` TaskRunConfig TaskRunConfig `json:"taskRunConfig"` }
type TaskRunConfigResponse ¶
type TaskRunConfigResponse struct { TaskId string `json:"taskId"` TaskRunConfig TaskRunConfig `json:"taskRunConfig"` }
Click to show internal directories.
Click to hide internal directories.