Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListOpts ¶
type ListOpts struct { // Specifies the display language, defaults to 'zh-cn'. Locale string `q:"locale"` // Number of records to be queried. // The valid value is range from 1 to 200, defaults to 200. Limit int `q:"limit"` // Specifies the index position, which starts from the next data record specified by offset. // The value must be a number and connot be a negative number, defaults to 0. Offset string `q:"offset"` // Specifies the cloud service name. Provider string `q:"provider"` }
ListOpts allows to filter supported provider list.
type Provider ¶
type Provider struct { // Specifies the cloud service name. Provider string `json:"provider"` // Specifies the display name of the resource. You can configure the language by setting the locale parameter. ProviderI18nDisplayName string `json:"provider_i18n_display_name"` // Specifies the resource type list. Resources []ResourceDetail `json:"resource_types"` }
Provider is the structure that represents the resources detail of the tags supported providers.
type ProviderPage ¶
type ProviderPage struct {
pagination.OffsetPageBase
}
ProviderPage is a single page maximum result representing a query by offset page.
func (ProviderPage) IsEmpty ¶
func (b ProviderPage) IsEmpty() (bool, error)
IsEmpty checks whether a ProviderPage struct is empty.
type ResourceDetail ¶
type ResourceDetail struct { // Specifies the resource type. ResourceType string `json:"resource_type"` // Specifies the display name of the resource type. You can configure the language by setting the locale parameter. ResourceTypeI18nDisplayName string `json:"resource_type_i18n_display_name"` // Specifies supported regions. Regions []string `json:"regions"` // Specifies whether the resources is a global resource. Global bool `json:"global"` }
ResourceDetail is the strucutre that represents the resource detail.
Click to show internal directories.
Click to hide internal directories.