Documentation ¶
Index ¶
- type ActionBuilder
- type ActionOpts
- type CommonResult
- func Create(client *gophercloud.ServiceClient, opts CreateBuilder) (r CommonResult)
- func FilterResources(client *gophercloud.ServiceClient, opts FilterResourcesBuilder, epID string) (r CommonResult)
- func Get(client *gophercloud.ServiceClient, epID string) (r CommonResult)
- func GetQuotas(client *gophercloud.ServiceClient) (r CommonResult)
- func Update(client *gophercloud.ServiceClient, opts UpdateBuilder, epID string) (r CommonResult)
- type CreateBuilder
- type CreateEP
- type CreateOpts
- type EnterpriseProject
- type Error
- type ErrorResult
- type FilterResourcesBuilder
- type FilterResourcesOpts
- type FilterResourcesResp
- type ListBuilder
- type ListEPResp
- type ListOpts
- type ListResult
- type Match
- type MigrateResourceOpts
- type MigrateResourcesBuilder
- type QuotasResource
- type QuotasResp
- type Resource
- type UpdateBuilder
- type UpdateOpts
- type VersionLinkResp
- type VersionResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionBuilder ¶
type ActionOpts ¶
type ActionOpts struct {
Action string `json:"action" required:"true"`
}
func (ActionOpts) ActionMap ¶
func (opts ActionOpts) ActionMap() (map[string]interface{}, error)
type CommonResult ¶
type CommonResult struct {
gophercloud.Result
}
func Create ¶
func Create(client *gophercloud.ServiceClient, opts CreateBuilder) (r CommonResult)
func FilterResources ¶
func FilterResources(client *gophercloud.ServiceClient, opts FilterResourcesBuilder, epID string) (r CommonResult)
func Get ¶
func Get(client *gophercloud.ServiceClient, epID string) (r CommonResult)
func GetQuotas ¶
func GetQuotas(client *gophercloud.ServiceClient) (r CommonResult)
func Update ¶
func Update(client *gophercloud.ServiceClient, opts UpdateBuilder, epID string) (r CommonResult)
func (CommonResult) ExtractEP ¶
func (r CommonResult) ExtractEP() (EnterpriseProject, error)
func (CommonResult) ExtractFilterResources ¶
func (r CommonResult) ExtractFilterResources() (FilterResourcesResp, error)
func (CommonResult) ExtractQuotas ¶
func (r CommonResult) ExtractQuotas() (QuotasResp, error)
type CreateBuilder ¶
type CreateEP ¶
type CreateEP struct {
Enterprise_Project EnterpriseProject `q:"enterprise_project"`
}
type CreateOpts ¶
type CreateOpts struct { Name string `json:"name" required:"true"` Description string `json:"description"` }
func (CreateOpts) CreateMap ¶
func (opts CreateOpts) CreateMap() (map[string]interface{}, error)
type EnterpriseProject ¶
type ErrorResult ¶
type ErrorResult struct {
gophercloud.ErrResult
}
func EnableOrDisableEP ¶
func EnableOrDisableEP(client *gophercloud.ServiceClient, opts ActionBuilder, epID string) (r ErrorResult)
func MigrateResources ¶
func MigrateResources(client *gophercloud.ServiceClient, opts MigrateResourcesBuilder, epID string) (r ErrorResult)
func (ErrorResult) Extract ¶
func (r ErrorResult) Extract() (*EnterpriseProject, error)
type FilterResourcesBuilder ¶
type FilterResourcesOpts ¶
type FilterResourcesOpts struct { Projects []string `json:"projects"` ResourceTypes []string `json:"resource_types" required:"true"` Offset int `json:"offset"` Limit int `json:"limit"` Matches []Match `json:"matches"` }
func (FilterResourcesOpts) FilterResourcesMap ¶
func (opts FilterResourcesOpts) FilterResourcesMap() (map[string]interface{}, error)
type FilterResourcesResp ¶
type ListBuilder ¶
type ListEPResp ¶
type ListEPResp struct { Enterprise_projects []EnterpriseProject `q:"enterprise_projects"` Total_count int `q:"total_count"` }
type ListOpts ¶
type ListOpts struct { Id string `q:"id" ` Name string `q:"name" ` AuthAction string `q:"auth_action"` Offset int `q:"offset"` Limit int `q:"limit"` SortKey string `q:"sort_key"` SortDiy string `q:"sort_dir"` }
func (ListOpts) ToListQuery ¶
type ListResult ¶
type ListResult struct {
gophercloud.Result
}
func List ¶
func List(client *gophercloud.ServiceClient, opts ListBuilder) (r ListResult)
func (ListResult) Extract ¶
func (r ListResult) Extract() (*ListEPResp, error)
type MigrateResourceOpts ¶
type MigrateResourceOpts struct { Action string `json:"action" required:"true"` ProjectId string `json:"project_id"` Associated bool `json:"associated"` ResourceType string `json:"resource_type" required:"true"` ResourceId string `json:"resource_id" required:"true"` RegionId string `json:"region_id"` }
func (MigrateResourceOpts) MigrateResourcesMap ¶
func (opts MigrateResourceOpts) MigrateResourcesMap() (map[string]interface{}, error)
type MigrateResourcesBuilder ¶
type QuotasResource ¶
type QuotasResp ¶
type QuotasResp struct {
Resources []QuotasResource `q:"resources"`
}
type Resource ¶
type Resource struct { Project_id string `q:"project_id"` Resource_type string `q:"resource_type"` Project_name string `q:"project_name"` Resource_id string `q:"resource_id"` Resource_name string `q:"resource_name"` Resource_detail string `q:"resource_detail"` Enterprise_project_id string `q:"enterprise_project_id"` }
type UpdateBuilder ¶
type UpdateOpts ¶
type UpdateOpts struct { Name string `json:"name" required:"true"` Description string `json:"description"` }
func (UpdateOpts) UpdateMap ¶
func (opts UpdateOpts) UpdateMap() (map[string]interface{}, error)
type VersionLinkResp ¶
type VersionResp ¶
type VersionResp struct { Id string `q:"id"` Links []VersionLinkResp `json:"links,omitempty"` Status string `q:"status"` Updated string `q:"updated"` Min_version string `q:"min_version"` }
Click to show internal directories.
Click to hide internal directories.