Documentation ¶
Index ¶
- func DeleteURL(c *gophercloud.ServiceClient, scalingGroupId string, topicUrn string) string
- func EnableURL(c *gophercloud.ServiceClient, scalingGroupId string) string
- func ListURL(c *gophercloud.ServiceClient, scalingGroupId string) string
- type ConfigNotificationOpts
- type ConfigNotificationOptsBuilder
- type DeleteResult
- type EnableResponse
- type EnableResult
- type ListResponse
- type ListResult
- type Topic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteURL ¶
func DeleteURL(c *gophercloud.ServiceClient, scalingGroupId string, topicUrn string) string
func EnableURL ¶
func EnableURL(c *gophercloud.ServiceClient, scalingGroupId string) string
func ListURL ¶
func ListURL(c *gophercloud.ServiceClient, scalingGroupId string) string
Types ¶
type ConfigNotificationOpts ¶
type ConfigNotificationOpts struct { // Specifies a unified topic in SMN. TopicUrn string `json:"topic_urn" required:"true"` // Specifies a notification scenario, which can be one of the // following:SCALING_UP: indicates that the capacity is expanded.SCALING_UP_FAIL: // indicates that the capacity expansion failed.SCALING_DOWN: indicates that the // capacity is reduced.SCALING_DOWN_FAIL: indicates that the capacity reduction // failed.SCALING_GROUP_ABNORMAL: indicates that an exception has occurred in the AS // group. TopicScene []string `json:"topic_scene" required:"true"` }
func (ConfigNotificationOpts) ToNotificationsOptsMap ¶
func (opts ConfigNotificationOpts) ToNotificationsOptsMap() (map[string]interface{}, error)
type DeleteResult ¶
type DeleteResult struct {
gophercloud.ErrResult
}
func Delete ¶
func Delete(client *gophercloud.ServiceClient, scalingGroupId string, topicUrn string) (r DeleteResult)
type EnableResponse ¶
type EnableResult ¶
type EnableResult struct {
// contains filtered or unexported fields
}
func ConfigNotification ¶
func ConfigNotification(client *gophercloud.ServiceClient, scalingGroupId string, opts ConfigNotificationOptsBuilder) (r EnableResult)
func (EnableResult) Extract ¶
func (r EnableResult) Extract() (*EnableResponse, error)
type ListResponse ¶
type ListResponse struct { // Specifies the AS group notification list. Topics []Topic `json:"topics"` }
type ListResult ¶
type ListResult struct {
// contains filtered or unexported fields
}
func List ¶
func List(client *gophercloud.ServiceClient, scalingGroupId string) (r ListResult)
func (ListResult) Extract ¶
func (r ListResult) Extract() (*ListResponse, error)
Click to show internal directories.
Click to hide internal directories.