request

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSecurityGroupRuleRequest

type AddSecurityGroupRuleRequest struct {
	VpcId           string              `json:"vpc_id"`
	RegionId        string              `json:"region_id"`
	SecurityGroupId string              `json:"security_group_id"`
	Rules           []service.GroupRule `json:"rules"`
}

func (*AddSecurityGroupRuleRequest) Check

func (c *AddSecurityGroupRuleRequest) Check() bool

type AddTagRequest

type AddTagRequest struct {
	ClusterName string            `json:"cluster_name"`
	Tags        map[string]string `json:"tags"`
}

type CreateCloudAccountRequest

type CreateCloudAccountRequest struct {
	AccountName   string `json:"account_name"`
	Provider      string `json:"provider"`
	AccountKey    string `json:"account_key"`
	AccountSecret string `json:"account_secret"`
}

type CreateNetworkRequest

type CreateNetworkRequest struct {
	Provider          string `json:"provider"`
	RegionId          string `json:"region_id"`
	CidrBlock         string `json:"cidr_block"`
	VpcName           string `json:"vpc_name"`
	ZoneId            string `json:"zone_id"`
	SwitchCidrBlock   string `json:"switch_cidr_block"`
	SwitchName        string `json:"switch_name"`
	SecurityGroupName string `json:"security_group_name"`
	SecurityGroupType string `json:"security_group_type"`
	Ak                string `json:"ak"`
}

func (*CreateNetworkRequest) Check

func (c *CreateNetworkRequest) Check() bool

type CreateOrgRequest

type CreateOrgRequest struct {
	OrgName  string `json:"org_name"`
	UserName string `json:"username"`
	Password string `json:"password"`
}

type CreateSecurityGroupRequest

type CreateSecurityGroupRequest struct {
	VpcId             string `json:"vpc_id"`
	RegionId          string `json:"region_id"`
	SecurityGroupName string `json:"security_group_name"`
	SecurityGroupType string `json:"security_group_type"`
}

func (*CreateSecurityGroupRequest) Check

func (c *CreateSecurityGroupRequest) Check() bool

type CreateSecurityGroupWithRuleRequest

type CreateSecurityGroupWithRuleRequest struct {
	VpcId             string              `json:"vpc_id"`
	RegionId          string              `json:"region_id"`
	SecurityGroupName string              `json:"security_group_name"`
	SecurityGroupType string              `json:"security_group_type"`
	Rules             []service.GroupRule `json:"rules"`
}

func (*CreateSecurityGroupWithRuleRequest) Check

type CreateSwitchRequest

type CreateSwitchRequest struct {
	SwitchName string `json:"switch_name"`
	RegionId   string `json:"region_id"`
	VpcId      string `json:"vpc_id"`
	CidrBlock  string `json:"cidr_block"`
	ZoneId     string `json:"zone_id"`
}

func (*CreateSwitchRequest) Check

func (c *CreateSwitchRequest) Check() bool

type CreateUserRequest

type CreateUserRequest struct {
	UserName string `json:"username"`
	Password string `json:"password"`
}

type CreateVpcRequest

type CreateVpcRequest struct {
	Provider  string `json:"provider"`
	RegionId  string `json:"region_id"`
	VpcName   string `json:"vpc_name"`
	CidrBlock string `json:"cidr_block"`
	Ak        string `json:"ak"`
}

func (*CreateVpcRequest) Check

func (c *CreateVpcRequest) Check() bool

type EditCloudAccountRequest

type EditCloudAccountRequest struct {
	AccountId   string `json:"account_id"`
	AccountName string `json:"account_name"`
	Provider    string `json:"provider"`
}

type EditOrgRequest

type EditOrgRequest struct {
	OrgId   int64  `json:"org_id"`
	OrgName string `json:"org_name"`
}

type ExpandClusterRequest

type ExpandClusterRequest struct {
	TaskName    string `json:"task_name"`
	ClusterName string `json:"cluster_name"`
	Count       int    `json:"count"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

type ModifyAdminPasswordRequest

type ModifyAdminPasswordRequest struct {
	OldPassword string `json:"password"`
	NewPassword string `json:"new_password"`
}

type ModifyUsernameRequest

type ModifyUsernameRequest struct {
	UserId      string `json:"user_id"`
	NewUsername string `json:"new_username"`
}

type SetExpectInstanceCountRequest

type SetExpectInstanceCountRequest struct {
	ClusterName string `json:"cluster_name"`
	ExpectCount int    `json:"expect_count"`
}

type ShrinkClusterRequest

type ShrinkClusterRequest struct {
	TaskName    string   `json:"task_name"`
	ClusterName string   `json:"cluster_name"`
	IPs         []string `json:"ips"`
	Count       int      `json:"count"`
}

type UserStatusRequest

type UserStatusRequest struct {
	UserNames []string `json:"usernames"`
	Action    string   `json:"action"`
}

Jump to

Keyboard shortcuts

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