ehpc

package
v1.63.46 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap added in v1.61.31

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType added in v1.61.31

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty added in v1.61.31

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient added in v1.61.31

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type AddImageContainerImageSpec added in v1.62.714

type AddImageContainerImageSpec struct {
	IsACREnterprise    string                                       `name:"IsACREnterprise"`
	RegistryUrl        string                                       `name:"RegistryUrl"`
	RegistryCredential AddImageContainerImageSpecRegistryCredential `name:"RegistryCredential" type:"Struct"`
	RegistryCriId      string                                       `name:"RegistryCriId"`
	IsACRRegistry      string                                       `name:"IsACRRegistry"`
}

AddImageContainerImageSpec is a repeated param struct in AddImageRequest

type AddImageContainerImageSpecRegistryCredential added in v1.62.714

type AddImageContainerImageSpecRegistryCredential struct {
	Server   string `name:"Server"`
	Password string `name:"Password"`
	UserName string `name:"UserName"`
}

AddImageContainerImageSpecRegistryCredential is a repeated param struct in AddImageRequest

type AddImageRequest added in v1.62.714

type AddImageRequest struct {
	*requests.RpcRequest
	ImageType          string                     `position:"Query" name:"ImageType"`
	Description        string                     `position:"Query" name:"Description"`
	Name               string                     `position:"Query" name:"Name"`
	ImageVersion       string                     `position:"Query" name:"ImageVersion"`
	ContainerImageSpec AddImageContainerImageSpec `position:"Query" name:"ContainerImageSpec"  type:"Struct"`
	VMImageSpec        AddImageVMImageSpec        `position:"Query" name:"VMImageSpec"  type:"Struct"`
}

AddImageRequest is the request struct for api AddImage

func CreateAddImageRequest added in v1.62.714

func CreateAddImageRequest() (request *AddImageRequest)

CreateAddImageRequest creates a request to invoke AddImage API

type AddImageResponse added in v1.62.714

type AddImageResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	ImageId   string `json:"ImageId" xml:"ImageId"`
	AppId     string `json:"AppId" xml:"AppId"`
}

AddImageResponse is the response struct for api AddImage

func CreateAddImageResponse added in v1.62.714

func CreateAddImageResponse() (response *AddImageResponse)

CreateAddImageResponse creates a response to parse from AddImage response

type AddImageVMImageSpec added in v1.62.714

type AddImageVMImageSpec struct {
	ImageId string `name:"ImageId"`
}

AddImageVMImageSpec is a repeated param struct in AddImageRequest

type ArraySpec added in v1.62.714

type ArraySpec struct {
	IndexStart int `json:"IndexStart" xml:"IndexStart"`
	IndexEnd   int `json:"IndexEnd" xml:"IndexEnd"`
	IndexStep  int `json:"IndexStep" xml:"IndexStep"`
}

ArraySpec is a nested struct in ehpc response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) AddImage added in v1.62.714

func (client *Client) AddImage(request *AddImageRequest) (response *AddImageResponse, err error)

AddImage invokes the ehpc.AddImage API synchronously

func (*Client) AddImageWithCallback added in v1.62.714

func (client *Client) AddImageWithCallback(request *AddImageRequest, callback func(response *AddImageResponse, err error)) <-chan int

AddImageWithCallback invokes the ehpc.AddImage API asynchronously

func (*Client) AddImageWithChan added in v1.62.714

func (client *Client) AddImageWithChan(request *AddImageRequest) (<-chan *AddImageResponse, <-chan error)

AddImageWithChan invokes the ehpc.AddImage API asynchronously

func (*Client) CreateJob added in v1.62.714

func (client *Client) CreateJob(request *CreateJobRequest) (response *CreateJobResponse, err error)

CreateJob invokes the ehpc.CreateJob API synchronously

func (*Client) CreateJobWithCallback added in v1.62.714

func (client *Client) CreateJobWithCallback(request *CreateJobRequest, callback func(response *CreateJobResponse, err error)) <-chan int

CreateJobWithCallback invokes the ehpc.CreateJob API asynchronously

func (*Client) CreateJobWithChan added in v1.62.714

func (client *Client) CreateJobWithChan(request *CreateJobRequest) (<-chan *CreateJobResponse, <-chan error)

CreateJobWithChan invokes the ehpc.CreateJob API asynchronously

func (*Client) DeleteJobs

func (client *Client) DeleteJobs(request *DeleteJobsRequest) (response *DeleteJobsResponse, err error)

DeleteJobs invokes the ehpc.DeleteJobs API synchronously

func (*Client) DeleteJobsWithCallback

func (client *Client) DeleteJobsWithCallback(request *DeleteJobsRequest, callback func(response *DeleteJobsResponse, err error)) <-chan int

DeleteJobsWithCallback invokes the ehpc.DeleteJobs API asynchronously

func (*Client) DeleteJobsWithChan

func (client *Client) DeleteJobsWithChan(request *DeleteJobsRequest) (<-chan *DeleteJobsResponse, <-chan error)

DeleteJobsWithChan invokes the ehpc.DeleteJobs API asynchronously

func (*Client) DescribeJobMetricData added in v1.62.714

func (client *Client) DescribeJobMetricData(request *DescribeJobMetricDataRequest) (response *DescribeJobMetricDataResponse, err error)

DescribeJobMetricData invokes the ehpc.DescribeJobMetricData API synchronously

func (*Client) DescribeJobMetricDataWithCallback added in v1.62.714

func (client *Client) DescribeJobMetricDataWithCallback(request *DescribeJobMetricDataRequest, callback func(response *DescribeJobMetricDataResponse, err error)) <-chan int

DescribeJobMetricDataWithCallback invokes the ehpc.DescribeJobMetricData API asynchronously

func (*Client) DescribeJobMetricDataWithChan added in v1.62.714

func (client *Client) DescribeJobMetricDataWithChan(request *DescribeJobMetricDataRequest) (<-chan *DescribeJobMetricDataResponse, <-chan error)

DescribeJobMetricDataWithChan invokes the ehpc.DescribeJobMetricData API asynchronously

func (*Client) DescribeJobMetricLast added in v1.62.714

func (client *Client) DescribeJobMetricLast(request *DescribeJobMetricLastRequest) (response *DescribeJobMetricLastResponse, err error)

DescribeJobMetricLast invokes the ehpc.DescribeJobMetricLast API synchronously

func (*Client) DescribeJobMetricLastWithCallback added in v1.62.714

func (client *Client) DescribeJobMetricLastWithCallback(request *DescribeJobMetricLastRequest, callback func(response *DescribeJobMetricLastResponse, err error)) <-chan int

DescribeJobMetricLastWithCallback invokes the ehpc.DescribeJobMetricLast API asynchronously

func (*Client) DescribeJobMetricLastWithChan added in v1.62.714

func (client *Client) DescribeJobMetricLastWithChan(request *DescribeJobMetricLastRequest) (<-chan *DescribeJobMetricLastResponse, <-chan error)

DescribeJobMetricLastWithChan invokes the ehpc.DescribeJobMetricLast API asynchronously

func (*Client) GetImage added in v1.62.714

func (client *Client) GetImage(request *GetImageRequest) (response *GetImageResponse, err error)

GetImage invokes the ehpc.GetImage API synchronously

func (*Client) GetImageWithCallback added in v1.62.714

func (client *Client) GetImageWithCallback(request *GetImageRequest, callback func(response *GetImageResponse, err error)) <-chan int

GetImageWithCallback invokes the ehpc.GetImage API asynchronously

func (*Client) GetImageWithChan added in v1.62.714

func (client *Client) GetImageWithChan(request *GetImageRequest) (<-chan *GetImageResponse, <-chan error)

GetImageWithChan invokes the ehpc.GetImage API asynchronously

func (*Client) GetJob added in v1.62.714

func (client *Client) GetJob(request *GetJobRequest) (response *GetJobResponse, err error)

GetJob invokes the ehpc.GetJob API synchronously

func (*Client) GetJobWithCallback added in v1.62.714

func (client *Client) GetJobWithCallback(request *GetJobRequest, callback func(response *GetJobResponse, err error)) <-chan int

GetJobWithCallback invokes the ehpc.GetJob API asynchronously

func (*Client) GetJobWithChan added in v1.62.714

func (client *Client) GetJobWithChan(request *GetJobRequest) (<-chan *GetJobResponse, <-chan error)

GetJobWithChan invokes the ehpc.GetJob API asynchronously

func (*Client) ListExecutors added in v1.62.714

func (client *Client) ListExecutors(request *ListExecutorsRequest) (response *ListExecutorsResponse, err error)

ListExecutors invokes the ehpc.ListExecutors API synchronously

func (*Client) ListExecutorsWithCallback added in v1.62.714

func (client *Client) ListExecutorsWithCallback(request *ListExecutorsRequest, callback func(response *ListExecutorsResponse, err error)) <-chan int

ListExecutorsWithCallback invokes the ehpc.ListExecutors API asynchronously

func (*Client) ListExecutorsWithChan added in v1.62.714

func (client *Client) ListExecutorsWithChan(request *ListExecutorsRequest) (<-chan *ListExecutorsResponse, <-chan error)

ListExecutorsWithChan invokes the ehpc.ListExecutors API asynchronously

func (*Client) ListImages

func (client *Client) ListImages(request *ListImagesRequest) (response *ListImagesResponse, err error)

ListImages invokes the ehpc.ListImages API synchronously

func (*Client) ListImagesWithCallback

func (client *Client) ListImagesWithCallback(request *ListImagesRequest, callback func(response *ListImagesResponse, err error)) <-chan int

ListImagesWithCallback invokes the ehpc.ListImages API asynchronously

func (*Client) ListImagesWithChan

func (client *Client) ListImagesWithChan(request *ListImagesRequest) (<-chan *ListImagesResponse, <-chan error)

ListImagesWithChan invokes the ehpc.ListImages API asynchronously

func (*Client) ListJobExecutors added in v1.62.714

func (client *Client) ListJobExecutors(request *ListJobExecutorsRequest) (response *ListJobExecutorsResponse, err error)

ListJobExecutors invokes the ehpc.ListJobExecutors API synchronously

func (*Client) ListJobExecutorsWithCallback added in v1.62.714

func (client *Client) ListJobExecutorsWithCallback(request *ListJobExecutorsRequest, callback func(response *ListJobExecutorsResponse, err error)) <-chan int

ListJobExecutorsWithCallback invokes the ehpc.ListJobExecutors API asynchronously

func (*Client) ListJobExecutorsWithChan added in v1.62.714

func (client *Client) ListJobExecutorsWithChan(request *ListJobExecutorsRequest) (<-chan *ListJobExecutorsResponse, <-chan error)

ListJobExecutorsWithChan invokes the ehpc.ListJobExecutors API asynchronously

func (*Client) ListJobs

func (client *Client) ListJobs(request *ListJobsRequest) (response *ListJobsResponse, err error)

ListJobs invokes the ehpc.ListJobs API synchronously

func (*Client) ListJobsWithCallback

func (client *Client) ListJobsWithCallback(request *ListJobsRequest, callback func(response *ListJobsResponse, err error)) <-chan int

ListJobsWithCallback invokes the ehpc.ListJobs API asynchronously

func (*Client) ListJobsWithChan

func (client *Client) ListJobsWithChan(request *ListJobsRequest) (<-chan *ListJobsResponse, <-chan error)

ListJobsWithChan invokes the ehpc.ListJobs API asynchronously

func (*Client) RemoveImage added in v1.62.714

func (client *Client) RemoveImage(request *RemoveImageRequest) (response *RemoveImageResponse, err error)

RemoveImage invokes the ehpc.RemoveImage API synchronously

func (*Client) RemoveImageWithCallback added in v1.62.714

func (client *Client) RemoveImageWithCallback(request *RemoveImageRequest, callback func(response *RemoveImageResponse, err error)) <-chan int

RemoveImageWithCallback invokes the ehpc.RemoveImage API asynchronously

func (*Client) RemoveImageWithChan added in v1.62.714

func (client *Client) RemoveImageWithChan(request *RemoveImageRequest) (<-chan *RemoveImageResponse, <-chan error)

RemoveImageWithChan invokes the ehpc.RemoveImage API asynchronously

type Container added in v1.62.444

type Container struct {
	Image           string           `json:"Image" xml:"Image"`
	WorkingDir      string           `json:"WorkingDir" xml:"WorkingDir"`
	Command         string           `json:"Command" xml:"Command"`
	AppId           string           `json:"AppId" xml:"AppId"`
	EnvironmentVars []EnvironmentVar `json:"EnvironmentVars" xml:"EnvironmentVars"`
}

Container is a nested struct in ehpc response

type ContainerImageSpec added in v1.62.714

type ContainerImageSpec struct {
	RegistryUrl        string             `json:"RegistryUrl" xml:"RegistryUrl"`
	IsACRRegistry      bool               `json:"IsACRRegistry" xml:"IsACRRegistry"`
	IsACREnterprise    bool               `json:"IsACREnterprise" xml:"IsACREnterprise"`
	RegistryCriId      string             `json:"RegistryCriId" xml:"RegistryCriId"`
	RegistryCredential RegistryCredential `json:"RegistryCredential" xml:"RegistryCredential"`
}

ContainerImageSpec is a nested struct in ehpc response

type CreateJobDeploymentPolicy added in v1.62.714

type CreateJobDeploymentPolicy struct {
	AllocationSpec string                           `name:"AllocationSpec"`
	Network        CreateJobDeploymentPolicyNetwork `name:"Network" type:"Struct"`
}

CreateJobDeploymentPolicy is a repeated param struct in CreateJobRequest

type CreateJobDeploymentPolicyNetwork added in v1.62.714

type CreateJobDeploymentPolicyNetwork struct {
	EnableERI        string    `name:"EnableERI"`
	Vswitch          *[]string `name:"Vswitch" type:"Repeated"`
	EnableENIMapping string    `name:"EnableENIMapping"`
}

CreateJobDeploymentPolicyNetwork is a repeated param struct in CreateJobRequest

type CreateJobMonitorPolicy added in v1.62.714

type CreateJobMonitorPolicy struct {
	NotificationSpec CreateJobMonitorPolicyNotificationSpec `name:"NotificationSpec" type:"Struct"`
}

CreateJobMonitorPolicy is a repeated param struct in CreateJobRequest

type CreateJobMonitorPolicyNotificationSpec added in v1.62.714

type CreateJobMonitorPolicyNotificationSpec struct {
	MNSTopic *[]CreateJobMonitorPolicyNotificationSpecMNSTopicItem `name:"MNSTopic" type:"Repeated"`
}

CreateJobMonitorPolicyNotificationSpec is a repeated param struct in CreateJobRequest

type CreateJobMonitorPolicyNotificationSpecMNSTopicItem added in v1.62.714

type CreateJobMonitorPolicyNotificationSpecMNSTopicItem struct {
	Event         *[]string `name:"Event" type:"Repeated"`
	TopicLocation string    `name:"TopicLocation"`
}

CreateJobMonitorPolicyNotificationSpecMNSTopicItem is a repeated param struct in CreateJobRequest

type CreateJobRequest added in v1.62.714

type CreateJobRequest struct {
	*requests.RpcRequest
	MonitorPolicy    CreateJobMonitorPolicy    `position:"Query" name:"MonitorPolicy"  type:"Struct"`
	JobDescription   string                    `position:"Query" name:"JobDescription"`
	DeploymentPolicy CreateJobDeploymentPolicy `position:"Query" name:"DeploymentPolicy"  type:"Struct"`
	JobName          string                    `position:"Query" name:"JobName"`
	Tasks            *[]CreateJobTasks         `position:"Query" name:"Tasks"  type:"Json"`
}

CreateJobRequest is the request struct for api CreateJob

func CreateCreateJobRequest added in v1.62.714

func CreateCreateJobRequest() (request *CreateJobRequest)

CreateCreateJobRequest creates a request to invoke CreateJob API

type CreateJobResponse added in v1.62.714

type CreateJobResponse struct {
	*responses.BaseResponse
	RequestId string      `json:"RequestId" xml:"RequestId"`
	JobId     string      `json:"JobId" xml:"JobId"`
	Tasks     []TasksItem `json:"Tasks" xml:"Tasks"`
}

CreateJobResponse is the response struct for api CreateJob

func CreateCreateJobResponse added in v1.62.714

func CreateCreateJobResponse() (response *CreateJobResponse)

CreateCreateJobResponse creates a response to parse from CreateJob response

type CreateJobTasks added in v1.62.714

type CreateJobTasks struct {
	TaskSustainable string                       `name:"TaskSustainable"`
	TaskName        string                       `name:"TaskName"`
	ExecutorPolicy  CreateJobTasksExecutorPolicy `name:"ExecutorPolicy" type:"Struct"`
	TaskSpec        CreateJobTasksTaskSpec       `name:"TaskSpec" type:"Struct"`
}

CreateJobTasks is a repeated param struct in CreateJobRequest

type CreateJobTasksExecutorPolicy added in v1.62.714

type CreateJobTasksExecutorPolicy struct {
	MaxCount  string                                `name:"MaxCount"`
	ArraySpec CreateJobTasksExecutorPolicyArraySpec `name:"ArraySpec" type:"Struct"`
}

CreateJobTasksExecutorPolicy is a repeated param struct in CreateJobRequest

type CreateJobTasksExecutorPolicyArraySpec added in v1.62.714

type CreateJobTasksExecutorPolicyArraySpec struct {
	IndexStart string `name:"IndexStart"`
	IndexStep  string `name:"IndexStep"`
	IndexEnd   string `name:"IndexEnd"`
}

CreateJobTasksExecutorPolicyArraySpec is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpec added in v1.62.714

type CreateJobTasksTaskSpec struct {
	VolumeMount  *[]CreateJobTasksTaskSpecVolumeMountItem  `name:"VolumeMount" type:"Repeated"`
	RetryPolicy  CreateJobTasksTaskSpecRetryPolicy         `name:"RetryPolicy" type:"Struct"`
	Resource     CreateJobTasksTaskSpecResource            `name:"Resource" type:"Struct"`
	TaskDuration string                                    `name:"TaskDuration"`
	TaskExecutor *[]CreateJobTasksTaskSpecTaskExecutorItem `name:"TaskExecutor" type:"Repeated"`
}

CreateJobTasksTaskSpec is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecResource added in v1.62.714

type CreateJobTasksTaskSpecResource struct {
	Cores    string                                     `name:"Cores"`
	Memory   string                                     `name:"Memory"`
	Disks    *[]CreateJobTasksTaskSpecResourceDisksItem `name:"Disks" type:"Repeated"`
	EnableHT string                                     `name:"EnableHT"`
}

CreateJobTasksTaskSpecResource is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecResourceDisksItem added in v1.62.714

type CreateJobTasksTaskSpecResourceDisksItem struct {
	Size string `name:"Size"`
	Type string `name:"Type"`
}

CreateJobTasksTaskSpecResourceDisksItem is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecRetryPolicy added in v1.62.714

type CreateJobTasksTaskSpecRetryPolicy struct {
	RetryCount      string                                                  `name:"RetryCount"`
	ExitCodeActions *[]CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem `name:"ExitCodeActions" type:"Repeated"`
}

CreateJobTasksTaskSpecRetryPolicy is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem added in v1.62.714

type CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem struct {
	Action   string `name:"Action"`
	ExitCode string `name:"ExitCode"`
}

CreateJobTasksTaskSpecRetryPolicyExitCodeActionsItem is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecTaskExecutorItem added in v1.62.714

type CreateJobTasksTaskSpecTaskExecutorItem struct {
	Container CreateJobTasksTaskSpecTaskExecutorItemContainer `name:"Container" type:"Struct"`
	VM        CreateJobTasksTaskSpecTaskExecutorItemVM        `name:"VM" type:"Struct"`
}

CreateJobTasksTaskSpecTaskExecutorItem is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecTaskExecutorItemContainer added in v1.62.714

type CreateJobTasksTaskSpecTaskExecutorItemContainer struct {
	Image           string                                                                `name:"Image"`
	EnvironmentVars *[]CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem `name:"EnvironmentVars" type:"Repeated"`
	WorkingDir      string                                                                `name:"WorkingDir"`
	Command         *[]string                                                             `name:"Command" type:"Repeated"`
}

CreateJobTasksTaskSpecTaskExecutorItemContainer is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem added in v1.62.714

type CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem struct {
	Name  string `name:"Name"`
	Value string `name:"Value"`
}

CreateJobTasksTaskSpecTaskExecutorItemContainerEnvironmentVarsItem is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecTaskExecutorItemVM added in v1.62.714

type CreateJobTasksTaskSpecTaskExecutorItemVM struct {
	Image           string                                                         `name:"Image"`
	PrologScript    string                                                         `name:"PrologScript"`
	EnvironmentVars *[]CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem `name:"EnvironmentVars" type:"Repeated"`
	Script          string                                                         `name:"Script"`
}

CreateJobTasksTaskSpecTaskExecutorItemVM is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem added in v1.62.714

type CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem struct {
	Name  string `name:"Name"`
	Value string `name:"Value"`
}

CreateJobTasksTaskSpecTaskExecutorItemVMEnvironmentVarsItem is a repeated param struct in CreateJobRequest

type CreateJobTasksTaskSpecVolumeMountItem added in v1.62.714

type CreateJobTasksTaskSpecVolumeMountItem struct {
	MountOptions string `name:"MountOptions"`
	VolumeDriver string `name:"VolumeDriver"`
	MountPath    string `name:"MountPath"`
}

CreateJobTasksTaskSpecVolumeMountItem is a repeated param struct in CreateJobRequest

type DeleteJobsJobSpec added in v1.62.714

type DeleteJobsJobSpec struct {
	JobId    string                           `name:"JobId"`
	TaskSpec *[]DeleteJobsJobSpecTaskSpecItem `name:"TaskSpec" type:"Repeated"`
}

DeleteJobsJobSpec is a repeated param struct in DeleteJobsRequest

type DeleteJobsJobSpecTaskSpecItem added in v1.62.714

type DeleteJobsJobSpecTaskSpecItem struct {
	TaskName   string    `name:"TaskName"`
	ArrayIndex *[]string `name:"ArrayIndex" type:"Repeated"`
}

DeleteJobsJobSpecTaskSpecItem is a repeated param struct in DeleteJobsRequest

type DeleteJobsRequest

type DeleteJobsRequest struct {
	*requests.RpcRequest
	JobSpec     *[]DeleteJobsJobSpec `position:"Query" name:"JobSpec"  type:"Json"`
	ExecutorIds *[]string            `position:"Query" name:"ExecutorIds"  type:"Json"`
}

DeleteJobsRequest is the request struct for api DeleteJobs

func CreateDeleteJobsRequest

func CreateDeleteJobsRequest() (request *DeleteJobsRequest)

CreateDeleteJobsRequest creates a request to invoke DeleteJobs API

type DeleteJobsResponse

type DeleteJobsResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

DeleteJobsResponse is the response struct for api DeleteJobs

func CreateDeleteJobsResponse

func CreateDeleteJobsResponse() (response *DeleteJobsResponse)

CreateDeleteJobsResponse creates a response to parse from DeleteJobs response

type DependencyPolicy added in v1.62.714

type DependencyPolicy struct {
	JobDependency []JobDependencyItem `json:"JobDependency" xml:"JobDependency"`
}

DependencyPolicy is a nested struct in ehpc response

type DeploymentPolicy added in v1.62.714

type DeploymentPolicy struct {
	AllocationSpec string  `json:"AllocationSpec" xml:"AllocationSpec"`
	Network        Network `json:"Network" xml:"Network"`
	Tags           []Tag   `json:"Tags" xml:"Tags"`
}

DeploymentPolicy is a nested struct in ehpc response

type DescribeJobMetricDataRequest added in v1.62.714

type DescribeJobMetricDataRequest struct {
	*requests.RpcRequest
	TaskName   string    `position:"Query" name:"TaskName"`
	JobId      string    `position:"Query" name:"JobId"`
	MetricName string    `position:"Query" name:"MetricName"`
	ArrayIndex *[]string `position:"Query" name:"ArrayIndex"  type:"Json"`
}

DescribeJobMetricDataRequest is the request struct for api DescribeJobMetricData

func CreateDescribeJobMetricDataRequest added in v1.62.714

func CreateDescribeJobMetricDataRequest() (request *DescribeJobMetricDataRequest)

CreateDescribeJobMetricDataRequest creates a request to invoke DescribeJobMetricData API

type DescribeJobMetricDataResponse added in v1.62.714

type DescribeJobMetricDataResponse struct {
	*responses.BaseResponse
	RequestId  string `json:"RequestId" xml:"RequestId"`
	Period     int    `json:"Period" xml:"Period"`
	DataPoints string `json:"DataPoints" xml:"DataPoints"`
}

DescribeJobMetricDataResponse is the response struct for api DescribeJobMetricData

func CreateDescribeJobMetricDataResponse added in v1.62.714

func CreateDescribeJobMetricDataResponse() (response *DescribeJobMetricDataResponse)

CreateDescribeJobMetricDataResponse creates a response to parse from DescribeJobMetricData response

type DescribeJobMetricLastRequest added in v1.62.714

type DescribeJobMetricLastRequest struct {
	*requests.RpcRequest
	TaskName   string    `position:"Query" name:"TaskName"`
	JobId      string    `position:"Query" name:"JobId"`
	ArrayIndex *[]string `position:"Query" name:"ArrayIndex"  type:"Json"`
}

DescribeJobMetricLastRequest is the request struct for api DescribeJobMetricLast

func CreateDescribeJobMetricLastRequest added in v1.62.714

func CreateDescribeJobMetricLastRequest() (request *DescribeJobMetricLastRequest)

CreateDescribeJobMetricLastRequest creates a request to invoke DescribeJobMetricLast API

type DescribeJobMetricLastResponse added in v1.62.714

type DescribeJobMetricLastResponse struct {
	*responses.BaseResponse
	RequestId string       `json:"RequestId" xml:"RequestId"`
	Metrics   []MetricInfo `json:"Metrics" xml:"Metrics"`
}

DescribeJobMetricLastResponse is the response struct for api DescribeJobMetricLast

func CreateDescribeJobMetricLastResponse added in v1.62.714

func CreateDescribeJobMetricLastResponse() (response *DescribeJobMetricLastResponse)

CreateDescribeJobMetricLastResponse creates a response to parse from DescribeJobMetricLast response

type Disk added in v1.62.714

type Disk struct {
	Type string `json:"Type" xml:"Type"`
	Size int    `json:"Size" xml:"Size"`
}

Disk is a nested struct in ehpc response

type Disks added in v1.62.714

type Disks struct {
	Disk []Disk `json:"Disk" xml:"Disk"`
}

Disks is a nested struct in ehpc response

type EnvironmentVar added in v1.62.444

type EnvironmentVar struct {
	Name  string `json:"Name" xml:"Name"`
	Value string `json:"Value" xml:"Value"`
}

EnvironmentVar is a nested struct in ehpc response

type EnvironmentVarsInGetJob added in v1.62.714

type EnvironmentVarsInGetJob struct {
	EnvironmentVar []EnvironmentVar `json:"EnvironmentVar" xml:"EnvironmentVar"`
}

EnvironmentVarsInGetJob is a nested struct in ehpc response

type Event added in v1.62.444

type Event struct {
	Event []string `json:"Event" xml:"Event"`
}

Event is a nested struct in ehpc response

type Executor added in v1.62.714

type Executor struct {
	JobId        string   `json:"JobId" xml:"JobId"`
	StatusReason string   `json:"StatusReason" xml:"StatusReason"`
	EndTime      string   `json:"EndTime" xml:"EndTime"`
	TaskName     string   `json:"TaskName" xml:"TaskName"`
	CreateTime   string   `json:"CreateTime" xml:"CreateTime"`
	ExecutorId   string   `json:"ExecutorId" xml:"ExecutorId"`
	Status       string   `json:"Status" xml:"Status"`
	JobName      string   `json:"JobName" xml:"JobName"`
	ArrayIndex   int      `json:"ArrayIndex" xml:"ArrayIndex"`
	HostName     []string `json:"HostName" xml:"HostName"`
	IpAddress    []string `json:"IpAddress" xml:"IpAddress"`
}

Executor is a nested struct in ehpc response

type ExecutorIds added in v1.62.736

type ExecutorIds struct {
	ExecutorIds []string `json:"ExecutorIds" xml:"ExecutorIds"`
}

ExecutorIds is a nested struct in ehpc response

type ExecutorPolicy added in v1.62.714

type ExecutorPolicy struct {
	MaxCount    int       `json:"MaxCount" xml:"MaxCount"`
	Parallelism int       `json:"Parallelism" xml:"Parallelism"`
	ArraySpec   ArraySpec `json:"ArraySpec" xml:"ArraySpec"`
}

ExecutorPolicy is a nested struct in ehpc response

type ExecutorStatus added in v1.62.714

type ExecutorStatus struct {
	ExecutorStatusItem []ExecutorStatusItem `json:"ExecutorStatus" xml:"ExecutorStatus"`
}

ExecutorStatus is a nested struct in ehpc response

type ExecutorStatusItem added in v1.62.714

type ExecutorStatusItem struct {
	ArrayId      int    `json:"ArrayId" xml:"ArrayId"`
	Status       string `json:"Status" xml:"Status"`
	StatusReason string `json:"StatusReason" xml:"StatusReason"`
	CreateTime   string `json:"CreateTime" xml:"CreateTime"`
	StartTime    string `json:"StartTime" xml:"StartTime"`
	EndTime      string `json:"EndTime" xml:"EndTime"`
}

ExecutorStatusItem is a nested struct in ehpc response

type ExecutorsInListExecutors added in v1.62.714

type ExecutorsInListExecutors struct {
	Executor []Executor `json:"Executor" xml:"Executor"`
}

ExecutorsInListExecutors is a nested struct in ehpc response

type ExecutorsInListJobExecutors added in v1.62.714

type ExecutorsInListJobExecutors struct {
	Executor []Executor `json:"Executor" xml:"Executor"`
}

ExecutorsInListJobExecutors is a nested struct in ehpc response

type ExitCodeAction added in v1.62.714

type ExitCodeAction struct {
	ExitCode string `json:"ExitCode" xml:"ExitCode"`
	Action   string `json:"Action" xml:"Action"`
}

ExitCodeAction is a nested struct in ehpc response

type ExitCodeActions added in v1.62.714

type ExitCodeActions struct {
	ExitCodeAction []ExitCodeAction `json:"ExitCodeAction" xml:"ExitCodeAction"`
}

ExitCodeActions is a nested struct in ehpc response

type GetImageRequest added in v1.62.714

type GetImageRequest struct {
	*requests.RpcRequest
	ImageType     string `position:"Query" name:"ImageType"`
	ImageId       string `position:"Query" name:"ImageId"`
	ImageCategory string `position:"Query" name:"ImageCategory"`
	AppId         string `position:"Query" name:"AppId"`
}

GetImageRequest is the request struct for api GetImage

func CreateGetImageRequest added in v1.62.714

func CreateGetImageRequest() (request *GetImageRequest)

CreateGetImageRequest creates a request to invoke GetImage API

type GetImageResponse added in v1.62.714

type GetImageResponse struct {
	*responses.BaseResponse
	RequestId  string `json:"RequestId" xml:"RequestId"`
	Success    bool   `json:"Success" xml:"Success"`
	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
	Image      Image  `json:"Image" xml:"Image"`
}

GetImageResponse is the response struct for api GetImage

func CreateGetImageResponse added in v1.62.714

func CreateGetImageResponse() (response *GetImageResponse)

CreateGetImageResponse creates a response to parse from GetImage response

type GetJobRequest added in v1.62.714

type GetJobRequest struct {
	*requests.RpcRequest
	JobId string `position:"Query" name:"JobId"`
}

GetJobRequest is the request struct for api GetJob

func CreateGetJobRequest added in v1.62.714

func CreateGetJobRequest() (request *GetJobRequest)

CreateGetJobRequest creates a request to invoke GetJob API

type GetJobResponse added in v1.62.714

type GetJobResponse struct {
	*responses.BaseResponse
	RequestId string  `json:"RequestId" xml:"RequestId"`
	JobInfo   JobInfo `json:"JobInfo" xml:"JobInfo"`
}

GetJobResponse is the response struct for api GetJob

func CreateGetJobResponse added in v1.62.714

func CreateGetJobResponse() (response *GetJobResponse)

CreateGetJobResponse creates a response to parse from GetJob response

type HostNameInListExecutors added in v1.62.714

type HostNameInListExecutors struct {
	HostName []string `json:"HostName" xml:"HostName"`
}

HostNameInListExecutors is a nested struct in ehpc response

type HostNameInListJobExecutors added in v1.62.714

type HostNameInListJobExecutors struct {
	HostName []string `json:"HostName" xml:"HostName"`
}

HostNameInListJobExecutors is a nested struct in ehpc response

type Image added in v1.62.714

type Image struct {
	Name               string             `json:"Name" xml:"Name"`
	UpdateTime         string             `json:"UpdateTime" xml:"UpdateTime"`
	Label              string             `json:"Label" xml:"Label"`
	ImageId            string             `json:"ImageId" xml:"ImageId"`
	Version            string             `json:"Version" xml:"Version"`
	CreateTime         string             `json:"CreateTime" xml:"CreateTime"`
	AppId              string             `json:"AppId" xml:"AppId"`
	Size               string             `json:"Size" xml:"Size"`
	ImageType          string             `json:"ImageType" xml:"ImageType"`
	Status             string             `json:"Status" xml:"Status"`
	Description        string             `json:"Description" xml:"Description"`
	VMImageSpec        VMImageSpec        `json:"VMImageSpec" xml:"VMImageSpec"`
	ContainerImageSpec ContainerImageSpec `json:"ContainerImageSpec" xml:"ContainerImageSpec"`
}

Image is a nested struct in ehpc response

type Images added in v1.61.1770

type Images struct {
	Image []Image `json:"Image" xml:"Image"`
}

Images is a nested struct in ehpc response

type IpAddressInListExecutors added in v1.62.714

type IpAddressInListExecutors struct {
	IpAddress []string `json:"IpAddress" xml:"IpAddress"`
}

IpAddressInListExecutors is a nested struct in ehpc response

type IpAddressInListJobExecutors added in v1.62.714

type IpAddressInListJobExecutors struct {
	IpAddress []string `json:"IpAddress" xml:"IpAddress"`
}

IpAddressInListJobExecutors is a nested struct in ehpc response

type Job added in v1.62.714

type Job struct {
	JobName         string `json:"JobName" xml:"JobName"`
	JobId           string `json:"JobId" xml:"JobId"`
	JobDescription  string `json:"JobDescription" xml:"JobDescription"`
	CreateTime      string `json:"CreateTime" xml:"CreateTime"`
	OwnerUid        string `json:"OwnerUid" xml:"OwnerUid"`
	Status          string `json:"Status" xml:"Status"`
	TaskCount       int    `json:"TaskCount" xml:"TaskCount"`
	ExecutorCount   int    `json:"ExecutorCount" xml:"ExecutorCount"`
	StartTime       string `json:"StartTime" xml:"StartTime"`
	EndTime         string `json:"EndTime" xml:"EndTime"`
	TaskSustainable bool   `json:"TaskSustainable" xml:"TaskSustainable"`
}

Job is a nested struct in ehpc response

type JobDependency added in v1.62.714

type JobDependency struct {
	JobDependencyItem []JobDependencyItem `json:"JobDependency" xml:"JobDependency"`
}

JobDependency is a nested struct in ehpc response

type JobDependencyItem added in v1.62.714

type JobDependencyItem struct {
	JobId string `json:"JobId" xml:"JobId"`
	Type  string `json:"Type" xml:"Type"`
}

JobDependencyItem is a nested struct in ehpc response

type JobInfo

type JobInfo struct {
	JobId            string           `json:"JobId" xml:"JobId"`
	JobName          string           `json:"JobName" xml:"JobName"`
	JobDescription   string           `json:"JobDescription" xml:"JobDescription"`
	JobScheduler     string           `json:"JobScheduler" xml:"JobScheduler"`
	CreateTime       string           `json:"CreateTime" xml:"CreateTime"`
	StartTime        string           `json:"StartTime" xml:"StartTime"`
	EndTime          string           `json:"EndTime" xml:"EndTime"`
	Status           string           `json:"Status" xml:"Status"`
	DeploymentPolicy DeploymentPolicy `json:"DeploymentPolicy" xml:"DeploymentPolicy"`
	SecurityPolicy   SecurityPolicy   `json:"SecurityPolicy" xml:"SecurityPolicy"`
	DependencyPolicy DependencyPolicy `json:"DependencyPolicy" xml:"DependencyPolicy"`
	MonitorPolicy    MonitorPolicy    `json:"MonitorPolicy" xml:"MonitorPolicy"`
	Tasks            []Task           `json:"Tasks" xml:"Tasks"`
}

JobInfo is a nested struct in ehpc response

type JobList added in v1.62.714

type JobList struct {
	Job []Job `json:"Job" xml:"Job"`
}

JobList is a nested struct in ehpc response

type ListExecutorsFilter added in v1.62.714

type ListExecutorsFilter struct {
	TimeCreatedAfter  string    `name:"TimeCreatedAfter"`
	IpAddresses       *[]string `name:"IpAddresses" type:"Repeated"`
	TimeCreatedBefore string    `name:"TimeCreatedBefore"`
	ExecutorIds       *[]string `name:"ExecutorIds" type:"Repeated"`
	JobName           string    `name:"JobName"`
}

ListExecutorsFilter is a repeated param struct in ListExecutorsRequest

type ListExecutorsRequest added in v1.62.714

type ListExecutorsRequest struct {
	*requests.RpcRequest
	PageNumber string              `position:"Query" name:"PageNumber"`
	Filter     ListExecutorsFilter `position:"Query" name:"Filter"  type:"Struct"`
	PageSize   string              `position:"Query" name:"PageSize"`
}

ListExecutorsRequest is the request struct for api ListExecutors

func CreateListExecutorsRequest added in v1.62.714

func CreateListExecutorsRequest() (request *ListExecutorsRequest)

CreateListExecutorsRequest creates a request to invoke ListExecutors API

type ListExecutorsResponse added in v1.62.714

type ListExecutorsResponse struct {
	*responses.BaseResponse
	RequestId  string     `json:"RequestId" xml:"RequestId"`
	PageSize   string     `json:"PageSize" xml:"PageSize"`
	PageNumber string     `json:"PageNumber" xml:"PageNumber"`
	TotalCount string     `json:"TotalCount" xml:"TotalCount"`
	Executors  []Executor `json:"Executors" xml:"Executors"`
}

ListExecutorsResponse is the response struct for api ListExecutors

func CreateListExecutorsResponse added in v1.62.714

func CreateListExecutorsResponse() (response *ListExecutorsResponse)

CreateListExecutorsResponse creates a response to parse from ListExecutors response

type ListImagesRequest

type ListImagesRequest struct {
	*requests.RpcRequest
	ImageType     string           `position:"Query" name:"ImageType"`
	ImageNames    *[]string        `position:"Query" name:"ImageNames"  type:"Json"`
	PageNumber    requests.Integer `position:"Query" name:"PageNumber"`
	ImageCategory string           `position:"Query" name:"ImageCategory"`
	AppIds        *[]string        `position:"Query" name:"AppIds"  type:"Json"`
	PageSize      requests.Integer `position:"Query" name:"PageSize"`
	ImageIds      *[]string        `position:"Query" name:"ImageIds"  type:"Json"`
}

ListImagesRequest is the request struct for api ListImages

func CreateListImagesRequest

func CreateListImagesRequest() (request *ListImagesRequest)

CreateListImagesRequest creates a request to invoke ListImages API

type ListImagesResponse

type ListImagesResponse struct {
	*responses.BaseResponse
	RequestId  string  `json:"RequestId" xml:"RequestId"`
	Success    bool    `json:"Success" xml:"Success"`
	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
	PageSize   int64   `json:"PageSize" xml:"PageSize"`
	PageNumber int64   `json:"PageNumber" xml:"PageNumber"`
	Images     []Image `json:"Images" xml:"Images"`
}

ListImagesResponse is the response struct for api ListImages

func CreateListImagesResponse

func CreateListImagesResponse() (response *ListImagesResponse)

CreateListImagesResponse creates a response to parse from ListImages response

type ListJobExecutorsRequest added in v1.62.714

type ListJobExecutorsRequest struct {
	*requests.RpcRequest
	TaskName   string `position:"Query" name:"TaskName"`
	PageNumber string `position:"Query" name:"PageNumber"`
	JobId      string `position:"Query" name:"JobId"`
	PageSize   string `position:"Query" name:"PageSize"`
}

ListJobExecutorsRequest is the request struct for api ListJobExecutors

func CreateListJobExecutorsRequest added in v1.62.714

func CreateListJobExecutorsRequest() (request *ListJobExecutorsRequest)

CreateListJobExecutorsRequest creates a request to invoke ListJobExecutors API

type ListJobExecutorsResponse added in v1.62.714

type ListJobExecutorsResponse struct {
	*responses.BaseResponse
	RequestId  string     `json:"RequestId" xml:"RequestId"`
	JobId      string     `json:"JobId" xml:"JobId"`
	TaskName   string     `json:"TaskName" xml:"TaskName"`
	PageSize   string     `json:"PageSize" xml:"PageSize"`
	PageNumber string     `json:"PageNumber" xml:"PageNumber"`
	TotalCount string     `json:"TotalCount" xml:"TotalCount"`
	Executors  []Executor `json:"Executors" xml:"Executors"`
}

ListJobExecutorsResponse is the response struct for api ListJobExecutors

func CreateListJobExecutorsResponse added in v1.62.714

func CreateListJobExecutorsResponse() (response *ListJobExecutorsResponse)

CreateListJobExecutorsResponse creates a response to parse from ListJobExecutors response

type ListJobsFilter added in v1.62.714

type ListJobsFilter struct {
	JobId             string `name:"JobId"`
	TimeCreatedAfter  string `name:"TimeCreatedAfter"`
	TimeCreatedBefore string `name:"TimeCreatedBefore"`
	JobName           string `name:"JobName"`
	Status            string `name:"Status"`
}

ListJobsFilter is a repeated param struct in ListJobsRequest

type ListJobsRequest

type ListJobsRequest struct {
	*requests.RpcRequest
	PageNumber string         `position:"Query" name:"PageNumber"`
	Filter     ListJobsFilter `position:"Query" name:"Filter"  type:"Struct"`
	PageSize   string         `position:"Query" name:"PageSize"`
	SortBy     ListJobsSortBy `position:"Query" name:"SortBy"  type:"Struct"`
}

ListJobsRequest is the request struct for api ListJobs

func CreateListJobsRequest

func CreateListJobsRequest() (request *ListJobsRequest)

CreateListJobsRequest creates a request to invoke ListJobs API

type ListJobsResponse

type ListJobsResponse struct {
	*responses.BaseResponse
	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
	RequestId  string `json:"RequestId" xml:"RequestId"`
	PageSize   int    `json:"PageSize" xml:"PageSize"`
	PageNumber int    `json:"PageNumber" xml:"PageNumber"`
	JobList    []Job  `json:"JobList" xml:"JobList"`
}

ListJobsResponse is the response struct for api ListJobs

func CreateListJobsResponse

func CreateListJobsResponse() (response *ListJobsResponse)

CreateListJobsResponse creates a response to parse from ListJobs response

type ListJobsSortBy added in v1.62.714

type ListJobsSortBy struct {
	Label string `name:"Label"`
	Order string `name:"Order"`
}

ListJobsSortBy is a repeated param struct in ListJobsRequest

type LogSpec added in v1.62.714

type LogSpec struct {
	Project      string `json:"Project" xml:"Project"`
	Logstore     string `json:"Logstore" xml:"Logstore"`
	MachineGroup string `json:"MachineGroup" xml:"MachineGroup"`
	Shard        string `json:"Shard" xml:"Shard"`
	ExpireTime   string `json:"ExpireTime" xml:"ExpireTime"`
}

LogSpec is a nested struct in ehpc response

type MNSTopic added in v1.62.714

type MNSTopic struct {
	MNSTopicItem []MNSTopicItem `json:"MNSTopic" xml:"MNSTopic"`
}

MNSTopic is a nested struct in ehpc response

type MNSTopicItem added in v1.62.714

type MNSTopicItem struct {
	TopicLocation string   `json:"TopicLocation" xml:"TopicLocation"`
	Event         []string `json:"Event" xml:"Event"`
}

MNSTopicItem is a nested struct in ehpc response

type MetricInfo added in v1.62.714

type MetricInfo struct {
	ArrayIndex int    `json:"ArrayIndex" xml:"ArrayIndex"`
	Metric     string `json:"Metric" xml:"Metric"`
}

MetricInfo is a nested struct in ehpc response

type Metrics added in v1.62.714

type Metrics struct {
	MetricInfo []MetricInfo `json:"MetricInfo" xml:"MetricInfo"`
}

Metrics is a nested struct in ehpc response

type MonitorPolicy added in v1.62.714

type MonitorPolicy struct {
	NotificationSpec NotificationSpec `json:"NotificationSpec" xml:"NotificationSpec"`
	LogSpec          LogSpec          `json:"LogSpec" xml:"LogSpec"`
}

MonitorPolicy is a nested struct in ehpc response

type Network added in v1.62.714

type Network struct {
	EnableERI bool     `json:"EnableERI" xml:"EnableERI"`
	Vswitch   []string `json:"Vswitch" xml:"Vswitch"`
}

Network is a nested struct in ehpc response

type NotificationSpec added in v1.62.714

type NotificationSpec struct {
	MNSTopic []MNSTopicItem `json:"MNSTopic" xml:"MNSTopic"`
}

NotificationSpec is a nested struct in ehpc response

type RegistryCredential added in v1.62.714

type RegistryCredential struct {
	Server   string `json:"Server" xml:"Server"`
	UserName string `json:"UserName" xml:"UserName"`
	Password string `json:"Password" xml:"Password"`
}

RegistryCredential is a nested struct in ehpc response

type RemoveImageRequest added in v1.62.714

type RemoveImageRequest struct {
	*requests.RpcRequest
	ImageType string `position:"Query" name:"ImageType"`
	ImageId   string `position:"Query" name:"ImageId"`
	AppId     string `position:"Query" name:"AppId"`
}

RemoveImageRequest is the request struct for api RemoveImage

func CreateRemoveImageRequest added in v1.62.714

func CreateRemoveImageRequest() (request *RemoveImageRequest)

CreateRemoveImageRequest creates a request to invoke RemoveImage API

type RemoveImageResponse added in v1.62.714

type RemoveImageResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

RemoveImageResponse is the response struct for api RemoveImage

func CreateRemoveImageResponse added in v1.62.714

func CreateRemoveImageResponse() (response *RemoveImageResponse)

CreateRemoveImageResponse creates a response to parse from RemoveImage response

type Resource added in v1.62.714

type Resource struct {
	Cores    float64 `json:"Cores" xml:"Cores"`
	EnableHT bool    `json:"EnableHT" xml:"EnableHT"`
	Memory   int     `json:"Memory" xml:"Memory"`
	Disks    []Disk  `json:"Disks" xml:"Disks"`
}

Resource is a nested struct in ehpc response

type RetryPolicy added in v1.62.714

type RetryPolicy struct {
	RetryCount      int              `json:"RetryCount" xml:"RetryCount"`
	ExitCodeActions []ExitCodeAction `json:"ExitCodeActions" xml:"ExitCodeActions"`
}

RetryPolicy is a nested struct in ehpc response

type SecurityGroup added in v1.62.714

type SecurityGroup struct {
	SecurityGroupIds []string `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
}

SecurityGroup is a nested struct in ehpc response

type SecurityGroupIds added in v1.62.714

type SecurityGroupIds struct {
	SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"`
}

SecurityGroupIds is a nested struct in ehpc response

type SecurityPolicy added in v1.62.714

type SecurityPolicy struct {
	SecurityGroup SecurityGroup `json:"SecurityGroup" xml:"SecurityGroup"`
}

SecurityPolicy is a nested struct in ehpc response

type Tag added in v1.62.444

type Tag struct {
	Name  string `json:"Name" xml:"Name"`
	Value string `json:"Value" xml:"Value"`
}

Tag is a nested struct in ehpc response

type Tags added in v1.62.444

type Tags struct {
	Tag []Tag `json:"Tag" xml:"Tag"`
}

Tags is a nested struct in ehpc response

type Task added in v1.62.714

type Task struct {
	TaskName        string               `json:"TaskName" xml:"TaskName"`
	TaskSustainable bool                 `json:"TaskSustainable" xml:"TaskSustainable"`
	TaskSpec        TaskSpec             `json:"TaskSpec" xml:"TaskSpec"`
	ExecutorPolicy  ExecutorPolicy       `json:"ExecutorPolicy" xml:"ExecutorPolicy"`
	ExecutorStatus  []ExecutorStatusItem `json:"ExecutorStatus" xml:"ExecutorStatus"`
}

Task is a nested struct in ehpc response

type TaskExecutor added in v1.62.714

type TaskExecutor struct {
	TaskExecutorItem []TaskExecutorItem `json:"TaskExecutor" xml:"TaskExecutor"`
}

TaskExecutor is a nested struct in ehpc response

type TaskExecutorItem added in v1.62.714

type TaskExecutorItem struct {
	Container Container `json:"Container" xml:"Container"`
	VM        VM        `json:"VM" xml:"VM"`
}

TaskExecutorItem is a nested struct in ehpc response

type TaskSpec added in v1.62.714

type TaskSpec struct {
	TaskDuration string             `json:"TaskDuration" xml:"TaskDuration"`
	Resource     Resource           `json:"Resource" xml:"Resource"`
	RetryPolicy  RetryPolicy        `json:"RetryPolicy" xml:"RetryPolicy"`
	TaskExecutor []TaskExecutorItem `json:"TaskExecutor" xml:"TaskExecutor"`
	VolumeMount  []VolumeMountItem  `json:"VolumeMount" xml:"VolumeMount"`
}

TaskSpec is a nested struct in ehpc response

type TasksInCreateJob added in v1.62.736

type TasksInCreateJob struct {
	TasksItem []TasksItem `json:"Tasks" xml:"Tasks"`
}

TasksInCreateJob is a nested struct in ehpc response

type TasksInGetJob added in v1.62.736

type TasksInGetJob struct {
	Task []Task `json:"Task" xml:"Task"`
}

TasksInGetJob is a nested struct in ehpc response

type TasksItem added in v1.62.736

type TasksItem struct {
	TaskName    string   `json:"TaskName" xml:"TaskName"`
	ExecutorIds []string `json:"ExecutorIds" xml:"ExecutorIds"`
}

TasksItem is a nested struct in ehpc response

type VM added in v1.62.714

type VM struct {
	Image           string           `json:"Image" xml:"Image"`
	PrologScript    string           `json:"PrologScript" xml:"PrologScript"`
	Script          string           `json:"Script" xml:"Script"`
	AppId           string           `json:"AppId" xml:"AppId"`
	EnvironmentVars []EnvironmentVar `json:"EnvironmentVars" xml:"EnvironmentVars"`
}

VM is a nested struct in ehpc response

type VMImageSpec added in v1.62.714

type VMImageSpec struct {
	ImageId      string `json:"ImageId" xml:"ImageId"`
	OsTag        string `json:"OsTag" xml:"OsTag"`
	Platform     string `json:"Platform" xml:"Platform"`
	Version      string `json:"Version" xml:"Version"`
	Architecture string `json:"Architecture" xml:"Architecture"`
}

VMImageSpec is a nested struct in ehpc response

type VolumeMount added in v1.62.444

type VolumeMount struct {
	VolumeMountItem []VolumeMountItem `json:"VolumeMount" xml:"VolumeMount"`
}

VolumeMount is a nested struct in ehpc response

type VolumeMountItem added in v1.62.714

type VolumeMountItem struct {
	MountPath    string `json:"MountPath" xml:"MountPath"`
	VolumeDriver string `json:"VolumeDriver" xml:"VolumeDriver"`
	MountOptions string `json:"MountOptions" xml:"MountOptions"`
}

VolumeMountItem is a nested struct in ehpc response

type Vswitch added in v1.62.714

type Vswitch struct {
	Vswitch []string `json:"Vswitch" xml:"Vswitch"`
}

Vswitch is a nested struct in ehpc response

Source Files

Jump to

Keyboard shortcuts

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