models

package
Version: v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenpitrixAPI added in v0.4.0

type OpenpitrixAPI struct {

	// api id
	APIID string `json:"api_id,omitempty"`

	// api method, rpc method eg.[Token|CanDo|...]
	APIMethod string `json:"api_method,omitempty"`

	// request url
	URL string `json:"url,omitempty"`

	// url method, http verb
	URLMethod string `json:"url_method,omitempty"`
}

OpenpitrixAPI openpitrix Api swagger:model openpitrixApi

func (*OpenpitrixAPI) MarshalBinary added in v0.4.0

func (m *OpenpitrixAPI) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAPI) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixAPI) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAPI) Validate added in v0.4.0

func (m *OpenpitrixAPI) Validate(formats strfmt.Registry) error

Validate validates this openpitrix Api

type OpenpitrixActionBundle added in v0.4.0

type OpenpitrixActionBundle struct {

	// bundle of action, bundle contain one more api
	ActionBundleID string `json:"action_bundle_id,omitempty"`

	// name of bundle
	ActionBundleName string `json:"action_bundle_name,omitempty"`

	// api set
	APISet OpenpitrixActionBundleAPISet `json:"api_set"`
}

OpenpitrixActionBundle openpitrix action bundle swagger:model openpitrixActionBundle

func (*OpenpitrixActionBundle) MarshalBinary added in v0.4.0

func (m *OpenpitrixActionBundle) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixActionBundle) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixActionBundle) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixActionBundle) Validate added in v0.4.0

func (m *OpenpitrixActionBundle) Validate(formats strfmt.Registry) error

Validate validates this openpitrix action bundle

type OpenpitrixActionBundleAPISet added in v0.4.0

type OpenpitrixActionBundleAPISet []*OpenpitrixAPI

OpenpitrixActionBundleAPISet list of api in bundle swagger:model openpitrixActionBundleApiSet

func (OpenpitrixActionBundleAPISet) Validate added in v0.4.0

func (m OpenpitrixActionBundleAPISet) Validate(formats strfmt.Registry) error

Validate validates this openpitrix action bundle Api set

type OpenpitrixAddClusterNodesRequest

type OpenpitrixAddClusterNodesRequest struct {

	// advanced param
	AdvancedParam []string `json:"advanced_param"`

	// required, id of cluster to add node
	ClusterID string `json:"cluster_id,omitempty"`

	// number of node added to cluster
	NodeCount int64 `json:"node_count,omitempty"`

	// required, role eg:[mysql|wordpress|...]
	Role string `json:"role,omitempty"`
}

OpenpitrixAddClusterNodesRequest openpitrix add cluster nodes request swagger:model openpitrixAddClusterNodesRequest

func (*OpenpitrixAddClusterNodesRequest) MarshalBinary

func (m *OpenpitrixAddClusterNodesRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAddClusterNodesRequest) UnmarshalBinary

func (m *OpenpitrixAddClusterNodesRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAddClusterNodesRequest) Validate

Validate validates this openpitrix add cluster nodes request

type OpenpitrixAddClusterNodesResponse

type OpenpitrixAddClusterNodesResponse struct {

	// id of cluster added node
	ClusterID string `json:"cluster_id,omitempty"`

	// id of job of add node to cluster
	JobID string `json:"job_id,omitempty"`
}

OpenpitrixAddClusterNodesResponse openpitrix add cluster nodes response swagger:model openpitrixAddClusterNodesResponse

func (*OpenpitrixAddClusterNodesResponse) MarshalBinary

func (m *OpenpitrixAddClusterNodesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAddClusterNodesResponse) UnmarshalBinary

func (m *OpenpitrixAddClusterNodesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAddClusterNodesResponse) Validate

Validate validates this openpitrix add cluster nodes response

type OpenpitrixAddNodeKeyPairsResponse added in v0.1.7

type OpenpitrixAddNodeKeyPairsResponse interface{}

OpenpitrixAddNodeKeyPairsResponse openpitrix add node key pairs response swagger:model openpitrixAddNodeKeyPairsResponse

type OpenpitrixApp

type OpenpitrixApp struct {

	// abstraction of app
	Abstraction string `json:"abstraction,omitempty"`

	// whether there is a released version in the app
	Active bool `json:"active,omitempty"`

	// app id
	AppID string `json:"app_id,omitempty"`

	// app version types eg.[vmbased|helm]
	AppVersionTypes string `json:"app_version_types,omitempty"`

	// category set
	CategorySet OpenpitrixAppCategorySet `json:"category_set"`

	// chart name of app
	ChartName string `json:"chart_name,omitempty"`

	// company join time
	CompanyJoinTime strfmt.DateTime `json:"company_join_time,omitempty"`

	// company name
	CompanyName string `json:"company_name,omitempty"`

	// company profile
	CompanyProfile string `json:"company_profile,omitempty"`

	// company website
	CompanyWebsite string `json:"company_website,omitempty"`

	// the time when app create
	CreateTime strfmt.DateTime `json:"create_time,omitempty"`

	// app description
	Description string `json:"description,omitempty"`

	// app home page
	Home string `json:"home,omitempty"`

	// app icon
	Icon string `json:"icon,omitempty"`

	// the isv user who create the app
	Isv string `json:"isv,omitempty"`

	// app key words
	Keywords string `json:"keywords,omitempty"`

	// latest version of app
	LatestAppVersion *OpenpitrixAppVersion `json:"latest_app_version,omitempty"`

	// app maintainers
	Maintainers string `json:"maintainers,omitempty"`

	// app name
	Name string `json:"name,omitempty"`

	// owner of app
	Owner string `json:"owner,omitempty"`

	// owner path of the app, concat string group_path:user_id
	OwnerPath string `json:"owner_path,omitempty"`

	// app instructions
	Readme string `json:"readme,omitempty"`

	// repository(store app package) id
	RepoID string `json:"repo_id,omitempty"`

	// app screenshots
	Screenshots string `json:"screenshots,omitempty"`

	// sources of app
	Sources string `json:"sources,omitempty"`

	// status eg.[modify|submit|review|cancel|release|delete|pass|reject|suspend|recover]
	Status string `json:"status,omitempty"`

	// record status changed time
	StatusTime strfmt.DateTime `json:"status_time,omitempty"`

	// tos of app
	Tos string `json:"tos,omitempty"`

	// the time when app update
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`
}

OpenpitrixApp openpitrix app swagger:model openpitrixApp

func (*OpenpitrixApp) MarshalBinary

func (m *OpenpitrixApp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixApp) UnmarshalBinary

func (m *OpenpitrixApp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixApp) Validate

func (m *OpenpitrixApp) Validate(formats strfmt.Registry) error

Validate validates this openpitrix app

type OpenpitrixAppCategorySet

type OpenpitrixAppCategorySet []*OpenpitrixResourceCategory

OpenpitrixAppCategorySet list of category, the app may belong to one more category swagger:model openpitrixAppCategorySet

func (OpenpitrixAppCategorySet) Validate

func (m OpenpitrixAppCategorySet) Validate(formats strfmt.Registry) error

Validate validates this openpitrix app category set

type OpenpitrixAppVersion

type OpenpitrixAppVersion struct {

	// active or not
	Active bool `json:"active,omitempty"`

	// app id
	AppID string `json:"app_id,omitempty"`

	// the time when app version create
	CreateTime strfmt.DateTime `json:"create_time,omitempty"`

	// description of app of specific version
	Description string `json:"description,omitempty"`

	// home of app of specific version
	Home string `json:"home,omitempty"`

	// icon of app of specific version
	Icon string `json:"icon,omitempty"`

	// keywords of app of specific version
	Keywords string `json:"keywords,omitempty"`

	// maintainers of app of specific version
	Maintainers string `json:"maintainers,omitempty"`

	// message path of app of specific version
	Message string `json:"message,omitempty"`

	// version name
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// owner path of app of specific version, concat string group_path:user_id
	OwnerPath string `json:"owner_path,omitempty"`

	// package name of app of specific version
	PackageName string `json:"package_name,omitempty"`

	// readme of app of specific version
	Readme string `json:"readme,omitempty"`

	// review id of app of specific version
	ReviewID string `json:"review_id,omitempty"`

	// screenshots of app of specific version
	Screenshots string `json:"screenshots,omitempty"`

	// sequence of app of specific version
	Sequence int64 `json:"sequence,omitempty"`

	// sources of app of specific version
	Sources string `json:"sources,omitempty"`

	// status of app of specific version eg.[draft|submitted|passed|rejected|active|in-review|deleted|suspended]
	Status string `json:"status,omitempty"`

	// record status changed time
	StatusTime strfmt.DateTime `json:"status_time,omitempty"`

	// type of app of specific version
	Type string `json:"type,omitempty"`

	// the time when app version update
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`

	// version id of app
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixAppVersion openpitrix app version swagger:model openpitrixAppVersion

func (*OpenpitrixAppVersion) MarshalBinary

func (m *OpenpitrixAppVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAppVersion) UnmarshalBinary

func (m *OpenpitrixAppVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAppVersion) Validate

func (m *OpenpitrixAppVersion) Validate(formats strfmt.Registry) error

Validate validates this openpitrix app version

type OpenpitrixAppVersionAudit added in v0.4.0

type OpenpitrixAppVersionAudit struct {

	// id of specific version app
	AppID string `json:"app_id,omitempty"`

	// name of specific version app
	AppName string `json:"app_name,omitempty"`

	// audit message
	Message string `json:"message,omitempty"`

	// user of auditer
	Operator string `json:"operator,omitempty"`

	// operator of auditer eg.[global_admin|developer|business|technical|isv]
	OperatorType string `json:"operator_type,omitempty"`

	// review id
	ReviewID string `json:"review_id,omitempty"`

	// audit status, eg.[draft|submitted|passed|rejected|active|in-review|deleted|suspended]
	Status string `json:"status,omitempty"`

	// record status changed time
	StatusTime strfmt.DateTime `json:"status_time,omitempty"`

	// id of version to audit
	VersionID string `json:"version_id,omitempty"`

	// version name
	VersionName string `json:"version_name,omitempty"`

	// version type
	VersionType string `json:"version_type,omitempty"`
}

OpenpitrixAppVersionAudit openpitrix app version audit swagger:model openpitrixAppVersionAudit

func (*OpenpitrixAppVersionAudit) MarshalBinary added in v0.4.0

func (m *OpenpitrixAppVersionAudit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAppVersionAudit) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixAppVersionAudit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAppVersionAudit) Validate added in v0.4.0

func (m *OpenpitrixAppVersionAudit) Validate(formats strfmt.Registry) error

Validate validates this openpitrix app version audit

type OpenpitrixAppVersionReview added in v0.4.0

type OpenpitrixAppVersionReview struct {

	// app id
	AppID string `json:"app_id,omitempty"`

	// app name
	AppName string `json:"app_name,omitempty"`

	// phase
	Phase OpenpitrixAppVersionReviewPhaseOAIGen `json:"phase,omitempty"`

	// review id
	ReviewID string `json:"review_id,omitempty"`

	// user who review the app version
	Reviewer string `json:"reviewer,omitempty"`

	// review status eg.[isv-in-review|isv-passed|isv-rejected|isv-draft|business-in-review|business-passed|business-rejected|develop-draft|develop-in-review|develop-passed|develop-rejected|develop-draft]
	Status string `json:"status,omitempty"`

	// record status changed time
	StatusTime strfmt.DateTime `json:"status_time,omitempty"`

	// id of app version
	VersionID string `json:"version_id,omitempty"`

	// version name of specific app version
	VersionName string `json:"version_name,omitempty"`

	// version type
	VersionType string `json:"version_type,omitempty"`
}

OpenpitrixAppVersionReview openpitrix app version review swagger:model openpitrixAppVersionReview

func (*OpenpitrixAppVersionReview) MarshalBinary added in v0.4.0

func (m *OpenpitrixAppVersionReview) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAppVersionReview) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixAppVersionReview) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAppVersionReview) Validate added in v0.4.0

func (m *OpenpitrixAppVersionReview) Validate(formats strfmt.Registry) error

Validate validates this openpitrix app version review

type OpenpitrixAppVersionReviewPhase added in v0.4.0

type OpenpitrixAppVersionReviewPhase struct {

	// review message
	Message string `json:"message,omitempty"`

	// user of reviewer
	Operator string `json:"operator,omitempty"`

	// operator type of reviewer eg.[global_admin|developer|business|technical|isv]
	OperatorType string `json:"operator_type,omitempty"`

	// app version review time
	ReviewTime strfmt.DateTime `json:"review_time,omitempty"`

	// review status of app version eg.[isv-in-review|isv-passed|isv-rejected|isv-draft|business-in-review|business-passed|business-rejected|develop-draft|develop-in-review|develop-passed|develop-rejected|develop-draft]
	Status string `json:"status,omitempty"`

	// record status changed time
	StatusTime strfmt.DateTime `json:"status_time,omitempty"`
}

OpenpitrixAppVersionReviewPhase openpitrix app version review phase swagger:model openpitrixAppVersionReviewPhase

func (*OpenpitrixAppVersionReviewPhase) MarshalBinary added in v0.4.0

func (m *OpenpitrixAppVersionReviewPhase) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAppVersionReviewPhase) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixAppVersionReviewPhase) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAppVersionReviewPhase) Validate added in v0.4.0

Validate validates this openpitrix app version review phase

type OpenpitrixAppVersionReviewPhaseOAIGen added in v0.4.0

type OpenpitrixAppVersionReviewPhaseOAIGen map[string]OpenpitrixAppVersionReviewPhase

OpenpitrixAppVersionReviewPhaseOAIGen review phase, app need one more reviewer to review, when reviewer reviewed, status changed swagger:model openpitrixAppVersionReviewPhaseOAIGen

func (OpenpitrixAppVersionReviewPhaseOAIGen) Validate added in v0.4.0

Validate validates this openpitrix app version review phase OAI gen

type OpenpitrixAppendAttachmentResponse added in v0.4.0

type OpenpitrixAppendAttachmentResponse struct {

	// attachment id
	AttachmentID string `json:"attachment_id,omitempty"`

	// filename, attachment contain one more file
	Filename []string `json:"filename"`
}

OpenpitrixAppendAttachmentResponse openpitrix append attachment response swagger:model openpitrixAppendAttachmentResponse

func (*OpenpitrixAppendAttachmentResponse) MarshalBinary added in v0.4.0

func (m *OpenpitrixAppendAttachmentResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAppendAttachmentResponse) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixAppendAttachmentResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAppendAttachmentResponse) Validate added in v0.4.0

Validate validates this openpitrix append attachment response

type OpenpitrixAttachKeyPairsRequest added in v0.1.7

type OpenpitrixAttachKeyPairsRequest struct {

	// ids of key pairs to attach
	KeyPairID []string `json:"key_pair_id"`

	// ids of node to attached
	NodeID []string `json:"node_id"`
}

OpenpitrixAttachKeyPairsRequest openpitrix attach key pairs request swagger:model openpitrixAttachKeyPairsRequest

func (*OpenpitrixAttachKeyPairsRequest) MarshalBinary added in v0.1.7

func (m *OpenpitrixAttachKeyPairsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAttachKeyPairsRequest) UnmarshalBinary added in v0.1.7

func (m *OpenpitrixAttachKeyPairsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAttachKeyPairsRequest) Validate added in v0.1.7

Validate validates this openpitrix attach key pairs request

type OpenpitrixAttachKeyPairsResponse added in v0.1.7

type OpenpitrixAttachKeyPairsResponse struct {

	// ids of jobs of attach key pair
	JobID []string `json:"job_id"`
}

OpenpitrixAttachKeyPairsResponse openpitrix attach key pairs response swagger:model openpitrixAttachKeyPairsResponse

func (*OpenpitrixAttachKeyPairsResponse) MarshalBinary added in v0.1.7

func (m *OpenpitrixAttachKeyPairsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAttachKeyPairsResponse) UnmarshalBinary added in v0.1.7

func (m *OpenpitrixAttachKeyPairsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAttachKeyPairsResponse) Validate added in v0.1.7

Validate validates this openpitrix attach key pairs response

type OpenpitrixAttachment added in v0.4.0

type OpenpitrixAttachment struct {

	// filename map to content
	AttachmentContent map[string]strfmt.Base64 `json:"attachment_content,omitempty"`

	// attachment id
	AttachmentID string `json:"attachment_id,omitempty"`

	// the time attachment create
	CreateTime strfmt.DateTime `json:"create_time,omitempty"`
}

OpenpitrixAttachment openpitrix attachment swagger:model openpitrixAttachment

func (*OpenpitrixAttachment) MarshalBinary added in v0.4.0

func (m *OpenpitrixAttachment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixAttachment) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixAttachment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixAttachment) Validate added in v0.4.0

func (m *OpenpitrixAttachment) Validate(formats strfmt.Registry) error

Validate validates this openpitrix attachment

type OpenpitrixBasicConfig added in v0.4.0

type OpenpitrixBasicConfig struct {

	// platform name
	PlatformName string `json:"platform_name,omitempty"`

	// platform url
	PlatformURL string `json:"platform_url,omitempty"`
}

OpenpitrixBasicConfig openpitrix basic config swagger:model openpitrixBasicConfig

func (*OpenpitrixBasicConfig) MarshalBinary added in v0.4.0

func (m *OpenpitrixBasicConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixBasicConfig) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixBasicConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixBasicConfig) Validate added in v0.4.0

func (m *OpenpitrixBasicConfig) Validate(formats strfmt.Registry) error

Validate validates this openpitrix basic config

type OpenpitrixBindUserRoleRequest added in v0.4.0

type OpenpitrixBindUserRoleRequest struct {

	// required, ids of role for user to bind with
	RoleID []string `json:"role_id"`

	// required, ids of user to bind
	UserID []string `json:"user_id"`
}

OpenpitrixBindUserRoleRequest openpitrix bind user role request swagger:model openpitrixBindUserRoleRequest

func (*OpenpitrixBindUserRoleRequest) MarshalBinary added in v0.4.0

func (m *OpenpitrixBindUserRoleRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixBindUserRoleRequest) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixBindUserRoleRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixBindUserRoleRequest) Validate added in v0.4.0

func (m *OpenpitrixBindUserRoleRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix bind user role request

type OpenpitrixBindUserRoleResponse added in v0.4.0

type OpenpitrixBindUserRoleResponse struct {

	// ids of role for user to bind with
	RoleID []string `json:"role_id"`

	// ids of user bind
	UserID []string `json:"user_id"`
}

OpenpitrixBindUserRoleResponse openpitrix bind user role response swagger:model openpitrixBindUserRoleResponse

func (*OpenpitrixBindUserRoleResponse) MarshalBinary added in v0.4.0

func (m *OpenpitrixBindUserRoleResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixBindUserRoleResponse) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixBindUserRoleResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixBindUserRoleResponse) Validate added in v0.4.0

func (m *OpenpitrixBindUserRoleResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix bind user role response

type OpenpitrixCanDoRequest added in v0.4.0

type OpenpitrixCanDoRequest struct {

	// rpc method eg.[Token|CanDo|...]
	APIMethod string `json:"api_method,omitempty"`

	// required, request uri
	URL string `json:"url,omitempty"`

	// required, url method, http verb
	URLMethod string `json:"url_method,omitempty"`

	// required, id of user to check whether has permission
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixCanDoRequest openpitrix can do request swagger:model openpitrixCanDoRequest

func (*OpenpitrixCanDoRequest) MarshalBinary added in v0.4.0

func (m *OpenpitrixCanDoRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCanDoRequest) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCanDoRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCanDoRequest) Validate added in v0.4.0

func (m *OpenpitrixCanDoRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix can do request

type OpenpitrixCanDoResponse added in v0.4.0

type OpenpitrixCanDoResponse struct {

	// access path of user
	AccessPath string `json:"access_path,omitempty"`

	// owner path of user, concat string group_path:user_id
	OwnerPath string `json:"owner_path,omitempty"`

	// id of user to check whether has permission
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixCanDoResponse openpitrix can do response swagger:model openpitrixCanDoResponse

func (*OpenpitrixCanDoResponse) MarshalBinary added in v0.4.0

func (m *OpenpitrixCanDoResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCanDoResponse) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCanDoResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCanDoResponse) Validate added in v0.4.0

func (m *OpenpitrixCanDoResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix can do response

type OpenpitrixCancelAppVersionRequest added in v0.2.1

type OpenpitrixCancelAppVersionRequest struct {

	// required, id of version to cancel
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixCancelAppVersionRequest openpitrix cancel app version request swagger:model openpitrixCancelAppVersionRequest

func (*OpenpitrixCancelAppVersionRequest) MarshalBinary added in v0.2.1

func (m *OpenpitrixCancelAppVersionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCancelAppVersionRequest) UnmarshalBinary added in v0.2.1

func (m *OpenpitrixCancelAppVersionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCancelAppVersionRequest) Validate added in v0.2.1

Validate validates this openpitrix cancel app version request

type OpenpitrixCancelAppVersionResponse added in v0.2.1

type OpenpitrixCancelAppVersionResponse struct {

	// required, id of version canceled
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixCancelAppVersionResponse openpitrix cancel app version response swagger:model openpitrixCancelAppVersionResponse

func (*OpenpitrixCancelAppVersionResponse) MarshalBinary added in v0.2.1

func (m *OpenpitrixCancelAppVersionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCancelAppVersionResponse) UnmarshalBinary added in v0.2.1

func (m *OpenpitrixCancelAppVersionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCancelAppVersionResponse) Validate added in v0.2.1

Validate validates this openpitrix cancel app version response

type OpenpitrixCategory

type OpenpitrixCategory struct {

	// category id
	CategoryID string `json:"category_id,omitempty"`

	// the time when category create
	CreateTime strfmt.DateTime `json:"create_time,omitempty"`

	// category description
	Description string `json:"description,omitempty"`

	// category icon
	Icon string `json:"icon,omitempty"`

	// the i18n of this category, json format, sample: {"zh_cn": "数据库", "en": "database"}
	Locale string `json:"locale,omitempty"`

	// category name,app belong to a category,eg.[AI|Firewall|cache|...]
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// owner path, concat string group_path:user_id
	OwnerPath string `json:"owner_path,omitempty"`

	// the time when category update
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`
}

OpenpitrixCategory openpitrix category swagger:model openpitrixCategory

func (*OpenpitrixCategory) MarshalBinary

func (m *OpenpitrixCategory) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCategory) UnmarshalBinary

func (m *OpenpitrixCategory) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCategory) Validate

func (m *OpenpitrixCategory) Validate(formats strfmt.Registry) error

Validate validates this openpitrix category

type OpenpitrixCeaseClustersRequest

type OpenpitrixCeaseClustersRequest struct {

	// advanced param
	AdvancedParam []string `json:"advanced_param"`

	// required, ids of cluster to cease
	ClusterID []string `json:"cluster_id"`
}

OpenpitrixCeaseClustersRequest openpitrix cease clusters request swagger:model openpitrixCeaseClustersRequest

func (*OpenpitrixCeaseClustersRequest) MarshalBinary

func (m *OpenpitrixCeaseClustersRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCeaseClustersRequest) UnmarshalBinary

func (m *OpenpitrixCeaseClustersRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCeaseClustersRequest) Validate

func (m *OpenpitrixCeaseClustersRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix cease clusters request

type OpenpitrixCeaseClustersResponse

type OpenpitrixCeaseClustersResponse struct {

	// ids of cluster ceased
	ClusterID []string `json:"cluster_id"`

	// ids of job of cease cluster
	JobID []string `json:"job_id"`
}

OpenpitrixCeaseClustersResponse openpitrix cease clusters response swagger:model openpitrixCeaseClustersResponse

func (*OpenpitrixCeaseClustersResponse) MarshalBinary

func (m *OpenpitrixCeaseClustersResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCeaseClustersResponse) UnmarshalBinary

func (m *OpenpitrixCeaseClustersResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCeaseClustersResponse) Validate

Validate validates this openpitrix cease clusters response

type OpenpitrixChangePasswordRequest added in v0.2.3

type OpenpitrixChangePasswordRequest struct {

	// required, new password for reset
	NewPassword string `json:"new_password,omitempty"`

	// required, reset id
	ResetID string `json:"reset_id,omitempty"`
}

OpenpitrixChangePasswordRequest openpitrix change password request swagger:model openpitrixChangePasswordRequest

func (*OpenpitrixChangePasswordRequest) MarshalBinary added in v0.2.3

func (m *OpenpitrixChangePasswordRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixChangePasswordRequest) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixChangePasswordRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixChangePasswordRequest) Validate added in v0.2.3

Validate validates this openpitrix change password request

type OpenpitrixChangePasswordResponse added in v0.2.3

type OpenpitrixChangePasswordResponse struct {

	// id of user that changed password
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixChangePasswordResponse openpitrix change password response swagger:model openpitrixChangePasswordResponse

func (*OpenpitrixChangePasswordResponse) MarshalBinary added in v0.2.3

func (m *OpenpitrixChangePasswordResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixChangePasswordResponse) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixChangePasswordResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixChangePasswordResponse) Validate added in v0.2.3

Validate validates this openpitrix change password response

type OpenpitrixCheckResourceResponse added in v0.4.0

type OpenpitrixCheckResourceResponse struct {

	// check ok or not
	Ok bool `json:"ok,omitempty"`
}

OpenpitrixCheckResourceResponse openpitrix check resource response swagger:model openpitrixCheckResourceResponse

func (*OpenpitrixCheckResourceResponse) MarshalBinary added in v0.4.0

func (m *OpenpitrixCheckResourceResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCheckResourceResponse) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCheckResourceResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCheckResourceResponse) Validate added in v0.4.0

Validate validates this openpitrix check resource response

type OpenpitrixCluster

type OpenpitrixCluster struct {

	// additional info
	AdditionalInfo string `json:"additional_info,omitempty"`

	// id of app run in cluster
	AppID string `json:"app_id,omitempty"`

	// cluster common set
	ClusterCommonSet OpenpitrixClusterClusterCommonSet `json:"cluster_common_set"`

	// cluster id
	ClusterID string `json:"cluster_id,omitempty"`

	// cluster link set
	ClusterLinkSet OpenpitrixClusterClusterLinkSet `json:"cluster_link_set"`

	// cluster loadbalancer set
	ClusterLoadbalancerSet OpenpitrixClusterClusterLoadbalancerSet `json:"cluster_loadbalancer_set"`

	// cluster node set
	ClusterNodeSet OpenpitrixClusterClusterNodeSet `json:"cluster_node_set"`

	// cluster role set
	ClusterRoleSet OpenpitrixClusterClusterRoleSet `json:"cluster_role_set"`

	// cluster type, frontgate or normal cluster
	ClusterType int64 `json:"cluster_type,omitempty"`

	// the time when cluster create
	CreateTime strfmt.DateTime `json:"create_time,omitempty"`

	// cluster used to debug or not
	Debug bool `json:"debug,omitempty"`

	// cluster description
	Description string `json:"description,omitempty"`

	// endpoint of cluster
	Endpoints string `json:"endpoints,omitempty"`

	// cluster env
	Env string `json:"env,omitempty"`

	// frontgate id, a proxy for vpc to communicate
	FrontgateID string `json:"frontgate_id,omitempty"`

	// global uuid
	GlobalUUID string `json:"global_uuid,omitempty"`

	// metadata root access
	MetadataRootAccess bool `json:"metadata_root_access,omitempty"`

	// cluster name
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// owner path, concat string group_path:user_id
	OwnerPath string `json:"owner_path,omitempty"`

	// cluster runtime id
	RuntimeID string `json:"runtime_id,omitempty"`

	// cluster status eg.[active|used|enabled|disabled|deleted|stopped|ceased]
	Status string `json:"status,omitempty"`

	// record status changed time
	StatusTime strfmt.DateTime `json:"status_time,omitempty"`

	// subnet id, cluster run in a subnet
	SubnetID string `json:"subnet_id,omitempty"`

	// cluster transition status eg.[creating|deleting|upgrading|updating|rollbacking|stopping|starting|recovering|ceasing|resizing|scaling]
	TransitionStatus string `json:"transition_status,omitempty"`

	// upgrade status, unused
	UpgradeStatus string `json:"upgrade_status,omitempty"`

	// cluster upgraded time
	UpgradeTime strfmt.DateTime `json:"upgrade_time,omitempty"`

	// id of version of app run in cluster
	VersionID string `json:"version_id,omitempty"`

	// vpc id, a vpc contain one more subnet
	VpcID string `json:"vpc_id,omitempty"`

	// zone of cluster eg.[pek3a|pek3b]
	Zone string `json:"zone,omitempty"`
}

OpenpitrixCluster openpitrix cluster swagger:model openpitrixCluster

func (*OpenpitrixCluster) MarshalBinary

func (m *OpenpitrixCluster) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCluster) UnmarshalBinary

func (m *OpenpitrixCluster) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCluster) Validate

func (m *OpenpitrixCluster) Validate(formats strfmt.Registry) error

Validate validates this openpitrix cluster

type OpenpitrixClusterClusterCommonSet

type OpenpitrixClusterClusterCommonSet []*OpenpitrixClusterCommon

OpenpitrixClusterClusterCommonSet list of cluster common swagger:model openpitrixClusterClusterCommonSet

func (OpenpitrixClusterClusterCommonSet) Validate

Validate validates this openpitrix cluster cluster common set

type OpenpitrixClusterClusterLinkSet

type OpenpitrixClusterClusterLinkSet []*OpenpitrixClusterLink

OpenpitrixClusterClusterLinkSet list of cluster link swagger:model openpitrixClusterClusterLinkSet

func (OpenpitrixClusterClusterLinkSet) Validate

Validate validates this openpitrix cluster cluster link set

type OpenpitrixClusterClusterLoadbalancerSet

type OpenpitrixClusterClusterLoadbalancerSet []*OpenpitrixClusterLoadbalancer

OpenpitrixClusterClusterLoadbalancerSet lister of cluster loadbalancer swagger:model openpitrixClusterClusterLoadbalancerSet

func (OpenpitrixClusterClusterLoadbalancerSet) Validate

Validate validates this openpitrix cluster cluster loadbalancer set

type OpenpitrixClusterClusterNodeSet

type OpenpitrixClusterClusterNodeSet []*OpenpitrixClusterNode

OpenpitrixClusterClusterNodeSet list of cluster node swagger:model openpitrixClusterClusterNodeSet

func (OpenpitrixClusterClusterNodeSet) Validate

Validate validates this openpitrix cluster cluster node set

type OpenpitrixClusterClusterRoleSet

type OpenpitrixClusterClusterRoleSet []*OpenpitrixClusterRole

OpenpitrixClusterClusterRoleSet list of cluster role swagger:model openpitrixClusterClusterRoleSet

func (OpenpitrixClusterClusterRoleSet) Validate

Validate validates this openpitrix cluster cluster role set

type OpenpitrixClusterCommon

type OpenpitrixClusterCommon struct {

	// action of cluster support.eg.[change_vxnet|scale_horizontal]
	AdvancedActions string `json:"advanced_actions,omitempty"`

	// agent install or not
	AgentInstalled bool `json:"agent_installed,omitempty"`

	// policy of backup
	BackupPolicy string `json:"backup_policy,omitempty"`

	// backup service config, a json string
	BackupService string `json:"backup_service,omitempty"`

	// cluster id
	ClusterID string `json:"cluster_id,omitempty"`

	// custom metadata script, a json string
	CustomMetadataScript string `json:"custom_metadata_script,omitempty"`

	// custom service config, a json string
	CustomService string `json:"custom_service,omitempty"`

	// delete snapshot service config, a json string
	DeleteSnapshotService string `json:"delete_snapshot_service,omitempty"`

	// destroy service config, a json string
	DestroyService string `json:"destroy_service,omitempty"`

	// health check config,a json string
	HealthCheck string `json:"health_check,omitempty"`

	// hypervisor.eg.[docker|kvm|...]
	Hypervisor string `json:"hypervisor,omitempty"`

	// image id
	ImageID string `json:"image_id,omitempty"`

	// support incremental backup or not
	IncrementalBackupSupported bool `json:"incremental_backup_supported,omitempty"`

	// init service config, a json string
	InitService string `json:"init_service,omitempty"`

	// monitor config,a json string
	Monitor string `json:"monitor,omitempty"`

	// passphraseless
	Passphraseless string `json:"passphraseless,omitempty"`

	// restart service config, a json string
	RestartService string `json:"restart_service,omitempty"`

	// restore service config, a json string
	RestoreService string `json:"restore_service,omitempty"`

	// cluster role
	Role string `json:"role,omitempty"`

	// scale in service config, a json string
	ScaleInService string `json:"scale_in_service,omitempty"`

	// scale out service config, a json string
	ScaleOutService string `json:"scale_out_service,omitempty"`

	// bound of server id(index number), some service(zookeeper) need the index to be bounded
	ServerIDUpperBound int64 `json:"server_id_upper_bound,omitempty"`

	// start service config, a json string
	StartService string `json:"start_service,omitempty"`

	// stop service config, a json string
	StopService string `json:"stop_service,omitempty"`

	// upgrade service config, a json string
	UpgradeService string `json:"upgrade_service,omitempty"`

	// vertical scaling policy.eg.[parallel|sequential]
	VerticalScalingPolicy string `json:"vertical_scaling_policy,omitempty"`
}

OpenpitrixClusterCommon openpitrix cluster common swagger:model openpitrixClusterCommon

func (*OpenpitrixClusterCommon) MarshalBinary

func (m *OpenpitrixClusterCommon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixClusterCommon) UnmarshalBinary

func (m *OpenpitrixClusterCommon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixClusterCommon) Validate

func (m *OpenpitrixClusterCommon) Validate(formats strfmt.Registry) error

Validate validates this openpitrix cluster common

type OpenpitrixClusterLink struct {

	// cluster id
	ClusterID string `json:"cluster_id,omitempty"`

	// external cluster id
	ExternalClusterID string `json:"external_cluster_id,omitempty"`

	// cluster link name eg.[mysql|wordpress|...]
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// owner path, concat string group_path:user_id
	OwnerPath string `json:"owner_path,omitempty"`
}

OpenpitrixClusterLink openpitrix cluster link swagger:model openpitrixClusterLink

func (*OpenpitrixClusterLink) MarshalBinary

func (m *OpenpitrixClusterLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixClusterLink) UnmarshalBinary

func (m *OpenpitrixClusterLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixClusterLink) Validate

func (m *OpenpitrixClusterLink) Validate(formats strfmt.Registry) error

Validate validates this openpitrix cluster link

type OpenpitrixClusterLoadbalancer

type OpenpitrixClusterLoadbalancer struct {

	// cluster id
	ClusterID string `json:"cluster_id,omitempty"`

	// listener id
	LoadbalancerListenerID string `json:"loadbalancer_listener_id,omitempty"`

	// policy id
	LoadbalancerPolicyID string `json:"loadbalancer_policy_id,omitempty"`

	// port
	LoadbalancerPort int64 `json:"loadbalancer_port,omitempty"`

	// role of balancer
	Role string `json:"role,omitempty"`
}

OpenpitrixClusterLoadbalancer openpitrix cluster loadbalancer swagger:model openpitrixClusterLoadbalancer

func (*OpenpitrixClusterLoadbalancer) MarshalBinary

func (m *OpenpitrixClusterLoadbalancer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixClusterLoadbalancer) UnmarshalBinary

func (m *OpenpitrixClusterLoadbalancer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixClusterLoadbalancer) Validate

func (m *OpenpitrixClusterLoadbalancer) Validate(formats strfmt.Registry) error

Validate validates this openpitrix cluster loadbalancer

type OpenpitrixClusterNode

type OpenpitrixClusterNode struct {

	// auto backup or not
	AutoBackup bool `json:"auto_backup,omitempty"`

	// cluster common info
	ClusterCommon *OpenpitrixClusterCommon `json:"cluster_common,omitempty"`

	// cluster id
	ClusterID string `json:"cluster_id,omitempty"`

	// cluster role
	ClusterRole *OpenpitrixClusterRole `json:"cluster_role,omitempty"`

	// the time when cluster node create
	CreateTime strfmt.DateTime `json:"create_time,omitempty"`

	// custom metadata
	CustomMetadata string `json:"custom_metadata,omitempty"`

	// device
	Device string `json:"device,omitempty"`

	// elastic ip, if attach ip
	Eip string `json:"eip,omitempty"`

	// global server id
	GlobalServerID int64 `json:"global_server_id,omitempty"`

	// group id
	GroupID int64 `json:"group_id,omitempty"`

	// health status default empty eg.[healthy|unhealthy|""]
	HealthStatus string `json:"health_status,omitempty"`

	// host id
	HostID string `json:"host_id,omitempty"`

	// host ip
	HostIP string `json:"host_ip,omitempty"`

	// instance id
	InstanceID string `json:"instance_id,omitempty"`

	// backup or not
	IsBackup bool `json:"is_backup,omitempty"`

	// list of ssh key pair id
	KeyPairID []string `json:"key_pair_id"`

	// name, default empty
	Name string `json:"name,omitempty"`

	// cluster node(cluster contain one more node) id
	NodeID string `json:"node_id,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// own path, concat string group_path:user_id
	OwnerPath string `json:"owner_path,omitempty"`

	// private ip
	PrivateIP string `json:"private_ip,omitempty"`

	// public key
	PubKey string `json:"pub_key,omitempty"`

	// role eg.[wordpress|mysql|...]
	Role string `json:"role,omitempty"`

	// server id
	ServerID int64 `json:"server_id,omitempty"`

	// status eg.[active|used|enabled|disabled|deleted|stopped|ceased|successful|failed]
	Status string `json:"status,omitempty"`

	// record cluster node status changed time
	StatusTime strfmt.DateTime `json:"status_time,omitempty"`

	// subnet id
	SubnetID string `json:"subnet_id,omitempty"`

	// transition status eg.[creating|deleting|upgrading|updating|rollbacking|stopping|starting|recovering|ceasing|resizing|scaling]
	TransitionStatus string `json:"transition_status,omitempty"`

	// volume id, if mount volume
	VolumeID string `json:"volume_id,omitempty"`
}

OpenpitrixClusterNode openpitrix cluster node swagger:model openpitrixClusterNode

func (*OpenpitrixClusterNode) MarshalBinary

func (m *OpenpitrixClusterNode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixClusterNode) UnmarshalBinary

func (m *OpenpitrixClusterNode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixClusterNode) Validate

func (m *OpenpitrixClusterNode) Validate(formats strfmt.Registry) error

Validate validates this openpitrix cluster node

type OpenpitrixClusterRole

type OpenpitrixClusterRole struct {

	// api version
	APIVersion string `json:"api_version,omitempty"`

	// cluster id
	ClusterID string `json:"cluster_id,omitempty"`

	// number of cpu
	CPU int64 `json:"cpu,omitempty"`

	// env of cluster
	Env string `json:"env,omitempty"`

	// file system eg.[ext|ext4|...]
	FileSystem string `json:"file_system,omitempty"`

	// number of gpu
	Gpu int64 `json:"gpu,omitempty"`

	// size of instance
	InstanceSize int64 `json:"instance_size,omitempty"`

	// size of memory
	Memory int64 `json:"memory,omitempty"`

	// mount_options
	MountOptions string `json:"mount_options,omitempty"`

	// mount point, a dir.eg.[/data]
	MountPoint string `json:"mount_point,omitempty"`

	// number of replica on ready
	ReadyReplicas int64 `json:"ready_replicas,omitempty"`

	// number of replica
	Replicas int64 `json:"replicas,omitempty"`

	// role.eg.[wordpress|mysql|...]
	Role string `json:"role,omitempty"`

	// size of storage
	StorageSize int64 `json:"storage_size,omitempty"`
}

OpenpitrixClusterRole openpitrix cluster role swagger:model openpitrixClusterRole

func (*OpenpitrixClusterRole) MarshalBinary

func (m *OpenpitrixClusterRole) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixClusterRole) UnmarshalBinary

func (m *OpenpitrixClusterRole) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixClusterRole) Validate

func (m *OpenpitrixClusterRole) Validate(formats strfmt.Registry) error

Validate validates this openpitrix cluster role

type OpenpitrixCreateAppRequest

type OpenpitrixCreateAppRequest struct {

	// app icon
	Icon strfmt.Base64 `json:"icon,omitempty"`

	// required, app name
	Name string `json:"name,omitempty"`

	// required, version name of the app
	VersionName string `json:"version_name,omitempty"`

	// required, version with specific app package
	VersionPackage strfmt.Base64 `json:"version_package,omitempty"`

	// optional, vmbased/helm
	VersionType string `json:"version_type,omitempty"`
}

OpenpitrixCreateAppRequest openpitrix create app request swagger:model openpitrixCreateAppRequest

func (*OpenpitrixCreateAppRequest) MarshalBinary

func (m *OpenpitrixCreateAppRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateAppRequest) UnmarshalBinary

func (m *OpenpitrixCreateAppRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateAppRequest) Validate

func (m *OpenpitrixCreateAppRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create app request

type OpenpitrixCreateAppResponse

type OpenpitrixCreateAppResponse struct {

	// app id
	AppID string `json:"app_id,omitempty"`

	// version id of the app
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixCreateAppResponse openpitrix create app response swagger:model openpitrixCreateAppResponse

func (*OpenpitrixCreateAppResponse) MarshalBinary

func (m *OpenpitrixCreateAppResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateAppResponse) UnmarshalBinary

func (m *OpenpitrixCreateAppResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateAppResponse) Validate

func (m *OpenpitrixCreateAppResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create app response

type OpenpitrixCreateAppVersionRequest

type OpenpitrixCreateAppVersionRequest struct {

	// required, id of app to create new version
	AppID string `json:"app_id,omitempty"`

	// description of app of specific version
	Description string `json:"description,omitempty"`

	// required, version name eg.[0.1.0|0.1.3|...]
	Name string `json:"name,omitempty"`

	// package of app of specific version
	Package strfmt.Base64 `json:"package,omitempty"`

	// optional: vmbased/helm
	Type string `json:"type,omitempty"`
}

OpenpitrixCreateAppVersionRequest openpitrix create app version request swagger:model openpitrixCreateAppVersionRequest

func (*OpenpitrixCreateAppVersionRequest) MarshalBinary

func (m *OpenpitrixCreateAppVersionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateAppVersionRequest) UnmarshalBinary

func (m *OpenpitrixCreateAppVersionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateAppVersionRequest) Validate

Validate validates this openpitrix create app version request

type OpenpitrixCreateAppVersionResponse

type OpenpitrixCreateAppVersionResponse struct {

	// version id
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixCreateAppVersionResponse openpitrix create app version response swagger:model openpitrixCreateAppVersionResponse

func (*OpenpitrixCreateAppVersionResponse) MarshalBinary

func (m *OpenpitrixCreateAppVersionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateAppVersionResponse) UnmarshalBinary

func (m *OpenpitrixCreateAppVersionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateAppVersionResponse) Validate

Validate validates this openpitrix create app version response

type OpenpitrixCreateAttachmentResponse added in v0.4.0

type OpenpitrixCreateAttachmentResponse struct {

	// attachment id
	AttachmentID string `json:"attachment_id,omitempty"`

	// file name
	Filename []string `json:"filename"`
}

OpenpitrixCreateAttachmentResponse openpitrix create attachment response swagger:model openpitrixCreateAttachmentResponse

func (*OpenpitrixCreateAttachmentResponse) MarshalBinary added in v0.4.0

func (m *OpenpitrixCreateAttachmentResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateAttachmentResponse) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCreateAttachmentResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateAttachmentResponse) Validate added in v0.4.0

Validate validates this openpitrix create attachment response

type OpenpitrixCreateCategoryRequest

type OpenpitrixCreateCategoryRequest struct {

	// category description
	Description string `json:"description,omitempty"`

	// category icon
	Icon strfmt.Base64 `json:"icon,omitempty"`

	// the i18n of this category, json format, sample: {"zh_cn": "数据库", "en": "database"}
	Locale string `json:"locale,omitempty"`

	// required, category name
	Name string `json:"name,omitempty"`
}

OpenpitrixCreateCategoryRequest openpitrix create category request swagger:model openpitrixCreateCategoryRequest

func (*OpenpitrixCreateCategoryRequest) MarshalBinary

func (m *OpenpitrixCreateCategoryRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateCategoryRequest) UnmarshalBinary

func (m *OpenpitrixCreateCategoryRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateCategoryRequest) Validate

Validate validates this openpitrix create category request

type OpenpitrixCreateCategoryResponse

type OpenpitrixCreateCategoryResponse struct {

	// id of category created
	CategoryID string `json:"category_id,omitempty"`
}

OpenpitrixCreateCategoryResponse openpitrix create category response swagger:model openpitrixCreateCategoryResponse

func (*OpenpitrixCreateCategoryResponse) MarshalBinary

func (m *OpenpitrixCreateCategoryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateCategoryResponse) UnmarshalBinary

func (m *OpenpitrixCreateCategoryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateCategoryResponse) Validate

Validate validates this openpitrix create category response

type OpenpitrixCreateClientRequest added in v0.2.3

type OpenpitrixCreateClientRequest struct {

	// required, user id for create client
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixCreateClientRequest openpitrix create client request swagger:model openpitrixCreateClientRequest

func (*OpenpitrixCreateClientRequest) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreateClientRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateClientRequest) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreateClientRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateClientRequest) Validate added in v0.2.3

func (m *OpenpitrixCreateClientRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create client request

type OpenpitrixCreateClientResponse added in v0.2.3

type OpenpitrixCreateClientResponse struct {

	// client id of user
	ClientID string `json:"client_id,omitempty"`

	// client secret,used for validate client credentials
	ClientSecret string `json:"client_secret,omitempty"`

	// user id of client
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixCreateClientResponse openpitrix create client response swagger:model openpitrixCreateClientResponse

func (*OpenpitrixCreateClientResponse) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreateClientResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateClientResponse) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreateClientResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateClientResponse) Validate added in v0.2.3

func (m *OpenpitrixCreateClientResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create client response

type OpenpitrixCreateClusterRequest

type OpenpitrixCreateClusterRequest struct {

	// advanced param
	AdvancedParam []string `json:"advanced_param"`

	// required, id of app to run in cluster
	AppID string `json:"app_id,omitempty"`

	// required, conf a json string, include cpu, memory info of cluster
	Conf string `json:"conf,omitempty"`

	// required, id of runtime
	RuntimeID string `json:"runtime_id,omitempty"`

	// required, id of app version
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixCreateClusterRequest openpitrix create cluster request swagger:model openpitrixCreateClusterRequest

func (*OpenpitrixCreateClusterRequest) MarshalBinary

func (m *OpenpitrixCreateClusterRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateClusterRequest) UnmarshalBinary

func (m *OpenpitrixCreateClusterRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateClusterRequest) Validate

func (m *OpenpitrixCreateClusterRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create cluster request

type OpenpitrixCreateClusterResponse

type OpenpitrixCreateClusterResponse struct {

	// id of cluster created
	ClusterID string `json:"cluster_id,omitempty"`

	// id of job
	JobID string `json:"job_id,omitempty"`
}

OpenpitrixCreateClusterResponse openpitrix create cluster response swagger:model openpitrixCreateClusterResponse

func (*OpenpitrixCreateClusterResponse) MarshalBinary

func (m *OpenpitrixCreateClusterResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateClusterResponse) UnmarshalBinary

func (m *OpenpitrixCreateClusterResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateClusterResponse) Validate

Validate validates this openpitrix create cluster response

type OpenpitrixCreateGroupRequest added in v0.2.3

type OpenpitrixCreateGroupRequest struct {

	// group description
	Description string `json:"description,omitempty"`

	// required, group name
	Name string `json:"name,omitempty"`

	// required, parent group id
	ParentGroupID string `json:"parent_group_id,omitempty"`
}

OpenpitrixCreateGroupRequest openpitrix create group request swagger:model openpitrixCreateGroupRequest

func (*OpenpitrixCreateGroupRequest) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreateGroupRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateGroupRequest) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreateGroupRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateGroupRequest) Validate added in v0.2.3

func (m *OpenpitrixCreateGroupRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create group request

type OpenpitrixCreateGroupResponse added in v0.2.3

type OpenpitrixCreateGroupResponse struct {

	// id of group created
	GroupID string `json:"group_id,omitempty"`
}

OpenpitrixCreateGroupResponse openpitrix create group response swagger:model openpitrixCreateGroupResponse

func (*OpenpitrixCreateGroupResponse) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreateGroupResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateGroupResponse) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreateGroupResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateGroupResponse) Validate added in v0.2.3

func (m *OpenpitrixCreateGroupResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create group response

type OpenpitrixCreateJobResponse

type OpenpitrixCreateJobResponse struct {

	// id of app deploy in cluster
	AppID string `json:"app_id,omitempty"`

	// id of cluster run job
	ClusterID string `json:"cluster_id,omitempty"`

	// id of job created
	JobID string `json:"job_id,omitempty"`

	// id of runtime of cluster
	RuntimeID string `json:"runtime_id,omitempty"`

	// id of specific app version
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixCreateJobResponse openpitrix create job response swagger:model openpitrixCreateJobResponse

func (*OpenpitrixCreateJobResponse) MarshalBinary

func (m *OpenpitrixCreateJobResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateJobResponse) UnmarshalBinary

func (m *OpenpitrixCreateJobResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateJobResponse) Validate

func (m *OpenpitrixCreateJobResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create job response

type OpenpitrixCreateKeyPairRequest added in v0.1.7

type OpenpitrixCreateKeyPairRequest struct {

	// keypair description
	Description string `json:"description,omitempty"`

	// keypair name
	Name string `json:"name,omitempty"`

	// public key
	PubKey string `json:"pub_key,omitempty"`
}

OpenpitrixCreateKeyPairRequest openpitrix create key pair request swagger:model openpitrixCreateKeyPairRequest

func (*OpenpitrixCreateKeyPairRequest) MarshalBinary added in v0.1.7

func (m *OpenpitrixCreateKeyPairRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateKeyPairRequest) UnmarshalBinary added in v0.1.7

func (m *OpenpitrixCreateKeyPairRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateKeyPairRequest) Validate added in v0.1.7

func (m *OpenpitrixCreateKeyPairRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create key pair request

type OpenpitrixCreateKeyPairResponse added in v0.1.7

type OpenpitrixCreateKeyPairResponse struct {

	// id of key pair created
	KeyPairID string `json:"key_pair_id,omitempty"`
}

OpenpitrixCreateKeyPairResponse openpitrix create key pair response swagger:model openpitrixCreateKeyPairResponse

func (*OpenpitrixCreateKeyPairResponse) MarshalBinary added in v0.1.7

func (m *OpenpitrixCreateKeyPairResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateKeyPairResponse) UnmarshalBinary added in v0.1.7

func (m *OpenpitrixCreateKeyPairResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateKeyPairResponse) Validate added in v0.1.7

Validate validates this openpitrix create key pair response

type OpenpitrixCreateMarketRequest added in v0.3.3

type OpenpitrixCreateMarketRequest struct {

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

	// name
	Name string `json:"name,omitempty"`

	// visibility
	Visibility string `json:"visibility,omitempty"`
}

OpenpitrixCreateMarketRequest openpitrix create market request swagger:model openpitrixCreateMarketRequest

func (*OpenpitrixCreateMarketRequest) MarshalBinary added in v0.3.3

func (m *OpenpitrixCreateMarketRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateMarketRequest) UnmarshalBinary added in v0.3.3

func (m *OpenpitrixCreateMarketRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateMarketRequest) Validate added in v0.3.3

func (m *OpenpitrixCreateMarketRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create market request

type OpenpitrixCreateMarketResponse added in v0.3.3

type OpenpitrixCreateMarketResponse struct {

	// market id
	MarketID string `json:"market_id,omitempty"`
}

OpenpitrixCreateMarketResponse openpitrix create market response swagger:model openpitrixCreateMarketResponse

func (*OpenpitrixCreateMarketResponse) MarshalBinary added in v0.3.3

func (m *OpenpitrixCreateMarketResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateMarketResponse) UnmarshalBinary added in v0.3.3

func (m *OpenpitrixCreateMarketResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateMarketResponse) Validate added in v0.3.3

func (m *OpenpitrixCreateMarketResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create market response

type OpenpitrixCreatePasswordResetRequest added in v0.2.3

type OpenpitrixCreatePasswordResetRequest struct {

	// required, user password
	Password string `json:"password,omitempty"`

	// required, id of user to create reset password action
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixCreatePasswordResetRequest openpitrix create password reset request swagger:model openpitrixCreatePasswordResetRequest

func (*OpenpitrixCreatePasswordResetRequest) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreatePasswordResetRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreatePasswordResetRequest) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreatePasswordResetRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreatePasswordResetRequest) Validate added in v0.2.3

Validate validates this openpitrix create password reset request

type OpenpitrixCreatePasswordResetResponse added in v0.2.3

type OpenpitrixCreatePasswordResetResponse struct {

	// reset id, used to change password
	ResetID string `json:"reset_id,omitempty"`

	// id of user that reset password
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixCreatePasswordResetResponse openpitrix create password reset response swagger:model openpitrixCreatePasswordResetResponse

func (*OpenpitrixCreatePasswordResetResponse) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreatePasswordResetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreatePasswordResetResponse) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreatePasswordResetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreatePasswordResetResponse) Validate added in v0.2.3

Validate validates this openpitrix create password reset response

type OpenpitrixCreateRepoRequest

type OpenpitrixCreateRepoRequest struct {

	// required app default status.eg:[draft|active]
	AppDefaultStatus string `json:"app_default_status,omitempty"`

	// category id
	CategoryID string `json:"category_id,omitempty"`

	// required, credential of visiting the repository
	Credential string `json:"credential,omitempty"`

	// repository description
	Description string `json:"description,omitempty"`

	// a kv string, tags of server
	Labels string `json:"labels,omitempty"`

	// required, repository name
	Name string `json:"name,omitempty"`

	// required, runtime provider eg.[qingcloud|aliyun|aws|kubernetes]
	Providers []string `json:"providers"`

	// selectors of label
	Selectors string `json:"selectors,omitempty"`

	// repository type
	Type string `json:"type,omitempty"`

	// required, url of visiting the repository
	URL string `json:"url,omitempty"`

	// required, visibility eg:[public|private]
	Visibility string `json:"visibility,omitempty"`
}

OpenpitrixCreateRepoRequest openpitrix create repo request swagger:model openpitrixCreateRepoRequest

func (*OpenpitrixCreateRepoRequest) MarshalBinary

func (m *OpenpitrixCreateRepoRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRepoRequest) UnmarshalBinary

func (m *OpenpitrixCreateRepoRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRepoRequest) Validate

func (m *OpenpitrixCreateRepoRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create repo request

type OpenpitrixCreateRepoResponse

type OpenpitrixCreateRepoResponse struct {

	// id of repository created
	RepoID string `json:"repo_id,omitempty"`
}

OpenpitrixCreateRepoResponse openpitrix create repo response swagger:model openpitrixCreateRepoResponse

func (*OpenpitrixCreateRepoResponse) MarshalBinary

func (m *OpenpitrixCreateRepoResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRepoResponse) UnmarshalBinary

func (m *OpenpitrixCreateRepoResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRepoResponse) Validate

func (m *OpenpitrixCreateRepoResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create repo response

type OpenpitrixCreateRoleRequest added in v0.4.0

type OpenpitrixCreateRoleRequest struct {

	// role description
	Description string `json:"description,omitempty"`

	// required, portal of role eg.[global_admin|user|isv]
	Portal string `json:"portal,omitempty"`

	// required, role name
	RoleName string `json:"role_name,omitempty"`
}

OpenpitrixCreateRoleRequest openpitrix create role request swagger:model openpitrixCreateRoleRequest

func (*OpenpitrixCreateRoleRequest) MarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRoleRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRoleRequest) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRoleRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRoleRequest) Validate added in v0.4.0

func (m *OpenpitrixCreateRoleRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create role request

type OpenpitrixCreateRoleResponse added in v0.4.0

type OpenpitrixCreateRoleResponse struct {

	// id of role created
	RoleID string `json:"role_id,omitempty"`
}

OpenpitrixCreateRoleResponse openpitrix create role response swagger:model openpitrixCreateRoleResponse

func (*OpenpitrixCreateRoleResponse) MarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRoleResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRoleResponse) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRoleResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRoleResponse) Validate added in v0.4.0

func (m *OpenpitrixCreateRoleResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create role response

type OpenpitrixCreateRuntimeCredentialRequest added in v0.4.0

type OpenpitrixCreateRuntimeCredentialRequest struct {

	// runtime credential description
	Description string `json:"description,omitempty"`

	// runtime credential name
	Name string `json:"name,omitempty"`

	// required, runtime provider eg.[qingcloud|aliyun|aws|kubernetes]
	Provider string `json:"provider,omitempty"`

	// required, runtime credential content, a json file
	RuntimeCredentialContent string `json:"runtime_credential_content,omitempty"`

	// required, runtime url
	RuntimeURL string `json:"runtime_url,omitempty"`
}

OpenpitrixCreateRuntimeCredentialRequest openpitrix create runtime credential request swagger:model openpitrixCreateRuntimeCredentialRequest

func (*OpenpitrixCreateRuntimeCredentialRequest) MarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRuntimeCredentialRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeCredentialRequest) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRuntimeCredentialRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeCredentialRequest) Validate added in v0.4.0

Validate validates this openpitrix create runtime credential request

type OpenpitrixCreateRuntimeCredentialResponse added in v0.4.0

type OpenpitrixCreateRuntimeCredentialResponse struct {

	// id of runtime credential created
	RuntimeCredentialID string `json:"runtime_credential_id,omitempty"`
}

OpenpitrixCreateRuntimeCredentialResponse openpitrix create runtime credential response swagger:model openpitrixCreateRuntimeCredentialResponse

func (*OpenpitrixCreateRuntimeCredentialResponse) MarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRuntimeCredentialResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeCredentialResponse) UnmarshalBinary added in v0.4.0

func (m *OpenpitrixCreateRuntimeCredentialResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeCredentialResponse) Validate added in v0.4.0

Validate validates this openpitrix create runtime credential response

type OpenpitrixCreateRuntimeRequest

type OpenpitrixCreateRuntimeRequest struct {

	// runtime description
	Description string `json:"description,omitempty"`

	// required, runtime name
	Name string `json:"name,omitempty"`

	// required, runtime provider eg.[qingcloud|aliyun|aws|kubernetes]
	Provider string `json:"provider,omitempty"`

	// required, runtime credential id
	RuntimeCredentialID string `json:"runtime_credential_id,omitempty"`

	// required, runtime zone eg.[pek3a|pek3b|...]
	Zone string `json:"zone,omitempty"`
}

OpenpitrixCreateRuntimeRequest openpitrix create runtime request swagger:model openpitrixCreateRuntimeRequest

func (*OpenpitrixCreateRuntimeRequest) MarshalBinary

func (m *OpenpitrixCreateRuntimeRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeRequest) UnmarshalBinary

func (m *OpenpitrixCreateRuntimeRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeRequest) Validate

func (m *OpenpitrixCreateRuntimeRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create runtime request

type OpenpitrixCreateRuntimeResponse

type OpenpitrixCreateRuntimeResponse struct {

	// id of runtime created
	RuntimeID string `json:"runtime_id,omitempty"`
}

OpenpitrixCreateRuntimeResponse openpitrix create runtime response swagger:model openpitrixCreateRuntimeResponse

func (*OpenpitrixCreateRuntimeResponse) MarshalBinary

func (m *OpenpitrixCreateRuntimeResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeResponse) UnmarshalBinary

func (m *OpenpitrixCreateRuntimeResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateRuntimeResponse) Validate

Validate validates this openpitrix create runtime response

type OpenpitrixCreateTaskResponse

type OpenpitrixCreateTaskResponse struct {

	// id of job created
	JobID string `json:"job_id,omitempty"`

	// id of task created
	TaskID string `json:"task_id,omitempty"`
}

OpenpitrixCreateTaskResponse openpitrix create task response swagger:model openpitrixCreateTaskResponse

func (*OpenpitrixCreateTaskResponse) MarshalBinary

func (m *OpenpitrixCreateTaskResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateTaskResponse) UnmarshalBinary

func (m *OpenpitrixCreateTaskResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateTaskResponse) Validate

func (m *OpenpitrixCreateTaskResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create task response

type OpenpitrixCreateUserRequest added in v0.2.3

type OpenpitrixCreateUserRequest struct {

	// user description
	Description string `json:"description,omitempty"`

	// required, user email
	Email string `json:"email,omitempty"`

	// required, user password
	Password string `json:"password,omitempty"`

	// user phone number
	PhoneNumber string `json:"phone_number,omitempty"`

	// required, user role_id
	RoleID string `json:"role_id,omitempty"`
}

OpenpitrixCreateUserRequest openpitrix create user request swagger:model openpitrixCreateUserRequest

func (*OpenpitrixCreateUserRequest) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreateUserRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateUserRequest) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreateUserRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateUserRequest) Validate added in v0.2.3

func (m *OpenpitrixCreateUserRequest) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create user request

type OpenpitrixCreateUserResponse added in v0.2.3

type OpenpitrixCreateUserResponse struct {

	// id of user created
	UserID string `json:"user_id,omitempty"`
}

OpenpitrixCreateUserResponse openpitrix create user response swagger:model openpitrixCreateUserResponse

func (*OpenpitrixCreateUserResponse) MarshalBinary added in v0.2.3

func (m *OpenpitrixCreateUserResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixCreateUserResponse) UnmarshalBinary added in v0.2.3

func (m *OpenpitrixCreateUserResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixCreateUserResponse) Validate added in v0.2.3

func (m *OpenpitrixCreateUserResponse) Validate(formats strfmt.Registry) error

Validate validates this openpitrix create user response

type OpenpitrixDeleteAppVersionRequest added in v0.2.1

type OpenpitrixDeleteAppVersionRequest struct {

	// required, id of version to delete
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixDeleteAppVersionRequest openpitrix delete app version request swagger:model openpitrixDeleteAppVersionRequest

func (*OpenpitrixDeleteAppVersionRequest) MarshalBinary added in v0.2.1

func (m *OpenpitrixDeleteAppVersionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixDeleteAppVersionRequest) UnmarshalBinary added in v0.2.1

func (m *OpenpitrixDeleteAppVersionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixDeleteAppVersionRequest) Validate added in v0.2.1

Validate validates this openpitrix delete app version request

type OpenpitrixDeleteAppVersionResponse added in v0.2.1

type OpenpitrixDeleteAppVersionResponse struct {

	// required, id of version deleted
	VersionID string `json:"version_id,omitempty"`
}

OpenpitrixDeleteAppVersionResponse openpitrix delete app version response swagger:model openpitrixDeleteAppVersionResponse

func (*OpenpitrixDeleteAppVersionResponse) MarshalBinary added in v0.2.1

func (m *OpenpitrixDeleteAppVersionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixDeleteAppVersionResponse) UnmarshalBinary added in v0.2.1

func (m *OpenpitrixDeleteAppVersionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OpenpitrixDeleteAppVersionResponse) Validate added in v0.2.1

Validate validates this openpitrix delete app version response

type OpenpitrixDeleteAppsRequest

type OpenpitrixDeleteAppsRequest struct {

	// required, ids of app to delete
	AppID []string `json:"app_id"`
}

OpenpitrixDeleteAppsRequest openpitrix delete apps request swagger:model openpitrixDeleteAppsRequest

func (*OpenpitrixDeleteAppsRequest) MarshalBinary

func (m *OpenpitrixDeleteAppsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OpenpitrixDeleteAppsRequest) UnmarshalBinary