Documentation ¶
Overview ¶
resmanager.go - the resmanager APIs definition supported by the resmanager service
Index ¶
- Constants
- type BindGroupInfo
- type BindResourceResult
- type BindResourceToGroupArgs
- type Binding
- type ChangeResourceGroupArgs
- type Client
- func (c *Client) BindResourceToGroup(args *BindResourceToGroupArgs) (*BindResourceResult, error)
- func (c *Client) ChangeResourceGroup(args *ChangeResourceGroupArgs) (*BindResourceResult, error)
- func (c *Client) CreateResourceGroup(args *CreateResourceGroupArgs) (*CreateResourceGroupResponse, error)
- func (c *Client) GetResGroupBatch(args *ResGroupDetailRequest) (*ResGroupDetailResponse, error)
- func (c *Client) QueryGroupList(name string) (*GroupList, error)
- func (c *Client) RemoveResourceFromGroup(args *BindResourceToGroupArgs) error
- type CreateResourceGroupArgs
- type CreateResourceGroupResponse
- type Group
- type GroupInfo
- type GroupList
- type GroupTree
- type MoveResModel
- type OldGroupResInfo
- type ResGroup
- type ResGroupDetailRequest
- type ResGroupDetailResponse
- type ResourceBrief
- type ResourceGroupsDetailFull
- type ResourceGroupsInfo
- type ResourceGroupsPageInfo
- type ResourceInfo
- type Tag
Constants ¶
View Source
const ( URI_PREFIX = bce.URI_PREFIX DEFAULT_ENDPOINT = "resourcemanager.baidubce.com" REQUEST_BASE_RESOURCE = "v1/res/resource" REQUEST_CHANGE_GROUP = REQUEST_BASE_RESOURCE + "/move" REQUEST_QUERY_GROUP = "v1/res/group" REQUEST_QUERY_GROUP_BATCH = REQUEST_BASE_RESOURCE + "/batch/queryGroupRes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindGroupInfo ¶ added in v0.9.175
type BindResourceResult ¶
type BindResourceToGroupArgs ¶
type BindResourceToGroupArgs struct {
Bindings []Binding `json:"bindings"`
}
type ChangeResourceGroupArgs ¶
type ChangeResourceGroupArgs struct {
MoveResModels []MoveResModel `json:"moveResModels"`
}
type Client ¶
Client of Group service is a kind of BceClient, so derived from BceClient
func (*Client) BindResourceToGroup ¶
func (c *Client) BindResourceToGroup(args *BindResourceToGroupArgs) (*BindResourceResult, error)
func (*Client) ChangeResourceGroup ¶
func (c *Client) ChangeResourceGroup(args *ChangeResourceGroupArgs) (*BindResourceResult, error)
func (*Client) CreateResourceGroup ¶ added in v0.9.207
func (c *Client) CreateResourceGroup(args *CreateResourceGroupArgs) (*CreateResourceGroupResponse, error)
func (*Client) GetResGroupBatch ¶ added in v0.9.175
func (c *Client) GetResGroupBatch(args *ResGroupDetailRequest) (*ResGroupDetailResponse, error)
func (*Client) RemoveResourceFromGroup ¶
func (c *Client) RemoveResourceFromGroup(args *BindResourceToGroupArgs) error
type CreateResourceGroupArgs ¶ added in v0.9.207
type CreateResourceGroupResponse ¶ added in v0.9.208
type CreateResourceGroupResponse struct {
GroupId string `json:"groupId"`
}
type GroupInfo ¶ added in v0.9.175
type GroupInfo struct { Name string `json:"name"` Extra string `json:"extra"` ParentUUID string `json:"parentUuid"` GroupId string `json:"groupId"` AccountId string `json:"accountId"` UserId string `json:"userId"` CreateTime string `json:"createTime"` UpdateTime string `json:"updateTime"` DeleteTime string `json:"deleteTime"` }
type MoveResModel ¶
type MoveResModel struct { TargetGroupId string `json:"targetGroupId"` OldGroupResInfo OldGroupResInfo `json:"oldGroupResInfo"` }
type OldGroupResInfo ¶
type ResGroup ¶
type ResGroup struct { AccountID string `json:"accountId"` UserID string `json:"userId"` Name string `json:"name"` Type string `json:"type"` Region string `json:"region"` ID string `json:"id"` UUID string `json:"uuid"` Summary string `json:"summary"` URL string `json:"url"` Groups []Group `json:"groups"` }
type ResGroupDetailRequest ¶ added in v0.9.175
type ResGroupDetailRequest struct {
ResourceBrief []ResourceBrief `json:"resourceBriefs"`
}
type ResGroupDetailResponse ¶ added in v0.9.175
type ResGroupDetailResponse struct {
ResourceGroupsDetailFull []ResourceGroupsDetailFull `json:"resGroups"`
}
type ResourceBrief ¶ added in v0.9.175
type ResourceGroupsDetailFull ¶ added in v0.9.175
type ResourceGroupsDetailFull struct { ResourceInfo BindGroupInfo []BindGroupInfo `json:"groups"` }
type ResourceGroupsInfo ¶ added in v0.9.177
type ResourceGroupsInfo struct { ResourceInfo GroupIds []string `json:"groupIds"` }
type ResourceGroupsPageInfo ¶ added in v0.9.177
type ResourceGroupsPageInfo struct { ResourceGroupsInfo []ResourceGroupsInfo `json:"infos"` Total int `json:"total"` }
type ResourceInfo ¶ added in v0.9.175
type ResourceInfo struct { Name string `json:"name"` Type string `json:"type"` Region string `json:"region"` // 资源的短id Id string `json:"id"` // 资源的长id UUID string `json:"uuid"` Summary string `json:"summary"` Url string `json:"url"` AccountId string `json:"accountId"` UserId string `json:"userId"` Tag []Tag `json:"tags"` }
Click to show internal directories.
Click to hide internal directories.