Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowAddressPairsOpts ¶ added in v0.4.27
type AllowAddressPairsOpts struct {
AllowedAddressPairs []reservedfixedips.AllowedAddressPairs `json:"allowed_address_pairs"`
}
AllowAddressPairsOpts represents options used to allow address pairs.
func (AllowAddressPairsOpts) ToAllowAddressPairsMap ¶ added in v0.4.27
func (opts AllowAddressPairsOpts) ToAllowAddressPairsMap() (map[string]interface{}, error)
ToAllowAddressPairsMap builds a request body from AllowAddressPairsOpts.
func (AllowAddressPairsOpts) Validate ¶ added in v0.4.27
func (opts AllowAddressPairsOpts) Validate() error
Validate
type AllowAddressPairsOptsBuilder ¶ added in v0.4.27
type AllowAddressPairsOptsBuilder interface {
ToAllowAddressPairsMap() (map[string]interface{}, error)
}
AllowAddressPairsOptsBuilder allows extensions to add additional parameters to the AllowAddressPairs request.
type AssignResult ¶ added in v0.4.27
type AssignResult struct {
// contains filtered or unexported fields
}
func AllowAddressPairs ¶ added in v0.4.27
func AllowAddressPairs(c *gcorecloud.ServiceClient, portID string, opts AllowAddressPairsOptsBuilder) (r AssignResult)
AllowAddressPairs assign allowed address pairs for instance port
func (AssignResult) Extract ¶ added in v0.4.27
func (r AssignResult) Extract() (*InstancePort, error)
Extract is a function that accepts a result and extracts a security group resource.
func (AssignResult) ExtractInto ¶ added in v0.4.27
func (r AssignResult) ExtractInto(v interface{}) error
type InstancePort ¶ added in v0.4.27
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