Documentation ¶
Index ¶
- Constants
- type AssociateSpaceWithSecurityGroup
- type AssociateSpaceWithSecurityGroupCreated
- func (o *AssociateSpaceWithSecurityGroupCreated) SetPayload(payload *models.AssociateSpaceWithSecurityGroupResponseResource)
- func (o *AssociateSpaceWithSecurityGroupCreated) WithPayload(payload *models.AssociateSpaceWithSecurityGroupResponseResource) *AssociateSpaceWithSecurityGroupCreated
- func (o *AssociateSpaceWithSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssociateSpaceWithSecurityGroupHandler
- type AssociateSpaceWithSecurityGroupHandlerFunc
- type AssociateSpaceWithSecurityGroupParams
- type AssociateSpaceWithSecurityGroupURL
- func (o *AssociateSpaceWithSecurityGroupURL) Build() (*url.URL, error)
- func (o *AssociateSpaceWithSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AssociateSpaceWithSecurityGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *AssociateSpaceWithSecurityGroupURL) SetBasePath(bp string)
- func (o *AssociateSpaceWithSecurityGroupURL) String() string
- func (o *AssociateSpaceWithSecurityGroupURL) StringFull(scheme, host string) string
- func (o *AssociateSpaceWithSecurityGroupURL) WithBasePath(bp string) *AssociateSpaceWithSecurityGroupURL
- type CreateSecurityGroup
- type CreateSecurityGroupCreated
- func (o *CreateSecurityGroupCreated) SetPayload(payload *models.CreateSecurityGroupResponseResource)
- func (o *CreateSecurityGroupCreated) WithPayload(payload *models.CreateSecurityGroupResponseResource) *CreateSecurityGroupCreated
- func (o *CreateSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSecurityGroupHandler
- type CreateSecurityGroupHandlerFunc
- type CreateSecurityGroupParams
- type CreateSecurityGroupURL
- func (o *CreateSecurityGroupURL) Build() (*url.URL, error)
- func (o *CreateSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSecurityGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSecurityGroupURL) SetBasePath(bp string)
- func (o *CreateSecurityGroupURL) String() string
- func (o *CreateSecurityGroupURL) StringFull(scheme, host string) string
- func (o *CreateSecurityGroupURL) WithBasePath(bp string) *CreateSecurityGroupURL
- type DeleteSecurityGroup
- type DeleteSecurityGroupHandler
- type DeleteSecurityGroupHandlerFunc
- type DeleteSecurityGroupNoContent
- type DeleteSecurityGroupParams
- type DeleteSecurityGroupURL
- func (o *DeleteSecurityGroupURL) Build() (*url.URL, error)
- func (o *DeleteSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteSecurityGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteSecurityGroupURL) SetBasePath(bp string)
- func (o *DeleteSecurityGroupURL) String() string
- func (o *DeleteSecurityGroupURL) StringFull(scheme, host string) string
- func (o *DeleteSecurityGroupURL) WithBasePath(bp string) *DeleteSecurityGroupURL
- type ListAllSecurityGroups
- type ListAllSecurityGroupsHandler
- type ListAllSecurityGroupsHandlerFunc
- type ListAllSecurityGroupsOK
- func (o *ListAllSecurityGroupsOK) SetPayload(payload *models.ListAllSecurityGroupsResponsePaged)
- func (o *ListAllSecurityGroupsOK) WithPayload(payload *models.ListAllSecurityGroupsResponsePaged) *ListAllSecurityGroupsOK
- func (o *ListAllSecurityGroupsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListAllSecurityGroupsParams
- type ListAllSecurityGroupsURL
- func (o *ListAllSecurityGroupsURL) Build() (*url.URL, error)
- func (o *ListAllSecurityGroupsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListAllSecurityGroupsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListAllSecurityGroupsURL) SetBasePath(bp string)
- func (o *ListAllSecurityGroupsURL) String() string
- func (o *ListAllSecurityGroupsURL) StringFull(scheme, host string) string
- func (o *ListAllSecurityGroupsURL) WithBasePath(bp string) *ListAllSecurityGroupsURL
- type ListAllSpacesForSecurityGroup
- type ListAllSpacesForSecurityGroupHandler
- type ListAllSpacesForSecurityGroupHandlerFunc
- type ListAllSpacesForSecurityGroupOK
- func (o *ListAllSpacesForSecurityGroupOK) SetPayload(payload *models.ListAllSpacesForSecurityGroupResponsePaged)
- func (o *ListAllSpacesForSecurityGroupOK) WithPayload(payload *models.ListAllSpacesForSecurityGroupResponsePaged) *ListAllSpacesForSecurityGroupOK
- func (o *ListAllSpacesForSecurityGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListAllSpacesForSecurityGroupParams
- type ListAllSpacesForSecurityGroupURL
- func (o *ListAllSpacesForSecurityGroupURL) Build() (*url.URL, error)
- func (o *ListAllSpacesForSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListAllSpacesForSecurityGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *ListAllSpacesForSecurityGroupURL) SetBasePath(bp string)
- func (o *ListAllSpacesForSecurityGroupURL) String() string
- func (o *ListAllSpacesForSecurityGroupURL) StringFull(scheme, host string) string
- func (o *ListAllSpacesForSecurityGroupURL) WithBasePath(bp string) *ListAllSpacesForSecurityGroupURL
- type RemoveSpaceFromSecurityGroup
- type RemoveSpaceFromSecurityGroupCreated
- func (o *RemoveSpaceFromSecurityGroupCreated) SetPayload(payload *models.RemoveSpaceFromSecurityGroupResponseResource)
- func (o *RemoveSpaceFromSecurityGroupCreated) WithPayload(payload *models.RemoveSpaceFromSecurityGroupResponseResource) *RemoveSpaceFromSecurityGroupCreated
- func (o *RemoveSpaceFromSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RemoveSpaceFromSecurityGroupHandler
- type RemoveSpaceFromSecurityGroupHandlerFunc
- type RemoveSpaceFromSecurityGroupParams
- type RemoveSpaceFromSecurityGroupURL
- func (o *RemoveSpaceFromSecurityGroupURL) Build() (*url.URL, error)
- func (o *RemoveSpaceFromSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveSpaceFromSecurityGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveSpaceFromSecurityGroupURL) SetBasePath(bp string)
- func (o *RemoveSpaceFromSecurityGroupURL) String() string
- func (o *RemoveSpaceFromSecurityGroupURL) StringFull(scheme, host string) string
- func (o *RemoveSpaceFromSecurityGroupURL) WithBasePath(bp string) *RemoveSpaceFromSecurityGroupURL
- type RetrieveSecurityGroup
- type RetrieveSecurityGroupHandler
- type RetrieveSecurityGroupHandlerFunc
- type RetrieveSecurityGroupOK
- func (o *RetrieveSecurityGroupOK) SetPayload(payload *models.RetrieveSecurityGroupResponseResource)
- func (o *RetrieveSecurityGroupOK) WithPayload(payload *models.RetrieveSecurityGroupResponseResource) *RetrieveSecurityGroupOK
- func (o *RetrieveSecurityGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RetrieveSecurityGroupParams
- type RetrieveSecurityGroupURL
- func (o *RetrieveSecurityGroupURL) Build() (*url.URL, error)
- func (o *RetrieveSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RetrieveSecurityGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *RetrieveSecurityGroupURL) SetBasePath(bp string)
- func (o *RetrieveSecurityGroupURL) String() string
- func (o *RetrieveSecurityGroupURL) StringFull(scheme, host string) string
- func (o *RetrieveSecurityGroupURL) WithBasePath(bp string) *RetrieveSecurityGroupURL
- type UpdateSecurityGroup
- type UpdateSecurityGroupCreated
- func (o *UpdateSecurityGroupCreated) SetPayload(payload *models.UpdateSecurityGroupResponseResource)
- func (o *UpdateSecurityGroupCreated) WithPayload(payload *models.UpdateSecurityGroupResponseResource) *UpdateSecurityGroupCreated
- func (o *UpdateSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateSecurityGroupHandler
- type UpdateSecurityGroupHandlerFunc
- type UpdateSecurityGroupParams
- type UpdateSecurityGroupURL
- func (o *UpdateSecurityGroupURL) Build() (*url.URL, error)
- func (o *UpdateSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateSecurityGroupURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateSecurityGroupURL) SetBasePath(bp string)
- func (o *UpdateSecurityGroupURL) String() string
- func (o *UpdateSecurityGroupURL) StringFull(scheme, host string) string
- func (o *UpdateSecurityGroupURL) WithBasePath(bp string) *UpdateSecurityGroupURL
Constants ¶
const AssociateSpaceWithSecurityGroupCreatedCode int = 201
AssociateSpaceWithSecurityGroupCreatedCode is the HTTP code returned for type AssociateSpaceWithSecurityGroupCreated
const CreateSecurityGroupCreatedCode int = 201
CreateSecurityGroupCreatedCode is the HTTP code returned for type CreateSecurityGroupCreated
const DeleteSecurityGroupNoContentCode int = 204
DeleteSecurityGroupNoContentCode is the HTTP code returned for type DeleteSecurityGroupNoContent
const ListAllSecurityGroupsOKCode int = 200
ListAllSecurityGroupsOKCode is the HTTP code returned for type ListAllSecurityGroupsOK
const ListAllSpacesForSecurityGroupOKCode int = 200
ListAllSpacesForSecurityGroupOKCode is the HTTP code returned for type ListAllSpacesForSecurityGroupOK
const RemoveSpaceFromSecurityGroupCreatedCode int = 201
RemoveSpaceFromSecurityGroupCreatedCode is the HTTP code returned for type RemoveSpaceFromSecurityGroupCreated
const RetrieveSecurityGroupOKCode int = 200
RetrieveSecurityGroupOKCode is the HTTP code returned for type RetrieveSecurityGroupOK
const UpdateSecurityGroupCreatedCode int = 201
UpdateSecurityGroupCreatedCode is the HTTP code returned for type UpdateSecurityGroupCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateSpaceWithSecurityGroup ¶
type AssociateSpaceWithSecurityGroup struct { Context *middleware.Context Handler AssociateSpaceWithSecurityGroupHandler }
AssociateSpaceWithSecurityGroup swagger:route PUT /security_groups/{guid}/spaces/{space_guid} securityGroups associateSpaceWithSecurityGroup
Associate Space with the Security Group ¶
curl --insecure -i %s/v2/security_groups/{guid}/spaces/{space_guid} -X PUT -H 'Authorization: %s'
func NewAssociateSpaceWithSecurityGroup ¶
func NewAssociateSpaceWithSecurityGroup(ctx *middleware.Context, handler AssociateSpaceWithSecurityGroupHandler) *AssociateSpaceWithSecurityGroup
NewAssociateSpaceWithSecurityGroup creates a new http.Handler for the associate space with security group operation
func (*AssociateSpaceWithSecurityGroup) ServeHTTP ¶
func (o *AssociateSpaceWithSecurityGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AssociateSpaceWithSecurityGroupCreated ¶
type AssociateSpaceWithSecurityGroupCreated struct { /* In: Body */ Payload *models.AssociateSpaceWithSecurityGroupResponseResource `json:"body,omitempty"` }
AssociateSpaceWithSecurityGroupCreated successful response
swagger:response associateSpaceWithSecurityGroupCreated
func NewAssociateSpaceWithSecurityGroupCreated ¶
func NewAssociateSpaceWithSecurityGroupCreated() *AssociateSpaceWithSecurityGroupCreated
NewAssociateSpaceWithSecurityGroupCreated creates AssociateSpaceWithSecurityGroupCreated with default headers values
func (*AssociateSpaceWithSecurityGroupCreated) SetPayload ¶
func (o *AssociateSpaceWithSecurityGroupCreated) SetPayload(payload *models.AssociateSpaceWithSecurityGroupResponseResource)
SetPayload sets the payload to the associate space with security group created response
func (*AssociateSpaceWithSecurityGroupCreated) WithPayload ¶
func (o *AssociateSpaceWithSecurityGroupCreated) WithPayload(payload *models.AssociateSpaceWithSecurityGroupResponseResource) *AssociateSpaceWithSecurityGroupCreated
WithPayload adds the payload to the associate space with security group created response
func (*AssociateSpaceWithSecurityGroupCreated) WriteResponse ¶
func (o *AssociateSpaceWithSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssociateSpaceWithSecurityGroupHandler ¶
type AssociateSpaceWithSecurityGroupHandler interface {
Handle(AssociateSpaceWithSecurityGroupParams) middleware.Responder
}
AssociateSpaceWithSecurityGroupHandler interface for that can handle valid associate space with security group params
type AssociateSpaceWithSecurityGroupHandlerFunc ¶
type AssociateSpaceWithSecurityGroupHandlerFunc func(AssociateSpaceWithSecurityGroupParams) middleware.Responder
AssociateSpaceWithSecurityGroupHandlerFunc turns a function with the right signature into a associate space with security group handler
func (AssociateSpaceWithSecurityGroupHandlerFunc) Handle ¶
func (fn AssociateSpaceWithSecurityGroupHandlerFunc) Handle(params AssociateSpaceWithSecurityGroupParams) middleware.Responder
Handle executing the request and returning a response
type AssociateSpaceWithSecurityGroupParams ¶
type AssociateSpaceWithSecurityGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/security_groups/:guid/spaces/:space_guid' Required: true In: path */ GUID string /*The space_guid parameter is used as a part of the request URL: '/v2/security_groups/:guid/spaces/:space_guid' Required: true In: path */ SpaceGUID string }
AssociateSpaceWithSecurityGroupParams contains all the bound params for the associate space with security group operation typically these are obtained from a http.Request
swagger:parameters associateSpaceWithSecurityGroup
func NewAssociateSpaceWithSecurityGroupParams ¶
func NewAssociateSpaceWithSecurityGroupParams() AssociateSpaceWithSecurityGroupParams
NewAssociateSpaceWithSecurityGroupParams creates a new AssociateSpaceWithSecurityGroupParams object no default values defined in spec.
func (*AssociateSpaceWithSecurityGroupParams) BindRequest ¶
func (o *AssociateSpaceWithSecurityGroupParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAssociateSpaceWithSecurityGroupParams() beforehand.
type AssociateSpaceWithSecurityGroupURL ¶
type AssociateSpaceWithSecurityGroupURL struct { GUID string SpaceGUID string // contains filtered or unexported fields }
AssociateSpaceWithSecurityGroupURL generates an URL for the associate space with security group operation
func (*AssociateSpaceWithSecurityGroupURL) Build ¶
func (o *AssociateSpaceWithSecurityGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*AssociateSpaceWithSecurityGroupURL) BuildFull ¶
func (o *AssociateSpaceWithSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AssociateSpaceWithSecurityGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AssociateSpaceWithSecurityGroupURL) SetBasePath ¶
func (o *AssociateSpaceWithSecurityGroupURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AssociateSpaceWithSecurityGroupURL) String ¶
func (o *AssociateSpaceWithSecurityGroupURL) String() string
String returns the string representation of the path with query string
func (*AssociateSpaceWithSecurityGroupURL) StringFull ¶
func (o *AssociateSpaceWithSecurityGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AssociateSpaceWithSecurityGroupURL) WithBasePath ¶
func (o *AssociateSpaceWithSecurityGroupURL) WithBasePath(bp string) *AssociateSpaceWithSecurityGroupURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type CreateSecurityGroup ¶
type CreateSecurityGroup struct { Context *middleware.Context Handler CreateSecurityGroupHandler }
CreateSecurityGroup swagger:route POST /security_groups securityGroups createSecurityGroup
Creating a Security Group ¶
curl --insecure -i %s/v2/security_groups -X POST -H 'Authorization: %s' -d '%s'
func NewCreateSecurityGroup ¶
func NewCreateSecurityGroup(ctx *middleware.Context, handler CreateSecurityGroupHandler) *CreateSecurityGroup
NewCreateSecurityGroup creates a new http.Handler for the create security group operation
func (*CreateSecurityGroup) ServeHTTP ¶
func (o *CreateSecurityGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSecurityGroupCreated ¶
type CreateSecurityGroupCreated struct { /* In: Body */ Payload *models.CreateSecurityGroupResponseResource `json:"body,omitempty"` }
CreateSecurityGroupCreated successful response
swagger:response createSecurityGroupCreated
func NewCreateSecurityGroupCreated ¶
func NewCreateSecurityGroupCreated() *CreateSecurityGroupCreated
NewCreateSecurityGroupCreated creates CreateSecurityGroupCreated with default headers values
func (*CreateSecurityGroupCreated) SetPayload ¶
func (o *CreateSecurityGroupCreated) SetPayload(payload *models.CreateSecurityGroupResponseResource)
SetPayload sets the payload to the create security group created response
func (*CreateSecurityGroupCreated) WithPayload ¶
func (o *CreateSecurityGroupCreated) WithPayload(payload *models.CreateSecurityGroupResponseResource) *CreateSecurityGroupCreated
WithPayload adds the payload to the create security group created response
func (*CreateSecurityGroupCreated) WriteResponse ¶
func (o *CreateSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSecurityGroupHandler ¶
type CreateSecurityGroupHandler interface {
Handle(CreateSecurityGroupParams) middleware.Responder
}
CreateSecurityGroupHandler interface for that can handle valid create security group params
type CreateSecurityGroupHandlerFunc ¶
type CreateSecurityGroupHandlerFunc func(CreateSecurityGroupParams) middleware.Responder
CreateSecurityGroupHandlerFunc turns a function with the right signature into a create security group handler
func (CreateSecurityGroupHandlerFunc) Handle ¶
func (fn CreateSecurityGroupHandlerFunc) Handle(params CreateSecurityGroupParams) middleware.Responder
Handle executing the request and returning a response
type CreateSecurityGroupParams ¶
type CreateSecurityGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An object instance that is serialized and sent as the request body. Required: true In: body */ Value *models.CreateSecurityGroupRequest }
CreateSecurityGroupParams contains all the bound params for the create security group operation typically these are obtained from a http.Request
swagger:parameters createSecurityGroup
func NewCreateSecurityGroupParams ¶
func NewCreateSecurityGroupParams() CreateSecurityGroupParams
NewCreateSecurityGroupParams creates a new CreateSecurityGroupParams object no default values defined in spec.
func (*CreateSecurityGroupParams) BindRequest ¶
func (o *CreateSecurityGroupParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCreateSecurityGroupParams() beforehand.
type CreateSecurityGroupURL ¶
type CreateSecurityGroupURL struct {
// contains filtered or unexported fields
}
CreateSecurityGroupURL generates an URL for the create security group operation
func (*CreateSecurityGroupURL) Build ¶
func (o *CreateSecurityGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSecurityGroupURL) BuildFull ¶
func (o *CreateSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSecurityGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSecurityGroupURL) SetBasePath ¶
func (o *CreateSecurityGroupURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateSecurityGroupURL) String ¶
func (o *CreateSecurityGroupURL) String() string
String returns the string representation of the path with query string
func (*CreateSecurityGroupURL) StringFull ¶
func (o *CreateSecurityGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSecurityGroupURL) WithBasePath ¶
func (o *CreateSecurityGroupURL) WithBasePath(bp string) *CreateSecurityGroupURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteSecurityGroup ¶
type DeleteSecurityGroup struct { Context *middleware.Context Handler DeleteSecurityGroupHandler }
DeleteSecurityGroup swagger:route DELETE /security_groups/{guid} securityGroups deleteSecurityGroup
Delete a Particular Security Group ¶
curl --insecure -i %s/v2/security_groups/{guid} -X DELETE -H 'Authorization: %s'
func NewDeleteSecurityGroup ¶
func NewDeleteSecurityGroup(ctx *middleware.Context, handler DeleteSecurityGroupHandler) *DeleteSecurityGroup
NewDeleteSecurityGroup creates a new http.Handler for the delete security group operation
func (*DeleteSecurityGroup) ServeHTTP ¶
func (o *DeleteSecurityGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteSecurityGroupHandler ¶
type DeleteSecurityGroupHandler interface {
Handle(DeleteSecurityGroupParams) middleware.Responder
}
DeleteSecurityGroupHandler interface for that can handle valid delete security group params
type DeleteSecurityGroupHandlerFunc ¶
type DeleteSecurityGroupHandlerFunc func(DeleteSecurityGroupParams) middleware.Responder
DeleteSecurityGroupHandlerFunc turns a function with the right signature into a delete security group handler
func (DeleteSecurityGroupHandlerFunc) Handle ¶
func (fn DeleteSecurityGroupHandlerFunc) Handle(params DeleteSecurityGroupParams) middleware.Responder
Handle executing the request and returning a response
type DeleteSecurityGroupNoContent ¶
type DeleteSecurityGroupNoContent struct { }
DeleteSecurityGroupNoContent successful response
swagger:response deleteSecurityGroupNoContent
func NewDeleteSecurityGroupNoContent ¶
func NewDeleteSecurityGroupNoContent() *DeleteSecurityGroupNoContent
NewDeleteSecurityGroupNoContent creates DeleteSecurityGroupNoContent with default headers values
func (*DeleteSecurityGroupNoContent) WriteResponse ¶
func (o *DeleteSecurityGroupNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteSecurityGroupParams ¶
type DeleteSecurityGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/security_groups/:guid' Required: true In: path */ GUID string }
DeleteSecurityGroupParams contains all the bound params for the delete security group operation typically these are obtained from a http.Request
swagger:parameters deleteSecurityGroup
func NewDeleteSecurityGroupParams ¶
func NewDeleteSecurityGroupParams() DeleteSecurityGroupParams
NewDeleteSecurityGroupParams creates a new DeleteSecurityGroupParams object no default values defined in spec.
func (*DeleteSecurityGroupParams) BindRequest ¶
func (o *DeleteSecurityGroupParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteSecurityGroupParams() beforehand.
type DeleteSecurityGroupURL ¶
type DeleteSecurityGroupURL struct { GUID string // contains filtered or unexported fields }
DeleteSecurityGroupURL generates an URL for the delete security group operation
func (*DeleteSecurityGroupURL) Build ¶
func (o *DeleteSecurityGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteSecurityGroupURL) BuildFull ¶
func (o *DeleteSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteSecurityGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteSecurityGroupURL) SetBasePath ¶
func (o *DeleteSecurityGroupURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteSecurityGroupURL) String ¶
func (o *DeleteSecurityGroupURL) String() string
String returns the string representation of the path with query string
func (*DeleteSecurityGroupURL) StringFull ¶
func (o *DeleteSecurityGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteSecurityGroupURL) WithBasePath ¶
func (o *DeleteSecurityGroupURL) WithBasePath(bp string) *DeleteSecurityGroupURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ListAllSecurityGroups ¶
type ListAllSecurityGroups struct { Context *middleware.Context Handler ListAllSecurityGroupsHandler }
ListAllSecurityGroups swagger:route GET /security_groups securityGroups listAllSecurityGroups
List all Security Groups ¶
curl --insecure -i %s/v2/security_groups -X GET -H 'Authorization: %s'
func NewListAllSecurityGroups ¶
func NewListAllSecurityGroups(ctx *middleware.Context, handler ListAllSecurityGroupsHandler) *ListAllSecurityGroups
NewListAllSecurityGroups creates a new http.Handler for the list all security groups operation
func (*ListAllSecurityGroups) ServeHTTP ¶
func (o *ListAllSecurityGroups) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListAllSecurityGroupsHandler ¶
type ListAllSecurityGroupsHandler interface {
Handle(ListAllSecurityGroupsParams) middleware.Responder
}
ListAllSecurityGroupsHandler interface for that can handle valid list all security groups params
type ListAllSecurityGroupsHandlerFunc ¶
type ListAllSecurityGroupsHandlerFunc func(ListAllSecurityGroupsParams) middleware.Responder
ListAllSecurityGroupsHandlerFunc turns a function with the right signature into a list all security groups handler
func (ListAllSecurityGroupsHandlerFunc) Handle ¶
func (fn ListAllSecurityGroupsHandlerFunc) Handle(params ListAllSecurityGroupsParams) middleware.Responder
Handle executing the request and returning a response
type ListAllSecurityGroupsOK ¶
type ListAllSecurityGroupsOK struct { /* In: Body */ Payload *models.ListAllSecurityGroupsResponsePaged `json:"body,omitempty"` }
ListAllSecurityGroupsOK successful response
swagger:response listAllSecurityGroupsOK
func NewListAllSecurityGroupsOK ¶
func NewListAllSecurityGroupsOK() *ListAllSecurityGroupsOK
NewListAllSecurityGroupsOK creates ListAllSecurityGroupsOK with default headers values
func (*ListAllSecurityGroupsOK) SetPayload ¶
func (o *ListAllSecurityGroupsOK) SetPayload(payload *models.ListAllSecurityGroupsResponsePaged)
SetPayload sets the payload to the list all security groups o k response
func (*ListAllSecurityGroupsOK) WithPayload ¶
func (o *ListAllSecurityGroupsOK) WithPayload(payload *models.ListAllSecurityGroupsResponsePaged) *ListAllSecurityGroupsOK
WithPayload adds the payload to the list all security groups o k response
func (*ListAllSecurityGroupsOK) WriteResponse ¶
func (o *ListAllSecurityGroupsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListAllSecurityGroupsParams ¶
type ListAllSecurityGroupsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
ListAllSecurityGroupsParams contains all the bound params for the list all security groups operation typically these are obtained from a http.Request
swagger:parameters listAllSecurityGroups
func NewListAllSecurityGroupsParams ¶
func NewListAllSecurityGroupsParams() ListAllSecurityGroupsParams
NewListAllSecurityGroupsParams creates a new ListAllSecurityGroupsParams object no default values defined in spec.
func (*ListAllSecurityGroupsParams) BindRequest ¶
func (o *ListAllSecurityGroupsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewListAllSecurityGroupsParams() beforehand.
type ListAllSecurityGroupsURL ¶
type ListAllSecurityGroupsURL struct {
// contains filtered or unexported fields
}
ListAllSecurityGroupsURL generates an URL for the list all security groups operation
func (*ListAllSecurityGroupsURL) Build ¶
func (o *ListAllSecurityGroupsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListAllSecurityGroupsURL) BuildFull ¶
func (o *ListAllSecurityGroupsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListAllSecurityGroupsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListAllSecurityGroupsURL) SetBasePath ¶
func (o *ListAllSecurityGroupsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ListAllSecurityGroupsURL) String ¶
func (o *ListAllSecurityGroupsURL) String() string
String returns the string representation of the path with query string
func (*ListAllSecurityGroupsURL) StringFull ¶
func (o *ListAllSecurityGroupsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListAllSecurityGroupsURL) WithBasePath ¶
func (o *ListAllSecurityGroupsURL) WithBasePath(bp string) *ListAllSecurityGroupsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ListAllSpacesForSecurityGroup ¶
type ListAllSpacesForSecurityGroup struct { Context *middleware.Context Handler ListAllSpacesForSecurityGroupHandler }
ListAllSpacesForSecurityGroup swagger:route GET /security_groups/{guid}/spaces securityGroups listAllSpacesForSecurityGroup
List all Spaces for the Security Group ¶
curl --insecure -i %s/v2/security_groups/{guid}/spaces -X GET -H 'Authorization: %s'
func NewListAllSpacesForSecurityGroup ¶
func NewListAllSpacesForSecurityGroup(ctx *middleware.Context, handler ListAllSpacesForSecurityGroupHandler) *ListAllSpacesForSecurityGroup
NewListAllSpacesForSecurityGroup creates a new http.Handler for the list all spaces for security group operation
func (*ListAllSpacesForSecurityGroup) ServeHTTP ¶
func (o *ListAllSpacesForSecurityGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListAllSpacesForSecurityGroupHandler ¶
type ListAllSpacesForSecurityGroupHandler interface {
Handle(ListAllSpacesForSecurityGroupParams) middleware.Responder
}
ListAllSpacesForSecurityGroupHandler interface for that can handle valid list all spaces for security group params
type ListAllSpacesForSecurityGroupHandlerFunc ¶
type ListAllSpacesForSecurityGroupHandlerFunc func(ListAllSpacesForSecurityGroupParams) middleware.Responder
ListAllSpacesForSecurityGroupHandlerFunc turns a function with the right signature into a list all spaces for security group handler
func (ListAllSpacesForSecurityGroupHandlerFunc) Handle ¶
func (fn ListAllSpacesForSecurityGroupHandlerFunc) Handle(params ListAllSpacesForSecurityGroupParams) middleware.Responder
Handle executing the request and returning a response
type ListAllSpacesForSecurityGroupOK ¶
type ListAllSpacesForSecurityGroupOK struct { /* In: Body */ Payload *models.ListAllSpacesForSecurityGroupResponsePaged `json:"body,omitempty"` }
ListAllSpacesForSecurityGroupOK successful response
swagger:response listAllSpacesForSecurityGroupOK
func NewListAllSpacesForSecurityGroupOK ¶
func NewListAllSpacesForSecurityGroupOK() *ListAllSpacesForSecurityGroupOK
NewListAllSpacesForSecurityGroupOK creates ListAllSpacesForSecurityGroupOK with default headers values
func (*ListAllSpacesForSecurityGroupOK) SetPayload ¶
func (o *ListAllSpacesForSecurityGroupOK) SetPayload(payload *models.ListAllSpacesForSecurityGroupResponsePaged)
SetPayload sets the payload to the list all spaces for security group o k response
func (*ListAllSpacesForSecurityGroupOK) WithPayload ¶
func (o *ListAllSpacesForSecurityGroupOK) WithPayload(payload *models.ListAllSpacesForSecurityGroupResponsePaged) *ListAllSpacesForSecurityGroupOK
WithPayload adds the payload to the list all spaces for security group o k response
func (*ListAllSpacesForSecurityGroupOK) WriteResponse ¶
func (o *ListAllSpacesForSecurityGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListAllSpacesForSecurityGroupParams ¶
type ListAllSpacesForSecurityGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/security_groups/:guid/spaces' Required: true In: path */ GUID string }
ListAllSpacesForSecurityGroupParams contains all the bound params for the list all spaces for security group operation typically these are obtained from a http.Request
swagger:parameters listAllSpacesForSecurityGroup
func NewListAllSpacesForSecurityGroupParams ¶
func NewListAllSpacesForSecurityGroupParams() ListAllSpacesForSecurityGroupParams
NewListAllSpacesForSecurityGroupParams creates a new ListAllSpacesForSecurityGroupParams object no default values defined in spec.
func (*ListAllSpacesForSecurityGroupParams) BindRequest ¶
func (o *ListAllSpacesForSecurityGroupParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewListAllSpacesForSecurityGroupParams() beforehand.
type ListAllSpacesForSecurityGroupURL ¶
type ListAllSpacesForSecurityGroupURL struct { GUID string // contains filtered or unexported fields }
ListAllSpacesForSecurityGroupURL generates an URL for the list all spaces for security group operation
func (*ListAllSpacesForSecurityGroupURL) Build ¶
func (o *ListAllSpacesForSecurityGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListAllSpacesForSecurityGroupURL) BuildFull ¶
func (o *ListAllSpacesForSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListAllSpacesForSecurityGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListAllSpacesForSecurityGroupURL) SetBasePath ¶
func (o *ListAllSpacesForSecurityGroupURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ListAllSpacesForSecurityGroupURL) String ¶
func (o *ListAllSpacesForSecurityGroupURL) String() string
String returns the string representation of the path with query string
func (*ListAllSpacesForSecurityGroupURL) StringFull ¶
func (o *ListAllSpacesForSecurityGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListAllSpacesForSecurityGroupURL) WithBasePath ¶
func (o *ListAllSpacesForSecurityGroupURL) WithBasePath(bp string) *ListAllSpacesForSecurityGroupURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type RemoveSpaceFromSecurityGroup ¶
type RemoveSpaceFromSecurityGroup struct { Context *middleware.Context Handler RemoveSpaceFromSecurityGroupHandler }
RemoveSpaceFromSecurityGroup swagger:route DELETE /security_groups/{guid}/spaces/{space_guid} securityGroups removeSpaceFromSecurityGroup
Remove Space from the Security Group ¶
curl --insecure -i %s/v2/security_groups/{guid}/spaces/{space_guid} -X DELETE -H 'Authorization: %s'
func NewRemoveSpaceFromSecurityGroup ¶
func NewRemoveSpaceFromSecurityGroup(ctx *middleware.Context, handler RemoveSpaceFromSecurityGroupHandler) *RemoveSpaceFromSecurityGroup
NewRemoveSpaceFromSecurityGroup creates a new http.Handler for the remove space from security group operation
func (*RemoveSpaceFromSecurityGroup) ServeHTTP ¶
func (o *RemoveSpaceFromSecurityGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RemoveSpaceFromSecurityGroupCreated ¶
type RemoveSpaceFromSecurityGroupCreated struct { /* In: Body */ Payload *models.RemoveSpaceFromSecurityGroupResponseResource `json:"body,omitempty"` }
RemoveSpaceFromSecurityGroupCreated successful response
swagger:response removeSpaceFromSecurityGroupCreated
func NewRemoveSpaceFromSecurityGroupCreated ¶
func NewRemoveSpaceFromSecurityGroupCreated() *RemoveSpaceFromSecurityGroupCreated
NewRemoveSpaceFromSecurityGroupCreated creates RemoveSpaceFromSecurityGroupCreated with default headers values
func (*RemoveSpaceFromSecurityGroupCreated) SetPayload ¶
func (o *RemoveSpaceFromSecurityGroupCreated) SetPayload(payload *models.RemoveSpaceFromSecurityGroupResponseResource)
SetPayload sets the payload to the remove space from security group created response
func (*RemoveSpaceFromSecurityGroupCreated) WithPayload ¶
func (o *RemoveSpaceFromSecurityGroupCreated) WithPayload(payload *models.RemoveSpaceFromSecurityGroupResponseResource) *RemoveSpaceFromSecurityGroupCreated
WithPayload adds the payload to the remove space from security group created response
func (*RemoveSpaceFromSecurityGroupCreated) WriteResponse ¶
func (o *RemoveSpaceFromSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveSpaceFromSecurityGroupHandler ¶
type RemoveSpaceFromSecurityGroupHandler interface {
Handle(RemoveSpaceFromSecurityGroupParams) middleware.Responder
}
RemoveSpaceFromSecurityGroupHandler interface for that can handle valid remove space from security group params
type RemoveSpaceFromSecurityGroupHandlerFunc ¶
type RemoveSpaceFromSecurityGroupHandlerFunc func(RemoveSpaceFromSecurityGroupParams) middleware.Responder
RemoveSpaceFromSecurityGroupHandlerFunc turns a function with the right signature into a remove space from security group handler
func (RemoveSpaceFromSecurityGroupHandlerFunc) Handle ¶
func (fn RemoveSpaceFromSecurityGroupHandlerFunc) Handle(params RemoveSpaceFromSecurityGroupParams) middleware.Responder
Handle executing the request and returning a response
type RemoveSpaceFromSecurityGroupParams ¶
type RemoveSpaceFromSecurityGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/security_groups/:guid/spaces/:space_guid' Required: true In: path */ GUID string /*The space_guid parameter is used as a part of the request URL: '/v2/security_groups/:guid/spaces/:space_guid' Required: true In: path */ SpaceGUID string }
RemoveSpaceFromSecurityGroupParams contains all the bound params for the remove space from security group operation typically these are obtained from a http.Request
swagger:parameters removeSpaceFromSecurityGroup
func NewRemoveSpaceFromSecurityGroupParams ¶
func NewRemoveSpaceFromSecurityGroupParams() RemoveSpaceFromSecurityGroupParams
NewRemoveSpaceFromSecurityGroupParams creates a new RemoveSpaceFromSecurityGroupParams object no default values defined in spec.
func (*RemoveSpaceFromSecurityGroupParams) BindRequest ¶
func (o *RemoveSpaceFromSecurityGroupParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRemoveSpaceFromSecurityGroupParams() beforehand.
type RemoveSpaceFromSecurityGroupURL ¶
type RemoveSpaceFromSecurityGroupURL struct { GUID string SpaceGUID string // contains filtered or unexported fields }
RemoveSpaceFromSecurityGroupURL generates an URL for the remove space from security group operation
func (*RemoveSpaceFromSecurityGroupURL) Build ¶
func (o *RemoveSpaceFromSecurityGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemoveSpaceFromSecurityGroupURL) BuildFull ¶
func (o *RemoveSpaceFromSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemoveSpaceFromSecurityGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemoveSpaceFromSecurityGroupURL) SetBasePath ¶
func (o *RemoveSpaceFromSecurityGroupURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RemoveSpaceFromSecurityGroupURL) String ¶
func (o *RemoveSpaceFromSecurityGroupURL) String() string
String returns the string representation of the path with query string
func (*RemoveSpaceFromSecurityGroupURL) StringFull ¶
func (o *RemoveSpaceFromSecurityGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemoveSpaceFromSecurityGroupURL) WithBasePath ¶
func (o *RemoveSpaceFromSecurityGroupURL) WithBasePath(bp string) *RemoveSpaceFromSecurityGroupURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type RetrieveSecurityGroup ¶
type RetrieveSecurityGroup struct { Context *middleware.Context Handler RetrieveSecurityGroupHandler }
RetrieveSecurityGroup swagger:route GET /security_groups/{guid} securityGroups retrieveSecurityGroup
Retrieve a Particular Security Group ¶
curl --insecure -i %s/v2/security_groups/{guid} -X GET -H 'Authorization: %s'
func NewRetrieveSecurityGroup ¶
func NewRetrieveSecurityGroup(ctx *middleware.Context, handler RetrieveSecurityGroupHandler) *RetrieveSecurityGroup
NewRetrieveSecurityGroup creates a new http.Handler for the retrieve security group operation
func (*RetrieveSecurityGroup) ServeHTTP ¶
func (o *RetrieveSecurityGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RetrieveSecurityGroupHandler ¶
type RetrieveSecurityGroupHandler interface {
Handle(RetrieveSecurityGroupParams) middleware.Responder
}
RetrieveSecurityGroupHandler interface for that can handle valid retrieve security group params
type RetrieveSecurityGroupHandlerFunc ¶
type RetrieveSecurityGroupHandlerFunc func(RetrieveSecurityGroupParams) middleware.Responder
RetrieveSecurityGroupHandlerFunc turns a function with the right signature into a retrieve security group handler
func (RetrieveSecurityGroupHandlerFunc) Handle ¶
func (fn RetrieveSecurityGroupHandlerFunc) Handle(params RetrieveSecurityGroupParams) middleware.Responder
Handle executing the request and returning a response
type RetrieveSecurityGroupOK ¶
type RetrieveSecurityGroupOK struct { /* In: Body */ Payload *models.RetrieveSecurityGroupResponseResource `json:"body,omitempty"` }
RetrieveSecurityGroupOK successful response
swagger:response retrieveSecurityGroupOK
func NewRetrieveSecurityGroupOK ¶
func NewRetrieveSecurityGroupOK() *RetrieveSecurityGroupOK
NewRetrieveSecurityGroupOK creates RetrieveSecurityGroupOK with default headers values
func (*RetrieveSecurityGroupOK) SetPayload ¶
func (o *RetrieveSecurityGroupOK) SetPayload(payload *models.RetrieveSecurityGroupResponseResource)
SetPayload sets the payload to the retrieve security group o k response
func (*RetrieveSecurityGroupOK) WithPayload ¶
func (o *RetrieveSecurityGroupOK) WithPayload(payload *models.RetrieveSecurityGroupResponseResource) *RetrieveSecurityGroupOK
WithPayload adds the payload to the retrieve security group o k response
func (*RetrieveSecurityGroupOK) WriteResponse ¶
func (o *RetrieveSecurityGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RetrieveSecurityGroupParams ¶
type RetrieveSecurityGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/security_groups/:guid' Required: true In: path */ GUID string }
RetrieveSecurityGroupParams contains all the bound params for the retrieve security group operation typically these are obtained from a http.Request
swagger:parameters retrieveSecurityGroup
func NewRetrieveSecurityGroupParams ¶
func NewRetrieveSecurityGroupParams() RetrieveSecurityGroupParams
NewRetrieveSecurityGroupParams creates a new RetrieveSecurityGroupParams object no default values defined in spec.
func (*RetrieveSecurityGroupParams) BindRequest ¶
func (o *RetrieveSecurityGroupParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRetrieveSecurityGroupParams() beforehand.
type RetrieveSecurityGroupURL ¶
type RetrieveSecurityGroupURL struct { GUID string // contains filtered or unexported fields }
RetrieveSecurityGroupURL generates an URL for the retrieve security group operation
func (*RetrieveSecurityGroupURL) Build ¶
func (o *RetrieveSecurityGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*RetrieveSecurityGroupURL) BuildFull ¶
func (o *RetrieveSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RetrieveSecurityGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RetrieveSecurityGroupURL) SetBasePath ¶
func (o *RetrieveSecurityGroupURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RetrieveSecurityGroupURL) String ¶
func (o *RetrieveSecurityGroupURL) String() string
String returns the string representation of the path with query string
func (*RetrieveSecurityGroupURL) StringFull ¶
func (o *RetrieveSecurityGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RetrieveSecurityGroupURL) WithBasePath ¶
func (o *RetrieveSecurityGroupURL) WithBasePath(bp string) *RetrieveSecurityGroupURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateSecurityGroup ¶
type UpdateSecurityGroup struct { Context *middleware.Context Handler UpdateSecurityGroupHandler }
UpdateSecurityGroup swagger:route PUT /security_groups/{guid} securityGroups updateSecurityGroup
Updating a Security Group ¶
curl --insecure -i %s/v2/security_groups/{guid} -X PUT -H 'Authorization: %s' -d '%s'
func NewUpdateSecurityGroup ¶
func NewUpdateSecurityGroup(ctx *middleware.Context, handler UpdateSecurityGroupHandler) *UpdateSecurityGroup
NewUpdateSecurityGroup creates a new http.Handler for the update security group operation
func (*UpdateSecurityGroup) ServeHTTP ¶
func (o *UpdateSecurityGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateSecurityGroupCreated ¶
type UpdateSecurityGroupCreated struct { /* In: Body */ Payload *models.UpdateSecurityGroupResponseResource `json:"body,omitempty"` }
UpdateSecurityGroupCreated successful response
swagger:response updateSecurityGroupCreated
func NewUpdateSecurityGroupCreated ¶
func NewUpdateSecurityGroupCreated() *UpdateSecurityGroupCreated
NewUpdateSecurityGroupCreated creates UpdateSecurityGroupCreated with default headers values
func (*UpdateSecurityGroupCreated) SetPayload ¶
func (o *UpdateSecurityGroupCreated) SetPayload(payload *models.UpdateSecurityGroupResponseResource)
SetPayload sets the payload to the update security group created response
func (*UpdateSecurityGroupCreated) WithPayload ¶
func (o *UpdateSecurityGroupCreated) WithPayload(payload *models.UpdateSecurityGroupResponseResource) *UpdateSecurityGroupCreated
WithPayload adds the payload to the update security group created response
func (*UpdateSecurityGroupCreated) WriteResponse ¶
func (o *UpdateSecurityGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateSecurityGroupHandler ¶
type UpdateSecurityGroupHandler interface {
Handle(UpdateSecurityGroupParams) middleware.Responder
}
UpdateSecurityGroupHandler interface for that can handle valid update security group params
type UpdateSecurityGroupHandlerFunc ¶
type UpdateSecurityGroupHandlerFunc func(UpdateSecurityGroupParams) middleware.Responder
UpdateSecurityGroupHandlerFunc turns a function with the right signature into a update security group handler
func (UpdateSecurityGroupHandlerFunc) Handle ¶
func (fn UpdateSecurityGroupHandlerFunc) Handle(params UpdateSecurityGroupParams) middleware.Responder
Handle executing the request and returning a response
type UpdateSecurityGroupParams ¶
type UpdateSecurityGroupParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The guid parameter is used as a part of the request URL: '/v2/security_groups/:guid' Required: true In: path */ GUID string /*An object instance that is serialized and sent as the request body. Required: true In: body */ Value *models.UpdateSecurityGroupRequest }
UpdateSecurityGroupParams contains all the bound params for the update security group operation typically these are obtained from a http.Request
swagger:parameters updateSecurityGroup
func NewUpdateSecurityGroupParams ¶
func NewUpdateSecurityGroupParams() UpdateSecurityGroupParams
NewUpdateSecurityGroupParams creates a new UpdateSecurityGroupParams object no default values defined in spec.
func (*UpdateSecurityGroupParams) BindRequest ¶
func (o *UpdateSecurityGroupParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateSecurityGroupParams() beforehand.
type UpdateSecurityGroupURL ¶
type UpdateSecurityGroupURL struct { GUID string // contains filtered or unexported fields }
UpdateSecurityGroupURL generates an URL for the update security group operation
func (*UpdateSecurityGroupURL) Build ¶
func (o *UpdateSecurityGroupURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateSecurityGroupURL) BuildFull ¶
func (o *UpdateSecurityGroupURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateSecurityGroupURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateSecurityGroupURL) SetBasePath ¶
func (o *UpdateSecurityGroupURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateSecurityGroupURL) String ¶
func (o *UpdateSecurityGroupURL) String() string
String returns the string representation of the path with query string
func (*UpdateSecurityGroupURL) StringFull ¶
func (o *UpdateSecurityGroupURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateSecurityGroupURL) WithBasePath ¶
func (o *UpdateSecurityGroupURL) WithBasePath(bp string) *UpdateSecurityGroupURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- associate_space_with_security_group.go
- associate_space_with_security_group_parameters.go
- associate_space_with_security_group_responses.go
- associate_space_with_security_group_urlbuilder.go
- create_security_group.go
- create_security_group_parameters.go
- create_security_group_responses.go
- create_security_group_urlbuilder.go
- delete_security_group.go
- delete_security_group_parameters.go
- delete_security_group_responses.go
- delete_security_group_urlbuilder.go
- list_all_security_groups.go
- list_all_security_groups_parameters.go
- list_all_security_groups_responses.go
- list_all_security_groups_urlbuilder.go
- list_all_spaces_for_security_group.go
- list_all_spaces_for_security_group_parameters.go
- list_all_spaces_for_security_group_responses.go
- list_all_spaces_for_security_group_urlbuilder.go
- remove_space_from_security_group.go
- remove_space_from_security_group_parameters.go
- remove_space_from_security_group_responses.go
- remove_space_from_security_group_urlbuilder.go
- retrieve_security_group.go
- retrieve_security_group_parameters.go
- retrieve_security_group_responses.go
- retrieve_security_group_urlbuilder.go
- update_security_group.go
- update_security_group_parameters.go
- update_security_group_responses.go
- update_security_group_urlbuilder.go