Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowAddressPairsOpts ¶
type AllowAddressPairsOpts struct {
AllowedAddressPairs []reservedfixedips.AllowedAddressPairs `json:"allowed_address_pairs"`
}
AllowAddressPairsOpts represents options used to allow address pairs.
func (AllowAddressPairsOpts) ToAllowAddressPairsMap ¶
func (opts AllowAddressPairsOpts) ToAllowAddressPairsMap() (map[string]interface{}, error)
ToAllowAddressPairsMap builds a request body from AllowAddressPairsOpts.
type AllowAddressPairsOptsBuilder ¶
type AllowAddressPairsOptsBuilder interface {
ToAllowAddressPairsMap() (map[string]interface{}, error)
}
AllowAddressPairsOptsBuilder allows extensions to add additional parameters to the AllowAddressPairs request.
type AssignResult ¶
type AssignResult struct {
// contains filtered or unexported fields
}
func AllowAddressPairs ¶
func AllowAddressPairs(c *gcorecloud.ServiceClient, portID string, opts AllowAddressPairsOptsBuilder) (r AssignResult)
AllowAddressPairs assign allowed address pairs for instance port
func (AssignResult) Extract ¶
func (r AssignResult) Extract() (*InstancePort, error)
Extract is a function that accepts a result and extracts a security group resource.
func (AssignResult) ExtractInto ¶
func (r AssignResult) ExtractInto(v interface{}) error
type InstancePort ¶
type InstancePort struct { NetworkID string `json:"network_id"` AllowedAddressPairs []reservedfixedips.AllowedAddressPairs `json:"allowed_address_pairs"` InstanceID string `json:"instance_id"` PortID string `json:"port_id"` }
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult represents the result of a enable or disable operation. Call its Extract method to interpret it as a Interface.
func DisablePortSecurity ¶
func DisablePortSecurity(c *gcorecloud.ServiceClient, portID string) (r UpdateResult)
DisablePortSecurity
func EnablePortSecurity ¶
func EnablePortSecurity(c *gcorecloud.ServiceClient, portID string) (r UpdateResult)
EnablePortSecurity
func (UpdateResult) Extract ¶
Extract is a function that accepts a result and extracts a security group resource.
func (UpdateResult) ExtractInto ¶
func (r UpdateResult) ExtractInto(v interface{}) error