service_account

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateServiceAccountCreatedCode int = 201

CreateServiceAccountCreatedCode is the HTTP code returned for type CreateServiceAccountCreated

View Source
const CreateServiceAccountCredsCreatedCode int = 201

CreateServiceAccountCredsCreatedCode is the HTTP code returned for type CreateServiceAccountCredsCreated

View Source
const DeleteMultipleServiceAccountsNoContentCode int = 204

DeleteMultipleServiceAccountsNoContentCode is the HTTP code returned for type DeleteMultipleServiceAccountsNoContent

View Source
const DeleteServiceAccountNoContentCode int = 204

DeleteServiceAccountNoContentCode is the HTTP code returned for type DeleteServiceAccountNoContent

View Source
const GetServiceAccountOKCode int = 200

GetServiceAccountOKCode is the HTTP code returned for type GetServiceAccountOK

View Source
const ListUserServiceAccountsOKCode int = 200

ListUserServiceAccountsOKCode is the HTTP code returned for type ListUserServiceAccountsOK

View Source
const UpdateServiceAccountOKCode int = 200

UpdateServiceAccountOKCode is the HTTP code returned for type UpdateServiceAccountOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateServiceAccount

type CreateServiceAccount struct {
	Context *middleware.Context
	Handler CreateServiceAccountHandler
}
CreateServiceAccount swagger:route POST /service-accounts ServiceAccount createServiceAccount

Create Service Account

func NewCreateServiceAccount

func NewCreateServiceAccount(ctx *middleware.Context, handler CreateServiceAccountHandler) *CreateServiceAccount

NewCreateServiceAccount creates a new http.Handler for the create service account operation

func (*CreateServiceAccount) ServeHTTP

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

type CreateServiceAccountCreated

type CreateServiceAccountCreated struct {

	/*
	  In: Body
	*/
	Payload *models.ServiceAccountCreds `json:"body,omitempty"`
}

CreateServiceAccountCreated A successful response.

swagger:response createServiceAccountCreated

func NewCreateServiceAccountCreated

func NewCreateServiceAccountCreated() *CreateServiceAccountCreated

NewCreateServiceAccountCreated creates CreateServiceAccountCreated with default headers values

func (*CreateServiceAccountCreated) SetPayload

func (o *CreateServiceAccountCreated) SetPayload(payload *models.ServiceAccountCreds)

SetPayload sets the payload to the create service account created response

func (*CreateServiceAccountCreated) WithPayload

WithPayload adds the payload to the create service account created response

func (*CreateServiceAccountCreated) WriteResponse

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

WriteResponse to the client

type CreateServiceAccountCreds

type CreateServiceAccountCreds struct {
	Context *middleware.Context
	Handler CreateServiceAccountCredsHandler
}
CreateServiceAccountCreds swagger:route POST /service-account-credentials ServiceAccount createServiceAccountCreds

Create Service Account With Credentials

func NewCreateServiceAccountCreds

func NewCreateServiceAccountCreds(ctx *middleware.Context, handler CreateServiceAccountCredsHandler) *CreateServiceAccountCreds

NewCreateServiceAccountCreds creates a new http.Handler for the create service account creds operation

func (*CreateServiceAccountCreds) ServeHTTP

type CreateServiceAccountCredsCreated

type CreateServiceAccountCredsCreated struct {

	/*
	  In: Body
	*/
	Payload *models.ServiceAccountCreds `json:"body,omitempty"`
}

CreateServiceAccountCredsCreated A successful response.

swagger:response createServiceAccountCredsCreated

func NewCreateServiceAccountCredsCreated

func NewCreateServiceAccountCredsCreated() *CreateServiceAccountCredsCreated

NewCreateServiceAccountCredsCreated creates CreateServiceAccountCredsCreated with default headers values

func (*CreateServiceAccountCredsCreated) SetPayload

SetPayload sets the payload to the create service account creds created response

func (*CreateServiceAccountCredsCreated) WithPayload

WithPayload adds the payload to the create service account creds created response

func (*CreateServiceAccountCredsCreated) WriteResponse

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

WriteResponse to the client

type CreateServiceAccountCredsDefault

type CreateServiceAccountCredsDefault struct {

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

CreateServiceAccountCredsDefault Generic error response.

swagger:response createServiceAccountCredsDefault

func NewCreateServiceAccountCredsDefault

func NewCreateServiceAccountCredsDefault(code int) *CreateServiceAccountCredsDefault

NewCreateServiceAccountCredsDefault creates CreateServiceAccountCredsDefault with default headers values

func (*CreateServiceAccountCredsDefault) SetPayload

func (o *CreateServiceAccountCredsDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the create service account creds default response

func (*CreateServiceAccountCredsDefault) SetStatusCode

func (o *CreateServiceAccountCredsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create service account creds default response

func (*CreateServiceAccountCredsDefault) WithPayload

WithPayload adds the payload to the create service account creds default response

func (*CreateServiceAccountCredsDefault) WithStatusCode

WithStatusCode adds the status to the create service account creds default response

func (*CreateServiceAccountCredsDefault) WriteResponse

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

WriteResponse to the client

type CreateServiceAccountCredsHandler

type CreateServiceAccountCredsHandler interface {
	Handle(CreateServiceAccountCredsParams, *models.Principal) middleware.Responder
}

CreateServiceAccountCredsHandler interface for that can handle valid create service account creds params

type CreateServiceAccountCredsHandlerFunc

type CreateServiceAccountCredsHandlerFunc func(CreateServiceAccountCredsParams, *models.Principal) middleware.Responder

CreateServiceAccountCredsHandlerFunc turns a function with the right signature into a create service account creds handler

func (CreateServiceAccountCredsHandlerFunc) Handle

Handle executing the request and returning a response

type CreateServiceAccountCredsParams

type CreateServiceAccountCredsParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.ServiceAccountRequestCreds
}

CreateServiceAccountCredsParams contains all the bound params for the create service account creds operation typically these are obtained from a http.Request

swagger:parameters CreateServiceAccountCreds

func NewCreateServiceAccountCredsParams

func NewCreateServiceAccountCredsParams() CreateServiceAccountCredsParams

NewCreateServiceAccountCredsParams creates a new CreateServiceAccountCredsParams object

There are no default values defined in the spec.

func (*CreateServiceAccountCredsParams) 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 NewCreateServiceAccountCredsParams() beforehand.

type CreateServiceAccountCredsURL

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

CreateServiceAccountCredsURL generates an URL for the create service account creds operation

func (*CreateServiceAccountCredsURL) Build

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

Build a url path and query string

func (*CreateServiceAccountCredsURL) BuildFull

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

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

func (*CreateServiceAccountCredsURL) Must

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

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

func (*CreateServiceAccountCredsURL) SetBasePath

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

String returns the string representation of the path with query string

func (*CreateServiceAccountCredsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateServiceAccountCredsURL) 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 CreateServiceAccountDefault

type CreateServiceAccountDefault struct {

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

CreateServiceAccountDefault Generic error response.

swagger:response createServiceAccountDefault

func NewCreateServiceAccountDefault

func NewCreateServiceAccountDefault(code int) *CreateServiceAccountDefault

NewCreateServiceAccountDefault creates CreateServiceAccountDefault with default headers values

func (*CreateServiceAccountDefault) SetPayload

func (o *CreateServiceAccountDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the create service account default response

func (*CreateServiceAccountDefault) SetStatusCode

func (o *CreateServiceAccountDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create service account default response

func (*CreateServiceAccountDefault) WithPayload

WithPayload adds the payload to the create service account default response

func (*CreateServiceAccountDefault) WithStatusCode

WithStatusCode adds the status to the create service account default response

func (*CreateServiceAccountDefault) WriteResponse

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

WriteResponse to the client

type CreateServiceAccountHandler

type CreateServiceAccountHandler interface {
	Handle(CreateServiceAccountParams, *models.Principal) middleware.Responder
}

CreateServiceAccountHandler interface for that can handle valid create service account params

type CreateServiceAccountHandlerFunc

type CreateServiceAccountHandlerFunc func(CreateServiceAccountParams, *models.Principal) middleware.Responder

CreateServiceAccountHandlerFunc turns a function with the right signature into a create service account handler

func (CreateServiceAccountHandlerFunc) Handle

Handle executing the request and returning a response

type CreateServiceAccountParams

type CreateServiceAccountParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.ServiceAccountRequest
}

CreateServiceAccountParams contains all the bound params for the create service account operation typically these are obtained from a http.Request

swagger:parameters CreateServiceAccount

func NewCreateServiceAccountParams

func NewCreateServiceAccountParams() CreateServiceAccountParams

NewCreateServiceAccountParams creates a new CreateServiceAccountParams object

There are no default values defined in the spec.

func (*CreateServiceAccountParams) 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 NewCreateServiceAccountParams() beforehand.

type CreateServiceAccountURL

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

CreateServiceAccountURL generates an URL for the create service account operation

func (*CreateServiceAccountURL) Build

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

Build a url path and query string

func (*CreateServiceAccountURL) BuildFull

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

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

func (*CreateServiceAccountURL) Must

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

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

func (*CreateServiceAccountURL) SetBasePath

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

func (o *CreateServiceAccountURL) String() string

String returns the string representation of the path with query string

func (*CreateServiceAccountURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateServiceAccountURL) 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 DeleteMultipleServiceAccounts

type DeleteMultipleServiceAccounts struct {
	Context *middleware.Context
	Handler DeleteMultipleServiceAccountsHandler
}
DeleteMultipleServiceAccounts swagger:route DELETE /service-accounts/delete-multi ServiceAccount deleteMultipleServiceAccounts

Delete Multiple Service Accounts

func NewDeleteMultipleServiceAccounts

func NewDeleteMultipleServiceAccounts(ctx *middleware.Context, handler DeleteMultipleServiceAccountsHandler) *DeleteMultipleServiceAccounts

NewDeleteMultipleServiceAccounts creates a new http.Handler for the delete multiple service accounts operation

func (*DeleteMultipleServiceAccounts) ServeHTTP

type DeleteMultipleServiceAccountsDefault

type DeleteMultipleServiceAccountsDefault struct {

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

DeleteMultipleServiceAccountsDefault Generic error response.

swagger:response deleteMultipleServiceAccountsDefault

func NewDeleteMultipleServiceAccountsDefault

func NewDeleteMultipleServiceAccountsDefault(code int) *DeleteMultipleServiceAccountsDefault

NewDeleteMultipleServiceAccountsDefault creates DeleteMultipleServiceAccountsDefault with default headers values

func (*DeleteMultipleServiceAccountsDefault) SetPayload

func (o *DeleteMultipleServiceAccountsDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the delete multiple service accounts default response

func (*DeleteMultipleServiceAccountsDefault) SetStatusCode

func (o *DeleteMultipleServiceAccountsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete multiple service accounts default response

func (*DeleteMultipleServiceAccountsDefault) WithPayload

WithPayload adds the payload to the delete multiple service accounts default response

func (*DeleteMultipleServiceAccountsDefault) WithStatusCode

WithStatusCode adds the status to the delete multiple service accounts default response

func (*DeleteMultipleServiceAccountsDefault) WriteResponse

WriteResponse to the client

type DeleteMultipleServiceAccountsHandler

type DeleteMultipleServiceAccountsHandler interface {
	Handle(DeleteMultipleServiceAccountsParams, *models.Principal) middleware.Responder
}

DeleteMultipleServiceAccountsHandler interface for that can handle valid delete multiple service accounts params

type DeleteMultipleServiceAccountsHandlerFunc

type DeleteMultipleServiceAccountsHandlerFunc func(DeleteMultipleServiceAccountsParams, *models.Principal) middleware.Responder

DeleteMultipleServiceAccountsHandlerFunc turns a function with the right signature into a delete multiple service accounts handler

func (DeleteMultipleServiceAccountsHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteMultipleServiceAccountsNoContent

type DeleteMultipleServiceAccountsNoContent struct {
}

DeleteMultipleServiceAccountsNoContent A successful response.

swagger:response deleteMultipleServiceAccountsNoContent

func NewDeleteMultipleServiceAccountsNoContent

func NewDeleteMultipleServiceAccountsNoContent() *DeleteMultipleServiceAccountsNoContent

NewDeleteMultipleServiceAccountsNoContent creates DeleteMultipleServiceAccountsNoContent with default headers values

func (*DeleteMultipleServiceAccountsNoContent) WriteResponse

WriteResponse to the client

type DeleteMultipleServiceAccountsParams

type DeleteMultipleServiceAccountsParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	SelectedSA []string
}

DeleteMultipleServiceAccountsParams contains all the bound params for the delete multiple service accounts operation typically these are obtained from a http.Request

swagger:parameters DeleteMultipleServiceAccounts

func NewDeleteMultipleServiceAccountsParams

func NewDeleteMultipleServiceAccountsParams() DeleteMultipleServiceAccountsParams

NewDeleteMultipleServiceAccountsParams creates a new DeleteMultipleServiceAccountsParams object

There are no default values defined in the spec.

func (*DeleteMultipleServiceAccountsParams) 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 NewDeleteMultipleServiceAccountsParams() beforehand.

type DeleteMultipleServiceAccountsURL

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

DeleteMultipleServiceAccountsURL generates an URL for the delete multiple service accounts operation

func (*DeleteMultipleServiceAccountsURL) Build

Build a url path and query string

func (*DeleteMultipleServiceAccountsURL) BuildFull

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

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

func (*DeleteMultipleServiceAccountsURL) Must

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

func (*DeleteMultipleServiceAccountsURL) SetBasePath

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

String returns the string representation of the path with query string

func (*DeleteMultipleServiceAccountsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteMultipleServiceAccountsURL) 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 DeleteServiceAccount

type DeleteServiceAccount struct {
	Context *middleware.Context
	Handler DeleteServiceAccountHandler
}
DeleteServiceAccount swagger:route DELETE /service-accounts/{access_key} ServiceAccount deleteServiceAccount

Delete Service Account

func NewDeleteServiceAccount

func NewDeleteServiceAccount(ctx *middleware.Context, handler DeleteServiceAccountHandler) *DeleteServiceAccount

NewDeleteServiceAccount creates a new http.Handler for the delete service account operation

func (*DeleteServiceAccount) ServeHTTP

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

type DeleteServiceAccountDefault

type DeleteServiceAccountDefault struct {

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

DeleteServiceAccountDefault Generic error response.

swagger:response deleteServiceAccountDefault

func NewDeleteServiceAccountDefault

func NewDeleteServiceAccountDefault(code int) *DeleteServiceAccountDefault

NewDeleteServiceAccountDefault creates DeleteServiceAccountDefault with default headers values

func (*DeleteServiceAccountDefault) SetPayload

func (o *DeleteServiceAccountDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the delete service account default response

func (*DeleteServiceAccountDefault) SetStatusCode

func (o *DeleteServiceAccountDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete service account default response

func (*DeleteServiceAccountDefault) WithPayload

WithPayload adds the payload to the delete service account default response

func (*DeleteServiceAccountDefault) WithStatusCode

WithStatusCode adds the status to the delete service account default response

func (*DeleteServiceAccountDefault) WriteResponse

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

WriteResponse to the client

type DeleteServiceAccountHandler

type DeleteServiceAccountHandler interface {
	Handle(DeleteServiceAccountParams, *models.Principal) middleware.Responder
}

DeleteServiceAccountHandler interface for that can handle valid delete service account params

type DeleteServiceAccountHandlerFunc

type DeleteServiceAccountHandlerFunc func(DeleteServiceAccountParams, *models.Principal) middleware.Responder

DeleteServiceAccountHandlerFunc turns a function with the right signature into a delete service account handler

func (DeleteServiceAccountHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteServiceAccountNoContent

type DeleteServiceAccountNoContent struct {
}

DeleteServiceAccountNoContent A successful response.

swagger:response deleteServiceAccountNoContent

func NewDeleteServiceAccountNoContent

func NewDeleteServiceAccountNoContent() *DeleteServiceAccountNoContent

NewDeleteServiceAccountNoContent creates DeleteServiceAccountNoContent with default headers values

func (*DeleteServiceAccountNoContent) WriteResponse

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

WriteResponse to the client

type DeleteServiceAccountParams

type DeleteServiceAccountParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	AccessKey string
}

DeleteServiceAccountParams contains all the bound params for the delete service account operation typically these are obtained from a http.Request

swagger:parameters DeleteServiceAccount

func NewDeleteServiceAccountParams

func NewDeleteServiceAccountParams() DeleteServiceAccountParams

NewDeleteServiceAccountParams creates a new DeleteServiceAccountParams object

There are no default values defined in the spec.

func (*DeleteServiceAccountParams) 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 NewDeleteServiceAccountParams() beforehand.

type DeleteServiceAccountURL

type DeleteServiceAccountURL struct {
	AccessKey string
	// contains filtered or unexported fields
}

DeleteServiceAccountURL generates an URL for the delete service account operation

func (*DeleteServiceAccountURL) Build

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

Build a url path and query string

func (*DeleteServiceAccountURL) BuildFull

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

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

func (*DeleteServiceAccountURL) Must

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

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

func (*DeleteServiceAccountURL) SetBasePath

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

func (o *DeleteServiceAccountURL) String() string

String returns the string representation of the path with query string

func (*DeleteServiceAccountURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteServiceAccountURL) 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 GetServiceAccount added in v0.42.0

type GetServiceAccount struct {
	Context *middleware.Context
	Handler GetServiceAccountHandler
}
GetServiceAccount swagger:route GET /service-accounts/{access_key} ServiceAccount getServiceAccount

Get Service Account

func NewGetServiceAccount added in v0.42.0

func NewGetServiceAccount(ctx *middleware.Context, handler GetServiceAccountHandler) *GetServiceAccount

NewGetServiceAccount creates a new http.Handler for the get service account operation

func (*GetServiceAccount) ServeHTTP added in v0.42.0

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

type GetServiceAccountDefault added in v0.42.0

type GetServiceAccountDefault struct {

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

GetServiceAccountDefault Generic error response.

swagger:response getServiceAccountDefault

func NewGetServiceAccountDefault added in v0.42.0

func NewGetServiceAccountDefault(code int) *GetServiceAccountDefault

NewGetServiceAccountDefault creates GetServiceAccountDefault with default headers values

func (*GetServiceAccountDefault) SetPayload added in v0.42.0

func (o *GetServiceAccountDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the get service account default response

func (*GetServiceAccountDefault) SetStatusCode added in v0.42.0

func (o *GetServiceAccountDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get service account default response

func (*GetServiceAccountDefault) WithPayload added in v0.42.0

WithPayload adds the payload to the get service account default response

func (*GetServiceAccountDefault) WithStatusCode added in v0.42.0

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

WithStatusCode adds the status to the get service account default response

func (*GetServiceAccountDefault) WriteResponse added in v0.42.0

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

WriteResponse to the client

type GetServiceAccountHandler added in v0.42.0

type GetServiceAccountHandler interface {
	Handle(GetServiceAccountParams, *models.Principal) middleware.Responder
}

GetServiceAccountHandler interface for that can handle valid get service account params

type GetServiceAccountHandlerFunc added in v0.42.0

type GetServiceAccountHandlerFunc func(GetServiceAccountParams, *models.Principal) middleware.Responder

GetServiceAccountHandlerFunc turns a function with the right signature into a get service account handler

func (GetServiceAccountHandlerFunc) Handle added in v0.42.0

Handle executing the request and returning a response

type GetServiceAccountOK added in v0.42.0

type GetServiceAccountOK struct {

	/*
	  In: Body
	*/
	Payload *models.ServiceAccount `json:"body,omitempty"`
}

GetServiceAccountOK A successful response.

swagger:response getServiceAccountOK

func NewGetServiceAccountOK added in v0.42.0

func NewGetServiceAccountOK() *GetServiceAccountOK

NewGetServiceAccountOK creates GetServiceAccountOK with default headers values

func (*GetServiceAccountOK) SetPayload added in v0.42.0

func (o *GetServiceAccountOK) SetPayload(payload *models.ServiceAccount)

SetPayload sets the payload to the get service account o k response

func (*GetServiceAccountOK) WithPayload added in v0.42.0

WithPayload adds the payload to the get service account o k response

func (*GetServiceAccountOK) WriteResponse added in v0.42.0

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

WriteResponse to the client

type GetServiceAccountParams added in v0.42.0

type GetServiceAccountParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	AccessKey string
}

GetServiceAccountParams contains all the bound params for the get service account operation typically these are obtained from a http.Request

swagger:parameters GetServiceAccount

func NewGetServiceAccountParams added in v0.42.0

func NewGetServiceAccountParams() GetServiceAccountParams

NewGetServiceAccountParams creates a new GetServiceAccountParams object

There are no default values defined in the spec.

func (*GetServiceAccountParams) BindRequest added in v0.42.0

func (o *GetServiceAccountParams) 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 NewGetServiceAccountParams() beforehand.

type GetServiceAccountURL added in v0.42.0

type GetServiceAccountURL struct {
	AccessKey string
	// contains filtered or unexported fields
}

GetServiceAccountURL generates an URL for the get service account operation

func (*GetServiceAccountURL) Build added in v0.42.0

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

Build a url path and query string

func (*GetServiceAccountURL) BuildFull added in v0.42.0

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

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

func (*GetServiceAccountURL) Must added in v0.42.0

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

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

func (*GetServiceAccountURL) SetBasePath added in v0.42.0

func (o *GetServiceAccountURL) 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 (*GetServiceAccountURL) String added in v0.42.0

func (o *GetServiceAccountURL) String() string

String returns the string representation of the path with query string

func (*GetServiceAccountURL) StringFull added in v0.42.0

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

StringFull returns the string representation of a complete url

func (*GetServiceAccountURL) WithBasePath added in v0.42.0

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

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 ListUserServiceAccounts

type ListUserServiceAccounts struct {
	Context *middleware.Context
	Handler ListUserServiceAccountsHandler
}
ListUserServiceAccounts swagger:route GET /service-accounts ServiceAccount listUserServiceAccounts

List User's Service Accounts

func NewListUserServiceAccounts

func NewListUserServiceAccounts(ctx *middleware.Context, handler ListUserServiceAccountsHandler) *ListUserServiceAccounts

NewListUserServiceAccounts creates a new http.Handler for the list user service accounts operation

func (*ListUserServiceAccounts) ServeHTTP

type ListUserServiceAccountsDefault

type ListUserServiceAccountsDefault struct {

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

ListUserServiceAccountsDefault Generic error response.

swagger:response listUserServiceAccountsDefault

func NewListUserServiceAccountsDefault

func NewListUserServiceAccountsDefault(code int) *ListUserServiceAccountsDefault

NewListUserServiceAccountsDefault creates ListUserServiceAccountsDefault with default headers values

func (*ListUserServiceAccountsDefault) SetPayload

func (o *ListUserServiceAccountsDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the list user service accounts default response

func (*ListUserServiceAccountsDefault) SetStatusCode

func (o *ListUserServiceAccountsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list user service accounts default response

func (*ListUserServiceAccountsDefault) WithPayload

WithPayload adds the payload to the list user service accounts default response

func (*ListUserServiceAccountsDefault) WithStatusCode

WithStatusCode adds the status to the list user service accounts default response

func (*ListUserServiceAccountsDefault) WriteResponse

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

WriteResponse to the client

type ListUserServiceAccountsHandler

type ListUserServiceAccountsHandler interface {
	Handle(ListUserServiceAccountsParams, *models.Principal) middleware.Responder
}

ListUserServiceAccountsHandler interface for that can handle valid list user service accounts params

type ListUserServiceAccountsHandlerFunc

type ListUserServiceAccountsHandlerFunc func(ListUserServiceAccountsParams, *models.Principal) middleware.Responder

ListUserServiceAccountsHandlerFunc turns a function with the right signature into a list user service accounts handler

func (ListUserServiceAccountsHandlerFunc) Handle

Handle executing the request and returning a response

type ListUserServiceAccountsOK

type ListUserServiceAccountsOK struct {

	/*
	  In: Body
	*/
	Payload models.ServiceAccounts `json:"body,omitempty"`
}

ListUserServiceAccountsOK A successful response.

swagger:response listUserServiceAccountsOK

func NewListUserServiceAccountsOK

func NewListUserServiceAccountsOK() *ListUserServiceAccountsOK

NewListUserServiceAccountsOK creates ListUserServiceAccountsOK with default headers values

func (*ListUserServiceAccountsOK) SetPayload

func (o *ListUserServiceAccountsOK) SetPayload(payload models.ServiceAccounts)

SetPayload sets the payload to the list user service accounts o k response

func (*ListUserServiceAccountsOK) WithPayload

WithPayload adds the payload to the list user service accounts o k response

func (*ListUserServiceAccountsOK) WriteResponse

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

WriteResponse to the client

type ListUserServiceAccountsParams

type ListUserServiceAccountsParams struct {

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

	/*
	  In: query
	  Default: 20
	*/
	Limit *int32
	/*
	  In: query
	  Default: 0
	*/
	Offset *int32
}

ListUserServiceAccountsParams contains all the bound params for the list user service accounts operation typically these are obtained from a http.Request

swagger:parameters ListUserServiceAccounts

func NewListUserServiceAccountsParams

func NewListUserServiceAccountsParams() ListUserServiceAccountsParams

NewListUserServiceAccountsParams creates a new ListUserServiceAccountsParams object with the default values initialized.

func (*ListUserServiceAccountsParams) 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 NewListUserServiceAccountsParams() beforehand.

type ListUserServiceAccountsURL

type ListUserServiceAccountsURL struct {
	Limit  *int32
	Offset *int32
	// contains filtered or unexported fields
}

ListUserServiceAccountsURL generates an URL for the list user service accounts operation

func (*ListUserServiceAccountsURL) Build

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

Build a url path and query string

func (*ListUserServiceAccountsURL) BuildFull

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

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

func (*ListUserServiceAccountsURL) Must

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

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

func (*ListUserServiceAccountsURL) SetBasePath

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

func (o *ListUserServiceAccountsURL) String() string

String returns the string representation of the path with query string

func (*ListUserServiceAccountsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListUserServiceAccountsURL) 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 UpdateServiceAccount added in v0.42.0

type UpdateServiceAccount struct {
	Context *middleware.Context
	Handler UpdateServiceAccountHandler
}
UpdateServiceAccount swagger:route PUT /service-accounts/{access_key} ServiceAccount updateServiceAccount

Set Service Account Policy

func NewUpdateServiceAccount added in v0.42.0

func NewUpdateServiceAccount(ctx *middleware.Context, handler UpdateServiceAccountHandler) *UpdateServiceAccount

NewUpdateServiceAccount creates a new http.Handler for the update service account operation

func (*UpdateServiceAccount) ServeHTTP added in v0.42.0

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

type UpdateServiceAccountDefault added in v0.42.0

type UpdateServiceAccountDefault struct {

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

UpdateServiceAccountDefault Generic error response.

swagger:response updateServiceAccountDefault

func NewUpdateServiceAccountDefault added in v0.42.0

func NewUpdateServiceAccountDefault(code int) *UpdateServiceAccountDefault

NewUpdateServiceAccountDefault creates UpdateServiceAccountDefault with default headers values

func (*UpdateServiceAccountDefault) SetPayload added in v0.42.0

func (o *UpdateServiceAccountDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the update service account default response

func (*UpdateServiceAccountDefault) SetStatusCode added in v0.42.0

func (o *UpdateServiceAccountDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update service account default response

func (*UpdateServiceAccountDefault) WithPayload added in v0.42.0

WithPayload adds the payload to the update service account default response

func (*UpdateServiceAccountDefault) WithStatusCode added in v0.42.0

WithStatusCode adds the status to the update service account default response

func (*UpdateServiceAccountDefault) WriteResponse added in v0.42.0

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

WriteResponse to the client

type UpdateServiceAccountHandler added in v0.42.0

type UpdateServiceAccountHandler interface {
	Handle(UpdateServiceAccountParams, *models.Principal) middleware.Responder
}

UpdateServiceAccountHandler interface for that can handle valid update service account params

type UpdateServiceAccountHandlerFunc added in v0.42.0

type UpdateServiceAccountHandlerFunc func(UpdateServiceAccountParams, *models.Principal) middleware.Responder

UpdateServiceAccountHandlerFunc turns a function with the right signature into a update service account handler

func (UpdateServiceAccountHandlerFunc) Handle added in v0.42.0

Handle executing the request and returning a response

type UpdateServiceAccountOK added in v0.42.0

type UpdateServiceAccountOK struct {
}

UpdateServiceAccountOK A successful response.

swagger:response updateServiceAccountOK

func NewUpdateServiceAccountOK added in v0.42.0

func NewUpdateServiceAccountOK() *UpdateServiceAccountOK

NewUpdateServiceAccountOK creates UpdateServiceAccountOK with default headers values

func (*UpdateServiceAccountOK) WriteResponse added in v0.42.0

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

WriteResponse to the client

type UpdateServiceAccountParams added in v0.42.0

type UpdateServiceAccountParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	AccessKey string
	/*
	  Required: true
	  In: body
	*/
	Body *models.UpdateServiceAccountRequest
}

UpdateServiceAccountParams contains all the bound params for the update service account operation typically these are obtained from a http.Request

swagger:parameters UpdateServiceAccount

func NewUpdateServiceAccountParams added in v0.42.0

func NewUpdateServiceAccountParams() UpdateServiceAccountParams

NewUpdateServiceAccountParams creates a new UpdateServiceAccountParams object

There are no default values defined in the spec.

func (*UpdateServiceAccountParams) BindRequest added in v0.42.0

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 NewUpdateServiceAccountParams() beforehand.

type UpdateServiceAccountURL added in v0.42.0

type UpdateServiceAccountURL struct {
	AccessKey string
	// contains filtered or unexported fields
}

UpdateServiceAccountURL generates an URL for the update service account operation

func (*UpdateServiceAccountURL) Build added in v0.42.0

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

Build a url path and query string

func (*UpdateServiceAccountURL) BuildFull added in v0.42.0

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

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

func (*UpdateServiceAccountURL) Must added in v0.42.0

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

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

func (*UpdateServiceAccountURL) SetBasePath added in v0.42.0

func (o *UpdateServiceAccountURL) 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 (*UpdateServiceAccountURL) String added in v0.42.0

func (o *UpdateServiceAccountURL) String() string

String returns the string representation of the path with query string

func (*UpdateServiceAccountURL) StringFull added in v0.42.0

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

StringFull returns the string representation of a complete url

func (*UpdateServiceAccountURL) WithBasePath added in v0.42.0

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