Documentation ¶
Index ¶
- type GetResourceProviderInventoriesRequest
- type GetResourceProviderInventoriesResponse
- type GetResourceProviderUsagesRequest
- type GetResourceProviderUsagesResponse
- type ListResourceProvidersRequest
- type ListResourceProvidersResponse
- type ResourceProviderInventories
- type ResourceProviderUsages
- type ResourceProviders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetResourceProviderInventoriesRequest ¶
type GetResourceProviderInventoriesRequest struct { }
type GetResourceProviderInventoriesResponse ¶
type GetResourceProviderInventoriesResponse struct { ResourceProviderGeneration int `json:"resource_provider_generation"` Inventories ResourceProviderInventories `json:"inventories"` }
type GetResourceProviderUsagesRequest ¶
type GetResourceProviderUsagesRequest struct{}
type GetResourceProviderUsagesResponse ¶
type GetResourceProviderUsagesResponse struct { ResourceProviderGeneration int `json:"resource_provider_generation"` Usages ResourceProviderUsages `json:"usages"` }
type ListResourceProvidersRequest ¶
type ListResourceProvidersRequest struct { }
type ListResourceProvidersResponse ¶
type ListResourceProvidersResponse struct {
ResourceProviders []ResourceProviders `json:"resource_providers"`
}
type ResourceProviderInventories ¶
type ResourceProviderInventories struct { VCPU struct { Total float64 `json:"total"` Reserved float64 `json:"reserved"` MinUnit float64 `json:"min_unit"` MaxUnit float64 `json:"max_unit"` StepSize float64 `json:"step_size"` AllocationRatio float64 `json:"allocation_ratio"` } `json:"VCPU"` MEMORYMB struct { Total float64 `json:"total"` Reserved float64 `json:"reserved"` MinUnit float64 `json:"min_unit"` MaxUnit float64 `json:"max_unit"` StepSize float64 `json:"step_size"` AllocationRatio float64 `json:"allocation_ratio"` } `json:"MEMORY_MB"` DISKGB struct { Total float64 `json:"total"` Reserved float64 `json:"reserved"` MinUnit float64 `json:"min_unit"` MaxUnit float64 `json:"max_unit"` StepSize float64 `json:"step_size"` AllocationRatio float64 `json:"allocation_ratio"` } `json:"DISK_GB"` }
func GetInventories ¶
func GetInventories(client *v1.PlacementClient, resourceID string) (ResourceProviderInventories, error)
type ResourceProviderUsages ¶
type ResourceProviderUsages struct { VCPU float64 `json:"VCPU"` MEMORYMB float64 `json:"MEMORY_MB"` DISKGB float64 `json:"DISK_GB"` }
func GetUsages ¶
func GetUsages(client *v1.PlacementClient, resourceID string) (ResourceProviderUsages, error)
type ResourceProviders ¶
type ResourceProviders struct { Generation int `json:"generation"` UUID string `json:"uuid"` Links []struct { Href string `json:"href"` Rel string `json:"rel"` } `json:"links"` Name string `json:"name"` ParentProviderUUID string `json:"parent_provider_uuid"` RootProviderUUID string `json:"root_provider_uuid"` }
func List ¶
func List(client *v1.PlacementClient) ([]ResourceProviders, error)
Click to show internal directories.
Click to hide internal directories.