security_groups

package
v0.0.0-...-7977c27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AssociateSpaceWithSecurityGroupCreatedCode int = 201

AssociateSpaceWithSecurityGroupCreatedCode is the HTTP code returned for type AssociateSpaceWithSecurityGroupCreated

View Source
const CreateSecurityGroupCreatedCode int = 201

CreateSecurityGroupCreatedCode is the HTTP code returned for type CreateSecurityGroupCreated

View Source
const DeleteSecurityGroupNoContentCode int = 204

DeleteSecurityGroupNoContentCode is the HTTP code returned for type DeleteSecurityGroupNoContent

View Source
const ListAllSecurityGroupsOKCode int = 200

ListAllSecurityGroupsOKCode is the HTTP code returned for type ListAllSecurityGroupsOK

View Source
const ListAllSpacesForSecurityGroupOKCode int = 200

ListAllSpacesForSecurityGroupOKCode is the HTTP code returned for type ListAllSpacesForSecurityGroupOK

View Source
const RemoveSpaceFromSecurityGroupCreatedCode int = 201

RemoveSpaceFromSecurityGroupCreatedCode is the HTTP code returned for type RemoveSpaceFromSecurityGroupCreated

View Source
const RetrieveSecurityGroupOKCode int = 200

RetrieveSecurityGroupOKCode is the HTTP code returned for type RetrieveSecurityGroupOK

View Source
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

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

SetPayload sets the payload to the associate space with security group created response

func (*AssociateSpaceWithSecurityGroupCreated) WithPayload

WithPayload adds the payload to the associate space with security group created response

func (*AssociateSpaceWithSecurityGroupCreated) WriteResponse

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

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

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

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

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

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

SetPayload sets the payload to the create security group created response

func (*CreateSecurityGroupCreated) WithPayload

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

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

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

func (o *CreateSecurityGroupURL) Must(u *url.URL, err error) *url.URL

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

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

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

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

func (o *DeleteSecurityGroupURL) Must(u *url.URL, err error) *url.URL

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

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

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

SetPayload sets the payload to the list all security groups o k response

func (*ListAllSecurityGroupsOK) WithPayload

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

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

func (o *ListAllSecurityGroupsURL) Must(u *url.URL, err error) *url.URL

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

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

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

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

SetPayload sets the payload to the list all spaces for security group o k response

func (*ListAllSpacesForSecurityGroupOK) WithPayload

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

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

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

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

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

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

SetPayload sets the payload to the remove space from security group created response

func (*RemoveSpaceFromSecurityGroupCreated) WithPayload

WithPayload adds the payload to the remove space from security group created response

func (*RemoveSpaceFromSecurityGroupCreated) WriteResponse

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

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

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

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

func (o *RemoveSpaceFromSecurityGroupURL) Must(u *url.URL, err error) *url.URL

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

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

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

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

SetPayload sets the payload to the retrieve security group o k response

func (*RetrieveSecurityGroupOK) WithPayload

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

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

func (o *RetrieveSecurityGroupURL) Must(u *url.URL, err error) *url.URL

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

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

SetPayload sets the payload to the update security group created response

func (*UpdateSecurityGroupCreated) WithPayload

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

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

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

func (o *UpdateSecurityGroupURL) Must(u *url.URL, err error) *url.URL

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL