model

package
v0.1.81 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 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"`
}

CreateEnterpriseProjectRequest Request Object

func (CreateEnterpriseProjectRequest) String

type CreateEnterpriseProjectResponse

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

CreateEnterpriseProjectResponse Response Object

func (CreateEnterpriseProjectResponse) String

type DisableAction

type DisableAction struct {

	// 停用操作
	Action DisableActionAction `json:"action"`
}

DisableAction 停用企业项目操作

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

func (DisableActionAction) Value added in v0.0.90

func (c DisableActionAction) Value() string

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"`
}

DisableEnterpriseProjectRequest Request Object

func (DisableEnterpriseProjectRequest) String

type DisableEnterpriseProjectResponse

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

DisableEnterpriseProjectResponse Response Object

func (DisableEnterpriseProjectResponse) String

type EnableAction

type EnableAction struct {

	// 启用操作
	Action EnableActionAction `json:"action"`
}

EnableAction 停用启用企业项目操作

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

func (EnableActionAction) Value added in v0.0.90

func (c EnableActionAction) Value() string

type EnableActionActionEnum

type EnableActionActionEnum struct {
	ENABLE EnableActionAction
}

func GetEnableActionActionEnum

func GetEnableActionActionEnum() EnableActionActionEnum

type EnableEnterpriseProjectRequest

type EnableEnterpriseProjectRequest struct {

	// 企业项目ID,不能为0。
	EnterpriseProjectId string `json:"enterprise_project_id"`

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

EnableEnterpriseProjectRequest Request Object

func (EnableEnterpriseProjectRequest) String

type EnableEnterpriseProjectResponse

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

EnableEnterpriseProjectResponse Response Object

func (EnableEnterpriseProjectResponse) String

type EnterpriseProject

type EnterpriseProject struct {

	// 只能由中文字符、英文字母(a~zA~Z)、数字(0~9)、下划线(_)、中划线(-)组成,且长度为[1-64]个字符。名称不能为大小写混合的default,且在租户账号内唯一。
	Name string `json:"name"`

	// 最大长度512个字符。
	Description *string `json:"description,omitempty"`

	// 企业项目类型
	Type *string `json:"type,omitempty"`
}

EnterpriseProject 企业项目

func (EnterpriseProject) String

func (o EnterpriseProject) String() string

type EpDetail

type EpDetail struct {

	// 企业项目ID
	Id string `json:"id"`

	// 企业项目名称
	Name string `json:"name"`

	// 企业项目描述
	Description string `json:"description"`

	// 企业项目状态。1启用,2停用
	Status int32 `json:"status"`

	// 创建时间,格式为UTC格式。如:2018-05-18T06:49:06Z。
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 修改时间,格式为UTC格式。如:2018-05-28T02:21:36Z。
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 项目类型: - prod:商用项目 - poc:测试项目
	Type EpDetailType `json:"type"`
}

EpDetail 企业项目详情

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

func (EpDetailType) Value added in v0.0.90

func (c EpDetailType) Value() string

type EpDetailTypeEnum

type EpDetailTypeEnum struct {
	PROD EpDetailType
	POC  EpDetailType
}

func GetEpDetailTypeEnum

func GetEpDetailTypeEnum() EpDetailTypeEnum

type EpQuotas

type EpQuotas struct {

	// 总配额
	Quota int32 `json:"quota"`

	// qutoa的资源类型
	Type string `json:"type"`

	// 配额使用量
	Used int32 `json:"used"`
}

EpQuotas 企业项目配额响应

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
	ProjectId *string `json:"project_id,omitempty"`

	// 资源类型
	ResourceType *string `json:"resource_type,omitempty"`
}

Errors 错误列表

func (Errors) String

func (o Errors) String() string
type Link struct {

	// API的URL地址。
	Href string `json:"href"`

	// self。
	Rel string `json:"rel"`
}

Link API的URL地址。

func (Link) String

func (o Link) String() string

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

ListApiVersionsRequest Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {

	// 版本列表
	Versions       *[]VersionDetail `json:"versions,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListApiVersionsResponse Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListEnterpriseProjectRequest

type ListEnterpriseProjectRequest struct {

	// 企业项目ID,0表示默认企业项目
	Id *string `json:"id,omitempty"`

	// 查询记录数默认为1000,limit最多为1000, 最小值为1
	Limit *int32 `json:"limit,omitempty"`

	// 企业项目名称,支持模糊搜索
	Name *string `json:"name,omitempty"`

	// 索引位置,从offset指定的下一条数据开始查询,必须为数字,不能为负数,默认为0
	Offset *int32 `json:"offset,omitempty"`

	// 降序或升序,默认为“desc” 。desc表示降序 。asc 表示升序
	SortDir *ListEnterpriseProjectRequestSortDir `json:"sort_dir,omitempty"`

	// 返回结果按该关键字排序(支持updated_at等关键字,默认为“created_at”)
	SortKey *ListEnterpriseProjectRequestSortKey `json:"sort_key,omitempty"`

	// 企业项目状态。 1--启用,2--停用
	Status *int32 `json:"status,omitempty"`
}

ListEnterpriseProjectRequest 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

func (ListEnterpriseProjectRequestSortDir) Value added in v0.0.90

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

func (ListEnterpriseProjectRequestSortKey) Value added in v0.0.90

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:"-"`
}

ListEnterpriseProjectResponse Response Object

func (ListEnterpriseProjectResponse) String

type ListProvidersRequest added in v0.1.11

type ListProvidersRequest struct {

	// 指定显示语言
	Locale *ListProvidersRequestLocale `json:"locale,omitempty"`

	// 查询记录数默认为200,limit最多为200, 最小值为1
	Limit *int32 `json:"limit,omitempty"`

	// 索引位置,从offset指定的下一条数据开始查询,必须为数字,不能为负数,默认为0
	Offset *int32 `json:"offset,omitempty"`

	// 云服务名称
	Provider *string `json:"provider,omitempty"`
}

ListProvidersRequest Request Object

func (ListProvidersRequest) String added in v0.1.11

func (o ListProvidersRequest) String() string

type ListProvidersRequestLocale added in v0.1.11

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

func (ListProvidersRequestLocale) MarshalJSON added in v0.1.11

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

func (*ListProvidersRequestLocale) UnmarshalJSON added in v0.1.11

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

func (ListProvidersRequestLocale) Value added in v0.1.11

type ListProvidersRequestLocaleEnum added in v0.1.11

type ListProvidersRequestLocaleEnum struct {
	ZH_CN ListProvidersRequestLocale
	EN_US ListProvidersRequestLocale
}

func GetListProvidersRequestLocaleEnum added in v0.1.11

func GetListProvidersRequestLocaleEnum() ListProvidersRequestLocaleEnum

type ListProvidersResponse added in v0.1.11

type ListProvidersResponse struct {

	// 云服务列表
	Providers *[]ProviderResponseBody `json:"providers,omitempty"`

	// 当前支持的云服务总数
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListProvidersResponse Response Object

func (ListProvidersResponse) String added in v0.1.11

func (o ListProvidersResponse) String() string

type Match

type Match struct {

	// 键。有matches参数时,该字段为必填,固定为resource_name。
	Key string `json:"key"`

	// 值。即资源名称,有matches参数时,该字段为必填,且默认为模糊搜索,如”message.com”。每个值最大长度255个字符。
	Value string `json:"value"`
}

Match 匹配字段

func (Match) String

func (o Match) String() string

type MigrateResource

type MigrateResource struct {

	// 资源所属RegionID。迁移OBS服务资源时为必选项。
	RegionId *string `json:"region_id,omitempty"`

	// 项目ID。resource_type为region级别服务时为必选项。
	ProjectId *string `json:"project_id,omitempty"`

	// 资源ID
	ResourceId string `json:"resource_id"`

	// 资源类型
	ResourceType string `json:"resource_type"`

	// 是否关联迁移。目前仅支持ECS关联资源EVS、EIP迁移。
	Associated *bool `json:"associated,omitempty"`
}

MigrateResource 迁移资源

func (MigrateResource) String

func (o MigrateResource) String() string

type MigrateResourceRequest

type MigrateResourceRequest struct {

	// 目标企业项目ID,enterprise_project_id为0时表示迁移资源到默认资源组default。注:实际迁移时,会将资源所属的【当前企业项目ID】替换为【目标企业项目ID】,所以不需要指定【当前企业项目ID】。
	EnterpriseProjectId string `json:"enterprise_project_id"`

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

MigrateResourceRequest Request Object

func (MigrateResourceRequest) String

func (o MigrateResourceRequest) String() string

type MigrateResourceResponse

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

MigrateResourceResponse Response Object

func (MigrateResourceResponse) String

func (o MigrateResourceResponse) String() string

type ProviderResponseBody added in v0.1.11

type ProviderResponseBody struct {

	// 云服务名称
	Provider string `json:"provider"`

	// 云服务显示名称,可以通过参数中的'locale'设置语言
	ProviderI18nDisplayName string `json:"provider_i18n_display_name"`

	// 资源类型列表
	ResourceTypes []ResourceTypeBody `json:"resource_types"`
}

func (ProviderResponseBody) String added in v0.1.11

func (o ProviderResponseBody) String() string

type QuotasDetail

type QuotasDetail struct {

	// 资源配额
	Resources []EpQuotas `json:"resources"`
}

QuotasDetail 配额信息

func (QuotasDetail) String

func (o QuotasDetail) String() string

type ResourceTypeBody added in v0.1.11

type ResourceTypeBody struct {

	// 资源类型名称
	ResourceType string `json:"resource_type"`

	// 资源类型显示名称,可以通过参数中'locale'设置语言
	ResourceTypeI18nDisplayName string `json:"resource_type_i18n_display_name"`

	// 支持的region列表
	Regions []string `json:"regions"`

	// 是否是全局类型的资源
	Global bool `json:"global"`
}

func (ResourceTypeBody) String added in v0.1.11

func (o ResourceTypeBody) String() string

type Resources

type Resources struct {

	// 企业项目ID
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// ProjectID
	ProjectId string `json:"project_id"`

	// Project名称
	ProjectName string `json:"project_name"`

	// 资源详情
	ResourceDetail *interface{} `json:"resource_detail"`

	// 资源ID
	ResourceId string `json:"resource_id"`

	// 资源名称
	ResourceName string `json:"resource_name"`

	// 资源类型
	ResourceType string `json:"resource_type"`
}

Resources 资源列表

func (Resources) String

func (o Resources) String() string

type ResqEpResouce

type ResqEpResouce struct {

	// 项目ID列表。resource_types中包含region级别服务时为必选项。
	Projects *[]string `json:"projects,omitempty"`

	// 资源类型列表, 此参数为可输入的值(区分大小写)。例如:ecs,scaling_group, images, disk, vpcs,security-groups, shared_bandwidth, eip, cdn等。
	ResourceTypes []string `json:"resource_types"`

	// 索引位置, 从offset指定的下一条数据开始查询,必须为数字,不能为负数,默认为0。
	Offset *int32 `json:"offset,omitempty"`

	// 查询记录数,不传默认为1000,limit最多为1000, 最小值为1。
	Limit *int32 `json:"limit,omitempty"`

	// 搜索字段,key为要匹配的字段,固定为resource_name,value为匹配的值,不传则表示无匹配条件。
	Matches *[]Match `json:"matches,omitempty"`
}

ResqEpResouce 获取企业项目下资源请求

func (ResqEpResouce) String

func (o ResqEpResouce) String() string

type ShowApiVersionRequest

type ShowApiVersionRequest struct {

	// 版本ID(版本号),如v1.0。
	ApiVersion string `json:"api_version"`
}

ShowApiVersionRequest Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionResponse

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

ShowApiVersionResponse Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type ShowEnterpriseProjectQuotaRequest

type ShowEnterpriseProjectQuotaRequest struct {
}

ShowEnterpriseProjectQuotaRequest Request Object

func (ShowEnterpriseProjectQuotaRequest) String

type ShowEnterpriseProjectQuotaResponse

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

ShowEnterpriseProjectQuotaResponse Response Object

func (ShowEnterpriseProjectQuotaResponse) String

type ShowEnterpriseProjectRequest

type ShowEnterpriseProjectRequest struct {

	// 企业项目ID。 可以通过查询企业项目列表接口获取。
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

ShowEnterpriseProjectRequest Request Object

func (ShowEnterpriseProjectRequest) String

type ShowEnterpriseProjectResponse

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

ShowEnterpriseProjectResponse Response Object

func (ShowEnterpriseProjectResponse) String

type ShowResourceBindEnterpriseProjectRequest

type ShowResourceBindEnterpriseProjectRequest struct {

	// 企业项目ID
	EnterpriseProjectId string `json:"enterprise_project_id"`

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

ShowResourceBindEnterpriseProjectRequest 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:"-"`
}

ShowResourceBindEnterpriseProjectResponse Response Object

func (ShowResourceBindEnterpriseProjectResponse) String

type UpdateEnterpriseProjectRequest

type UpdateEnterpriseProjectRequest struct {

	// 企业项目ID,不能为0。 可以通过查询企业项目列表接口获取。
	EnterpriseProjectId string `json:"enterprise_project_id"`

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

UpdateEnterpriseProjectRequest Request Object

func (UpdateEnterpriseProjectRequest) String

type UpdateEnterpriseProjectResponse

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

UpdateEnterpriseProjectResponse Response Object

func (UpdateEnterpriseProjectResponse) String

type VersionDetail

type VersionDetail struct {

	// 版本ID(版本号),如v1.0。
	Id string `json:"id"`

	// API的URL地址。
	Links []Link `json:"links"`

	// 若该版本API支持微版本,则返回支持的最大微版本号,如果不支持微版本,则返回空。
	Version string `json:"version"`

	// 版本状态,为如下3种: CURRENT:表示该版本为主推版本。 SUPPORTED:表示为老版本,但是现在还继续支持。 DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status VersionDetailStatus `json:"status"`

	// 版本发布时间,采用UTC时间表示。如v1.0发布的时间2016-12-09T00:00:00Z。
	Updated *sdktime.SdkTime `json:"updated"`

	// 若该版本API 支持微版本,则返回支持的最小微版本号, 如果不支持微版本,则返回空。
	MinVersion string `json:"min_version"`
}

VersionDetail 版本详情

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

func (VersionDetailStatus) Value added in v0.0.90

func (c VersionDetailStatus) Value() string

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