organization

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AddOrganizationBadRequestCode int = 400

AddOrganizationBadRequestCode is the HTTP code returned for type AddOrganizationBadRequest

View Source
const AddOrganizationConflictCode int = 409

AddOrganizationConflictCode is the HTTP code returned for type AddOrganizationConflict

View Source
const AddOrganizationCreatedCode int = 201

AddOrganizationCreatedCode is the HTTP code returned for type AddOrganizationCreated

View Source
const AddOrganizationInternalServerErrorCode int = 500

AddOrganizationInternalServerErrorCode is the HTTP code returned for type AddOrganizationInternalServerError

View Source
const DeleteOrganizationBadRequestCode int = 400

DeleteOrganizationBadRequestCode is the HTTP code returned for type DeleteOrganizationBadRequest

View Source
const DeleteOrganizationInternalServerErrorCode int = 500

DeleteOrganizationInternalServerErrorCode is the HTTP code returned for type DeleteOrganizationInternalServerError

View Source
const DeleteOrganizationNotFoundCode int = 404

DeleteOrganizationNotFoundCode is the HTTP code returned for type DeleteOrganizationNotFound

View Source
const DeleteOrganizationOKCode int = 200

DeleteOrganizationOKCode is the HTTP code returned for type DeleteOrganizationOK

View Source
const GetOrganizationBadRequestCode int = 400

GetOrganizationBadRequestCode is the HTTP code returned for type GetOrganizationBadRequest

View Source
const GetOrganizationInternalServerErrorCode int = 500

GetOrganizationInternalServerErrorCode is the HTTP code returned for type GetOrganizationInternalServerError

View Source
const GetOrganizationNotFoundCode int = 404

GetOrganizationNotFoundCode is the HTTP code returned for type GetOrganizationNotFound

View Source
const GetOrganizationOKCode int = 200

GetOrganizationOKCode is the HTTP code returned for type GetOrganizationOK

View Source
const GetOrganizationsInternalServerErrorCode int = 500

GetOrganizationsInternalServerErrorCode is the HTTP code returned for type GetOrganizationsInternalServerError

View Source
const GetOrganizationsOKCode int = 200

GetOrganizationsOKCode is the HTTP code returned for type GetOrganizationsOK

View Source
const UpdateOrganizationBadRequestCode int = 400

UpdateOrganizationBadRequestCode is the HTTP code returned for type UpdateOrganizationBadRequest

View Source
const UpdateOrganizationInternalServerErrorCode int = 500

UpdateOrganizationInternalServerErrorCode is the HTTP code returned for type UpdateOrganizationInternalServerError

View Source
const UpdateOrganizationNotFoundCode int = 404

UpdateOrganizationNotFoundCode is the HTTP code returned for type UpdateOrganizationNotFound

View Source
const UpdateOrganizationOKCode int = 200

UpdateOrganizationOKCode is the HTTP code returned for type UpdateOrganizationOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOrganization

type AddOrganization struct {
	Context *middleware.Context
	Handler AddOrganizationHandler
}

AddOrganization swagger:route POST /v1/iam/organization organization addOrganization

Add a new organization

func NewAddOrganization

func NewAddOrganization(ctx *middleware.Context, handler AddOrganizationHandler) *AddOrganization

NewAddOrganization creates a new http.Handler for the add organization operation

func (*AddOrganization) ServeHTTP

func (o *AddOrganization) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddOrganizationBadRequest

type AddOrganizationBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddOrganizationBadRequest Invalid input

swagger:response addOrganizationBadRequest

func NewAddOrganizationBadRequest

func NewAddOrganizationBadRequest() *AddOrganizationBadRequest

NewAddOrganizationBadRequest creates AddOrganizationBadRequest with default headers values

func (*AddOrganizationBadRequest) SetPayload

func (o *AddOrganizationBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add organization bad request response

func (*AddOrganizationBadRequest) WithPayload

func (o *AddOrganizationBadRequest) WithPayload(payload *v1.Error) *AddOrganizationBadRequest

WithPayload adds the payload to the add organization bad request response

func (*AddOrganizationBadRequest) WriteResponse

func (o *AddOrganizationBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddOrganizationConflict

type AddOrganizationConflict struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddOrganizationConflict Already Exists

swagger:response addOrganizationConflict

func NewAddOrganizationConflict

func NewAddOrganizationConflict() *AddOrganizationConflict

NewAddOrganizationConflict creates AddOrganizationConflict with default headers values

func (*AddOrganizationConflict) SetPayload

func (o *AddOrganizationConflict) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add organization conflict response

func (*AddOrganizationConflict) WithPayload

func (o *AddOrganizationConflict) WithPayload(payload *v1.Error) *AddOrganizationConflict

WithPayload adds the payload to the add organization conflict response

func (*AddOrganizationConflict) WriteResponse

func (o *AddOrganizationConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddOrganizationCreated

type AddOrganizationCreated struct {

	/*
	  In: Body
	*/
	Payload *v1.Organization `json:"body,omitempty"`
}

AddOrganizationCreated created

swagger:response addOrganizationCreated

func NewAddOrganizationCreated

func NewAddOrganizationCreated() *AddOrganizationCreated

NewAddOrganizationCreated creates AddOrganizationCreated with default headers values

func (*AddOrganizationCreated) SetPayload

func (o *AddOrganizationCreated) SetPayload(payload *v1.Organization)

SetPayload sets the payload to the add organization created response

func (*AddOrganizationCreated) WithPayload

WithPayload adds the payload to the add organization created response

func (*AddOrganizationCreated) WriteResponse

func (o *AddOrganizationCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddOrganizationDefault

type AddOrganizationDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddOrganizationDefault Generic error response

swagger:response addOrganizationDefault

func NewAddOrganizationDefault

func NewAddOrganizationDefault(code int) *AddOrganizationDefault

NewAddOrganizationDefault creates AddOrganizationDefault with default headers values

func (*AddOrganizationDefault) SetPayload

func (o *AddOrganizationDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add organization default response

func (*AddOrganizationDefault) SetStatusCode

func (o *AddOrganizationDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add organization default response

func (*AddOrganizationDefault) WithPayload

func (o *AddOrganizationDefault) WithPayload(payload *v1.Error) *AddOrganizationDefault

WithPayload adds the payload to the add organization default response

func (*AddOrganizationDefault) WithStatusCode

func (o *AddOrganizationDefault) WithStatusCode(code int) *AddOrganizationDefault

WithStatusCode adds the status to the add organization default response

func (*AddOrganizationDefault) WriteResponse

func (o *AddOrganizationDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddOrganizationHandler

type AddOrganizationHandler interface {
	Handle(AddOrganizationParams, interface{}) middleware.Responder
}

AddOrganizationHandler interface for that can handle valid add organization params

type AddOrganizationHandlerFunc

type AddOrganizationHandlerFunc func(AddOrganizationParams, interface{}) middleware.Responder

AddOrganizationHandlerFunc turns a function with the right signature into a add organization handler

func (AddOrganizationHandlerFunc) Handle

func (fn AddOrganizationHandlerFunc) Handle(params AddOrganizationParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddOrganizationInternalServerError

type AddOrganizationInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddOrganizationInternalServerError Internal Error

swagger:response addOrganizationInternalServerError

func NewAddOrganizationInternalServerError

func NewAddOrganizationInternalServerError() *AddOrganizationInternalServerError

NewAddOrganizationInternalServerError creates AddOrganizationInternalServerError with default headers values

func (*AddOrganizationInternalServerError) SetPayload

func (o *AddOrganizationInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add organization internal server error response

func (*AddOrganizationInternalServerError) WithPayload

WithPayload adds the payload to the add organization internal server error response

func (*AddOrganizationInternalServerError) WriteResponse

WriteResponse to the client

type AddOrganizationParams

type AddOrganizationParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Organization Object
	  Required: true
	  In: body
	*/
	Body *v1.Organization
}

AddOrganizationParams contains all the bound params for the add organization operation typically these are obtained from a http.Request

swagger:parameters addOrganization

func NewAddOrganizationParams

func NewAddOrganizationParams() AddOrganizationParams

NewAddOrganizationParams creates a new AddOrganizationParams object no default values defined in spec.

func (*AddOrganizationParams) BindRequest

func (o *AddOrganizationParams) 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 NewAddOrganizationParams() beforehand.

type AddOrganizationURL

type AddOrganizationURL struct {
	// contains filtered or unexported fields
}

AddOrganizationURL generates an URL for the add organization operation

func (*AddOrganizationURL) Build

func (o *AddOrganizationURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddOrganizationURL) BuildFull

func (o *AddOrganizationURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddOrganizationURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*AddOrganizationURL) SetBasePath

func (o *AddOrganizationURL) 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 (*AddOrganizationURL) String

func (o *AddOrganizationURL) String() string

String returns the string representation of the path with query string

func (*AddOrganizationURL) StringFull

func (o *AddOrganizationURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddOrganizationURL) WithBasePath

func (o *AddOrganizationURL) WithBasePath(bp string) *AddOrganizationURL

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 DeleteOrganization

type DeleteOrganization struct {
	Context *middleware.Context
	Handler DeleteOrganizationHandler
}

DeleteOrganization swagger:route DELETE /v1/iam/organization/{organizationName} organization deleteOrganization

Deletes an Organization

func NewDeleteOrganization

func NewDeleteOrganization(ctx *middleware.Context, handler DeleteOrganizationHandler) *DeleteOrganization

NewDeleteOrganization creates a new http.Handler for the delete organization operation

func (*DeleteOrganization) ServeHTTP

func (o *DeleteOrganization) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteOrganizationBadRequest

type DeleteOrganizationBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteOrganizationBadRequest Invalid Name supplied

swagger:response deleteOrganizationBadRequest

func NewDeleteOrganizationBadRequest

func NewDeleteOrganizationBadRequest() *DeleteOrganizationBadRequest

NewDeleteOrganizationBadRequest creates DeleteOrganizationBadRequest with default headers values

func (*DeleteOrganizationBadRequest) SetPayload

func (o *DeleteOrganizationBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete organization bad request response

func (*DeleteOrganizationBadRequest) WithPayload

WithPayload adds the payload to the delete organization bad request response

func (*DeleteOrganizationBadRequest) WriteResponse

func (o *DeleteOrganizationBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteOrganizationHandler

type DeleteOrganizationHandler interface {
	Handle(DeleteOrganizationParams, interface{}) middleware.Responder
}

DeleteOrganizationHandler interface for that can handle valid delete organization params

type DeleteOrganizationHandlerFunc

type DeleteOrganizationHandlerFunc func(DeleteOrganizationParams, interface{}) middleware.Responder

DeleteOrganizationHandlerFunc turns a function with the right signature into a delete organization handler

func (DeleteOrganizationHandlerFunc) Handle

func (fn DeleteOrganizationHandlerFunc) Handle(params DeleteOrganizationParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteOrganizationInternalServerError

type DeleteOrganizationInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteOrganizationInternalServerError Internal error

swagger:response deleteOrganizationInternalServerError

func NewDeleteOrganizationInternalServerError

func NewDeleteOrganizationInternalServerError() *DeleteOrganizationInternalServerError

NewDeleteOrganizationInternalServerError creates DeleteOrganizationInternalServerError with default headers values

func (*DeleteOrganizationInternalServerError) SetPayload

func (o *DeleteOrganizationInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete organization internal server error response

func (*DeleteOrganizationInternalServerError) WithPayload

WithPayload adds the payload to the delete organization internal server error response

func (*DeleteOrganizationInternalServerError) WriteResponse

WriteResponse to the client

type DeleteOrganizationNotFound

type DeleteOrganizationNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeleteOrganizationNotFound Organization not found

swagger:response deleteOrganizationNotFound

func NewDeleteOrganizationNotFound

func NewDeleteOrganizationNotFound() *DeleteOrganizationNotFound

NewDeleteOrganizationNotFound creates DeleteOrganizationNotFound with default headers values

func (*DeleteOrganizationNotFound) SetPayload

func (o *DeleteOrganizationNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete organization not found response

func (*DeleteOrganizationNotFound) WithPayload

WithPayload adds the payload to the delete organization not found response

func (*DeleteOrganizationNotFound) WriteResponse

func (o *DeleteOrganizationNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteOrganizationOK

type DeleteOrganizationOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Organization `json:"body,omitempty"`
}

DeleteOrganizationOK Successful operation

swagger:response deleteOrganizationOK

func NewDeleteOrganizationOK

func NewDeleteOrganizationOK() *DeleteOrganizationOK

NewDeleteOrganizationOK creates DeleteOrganizationOK with default headers values

func (*DeleteOrganizationOK) SetPayload

func (o *DeleteOrganizationOK) SetPayload(payload *v1.Organization)

SetPayload sets the payload to the delete organization o k response

func (*DeleteOrganizationOK) WithPayload

func (o *DeleteOrganizationOK) WithPayload(payload *v1.Organization) *DeleteOrganizationOK

WithPayload adds the payload to the delete organization o k response

func (*DeleteOrganizationOK) WriteResponse

func (o *DeleteOrganizationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteOrganizationParams

type DeleteOrganizationParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Name of Organization to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	OrganizationName string
}

DeleteOrganizationParams contains all the bound params for the delete organization operation typically these are obtained from a http.Request

swagger:parameters deleteOrganization

func NewDeleteOrganizationParams

func NewDeleteOrganizationParams() DeleteOrganizationParams

NewDeleteOrganizationParams creates a new DeleteOrganizationParams object no default values defined in spec.

func (*DeleteOrganizationParams) 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 NewDeleteOrganizationParams() beforehand.

type DeleteOrganizationURL

type DeleteOrganizationURL struct {
	OrganizationName string
	// contains filtered or unexported fields
}

DeleteOrganizationURL generates an URL for the delete organization operation

func (*DeleteOrganizationURL) Build

func (o *DeleteOrganizationURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteOrganizationURL) BuildFull

func (o *DeleteOrganizationURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteOrganizationURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*DeleteOrganizationURL) SetBasePath

func (o *DeleteOrganizationURL) 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 (*DeleteOrganizationURL) String

func (o *DeleteOrganizationURL) String() string

String returns the string representation of the path with query string

func (*DeleteOrganizationURL) StringFull

func (o *DeleteOrganizationURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteOrganizationURL) WithBasePath

func (o *DeleteOrganizationURL) WithBasePath(bp string) *DeleteOrganizationURL

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 GetOrganization

type GetOrganization struct {
	Context *middleware.Context
	Handler GetOrganizationHandler
}

GetOrganization swagger:route GET /v1/iam/organization/{organizationName} organization getOrganization

Find Organization by name

get an Organization by name

func NewGetOrganization

func NewGetOrganization(ctx *middleware.Context, handler GetOrganizationHandler) *GetOrganization

NewGetOrganization creates a new http.Handler for the get organization operation

func (*GetOrganization) ServeHTTP

func (o *GetOrganization) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetOrganizationBadRequest

type GetOrganizationBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetOrganizationBadRequest Invalid Name supplied

swagger:response getOrganizationBadRequest

func NewGetOrganizationBadRequest

func NewGetOrganizationBadRequest() *GetOrganizationBadRequest

NewGetOrganizationBadRequest creates GetOrganizationBadRequest with default headers values

func (*GetOrganizationBadRequest) SetPayload

func (o *GetOrganizationBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get organization bad request response

func (*GetOrganizationBadRequest) WithPayload

func (o *GetOrganizationBadRequest) WithPayload(payload *v1.Error) *GetOrganizationBadRequest

WithPayload adds the payload to the get organization bad request response

func (*GetOrganizationBadRequest) WriteResponse

func (o *GetOrganizationBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrganizationHandler

type GetOrganizationHandler interface {
	Handle(GetOrganizationParams, interface{}) middleware.Responder
}

GetOrganizationHandler interface for that can handle valid get organization params

type GetOrganizationHandlerFunc

type GetOrganizationHandlerFunc func(GetOrganizationParams, interface{}) middleware.Responder

GetOrganizationHandlerFunc turns a function with the right signature into a get organization handler

func (GetOrganizationHandlerFunc) Handle

func (fn GetOrganizationHandlerFunc) Handle(params GetOrganizationParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetOrganizationInternalServerError

type GetOrganizationInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetOrganizationInternalServerError Internal error

swagger:response getOrganizationInternalServerError

func NewGetOrganizationInternalServerError

func NewGetOrganizationInternalServerError() *GetOrganizationInternalServerError

NewGetOrganizationInternalServerError creates GetOrganizationInternalServerError with default headers values

func (*GetOrganizationInternalServerError) SetPayload

func (o *GetOrganizationInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get organization internal server error response

func (*GetOrganizationInternalServerError) WithPayload

WithPayload adds the payload to the get organization internal server error response

func (*GetOrganizationInternalServerError) WriteResponse

WriteResponse to the client

type GetOrganizationNotFound

type GetOrganizationNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetOrganizationNotFound Organization not found

swagger:response getOrganizationNotFound

func NewGetOrganizationNotFound

func NewGetOrganizationNotFound() *GetOrganizationNotFound

NewGetOrganizationNotFound creates GetOrganizationNotFound with default headers values

func (*GetOrganizationNotFound) SetPayload

func (o *GetOrganizationNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get organization not found response

func (*GetOrganizationNotFound) WithPayload

func (o *GetOrganizationNotFound) WithPayload(payload *v1.Error) *GetOrganizationNotFound

WithPayload adds the payload to the get organization not found response

func (*GetOrganizationNotFound) WriteResponse

func (o *GetOrganizationNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrganizationOK

type GetOrganizationOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Organization `json:"body,omitempty"`
}

GetOrganizationOK Successful operation

swagger:response getOrganizationOK

func NewGetOrganizationOK

func NewGetOrganizationOK() *GetOrganizationOK

NewGetOrganizationOK creates GetOrganizationOK with default headers values

func (*GetOrganizationOK) SetPayload

func (o *GetOrganizationOK) SetPayload(payload *v1.Organization)

SetPayload sets the payload to the get organization o k response

func (*GetOrganizationOK) WithPayload

func (o *GetOrganizationOK) WithPayload(payload *v1.Organization) *GetOrganizationOK

WithPayload adds the payload to the get organization o k response

func (*GetOrganizationOK) WriteResponse

func (o *GetOrganizationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrganizationParams

type GetOrganizationParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Name of Organization to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	OrganizationName string
}

GetOrganizationParams contains all the bound params for the get organization operation typically these are obtained from a http.Request

swagger:parameters getOrganization

func NewGetOrganizationParams

func NewGetOrganizationParams() GetOrganizationParams

NewGetOrganizationParams creates a new GetOrganizationParams object no default values defined in spec.

func (*GetOrganizationParams) BindRequest

func (o *GetOrganizationParams) 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 NewGetOrganizationParams() beforehand.

type GetOrganizationURL

type GetOrganizationURL struct {
	OrganizationName string
	// contains filtered or unexported fields
}

GetOrganizationURL generates an URL for the get organization operation

func (*GetOrganizationURL) Build

func (o *GetOrganizationURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetOrganizationURL) BuildFull

func (o *GetOrganizationURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetOrganizationURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetOrganizationURL) SetBasePath

func (o *GetOrganizationURL) 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 (*GetOrganizationURL) String

func (o *GetOrganizationURL) String() string

String returns the string representation of the path with query string

func (*GetOrganizationURL) StringFull

func (o *GetOrganizationURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetOrganizationURL) WithBasePath

func (o *GetOrganizationURL) WithBasePath(bp string) *GetOrganizationURL

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 GetOrganizations

type GetOrganizations struct {
	Context *middleware.Context
	Handler GetOrganizationsHandler
}

GetOrganizations swagger:route GET /v1/iam/organization organization getOrganizations

List all existing organizations

func NewGetOrganizations

func NewGetOrganizations(ctx *middleware.Context, handler GetOrganizationsHandler) *GetOrganizations

NewGetOrganizations creates a new http.Handler for the get organizations operation

func (*GetOrganizations) ServeHTTP

func (o *GetOrganizations) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetOrganizationsDefault

type GetOrganizationsDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetOrganizationsDefault Unexpected Error

swagger:response getOrganizationsDefault

func NewGetOrganizationsDefault

func NewGetOrganizationsDefault(code int) *GetOrganizationsDefault

NewGetOrganizationsDefault creates GetOrganizationsDefault with default headers values

func (*GetOrganizationsDefault) SetPayload

func (o *GetOrganizationsDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get organizations default response

func (*GetOrganizationsDefault) SetStatusCode

func (o *GetOrganizationsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get organizations default response

func (*GetOrganizationsDefault) WithPayload

func (o *GetOrganizationsDefault) WithPayload(payload *v1.Error) *GetOrganizationsDefault

WithPayload adds the payload to the get organizations default response

func (*GetOrganizationsDefault) WithStatusCode

func (o *GetOrganizationsDefault) WithStatusCode(code int) *GetOrganizationsDefault

WithStatusCode adds the status to the get organizations default response

func (*GetOrganizationsDefault) WriteResponse

func (o *GetOrganizationsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrganizationsHandler

type GetOrganizationsHandler interface {
	Handle(GetOrganizationsParams, interface{}) middleware.Responder
}

GetOrganizationsHandler interface for that can handle valid get organizations params

type GetOrganizationsHandlerFunc

type GetOrganizationsHandlerFunc func(GetOrganizationsParams, interface{}) middleware.Responder

GetOrganizationsHandlerFunc turns a function with the right signature into a get organizations handler

func (GetOrganizationsHandlerFunc) Handle

func (fn GetOrganizationsHandlerFunc) Handle(params GetOrganizationsParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetOrganizationsInternalServerError

type GetOrganizationsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetOrganizationsInternalServerError Internal Error

swagger:response getOrganizationsInternalServerError

func NewGetOrganizationsInternalServerError

func NewGetOrganizationsInternalServerError() *GetOrganizationsInternalServerError

NewGetOrganizationsInternalServerError creates GetOrganizationsInternalServerError with default headers values

func (*GetOrganizationsInternalServerError) SetPayload

func (o *GetOrganizationsInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get organizations internal server error response

func (*GetOrganizationsInternalServerError) WithPayload

WithPayload adds the payload to the get organizations internal server error response

func (*GetOrganizationsInternalServerError) WriteResponse

WriteResponse to the client

type GetOrganizationsOK

type GetOrganizationsOK struct {

	/*
	  In: Body
	*/
	Payload []*v1.Organization `json:"body,omitempty"`
}

GetOrganizationsOK Successful operation

swagger:response getOrganizationsOK

func NewGetOrganizationsOK

func NewGetOrganizationsOK() *GetOrganizationsOK

NewGetOrganizationsOK creates GetOrganizationsOK with default headers values

func (*GetOrganizationsOK) SetPayload

func (o *GetOrganizationsOK) SetPayload(payload []*v1.Organization)

SetPayload sets the payload to the get organizations o k response

func (*GetOrganizationsOK) WithPayload

func (o *GetOrganizationsOK) WithPayload(payload []*v1.Organization) *GetOrganizationsOK

WithPayload adds the payload to the get organizations o k response

func (*GetOrganizationsOK) WriteResponse

func (o *GetOrganizationsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrganizationsParams

type GetOrganizationsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetOrganizationsParams contains all the bound params for the get organizations operation typically these are obtained from a http.Request

swagger:parameters getOrganizations

func NewGetOrganizationsParams

func NewGetOrganizationsParams() GetOrganizationsParams

NewGetOrganizationsParams creates a new GetOrganizationsParams object no default values defined in spec.

func (*GetOrganizationsParams) BindRequest

func (o *GetOrganizationsParams) 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 NewGetOrganizationsParams() beforehand.

type GetOrganizationsURL

type GetOrganizationsURL struct {
	// contains filtered or unexported fields
}

GetOrganizationsURL generates an URL for the get organizations operation

func (*GetOrganizationsURL) Build

func (o *GetOrganizationsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetOrganizationsURL) BuildFull

func (o *GetOrganizationsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetOrganizationsURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetOrganizationsURL) SetBasePath

func (o *GetOrganizationsURL) 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 (*GetOrganizationsURL) String

func (o *GetOrganizationsURL) String() string

String returns the string representation of the path with query string

func (*GetOrganizationsURL) StringFull

func (o *GetOrganizationsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetOrganizationsURL) WithBasePath

func (o *GetOrganizationsURL) WithBasePath(bp string) *GetOrganizationsURL

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 UpdateOrganization

type UpdateOrganization struct {
	Context *middleware.Context
	Handler UpdateOrganizationHandler
}

UpdateOrganization swagger:route PUT /v1/iam/organization/{organizationName} organization updateOrganization

Update a Organization

func NewUpdateOrganization

func NewUpdateOrganization(ctx *middleware.Context, handler UpdateOrganizationHandler) *UpdateOrganization

NewUpdateOrganization creates a new http.Handler for the update organization operation

func (*UpdateOrganization) ServeHTTP

func (o *UpdateOrganization) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateOrganizationBadRequest

type UpdateOrganizationBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateOrganizationBadRequest Invalid input

swagger:response updateOrganizationBadRequest

func NewUpdateOrganizationBadRequest

func NewUpdateOrganizationBadRequest() *UpdateOrganizationBadRequest

NewUpdateOrganizationBadRequest creates UpdateOrganizationBadRequest with default headers values

func (*UpdateOrganizationBadRequest) SetPayload

func (o *UpdateOrganizationBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update organization bad request response

func (*UpdateOrganizationBadRequest) WithPayload

WithPayload adds the payload to the update organization bad request response

func (*UpdateOrganizationBadRequest) WriteResponse

func (o *UpdateOrganizationBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateOrganizationHandler

type UpdateOrganizationHandler interface {
	Handle(UpdateOrganizationParams, interface{}) middleware.Responder
}

UpdateOrganizationHandler interface for that can handle valid update organization params

type UpdateOrganizationHandlerFunc

type UpdateOrganizationHandlerFunc func(UpdateOrganizationParams, interface{}) middleware.Responder

UpdateOrganizationHandlerFunc turns a function with the right signature into a update organization handler

func (UpdateOrganizationHandlerFunc) Handle

func (fn UpdateOrganizationHandlerFunc) Handle(params UpdateOrganizationParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateOrganizationInternalServerError

type UpdateOrganizationInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateOrganizationInternalServerError Internal error

swagger:response updateOrganizationInternalServerError

func NewUpdateOrganizationInternalServerError

func NewUpdateOrganizationInternalServerError() *UpdateOrganizationInternalServerError

NewUpdateOrganizationInternalServerError creates UpdateOrganizationInternalServerError with default headers values

func (*UpdateOrganizationInternalServerError) SetPayload

func (o *UpdateOrganizationInternalServerError) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update organization internal server error response

func (*UpdateOrganizationInternalServerError) WithPayload

WithPayload adds the payload to the update organization internal server error response

func (*UpdateOrganizationInternalServerError) WriteResponse

WriteResponse to the client

type UpdateOrganizationNotFound

type UpdateOrganizationNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdateOrganizationNotFound Organization not found

swagger:response updateOrganizationNotFound

func NewUpdateOrganizationNotFound

func NewUpdateOrganizationNotFound() *UpdateOrganizationNotFound

NewUpdateOrganizationNotFound creates UpdateOrganizationNotFound with default headers values

func (*UpdateOrganizationNotFound) SetPayload

func (o *UpdateOrganizationNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update organization not found response

func (*UpdateOrganizationNotFound) WithPayload

WithPayload adds the payload to the update organization not found response

func (*UpdateOrganizationNotFound) WriteResponse

func (o *UpdateOrganizationNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateOrganizationOK

type UpdateOrganizationOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Organization `json:"body,omitempty"`
}

UpdateOrganizationOK Successful update

swagger:response updateOrganizationOK

func NewUpdateOrganizationOK

func NewUpdateOrganizationOK() *UpdateOrganizationOK

NewUpdateOrganizationOK creates UpdateOrganizationOK with default headers values

func (*UpdateOrganizationOK) SetPayload

func (o *UpdateOrganizationOK) SetPayload(payload *v1.Organization)

SetPayload sets the payload to the update organization o k response

func (*UpdateOrganizationOK) WithPayload

func (o *UpdateOrganizationOK) WithPayload(payload *v1.Organization) *UpdateOrganizationOK

WithPayload adds the payload to the update organization o k response

func (*UpdateOrganizationOK) WriteResponse

func (o *UpdateOrganizationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateOrganizationParams

type UpdateOrganizationParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Organization object
	  Required: true
	  In: body
	*/
	Body *v1.Organization
	/*Name of Organization to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	OrganizationName string
}

UpdateOrganizationParams contains all the bound params for the update organization operation typically these are obtained from a http.Request

swagger:parameters updateOrganization

func NewUpdateOrganizationParams

func NewUpdateOrganizationParams() UpdateOrganizationParams

NewUpdateOrganizationParams creates a new UpdateOrganizationParams object no default values defined in spec.

func (*UpdateOrganizationParams) 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 NewUpdateOrganizationParams() beforehand.

type UpdateOrganizationURL

type UpdateOrganizationURL struct {
	OrganizationName string
	// contains filtered or unexported fields
}

UpdateOrganizationURL generates an URL for the update organization operation

func (*UpdateOrganizationURL) Build

func (o *UpdateOrganizationURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateOrganizationURL) BuildFull

func (o *UpdateOrganizationURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateOrganizationURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*UpdateOrganizationURL) SetBasePath

func (o *UpdateOrganizationURL) 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 (*UpdateOrganizationURL) String

func (o *UpdateOrganizationURL) String() string

String returns the string representation of the path with query string

func (*UpdateOrganizationURL) StringFull

func (o *UpdateOrganizationURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateOrganizationURL) WithBasePath

func (o *UpdateOrganizationURL) WithBasePath(bp string) *UpdateOrganizationURL

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