apis

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDemoRequest

type CreateDemoRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`
}

func NewCreateDemoRequest

func NewCreateDemoRequest(
	regionId string,
) *CreateDemoRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateDemoRequestWithAllParams

func NewCreateDemoRequestWithAllParams(
	regionId string,
) *CreateDemoRequest

* param regionId: Region ID (Required)

func NewCreateDemoRequestWithoutParam

func NewCreateDemoRequestWithoutParam() *CreateDemoRequest

This constructor has better compatible ability when API parameters changed

func (CreateDemoRequest) GetRegionId

func (r CreateDemoRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateDemoRequest) SetRegionId

func (r *CreateDemoRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type CreateDemoResponse

type CreateDemoResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    CreateDemoResult   `json:"result"`
}

type CreateDemoResult

type CreateDemoResult struct {
	Job compile.Job `json:"job"`
}

type CreateJobRequest

type CreateJobRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/*  (Optional) */
	Data *compile.JobRequest `json:"data"`
}

func NewCreateJobRequest

func NewCreateJobRequest(
	regionId string,
) *CreateJobRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateJobRequestWithAllParams

func NewCreateJobRequestWithAllParams(
	regionId string,
	data *compile.JobRequest,
) *CreateJobRequest

* param regionId: Region ID (Required) * param data: (Optional)

func NewCreateJobRequestWithoutParam

func NewCreateJobRequestWithoutParam() *CreateJobRequest

This constructor has better compatible ability when API parameters changed

func (CreateJobRequest) GetRegionId

func (r CreateJobRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateJobRequest) SetData

func (r *CreateJobRequest) SetData(data *compile.JobRequest)

param data: (Optional)

func (*CreateJobRequest) SetRegionId

func (r *CreateJobRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type CreateJobResponse

type CreateJobResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    CreateJobResult    `json:"result"`
}

type CreateJobResult

type CreateJobResult struct {
	Id               string `json:"id"`
	CodeRepoUrlLabel string `json:"codeRepoUrlLabel"`
	Result           bool   `json:"result"`
}

type DeleteJobRequest

type DeleteJobRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 编译任务uuid  */
	Id string `json:"id"`
}

func NewDeleteJobRequest

func NewDeleteJobRequest(
	regionId string,
	id string,
) *DeleteJobRequest

* param regionId: Region ID (Required) * param id: 编译任务uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteJobRequestWithAllParams

func NewDeleteJobRequestWithAllParams(
	regionId string,
	id string,
) *DeleteJobRequest

* param regionId: Region ID (Required) * param id: 编译任务uuid (Required)

func NewDeleteJobRequestWithoutParam

func NewDeleteJobRequestWithoutParam() *DeleteJobRequest

This constructor has better compatible ability when API parameters changed

func (DeleteJobRequest) GetRegionId

func (r DeleteJobRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteJobRequest) SetId

func (r *DeleteJobRequest) SetId(id string)

param id: 编译任务uuid(Required)

func (*DeleteJobRequest) SetRegionId

func (r *DeleteJobRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteJobResponse

type DeleteJobResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteJobResult    `json:"result"`
}

type DeleteJobResult

type DeleteJobResult struct {
	Commitresult bool `json:"commitresult"`
}

type DeleteJobsRequest

type DeleteJobsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 待删除job的UUID列表  */
	JobIds []string `json:"jobIds"`
}

func NewDeleteJobsRequest

func NewDeleteJobsRequest(
	regionId string,
	jobIds []string,
) *DeleteJobsRequest

* param regionId: Region ID (Required) * param jobIds: 待删除job的UUID列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteJobsRequestWithAllParams

func NewDeleteJobsRequestWithAllParams(
	regionId string,
	jobIds []string,
) *DeleteJobsRequest

* param regionId: Region ID (Required) * param jobIds: 待删除job的UUID列表 (Required)

func NewDeleteJobsRequestWithoutParam

func NewDeleteJobsRequestWithoutParam() *DeleteJobsRequest

This constructor has better compatible ability when API parameters changed

func (DeleteJobsRequest) GetRegionId

func (r DeleteJobsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteJobsRequest) SetJobIds

func (r *DeleteJobsRequest) SetJobIds(jobIds []string)

param jobIds: 待删除job的UUID列表(Required)

func (*DeleteJobsRequest) SetRegionId

func (r *DeleteJobsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteJobsResponse

type DeleteJobsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteJobsResult   `json:"result"`
}

type DeleteJobsResult

type DeleteJobsResult struct {
	Result bool     `json:"result"`
	Ids    []string `json:"ids"`
}

type GetBuildLogRequest

type GetBuildLogRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* job uuid  */
	Jobid string `json:"jobid"`

	/* 构建任务uuid  */
	Id string `json:"id"`

	/* 查询日志的偏移量, 默认为0 (Optional) */
	OffsetNumber *int `json:"offsetNumber"`
}

func NewGetBuildLogRequest

func NewGetBuildLogRequest(
	regionId string,
	jobid string,
	id string,
) *GetBuildLogRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetBuildLogRequestWithAllParams

func NewGetBuildLogRequestWithAllParams(
	regionId string,
	jobid string,
	id string,
	offsetNumber *int,
) *GetBuildLogRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required) * param offsetNumber: 查询日志的偏移量, 默认为0 (Optional)

func NewGetBuildLogRequestWithoutParam

func NewGetBuildLogRequestWithoutParam() *GetBuildLogRequest

This constructor has better compatible ability when API parameters changed

func (GetBuildLogRequest) GetRegionId

func (r GetBuildLogRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetBuildLogRequest) SetId

func (r *GetBuildLogRequest) SetId(id string)

param id: 构建任务uuid(Required)

func (*GetBuildLogRequest) SetJobid

func (r *GetBuildLogRequest) SetJobid(jobid string)

param jobid: job uuid(Required)

func (*GetBuildLogRequest) SetOffsetNumber

func (r *GetBuildLogRequest) SetOffsetNumber(offsetNumber int)

param offsetNumber: 查询日志的偏移量, 默认为0(Optional)

func (*GetBuildLogRequest) SetRegionId

func (r *GetBuildLogRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type GetBuildLogResponse

type GetBuildLogResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    GetBuildLogResult  `json:"result"`
}

type GetBuildLogResult

type GetBuildLogResult struct {
	Log          string `json:"log"`
	OffsetNumber int    `json:"offsetNumber"`
}

type GetBuildStatusRequest

type GetBuildStatusRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* job uuid  */
	Jobid string `json:"jobid"`

	/* 构建任务uuid  */
	Id string `json:"id"`
}

func NewGetBuildStatusRequest

func NewGetBuildStatusRequest(
	regionId string,
	jobid string,
	id string,
) *GetBuildStatusRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetBuildStatusRequestWithAllParams

func NewGetBuildStatusRequestWithAllParams(
	regionId string,
	jobid string,
	id string,
) *GetBuildStatusRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required)

func NewGetBuildStatusRequestWithoutParam

func NewGetBuildStatusRequestWithoutParam() *GetBuildStatusRequest

This constructor has better compatible ability when API parameters changed

func (GetBuildStatusRequest) GetRegionId

func (r GetBuildStatusRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetBuildStatusRequest) SetId

func (r *GetBuildStatusRequest) SetId(id string)

param id: 构建任务uuid(Required)

func (*GetBuildStatusRequest) SetJobid

func (r *GetBuildStatusRequest) SetJobid(jobid string)

param jobid: job uuid(Required)

func (*GetBuildStatusRequest) SetRegionId

func (r *GetBuildStatusRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type GetBuildStatusResponse

type GetBuildStatusResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    GetBuildStatusResult `json:"result"`
}

type GetBuildStatusResult

type GetBuildStatusResult struct {
	Name           string  `json:"name"`
	CreatedAt      int     `json:"createdAt"`
	Status         string  `json:"status"`
	CompletionRate float32 `json:"completionRate"`
}

type GetExternalLinkRequest

type GetExternalLinkRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* job uuid  */
	Jobid string `json:"jobid"`

	/* 构建任务uuid  */
	Id string `json:"id"`

	/* 过期时间,单位秒, 默认1800秒 (Optional) */
	Expires *int `json:"expires"`
}

func NewGetExternalLinkRequest

func NewGetExternalLinkRequest(
	regionId string,
	jobid string,
	id string,
) *GetExternalLinkRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetExternalLinkRequestWithAllParams

func NewGetExternalLinkRequestWithAllParams(
	regionId string,
	jobid string,
	id string,
	expires *int,
) *GetExternalLinkRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required) * param expires: 过期时间,单位秒, 默认1800秒 (Optional)

func NewGetExternalLinkRequestWithoutParam

func NewGetExternalLinkRequestWithoutParam() *GetExternalLinkRequest

This constructor has better compatible ability when API parameters changed

func (GetExternalLinkRequest) GetRegionId

func (r GetExternalLinkRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetExternalLinkRequest) SetExpires

func (r *GetExternalLinkRequest) SetExpires(expires int)

param expires: 过期时间,单位秒, 默认1800秒(Optional)

func (*GetExternalLinkRequest) SetId

func (r *GetExternalLinkRequest) SetId(id string)

param id: 构建任务uuid(Required)

func (*GetExternalLinkRequest) SetJobid

func (r *GetExternalLinkRequest) SetJobid(jobid string)

param jobid: job uuid(Required)

func (*GetExternalLinkRequest) SetRegionId

func (r *GetExternalLinkRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type GetExternalLinkResponse

type GetExternalLinkResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    GetExternalLinkResult `json:"result"`
}

type GetExternalLinkResult

type GetExternalLinkResult struct {
	Url   string `json:"url"`
	Token string `json:"token"`
}

type GetJobRequest

type GetJobRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Job uuid  */
	Id string `json:"id"`
}

func NewGetJobRequest

func NewGetJobRequest(
	regionId string,
	id string,
) *GetJobRequest

* param regionId: Region ID (Required) * param id: Job uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetJobRequestWithAllParams

func NewGetJobRequestWithAllParams(
	regionId string,
	id string,
) *GetJobRequest

* param regionId: Region ID (Required) * param id: Job uuid (Required)

func NewGetJobRequestWithoutParam

func NewGetJobRequestWithoutParam() *GetJobRequest

This constructor has better compatible ability when API parameters changed

func (GetJobRequest) GetRegionId

func (r GetJobRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetJobRequest) SetId

func (r *GetJobRequest) SetId(id string)

param id: Job uuid(Required)

func (*GetJobRequest) SetRegionId

func (r *GetJobRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type GetJobResponse

type GetJobResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    GetJobResult       `json:"result"`
}

type GetJobResult

type GetJobResult struct {
	Job compile.Job `json:"job"`
}

type GetJobsRequest

type GetJobsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 对某一列排序 (Optional) */
	Sorts []common.Sort `json:"sorts"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* 编译任务名 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewGetJobsRequest

func NewGetJobsRequest(
	regionId string,
) *GetJobsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetJobsRequestWithAllParams

func NewGetJobsRequestWithAllParams(
	regionId string,
	sorts []common.Sort,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *GetJobsRequest

* param regionId: Region ID (Required) * param sorts: 对某一列排序 (Optional) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为10;取值范围[10, 100] (Optional) * param filters: 编译任务名 (Optional)

func NewGetJobsRequestWithoutParam

func NewGetJobsRequestWithoutParam() *GetJobsRequest

This constructor has better compatible ability when API parameters changed

func (GetJobsRequest) GetRegionId

func (r GetJobsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetJobsRequest) SetFilters

func (r *GetJobsRequest) SetFilters(filters []common.Filter)

param filters: 编译任务名(Optional)

func (*GetJobsRequest) SetPageNumber

func (r *GetJobsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*GetJobsRequest) SetPageSize

func (r *GetJobsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[10, 100](Optional)

func (*GetJobsRequest) SetRegionId

func (r *GetJobsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*GetJobsRequest) SetSorts

func (r *GetJobsRequest) SetSorts(sorts []common.Sort)

param sorts: 对某一列排序(Optional)

type GetJobsResponse

type GetJobsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    GetJobsResult      `json:"result"`
}

type GetJobsResult

type GetJobsResult struct {
	TotalCount int                 `json:"totalCount"`
	Jobs       []compile.SimpleJob `json:"jobs"`
	RequestId  string              `json:"requestId"`
}

type StartJobRequest

type StartJobRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Job uuid  */
	Id string `json:"id"`

	/* 类型branch/commit/tag (Optional) */
	Category *string `json:"category"`

	/* 类型对应的值 (Optional) */
	Branch *string `json:"branch"`
}

func NewStartJobRequest

func NewStartJobRequest(
	regionId string,
	id string,
) *StartJobRequest

* param regionId: Region ID (Required) * param id: Job uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewStartJobRequestWithAllParams

func NewStartJobRequestWithAllParams(
	regionId string,
	id string,
	category *string,
	branch *string,
) *StartJobRequest

* param regionId: Region ID (Required) * param id: Job uuid (Required) * param category: 类型branch/commit/tag (Optional) * param branch: 类型对应的值 (Optional)

func NewStartJobRequestWithoutParam

func NewStartJobRequestWithoutParam() *StartJobRequest

This constructor has better compatible ability when API parameters changed

func (StartJobRequest) GetRegionId

func (r StartJobRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*StartJobRequest) SetBranch

func (r *StartJobRequest) SetBranch(branch string)

param branch: 类型对应的值(Optional)

func (*StartJobRequest) SetCategory

func (r *StartJobRequest) SetCategory(category string)

param category: 类型branch/commit/tag(Optional)

func (*StartJobRequest) SetId

func (r *StartJobRequest) SetId(id string)

param id: Job uuid(Required)

func (*StartJobRequest) SetRegionId

func (r *StartJobRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type StartJobResponse

type StartJobResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    StartJobResult     `json:"result"`
}

type StartJobResult

type StartJobResult struct {
	Commitresult bool   `json:"commitresult"`
	BuildUuid    string `json:"buildUuid"`
}

type StopBuildRequest

type StopBuildRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* job uuid  */
	Jobid string `json:"jobid"`

	/* 构建任务uuid  */
	Id string `json:"id"`
}

func NewStopBuildRequest

func NewStopBuildRequest(
	regionId string,
	jobid string,
	id string,
) *StopBuildRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewStopBuildRequestWithAllParams

func NewStopBuildRequestWithAllParams(
	regionId string,
	jobid string,
	id string,
) *StopBuildRequest

* param regionId: Region ID (Required) * param jobid: job uuid (Required) * param id: 构建任务uuid (Required)

func NewStopBuildRequestWithoutParam

func NewStopBuildRequestWithoutParam() *StopBuildRequest

This constructor has better compatible ability when API parameters changed

func (StopBuildRequest) GetRegionId

func (r StopBuildRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*StopBuildRequest) SetId

func (r *StopBuildRequest) SetId(id string)

param id: 构建任务uuid(Required)

func (*StopBuildRequest) SetJobid

func (r *StopBuildRequest) SetJobid(jobid string)

param jobid: job uuid(Required)

func (*StopBuildRequest) SetRegionId

func (r *StopBuildRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type StopBuildResponse

type StopBuildResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    StopBuildResult    `json:"result"`
}

type StopBuildResult

type StopBuildResult struct {
	Id     string `json:"id"`
	Result bool   `json:"result"`
}

type UpdateJobRequest

type UpdateJobRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* job uuid  */
	Id string `json:"id"`

	/*  (Optional) */
	Data *compile.JobRequest `json:"data"`
}

func NewUpdateJobRequest

func NewUpdateJobRequest(
	regionId string,
	id string,
) *UpdateJobRequest

* param regionId: Region ID (Required) * param id: job uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateJobRequestWithAllParams

func NewUpdateJobRequestWithAllParams(
	regionId string,
	id string,
	data *compile.JobRequest,
) *UpdateJobRequest

* param regionId: Region ID (Required) * param id: job uuid (Required) * param data: (Optional)

func NewUpdateJobRequestWithoutParam

func NewUpdateJobRequestWithoutParam() *UpdateJobRequest

This constructor has better compatible ability when API parameters changed

func (UpdateJobRequest) GetRegionId

func (r UpdateJobRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateJobRequest) SetData

func (r *UpdateJobRequest) SetData(data *compile.JobRequest)

param data: (Optional)

func (*UpdateJobRequest) SetId

func (r *UpdateJobRequest) SetId(id string)

param id: job uuid(Required)

func (*UpdateJobRequest) SetRegionId

func (r *UpdateJobRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type UpdateJobResponse

type UpdateJobResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    UpdateJobResult    `json:"result"`
}

type UpdateJobResult

type UpdateJobResult struct {
	Id               string `json:"id"`
	CodeRepoUrlLabel string `json:"codeRepoUrlLabel"`
	Result           bool   `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL