model

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEnterpriseProjectRequest

type CreateEnterpriseProjectRequest struct {
	Body *EnterpriseProject `json:"body,omitempty"`
}

Request Object

func (CreateEnterpriseProjectRequest) String

type CreateEnterpriseProjectResponse

type CreateEnterpriseProjectResponse struct {
	EnterpriseProject *EpDetail `json:"enterprise_project,omitempty"`
	HttpStatusCode    int       `json:"-"`
}

Response Object

func (CreateEnterpriseProjectResponse) String

type DisableAction

type DisableAction struct {
	Action DisableActionAction `json:"action"`
}

停用企业项目操作

func (DisableAction) String

func (o DisableAction) String() string

type DisableActionAction

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

func (DisableActionAction) MarshalJSON

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

func (*DisableActionAction) UnmarshalJSON

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

type DisableActionActionEnum

type DisableActionActionEnum struct {
	DISABLE DisableActionAction
}

func GetDisableActionActionEnum

func GetDisableActionActionEnum() DisableActionActionEnum

type DisableEnterpriseProjectRequest

type DisableEnterpriseProjectRequest struct {
	EnterpriseProjectId string `json:"enterprise_project_id"`

	Body *DisableAction `json:"body,omitempty"`
}

Request Object

func (DisableEnterpriseProjectRequest) String

type DisableEnterpriseProjectResponse

type DisableEnterpriseProjectResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DisableEnterpriseProjectResponse) String

type EnableAction

type EnableAction struct {
	Action EnableActionAction `json:"action"`
}

停用启用企业项目操作

func (EnableAction) String

func (o EnableAction) String() string

type EnableActionAction

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

func (EnableActionAction) MarshalJSON

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

func (*EnableActionAction) UnmarshalJSON

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

type EnableActionActionEnum

type EnableActionActionEnum struct {
	ENABLE EnableActionAction
}

func GetEnableActionActionEnum

func GetEnableActionActionEnum() EnableActionActionEnum

type EnableEnterpriseProjectRequest

type EnableEnterpriseProjectRequest struct {
	EnterpriseProjectId string `json:"enterprise_project_id"`

	Body *EnableAction `json:"body,omitempty"`
}

Request Object

func (EnableEnterpriseProjectRequest) String

type EnableEnterpriseProjectResponse

type EnableEnterpriseProjectResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (EnableEnterpriseProjectResponse) String

type EnterpriseProject

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

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

	Type *string `json:"type,omitempty"`
}

企业项目

func (EnterpriseProject) String

func (o EnterpriseProject) String() string

type EpDetail

type EpDetail struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Description string `json:"description"`

	Status int32 `json:"status"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`

	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	Type EpDetailType `json:"type"`
}

企业项目详情

func (EpDetail) String

func (o EpDetail) String() string

type EpDetailType

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

func (EpDetailType) MarshalJSON

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

func (*EpDetailType) UnmarshalJSON

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

type EpDetailTypeEnum

type EpDetailTypeEnum struct {
	PROD EpDetailType
	POC  EpDetailType
}

func GetEpDetailTypeEnum

func GetEpDetailTypeEnum() EpDetailTypeEnum

type EpQuotas

type EpQuotas struct {
	Quota int32 `json:"quota"`

	Type string `json:"type"`

	Used int32 `json:"used"`
}

企业项目配额响应

func (EpQuotas) String

func (o EpQuotas) String() string

type Errors

type Errors struct {
	ErrorCode *string `json:"error_code,omitempty"`

	ErrorMsg *string `json:"error_msg,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	ResourceType *string `json:"resource_type,omitempty"`
}

错误列表

func (Errors) String

func (o Errors) String() string
type Link struct {
	Href string `json:"href"`

	Rel string `json:"rel"`
}

API的URL地址。

func (Link) String

func (o Link) String() string

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {
	Versions       *[]VersionDetail `json:"versions,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListEnterpriseProjectRequest

type ListEnterpriseProjectRequest struct {
	Id *string `json:"id,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

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

	Offset *int32 `json:"offset,omitempty"`

	SortDir *ListEnterpriseProjectRequestSortDir `json:"sort_dir,omitempty"`

	SortKey *ListEnterpriseProjectRequestSortKey `json:"sort_key,omitempty"`

	Status *int32 `json:"status,omitempty"`
}

Request Object

func (ListEnterpriseProjectRequest) String

type ListEnterpriseProjectRequestSortDir

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

func (ListEnterpriseProjectRequestSortDir) MarshalJSON

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

func (*ListEnterpriseProjectRequestSortDir) UnmarshalJSON

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

type ListEnterpriseProjectRequestSortDirEnum

type ListEnterpriseProjectRequestSortDirEnum struct {
	DESC ListEnterpriseProjectRequestSortDir
	ASC  ListEnterpriseProjectRequestSortDir
}

func GetListEnterpriseProjectRequestSortDirEnum

func GetListEnterpriseProjectRequestSortDirEnum() ListEnterpriseProjectRequestSortDirEnum

type ListEnterpriseProjectRequestSortKey

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

func (ListEnterpriseProjectRequestSortKey) MarshalJSON

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

func (*ListEnterpriseProjectRequestSortKey) UnmarshalJSON

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

type ListEnterpriseProjectRequestSortKeyEnum

type ListEnterpriseProjectRequestSortKeyEnum struct {
	CREATED_AT ListEnterpriseProjectRequestSortKey
	UPDATED_AT ListEnterpriseProjectRequestSortKey
}

func GetListEnterpriseProjectRequestSortKeyEnum

func GetListEnterpriseProjectRequestSortKeyEnum() ListEnterpriseProjectRequestSortKeyEnum

type ListEnterpriseProjectResponse

type ListEnterpriseProjectResponse struct {
	EnterpriseProjects *[]EpDetail `json:"enterprise_projects,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListEnterpriseProjectResponse) String

type Match

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

	Value string `json:"value"`
}

匹配字段

func (Match) String

func (o Match) String() string

type MigrateResource

type MigrateResource struct {
	ProjectId *string `json:"project_id,omitempty"`

	ResourceId string `json:"resource_id"`

	ResourceType string `json:"resource_type"`

	Associated *bool `json:"associated,omitempty"`
}

迁移资源

func (MigrateResource) String

func (o MigrateResource) String() string

type MigrateResourceRequest

type MigrateResourceRequest struct {
	EnterpriseProjectId string `json:"enterprise_project_id"`

	Body *MigrateResource `json:"body,omitempty"`
}

Request Object

func (MigrateResourceRequest) String

func (o MigrateResourceRequest) String() string

type MigrateResourceResponse

type MigrateResourceResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (MigrateResourceResponse) String

func (o MigrateResourceResponse) String() string

type QuotasDetail

type QuotasDetail struct {
	Resources []EpQuotas `json:"resources"`
}

配额信息

func (QuotasDetail) String

func (o QuotasDetail) String() string

type Resources

type Resources struct {
	EnterpriseProjectId string `json:"enterprise_project_id"`

	ProjectId string `json:"project_id"`

	ProjectName string `json:"project_name"`

	ResourceDetail *interface{} `json:"resource_detail"`

	ResourceId string `json:"resource_id"`

	ResourceName string `json:"resource_name"`

	ResourceType string `json:"resource_type"`
}

资源列表

func (Resources) String

func (o Resources) String() string

type ResqEpResouce

type ResqEpResouce struct {
	Projects *[]string `json:"projects,omitempty"`

	ResourceTypes []string `json:"resource_types"`

	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Matches *[]Match `json:"matches,omitempty"`
}

获取企业项目下资源请求

func (ResqEpResouce) String

func (o ResqEpResouce) String() string

type ShowApiVersionRequest

type ShowApiVersionRequest struct {
	ApiVersion string `json:"api_version"`
}

Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionResponse

type ShowApiVersionResponse struct {
	Version        *VersionDetail `json:"version,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type ShowEnterpriseProjectQuotaRequest

type ShowEnterpriseProjectQuotaRequest struct {
}

Request Object

func (ShowEnterpriseProjectQuotaRequest) String

type ShowEnterpriseProjectQuotaResponse

type ShowEnterpriseProjectQuotaResponse struct {
	Quotas         *QuotasDetail `json:"quotas,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowEnterpriseProjectQuotaResponse) String

type ShowEnterpriseProjectRequest

type ShowEnterpriseProjectRequest struct {
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

Request Object

func (ShowEnterpriseProjectRequest) String

type ShowEnterpriseProjectResponse

type ShowEnterpriseProjectResponse struct {
	EnterpriseProject *EpDetail `json:"enterprise_project,omitempty"`
	HttpStatusCode    int       `json:"-"`
}

Response Object

func (ShowEnterpriseProjectResponse) String

type ShowResourceBindEnterpriseProjectRequest

type ShowResourceBindEnterpriseProjectRequest struct {
	EnterpriseProjectId string `json:"enterprise_project_id"`

	Body *ResqEpResouce `json:"body,omitempty"`
}

Request Object

func (ShowResourceBindEnterpriseProjectRequest) String

type ShowResourceBindEnterpriseProjectResponse

type ShowResourceBindEnterpriseProjectResponse struct {
	Resources *[]Resources `json:"resources,omitempty"`

	Errors *[]Errors `json:"errors,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowResourceBindEnterpriseProjectResponse) String

type UpdateEnterpriseProjectRequest

type UpdateEnterpriseProjectRequest struct {
	EnterpriseProjectId string `json:"enterprise_project_id"`

	Body *EnterpriseProject `json:"body,omitempty"`
}

Request Object

func (UpdateEnterpriseProjectRequest) String

type UpdateEnterpriseProjectResponse

type UpdateEnterpriseProjectResponse struct {
	EnterpriseProject *EpDetail `json:"enterprise_project,omitempty"`
	HttpStatusCode    int       `json:"-"`
}

Response Object

func (UpdateEnterpriseProjectResponse) String

type VersionDetail

type VersionDetail struct {
	Id string `json:"id"`

	Links []Link `json:"links"`

	Version string `json:"version"`

	Status VersionDetailStatus `json:"status"`

	Updated *sdktime.SdkTime `json:"updated"`

	MinVersion string `json:"min_version"`
}

版本详情

func (VersionDetail) String

func (o VersionDetail) String() string

type VersionDetailStatus

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

func (VersionDetailStatus) MarshalJSON

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

func (*VersionDetailStatus) UnmarshalJSON

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

type VersionDetailStatusEnum

type VersionDetailStatusEnum struct {
	CURRENT    VersionDetailStatus
	SUPPORTED  VersionDetailStatus
	DEPRECATED VersionDetailStatus
}

func GetVersionDetailStatusEnum

func GetVersionDetailStatusEnum() VersionDetailStatusEnum

Jump to

Keyboard shortcuts

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