service_account

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: AGPL-3.0 Imports: 14 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 GetServiceAccountPolicyOKCode int = 200

GetServiceAccountPolicyOKCode is the HTTP code returned for type GetServiceAccountPolicyOK

View Source
const ListUserServiceAccountsOKCode int = 200

ListUserServiceAccountsOKCode is the HTTP code returned for type ListUserServiceAccountsOK

View Source
const SetServiceAccountPolicyOKCode int = 200

SetServiceAccountPolicyOKCode is the HTTP code returned for type SetServiceAccountPolicyOK

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.Error `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.Error)

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.Error `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.Error)

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.Error `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.Error)

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.Error `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.Error)

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 GetServiceAccountPolicy

type GetServiceAccountPolicy struct {
	Context *middleware.Context
	Handler GetServiceAccountPolicyHandler
}
GetServiceAccountPolicy swagger:route GET /service-accounts/{access_key}/policy ServiceAccount getServiceAccountPolicy

Get Service Account Policy

func NewGetServiceAccountPolicy

func NewGetServiceAccountPolicy(ctx *middleware.Context, handler GetServiceAccountPolicyHandler) *GetServiceAccountPolicy

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

func (*GetServiceAccountPolicy) ServeHTTP

type GetServiceAccountPolicyDefault

type GetServiceAccountPolicyDefault struct {

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

GetServiceAccountPolicyDefault Generic error response.

swagger:response getServiceAccountPolicyDefault

func NewGetServiceAccountPolicyDefault

func NewGetServiceAccountPolicyDefault(code int) *GetServiceAccountPolicyDefault

NewGetServiceAccountPolicyDefault creates GetServiceAccountPolicyDefault with default headers values

func (*GetServiceAccountPolicyDefault) SetPayload

func (o *GetServiceAccountPolicyDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get service account policy default response

func (*GetServiceAccountPolicyDefault) SetStatusCode

func (o *GetServiceAccountPolicyDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get service account policy default response

func (*GetServiceAccountPolicyDefault) WithPayload

WithPayload adds the payload to the get service account policy default response

func (*GetServiceAccountPolicyDefault) WithStatusCode

WithStatusCode adds the status to the get service account policy default response

func (*GetServiceAccountPolicyDefault) WriteResponse

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

WriteResponse to the client

type GetServiceAccountPolicyHandler

type GetServiceAccountPolicyHandler interface {
	Handle(GetServiceAccountPolicyParams, *models.Principal) middleware.Responder
}

GetServiceAccountPolicyHandler interface for that can handle valid get service account policy params

type GetServiceAccountPolicyHandlerFunc

type GetServiceAccountPolicyHandlerFunc func(GetServiceAccountPolicyParams, *models.Principal) middleware.Responder

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

func (GetServiceAccountPolicyHandlerFunc) Handle

Handle executing the request and returning a response

type GetServiceAccountPolicyOK

type GetServiceAccountPolicyOK struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetServiceAccountPolicyOK A successful response.

swagger:response getServiceAccountPolicyOK

func NewGetServiceAccountPolicyOK

func NewGetServiceAccountPolicyOK() *GetServiceAccountPolicyOK

NewGetServiceAccountPolicyOK creates GetServiceAccountPolicyOK with default headers values

func (*GetServiceAccountPolicyOK) SetPayload

func (o *GetServiceAccountPolicyOK) SetPayload(payload string)

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

func (*GetServiceAccountPolicyOK) WithPayload

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

func (*GetServiceAccountPolicyOK) WriteResponse

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

WriteResponse to the client

type GetServiceAccountPolicyParams

type GetServiceAccountPolicyParams struct {

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

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

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

swagger:parameters GetServiceAccountPolicy

func NewGetServiceAccountPolicyParams

func NewGetServiceAccountPolicyParams() GetServiceAccountPolicyParams

NewGetServiceAccountPolicyParams creates a new GetServiceAccountPolicyParams object

There are no default values defined in the spec.

func (*GetServiceAccountPolicyParams) 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 NewGetServiceAccountPolicyParams() beforehand.

type GetServiceAccountPolicyURL

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

GetServiceAccountPolicyURL generates an URL for the get service account policy operation

func (*GetServiceAccountPolicyURL) Build

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

Build a url path and query string

func (*GetServiceAccountPolicyURL) BuildFull

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

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

func (*GetServiceAccountPolicyURL) Must

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

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

func (*GetServiceAccountPolicyURL) SetBasePath

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

func (o *GetServiceAccountPolicyURL) String() string

String returns the string representation of the path with query string

func (*GetServiceAccountPolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetServiceAccountPolicyURL) 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 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.Error `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.Error)

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
	*/
	Limit *int32
	/*
	  In: query
	*/
	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

There are no default values defined in the spec.

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 SetServiceAccountPolicy

type SetServiceAccountPolicy struct {
	Context *middleware.Context
	Handler SetServiceAccountPolicyHandler
}
SetServiceAccountPolicy swagger:route PUT /service-accounts/{access_key}/policy ServiceAccount setServiceAccountPolicy

Set Service Account Policy

func NewSetServiceAccountPolicy

func NewSetServiceAccountPolicy(ctx *middleware.Context, handler SetServiceAccountPolicyHandler) *SetServiceAccountPolicy

NewSetServiceAccountPolicy creates a new http.Handler for the set service account policy operation

func (*SetServiceAccountPolicy) ServeHTTP

type SetServiceAccountPolicyDefault

type SetServiceAccountPolicyDefault struct {

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

SetServiceAccountPolicyDefault Generic error response.

swagger:response setServiceAccountPolicyDefault

func NewSetServiceAccountPolicyDefault

func NewSetServiceAccountPolicyDefault(code int) *SetServiceAccountPolicyDefault

NewSetServiceAccountPolicyDefault creates SetServiceAccountPolicyDefault with default headers values

func (*SetServiceAccountPolicyDefault) SetPayload

func (o *SetServiceAccountPolicyDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the set service account policy default response

func (*SetServiceAccountPolicyDefault) SetStatusCode

func (o *SetServiceAccountPolicyDefault) SetStatusCode(code int)

SetStatusCode sets the status to the set service account policy default response

func (*SetServiceAccountPolicyDefault) WithPayload

WithPayload adds the payload to the set service account policy default response

func (*SetServiceAccountPolicyDefault) WithStatusCode

WithStatusCode adds the status to the set service account policy default response

func (*SetServiceAccountPolicyDefault) WriteResponse

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

WriteResponse to the client

type SetServiceAccountPolicyHandler

type SetServiceAccountPolicyHandler interface {
	Handle(SetServiceAccountPolicyParams, *models.Principal) middleware.Responder
}

SetServiceAccountPolicyHandler interface for that can handle valid set service account policy params

type SetServiceAccountPolicyHandlerFunc

type SetServiceAccountPolicyHandlerFunc func(SetServiceAccountPolicyParams, *models.Principal) middleware.Responder

SetServiceAccountPolicyHandlerFunc turns a function with the right signature into a set service account policy handler

func (SetServiceAccountPolicyHandlerFunc) Handle

Handle executing the request and returning a response

type SetServiceAccountPolicyOK

type SetServiceAccountPolicyOK struct {
}

SetServiceAccountPolicyOK A successful response.

swagger:response setServiceAccountPolicyOK

func NewSetServiceAccountPolicyOK

func NewSetServiceAccountPolicyOK() *SetServiceAccountPolicyOK

NewSetServiceAccountPolicyOK creates SetServiceAccountPolicyOK with default headers values

func (*SetServiceAccountPolicyOK) WriteResponse

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

WriteResponse to the client

type SetServiceAccountPolicyParams

type SetServiceAccountPolicyParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	AccessKey string
	/*
	  Required: true
	  In: body
	*/
	Policy *models.AddServiceAccountPolicyRequest
}

SetServiceAccountPolicyParams contains all the bound params for the set service account policy operation typically these are obtained from a http.Request

swagger:parameters SetServiceAccountPolicy

func NewSetServiceAccountPolicyParams

func NewSetServiceAccountPolicyParams() SetServiceAccountPolicyParams

NewSetServiceAccountPolicyParams creates a new SetServiceAccountPolicyParams object

There are no default values defined in the spec.

func (*SetServiceAccountPolicyParams) 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 NewSetServiceAccountPolicyParams() beforehand.

type SetServiceAccountPolicyURL

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

SetServiceAccountPolicyURL generates an URL for the set service account policy operation

func (*SetServiceAccountPolicyURL) Build

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

Build a url path and query string

func (*SetServiceAccountPolicyURL) BuildFull

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

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

func (*SetServiceAccountPolicyURL) Must

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

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

func (*SetServiceAccountPolicyURL) SetBasePath

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

func (o *SetServiceAccountPolicyURL) String() string

String returns the string representation of the path with query string

func (*SetServiceAccountPolicyURL) StringFull

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

StringFull returns the string representation of a complete url

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