model

package
v0.0.37-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddJobs

type AddJobs struct {
	JobType int32 `json:"job_type"`

	JobName string `json:"job_name"`

	JarPath *string `json:"jar_path,omitempty"`

	Arguments *string `json:"arguments,omitempty"`

	Input *string `json:"input,omitempty"`

	Output *string `json:"output,omitempty"`

	JobLog *string `json:"job_log,omitempty"`

	HiveScriptPath *string `json:"hive_script_path,omitempty"`

	Hql *string `json:"hql,omitempty"`

	ShutdownCluster *bool `json:"shutdown_cluster,omitempty"`

	SubmitJobOnceClusterRun bool `json:"submit_job_once_cluster_run"`

	FileAction *string `json:"file_action,omitempty"`
}

func (AddJobs) String

func (o AddJobs) String() string

type AutoScalingPolicy

type AutoScalingPolicy struct {
	AutoScalingEnable bool `json:"auto_scaling_enable"`

	MinCapacity int32 `json:"min_capacity"`

	MaxCapacity int32 `json:"max_capacity"`

	ResourcesPlans *[]ResourcesPlan `json:"resources_plans,omitempty"`

	Rules *[]Rules `json:"rules,omitempty"`

	ExecScripts *[]ScaleScript `json:"exec_scripts,omitempty"`
}

func (AutoScalingPolicy) String

func (o AutoScalingPolicy) String() string

type BootstrapScript

type BootstrapScript struct {
	Name string `json:"name"`

	Uri string `json:"uri"`

	Parameters *string `json:"parameters,omitempty"`

	Nodes []string `json:"nodes"`

	ActiveMaster *bool `json:"active_master,omitempty"`

	FailAction BootstrapScriptFailAction `json:"fail_action"`

	BeforeComponentStart *bool `json:"before_component_start,omitempty"`
}

func (BootstrapScript) String

func (o BootstrapScript) String() string

type BootstrapScriptFailAction

type BootstrapScriptFailAction struct {
	// contains filtered or unexported fields
}

func (BootstrapScriptFailAction) MarshalJSON

func (c BootstrapScriptFailAction) MarshalJSON() ([]byte, error)

func (*BootstrapScriptFailAction) UnmarshalJSON

func (c *BootstrapScriptFailAction) UnmarshalJSON(b []byte) error

type BootstrapScriptFailActionEnum

type BootstrapScriptFailActionEnum struct {
	CONTINUE BootstrapScriptFailAction
	ERROROUT BootstrapScriptFailAction
}

func GetBootstrapScriptFailActionEnum

func GetBootstrapScriptFailActionEnum() BootstrapScriptFailActionEnum

type ComponentList

type ComponentList struct {
	ComponentName string `json:"component_name"`
}

func (ComponentList) String

func (o ComponentList) String() string

type CreateClusterReq

type CreateClusterReq struct {
	ClusterVersion *string `json:"cluster_version,omitempty"`

	ClusterName string `json:"cluster_name"`

	MasterNodeNum CreateClusterReqMasterNodeNum `json:"master_node_num"`

	CoreNodeNum int32 `json:"core_node_num"`

	BillingType CreateClusterReqBillingType `json:"billing_type"`

	DataCenter string `json:"data_center"`

	Vpc string `json:"vpc"`

	MasterNodeSize string `json:"master_node_size"`

	CoreNodeSize string `json:"core_node_size"`

	ComponentList []ComponentList `json:"component_list"`

	AvailableZoneId string `json:"available_zone_id"`

	VpcId string `json:"vpc_id"`

	SubnetId string `json:"subnet_id"`

	SubnetName string `json:"subnet_name"`

	SecurityGroupsId *string `json:"security_groups_id,omitempty"`

	AddJobs *[]AddJobs `json:"add_jobs,omitempty"`

	VolumeSize *int32 `json:"volume_size,omitempty"`

	VolumeType *CreateClusterReqVolumeType `json:"volume_type,omitempty"`

	MasterDataVolumeType *CreateClusterReqMasterDataVolumeType `json:"master_data_volume_type,omitempty"`

	MasterDataVolumeSize *int32 `json:"master_data_volume_size,omitempty"`

	MasterDataVolumeCount *CreateClusterReqMasterDataVolumeCount `json:"master_data_volume_count,omitempty"`

	CoreDataVolumeType *CreateClusterReqCoreDataVolumeType `json:"core_data_volume_type,omitempty"`

	CoreDataVolumeSize *int32 `json:"core_data_volume_size,omitempty"`

	CoreDataVolumeCount *int32 `json:"core_data_volume_count,omitempty"`

	TaskNodeGroups *[]TaskNodeGroups `json:"task_node_groups,omitempty"`

	BootstrapScripts *[]BootstrapScript `json:"bootstrap_scripts,omitempty"`

	NodePublicCertName *string `json:"node_public_cert_name,omitempty"`

	ClusterAdminSecret *string `json:"cluster_admin_secret,omitempty"`

	ClusterMasterSecret *string `json:"cluster_master_secret,omitempty"`

	SafeMode CreateClusterReqSafeMode `json:"safe_mode"`

	ClusterType *CreateClusterReqClusterType `json:"cluster_type,omitempty"`

	LogCollection *CreateClusterReqLogCollection `json:"log_collection,omitempty"`

	Tags *[]Tag `json:"tags,omitempty"`

	LoginMode *CreateClusterReqLoginMode `json:"login_mode,omitempty"`
}

func (CreateClusterReq) String

func (o CreateClusterReq) String() string

type CreateClusterReqBillingType

type CreateClusterReqBillingType struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqBillingType) MarshalJSON

func (c CreateClusterReqBillingType) MarshalJSON() ([]byte, error)

func (*CreateClusterReqBillingType) UnmarshalJSON

func (c *CreateClusterReqBillingType) UnmarshalJSON(b []byte) error

type CreateClusterReqBillingTypeEnum

type CreateClusterReqBillingTypeEnum struct {
	E_12 CreateClusterReqBillingType
}

func GetCreateClusterReqBillingTypeEnum

func GetCreateClusterReqBillingTypeEnum() CreateClusterReqBillingTypeEnum

type CreateClusterReqClusterType

type CreateClusterReqClusterType struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqClusterType) MarshalJSON

func (c CreateClusterReqClusterType) MarshalJSON() ([]byte, error)

func (*CreateClusterReqClusterType) UnmarshalJSON

func (c *CreateClusterReqClusterType) UnmarshalJSON(b []byte) error

type CreateClusterReqClusterTypeEnum

type CreateClusterReqClusterTypeEnum struct {
	E_0 CreateClusterReqClusterType
	E_1 CreateClusterReqClusterType
}

func GetCreateClusterReqClusterTypeEnum

func GetCreateClusterReqClusterTypeEnum() CreateClusterReqClusterTypeEnum

type CreateClusterReqCoreDataVolumeType

type CreateClusterReqCoreDataVolumeType struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqCoreDataVolumeType) MarshalJSON

func (c CreateClusterReqCoreDataVolumeType) MarshalJSON() ([]byte, error)

func (*CreateClusterReqCoreDataVolumeType) UnmarshalJSON

func (c *CreateClusterReqCoreDataVolumeType) UnmarshalJSON(b []byte) error

type CreateClusterReqLogCollection

type CreateClusterReqLogCollection struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqLogCollection) MarshalJSON

func (c CreateClusterReqLogCollection) MarshalJSON() ([]byte, error)

func (*CreateClusterReqLogCollection) UnmarshalJSON

func (c *CreateClusterReqLogCollection) UnmarshalJSON(b []byte) error

type CreateClusterReqLogCollectionEnum

type CreateClusterReqLogCollectionEnum struct {
	E_0 CreateClusterReqLogCollection
	E_1 CreateClusterReqLogCollection
}

func GetCreateClusterReqLogCollectionEnum

func GetCreateClusterReqLogCollectionEnum() CreateClusterReqLogCollectionEnum

type CreateClusterReqLoginMode

type CreateClusterReqLoginMode struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqLoginMode) MarshalJSON

func (c CreateClusterReqLoginMode) MarshalJSON() ([]byte, error)

func (*CreateClusterReqLoginMode) UnmarshalJSON

func (c *CreateClusterReqLoginMode) UnmarshalJSON(b []byte) error

type CreateClusterReqLoginModeEnum

type CreateClusterReqLoginModeEnum struct {
	E_0 CreateClusterReqLoginMode
	E_1 CreateClusterReqLoginMode
}

func GetCreateClusterReqLoginModeEnum

func GetCreateClusterReqLoginModeEnum() CreateClusterReqLoginModeEnum

type CreateClusterReqMasterDataVolumeCount

type CreateClusterReqMasterDataVolumeCount struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqMasterDataVolumeCount) MarshalJSON

func (c CreateClusterReqMasterDataVolumeCount) MarshalJSON() ([]byte, error)

func (*CreateClusterReqMasterDataVolumeCount) UnmarshalJSON

func (c *CreateClusterReqMasterDataVolumeCount) UnmarshalJSON(b []byte) error

type CreateClusterReqMasterDataVolumeCountEnum

type CreateClusterReqMasterDataVolumeCountEnum struct {
	E_1 CreateClusterReqMasterDataVolumeCount
}

func GetCreateClusterReqMasterDataVolumeCountEnum

func GetCreateClusterReqMasterDataVolumeCountEnum() CreateClusterReqMasterDataVolumeCountEnum

type CreateClusterReqMasterDataVolumeType

type CreateClusterReqMasterDataVolumeType struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqMasterDataVolumeType) MarshalJSON

func (c CreateClusterReqMasterDataVolumeType) MarshalJSON() ([]byte, error)

func (*CreateClusterReqMasterDataVolumeType) UnmarshalJSON

func (c *CreateClusterReqMasterDataVolumeType) UnmarshalJSON(b []byte) error

type CreateClusterReqMasterNodeNum

type CreateClusterReqMasterNodeNum struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqMasterNodeNum) MarshalJSON

func (c CreateClusterReqMasterNodeNum) MarshalJSON() ([]byte, error)

func (*CreateClusterReqMasterNodeNum) UnmarshalJSON

func (c *CreateClusterReqMasterNodeNum) UnmarshalJSON(b []byte) error

type CreateClusterReqMasterNodeNumEnum

type CreateClusterReqMasterNodeNumEnum struct {
	E_1 CreateClusterReqMasterNodeNum
	E_2 CreateClusterReqMasterNodeNum
}

func GetCreateClusterReqMasterNodeNumEnum

func GetCreateClusterReqMasterNodeNumEnum() CreateClusterReqMasterNodeNumEnum

type CreateClusterReqSafeMode

type CreateClusterReqSafeMode struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqSafeMode) MarshalJSON

func (c CreateClusterReqSafeMode) MarshalJSON() ([]byte, error)

func (*CreateClusterReqSafeMode) UnmarshalJSON

func (c *CreateClusterReqSafeMode) UnmarshalJSON(b []byte) error

type CreateClusterReqSafeModeEnum

type CreateClusterReqSafeModeEnum struct {
	E_0 CreateClusterReqSafeMode
	E_1 CreateClusterReqSafeMode
}

func GetCreateClusterReqSafeModeEnum

func GetCreateClusterReqSafeModeEnum() CreateClusterReqSafeModeEnum

type CreateClusterReqVolumeType

type CreateClusterReqVolumeType struct {
	// contains filtered or unexported fields
}

func (CreateClusterReqVolumeType) MarshalJSON

func (c CreateClusterReqVolumeType) MarshalJSON() ([]byte, error)

func (*CreateClusterReqVolumeType) UnmarshalJSON

func (c *CreateClusterReqVolumeType) UnmarshalJSON(b []byte) error

type CreateClusterReqVolumeTypeEnum

type CreateClusterReqVolumeTypeEnum struct {
	SATA CreateClusterReqVolumeType
	SAS  CreateClusterReqVolumeType
	SSD  CreateClusterReqVolumeType
}

func GetCreateClusterReqVolumeTypeEnum

func GetCreateClusterReqVolumeTypeEnum() CreateClusterReqVolumeTypeEnum

type CreateClusterRequest

type CreateClusterRequest struct {
	Body *CreateClusterReq `json:"body,omitempty"`
}

Request Object

func (CreateClusterRequest) String

func (o CreateClusterRequest) String() string

type CreateClusterResponse

type CreateClusterResponse struct {
	Result *bool `json:"result,omitempty"`

	Msg *string `json:"msg,omitempty"`

	ClusterId      *string `json:"cluster_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateClusterResponse) String

func (o CreateClusterResponse) String() string

type DeleteClusterRequest

type DeleteClusterRequest struct {
	ClusterId string `json:"cluster_id"`
}

Request Object

func (DeleteClusterRequest) String

func (o DeleteClusterRequest) String() string

type DeleteClusterResponse

type DeleteClusterResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteClusterResponse) String

func (o DeleteClusterResponse) String() string

type ResourcesPlan

type ResourcesPlan struct {
	PeriodType string `json:"period_type"`

	StartTime string `json:"start_time"`

	EndTime string `json:"end_time"`

	MinCapacity int32 `json:"min_capacity"`

	MaxCapacity int32 `json:"max_capacity"`
}

func (ResourcesPlan) String

func (o ResourcesPlan) String() string

type Rules

type Rules struct {
	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	AdjustmentType RulesAdjustmentType `json:"adjustment_type"`

	CoolDownMinutes int32 `json:"cool_down_minutes"`

	ScalingAdjustment int32 `json:"scaling_adjustment"`

	Trigger *Trigger `json:"trigger"`
}

func (Rules) String

func (o Rules) String() string

type RulesAdjustmentType

type RulesAdjustmentType struct {
	// contains filtered or unexported fields
}

func (RulesAdjustmentType) MarshalJSON

func (c RulesAdjustmentType) MarshalJSON() ([]byte, error)

func (*RulesAdjustmentType) UnmarshalJSON

func (c *RulesAdjustmentType) UnmarshalJSON(b []byte) error

type RulesAdjustmentTypeEnum

type RulesAdjustmentTypeEnum struct {
	SCALE_OUT RulesAdjustmentType
	SCALE_IN  RulesAdjustmentType
}

func GetRulesAdjustmentTypeEnum

func GetRulesAdjustmentTypeEnum() RulesAdjustmentTypeEnum

type ScaleScript

type ScaleScript struct {
	Name string `json:"name"`

	Uri string `json:"uri"`

	Parameters *string `json:"parameters,omitempty"`

	Nodes []string `json:"nodes"`

	ActiveMaster *bool `json:"active_master,omitempty"`

	FailAction ScaleScriptFailAction `json:"fail_action"`

	ActionStage ScaleScriptActionStage `json:"action_stage"`
}

func (ScaleScript) String

func (o ScaleScript) String() string

type ScaleScriptActionStage

type ScaleScriptActionStage struct {
	// contains filtered or unexported fields
}

func (ScaleScriptActionStage) MarshalJSON

func (c ScaleScriptActionStage) MarshalJSON() ([]byte, error)

func (*ScaleScriptActionStage) UnmarshalJSON

func (c *ScaleScriptActionStage) UnmarshalJSON(b []byte) error

type ScaleScriptActionStageEnum

type ScaleScriptActionStageEnum struct {
	BEFORE_SCALE_OUT ScaleScriptActionStage
	BEFORE_SCALE_IN  ScaleScriptActionStage
	AFTER_SCALE_OUT  ScaleScriptActionStage
	AFTER_SCALE_IN   ScaleScriptActionStage
}

func GetScaleScriptActionStageEnum

func GetScaleScriptActionStageEnum() ScaleScriptActionStageEnum

type ScaleScriptFailAction

type ScaleScriptFailAction struct {
	// contains filtered or unexported fields
}

func (ScaleScriptFailAction) MarshalJSON

func (c ScaleScriptFailAction) MarshalJSON() ([]byte, error)

func (*ScaleScriptFailAction) UnmarshalJSON

func (c *ScaleScriptFailAction) UnmarshalJSON(b []byte) error

type ScaleScriptFailActionEnum

type ScaleScriptFailActionEnum struct {
	CONTINUE ScaleScriptFailAction
	ERROROUT ScaleScriptFailAction
}

func GetScaleScriptFailActionEnum

func GetScaleScriptFailActionEnum() ScaleScriptFailActionEnum

type Tag

type Tag struct {
	Key string `json:"key"`

	Value string `json:"value"`
}

func (Tag) String

func (o Tag) String() string

type TaskNodeGroups

type TaskNodeGroups struct {
	NodeNum int32 `json:"node_num"`

	NodeSize string `json:"node_size"`

	DataVolumeType TaskNodeGroupsDataVolumeType `json:"data_volume_type"`

	DataVolumeCount int32 `json:"data_volume_count"`

	DataVolumeSize int32 `json:"data_volume_size"`

	AutoScalingPolicy *AutoScalingPolicy `json:"auto_scaling_policy,omitempty"`
}

func (TaskNodeGroups) String

func (o TaskNodeGroups) String() string

type TaskNodeGroupsDataVolumeType

type TaskNodeGroupsDataVolumeType struct {
	// contains filtered or unexported fields
}

func (TaskNodeGroupsDataVolumeType) MarshalJSON

func (c TaskNodeGroupsDataVolumeType) MarshalJSON() ([]byte, error)

func (*TaskNodeGroupsDataVolumeType) UnmarshalJSON

func (c *TaskNodeGroupsDataVolumeType) UnmarshalJSON(b []byte) error

type Trigger

type Trigger struct {
	MetricName string `json:"metric_name"`

	MetricValue string `json:"metric_value"`

	ComparisonOperator *string `json:"comparison_operator,omitempty"`

	EvaluationPeriods int32 `json:"evaluation_periods"`
}

func (Trigger) String

func (o Trigger) String() string

Jump to

Keyboard shortcuts

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