Documentation
¶
Index ¶
- type CreateEpRequest
- type CreateEpResponse
- type DisableAction
- type DisableEpRequest
- type DisableEpResponse
- type EnableAction
- type EnableEpRequest
- type EnableEpResponse
- type EnterpriseProject
- type EpDetail
- type EpQuotas
- type Errors
- type Link
- type ListApiVersionsRequest
- type ListApiVersionsResponse
- type ListEpRequest
- type ListEpResponse
- type Match
- type MigrateResource
- type MigrateResourceRequest
- type MigrateResourceResponse
- type ModifyEpRequest
- type ModifyEpResponse
- type QuotasDetail
- type Resources
- type ResqEpResouce
- type ShowApiVersionRequest
- type ShowApiVersionResponse
- type ShowEpQuotaRequest
- type ShowEpQuotaResponse
- type ShowEpRequest
- type ShowEpResponse
- type ShowResourceBindEpRequest
- type ShowResourceBindEpResponse
- type VersionDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEpRequest ¶
type CreateEpRequest struct {
Body *EnterpriseProject `json:"body,omitempty"`
}
Request Object
type CreateEpResponse ¶
type CreateEpResponse struct {
EnterpriseProject *EpDetail `json:"enterprise_project,omitempty"`
}
Response Object
type DisableEpRequest ¶
type DisableEpRequest struct { EnterpriseProjectId string `json:"enterprise_project_id"` Body *DisableAction `json:"body,omitempty"` }
Request Object
type EnableEpRequest ¶
type EnableEpRequest struct { EnterpriseProjectId string `json:"enterprise_project_id"` Body *EnableAction `json:"body,omitempty"` }
Request Object
type EnterpriseProject ¶
type EnterpriseProject struct { // 只能由中文字符、英文字母(a~zA~Z)、数字(0~9)、下划线(_)、中划线(-)组成,且长度为[1-64]个字符。名称不能为大小写混合的default,且在租户账号内唯一。 Name string `json:"name"` // 最大长度512个字符。 Description string `json:"description,omitempty"` }
企业项目
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"` }
企业项目详情
type EpQuotas ¶
type EpQuotas struct { // 总配额 Quota int32 `json:"quota"` // qutoa的资源类型 Type string `json:"type"` // 配额使用量 Used int32 `json:"used"` }
企业项目配额响应
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"` }
错误列表
type ListApiVersionsResponse ¶
type ListApiVersionsResponse struct { // 版本列表 Versions []VersionDetail `json:"versions,omitempty"` }
Response Object
type ListEpRequest ¶
type ListEpRequest struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Status int32 `json:"status,omitempty"` Limit int32 `json:"limit,omitempty"` Offset int32 `json:"offset"` SortKey string `json:"sort_key,omitempty"` SortDir string `json:"sort_dir,omitempty"` }
Request Object
type ListEpResponse ¶
type ListEpResponse struct { // 企业项目列表 EnterpriseProjects []EpDetail `json:"enterprise_projects,omitempty"` // 企业项目总数 TotalCount int32 `json:"total_count,omitempty"` }
Response Object
type Match ¶
type Match struct { // 键。有matches参数时,该字段为必填,固定为resource_name。 Key string `json:"key"` // 值。即资源名称,有matches参数时,该字段为必填,且默认为模糊搜索,如”message.com”。每个值最大长度255个字符。 Value string `json:"value"` }
匹配字段
type MigrateResource ¶
type MigrateResource struct { // 项目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"` }
迁移资源
type MigrateResourceRequest ¶
type MigrateResourceRequest struct { EnterpriseProjectId string `json:"enterprise_project_id"` Body *MigrateResource `json:"body,omitempty"` }
Request Object
type ModifyEpRequest ¶
type ModifyEpRequest struct { EnterpriseProjectId string `json:"enterprise_project_id"` Body *EnterpriseProject `json:"body,omitempty"` }
Request Object
type ModifyEpResponse ¶
type ModifyEpResponse struct {
EnterpriseProject *EpDetail `json:"enterprise_project,omitempty"`
}
Response Object
type QuotasDetail ¶
type QuotasDetail struct { // 资源配额 Resources []EpQuotas `json:"resources"` }
配额信息
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 map[string]interface{} `json:"resource_detail"` // 资源ID ResourceId string `json:"resource_id"` // 资源名称 ResourceName string `json:"resource_name"` // 资源类型 ResourceType string `json:"resource_type"` }
资源列表
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"` }
获取企业项目下资源请求
type ShowApiVersionRequest ¶
type ShowApiVersionRequest struct {
ApiVersion string `json:"api_version"`
}
Request Object
type ShowApiVersionResponse ¶
type ShowApiVersionResponse struct {
Version *VersionDetail `json:"version,omitempty"`
}
Response Object
type ShowEpQuotaResponse ¶
type ShowEpQuotaResponse struct {
Quotas *QuotasDetail `json:"quotas,omitempty"`
}
Response Object
type ShowEpRequest ¶
type ShowEpRequest struct {
EnterpriseProjectId string `json:"enterprise_project_id"`
}
Request Object
type ShowEpResponse ¶
type ShowEpResponse struct {
EnterpriseProject *EpDetail `json:"enterprise_project,omitempty"`
}
Response Object
type ShowResourceBindEpRequest ¶
type ShowResourceBindEpRequest struct { EnterpriseProjectId string `json:"enterprise_project_id"` Body *ResqEpResouce `json:"body,omitempty"` }
Request Object
type ShowResourceBindEpResponse ¶
type ShowResourceBindEpResponse struct { // 资源列表 Resources []Resources `json:"resources,omitempty"` // 查询失败的企业项目下的资源 Errors []Errors `json:"errors,omitempty"` // 企业项目下的资源总数 TotalCount int32 `json:"total_count,omitempty"` }
Response Object
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 string `json:"status"` // 版本发布时间,采用UTC时间表示。如v1.0发布的时间2016-12-09T00:00:00Z。 Updated *sdktime.SdkTime `json:"updated"` // 若该版本API 支持微版本,则返回支持的最小微版本号, 如果不支持微版本,则返回空。 MinVersion string `json:"min_version"` }
版本详情
Source Files
¶
- model_create_ep_request.go
- model_create_ep_response.go
- model_disable_action.go
- model_disable_ep_request.go
- model_disable_ep_response.go
- model_enable_action.go
- model_enable_ep_request.go
- model_enable_ep_response.go
- model_enterprise_project.go
- model_ep_detail.go
- model_ep_quotas.go
- model_errors.go
- model_link.go
- model_list_api_versions_request.go
- model_list_api_versions_response.go
- model_list_ep_request.go
- model_list_ep_response.go
- model_match.go
- model_migrate_resource.go
- model_migrate_resource_request.go
- model_migrate_resource_response.go
- model_modify_ep_request.go
- model_modify_ep_response.go
- model_quotas_detail.go
- model_resources.go
- model_resq_ep_resouce.go
- model_show_api_version_request.go
- model_show_api_version_response.go
- model_show_ep_quota_request.go
- model_show_ep_quota_response.go
- model_show_ep_request.go
- model_show_ep_response.go
- model_show_resource_bind_ep_request.go
- model_show_resource_bind_ep_response.go
- model_version_detail.go
Click to show internal directories.
Click to hide internal directories.