service_account

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for service account API

func (*Client) CreateServiceAccount

func (a *Client) CreateServiceAccount(params *CreateServiceAccountParams, opts ...ClientOption) (*CreateServiceAccountOK, error)

CreateServiceAccount create service account API

func (*Client) DeleteServiceAccount

func (a *Client) DeleteServiceAccount(params *DeleteServiceAccountParams, opts ...ClientOption) (*DeleteServiceAccountOK, error)

DeleteServiceAccount delete service account API

func (*Client) ListServiceAccounts

func (a *Client) ListServiceAccounts(params *ListServiceAccountsParams, opts ...ClientOption) (*ListServiceAccountsOK, error)

ListServiceAccounts list service accounts API

func (*Client) ReadServiceAccount

func (a *Client) ReadServiceAccount(params *ReadServiceAccountParams, opts ...ClientOption) (*ReadServiceAccountOK, error)

ReadServiceAccount read service account API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateServiceAccount(params *CreateServiceAccountParams, opts ...ClientOption) (*CreateServiceAccountOK, error)

	DeleteServiceAccount(params *DeleteServiceAccountParams, opts ...ClientOption) (*DeleteServiceAccountOK, error)

	ListServiceAccounts(params *ListServiceAccountsParams, opts ...ClientOption) (*ListServiceAccountsOK, error)

	ReadServiceAccount(params *ReadServiceAccountParams, opts ...ClientOption) (*ReadServiceAccountOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new service account API client.

type CreateServiceAccountBadRequest

type CreateServiceAccountBadRequest struct {
	Payload *models.APIError
}

CreateServiceAccountBadRequest describes a response with status code 400, with default header values.

Cannot create the ServiceAccount because the request is invalid.

func NewCreateServiceAccountBadRequest

func NewCreateServiceAccountBadRequest() *CreateServiceAccountBadRequest

NewCreateServiceAccountBadRequest creates a CreateServiceAccountBadRequest with default headers values

func (*CreateServiceAccountBadRequest) Code

Code gets the status code for the create service account bad request response

func (*CreateServiceAccountBadRequest) Error

func (*CreateServiceAccountBadRequest) GetPayload

func (*CreateServiceAccountBadRequest) IsClientError

func (o *CreateServiceAccountBadRequest) IsClientError() bool

IsClientError returns true when this create service account bad request response has a 4xx status code

func (*CreateServiceAccountBadRequest) IsCode

func (o *CreateServiceAccountBadRequest) IsCode(code int) bool

IsCode returns true when this create service account bad request response a status code equal to that given

func (*CreateServiceAccountBadRequest) IsRedirect

func (o *CreateServiceAccountBadRequest) IsRedirect() bool

IsRedirect returns true when this create service account bad request response has a 3xx status code

func (*CreateServiceAccountBadRequest) IsServerError

func (o *CreateServiceAccountBadRequest) IsServerError() bool

IsServerError returns true when this create service account bad request response has a 5xx status code

func (*CreateServiceAccountBadRequest) IsSuccess

func (o *CreateServiceAccountBadRequest) IsSuccess() bool

IsSuccess returns true when this create service account bad request response has a 2xx status code

func (*CreateServiceAccountBadRequest) String

type CreateServiceAccountConflict

type CreateServiceAccountConflict struct {
	Payload *models.APIError
}

CreateServiceAccountConflict describes a response with status code 409, with default header values.

Cannot create the ServiceAccount because there is a conflict with an existing ServiceAccount.

func NewCreateServiceAccountConflict

func NewCreateServiceAccountConflict() *CreateServiceAccountConflict

NewCreateServiceAccountConflict creates a CreateServiceAccountConflict with default headers values

func (*CreateServiceAccountConflict) Code

Code gets the status code for the create service account conflict response

func (*CreateServiceAccountConflict) Error

func (*CreateServiceAccountConflict) GetPayload

func (o *CreateServiceAccountConflict) GetPayload() *models.APIError

func (*CreateServiceAccountConflict) IsClientError

func (o *CreateServiceAccountConflict) IsClientError() bool

IsClientError returns true when this create service account conflict response has a 4xx status code

func (*CreateServiceAccountConflict) IsCode

func (o *CreateServiceAccountConflict) IsCode(code int) bool

IsCode returns true when this create service account conflict response a status code equal to that given

func (*CreateServiceAccountConflict) IsRedirect

func (o *CreateServiceAccountConflict) IsRedirect() bool

IsRedirect returns true when this create service account conflict response has a 3xx status code

func (*CreateServiceAccountConflict) IsServerError

func (o *CreateServiceAccountConflict) IsServerError() bool

IsServerError returns true when this create service account conflict response has a 5xx status code

func (*CreateServiceAccountConflict) IsSuccess

func (o *CreateServiceAccountConflict) IsSuccess() bool

IsSuccess returns true when this create service account conflict response has a 2xx status code

func (*CreateServiceAccountConflict) String

type CreateServiceAccountDefault

type CreateServiceAccountDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateServiceAccountDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateServiceAccountDefault

func NewCreateServiceAccountDefault(code int) *CreateServiceAccountDefault

NewCreateServiceAccountDefault creates a CreateServiceAccountDefault with default headers values

func (*CreateServiceAccountDefault) Code

func (o *CreateServiceAccountDefault) Code() int

Code gets the status code for the create service account default response

func (*CreateServiceAccountDefault) Error

func (*CreateServiceAccountDefault) GetPayload

func (*CreateServiceAccountDefault) IsClientError

func (o *CreateServiceAccountDefault) IsClientError() bool

IsClientError returns true when this create service account default response has a 4xx status code

func (*CreateServiceAccountDefault) IsCode

func (o *CreateServiceAccountDefault) IsCode(code int) bool

IsCode returns true when this create service account default response a status code equal to that given

func (*CreateServiceAccountDefault) IsRedirect

func (o *CreateServiceAccountDefault) IsRedirect() bool

IsRedirect returns true when this create service account default response has a 3xx status code

func (*CreateServiceAccountDefault) IsServerError

func (o *CreateServiceAccountDefault) IsServerError() bool

IsServerError returns true when this create service account default response has a 5xx status code

func (*CreateServiceAccountDefault) IsSuccess

func (o *CreateServiceAccountDefault) IsSuccess() bool

IsSuccess returns true when this create service account default response has a 2xx status code

func (*CreateServiceAccountDefault) String

func (o *CreateServiceAccountDefault) String() string

type CreateServiceAccountInternalServerError

type CreateServiceAccountInternalServerError struct {
	Payload *models.APIError
}

CreateServiceAccountInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateServiceAccountInternalServerError

func NewCreateServiceAccountInternalServerError() *CreateServiceAccountInternalServerError

NewCreateServiceAccountInternalServerError creates a CreateServiceAccountInternalServerError with default headers values

func (*CreateServiceAccountInternalServerError) Code

Code gets the status code for the create service account internal server error response

func (*CreateServiceAccountInternalServerError) Error

func (*CreateServiceAccountInternalServerError) GetPayload

func (*CreateServiceAccountInternalServerError) IsClientError

func (o *CreateServiceAccountInternalServerError) IsClientError() bool

IsClientError returns true when this create service account internal server error response has a 4xx status code

func (*CreateServiceAccountInternalServerError) IsCode

IsCode returns true when this create service account internal server error response a status code equal to that given

func (*CreateServiceAccountInternalServerError) IsRedirect

IsRedirect returns true when this create service account internal server error response has a 3xx status code

func (*CreateServiceAccountInternalServerError) IsServerError

func (o *CreateServiceAccountInternalServerError) IsServerError() bool

IsServerError returns true when this create service account internal server error response has a 5xx status code

func (*CreateServiceAccountInternalServerError) IsSuccess

IsSuccess returns true when this create service account internal server error response has a 2xx status code

func (*CreateServiceAccountInternalServerError) String

type CreateServiceAccountOK

type CreateServiceAccountOK struct {
	Payload *models.Configv1CreateServiceAccountResponse
}

CreateServiceAccountOK describes a response with status code 200, with default header values.

A successful response containing the created ServiceAccount.

func NewCreateServiceAccountOK

func NewCreateServiceAccountOK() *CreateServiceAccountOK

NewCreateServiceAccountOK creates a CreateServiceAccountOK with default headers values

func (*CreateServiceAccountOK) Code

func (o *CreateServiceAccountOK) Code() int

Code gets the status code for the create service account o k response

func (*CreateServiceAccountOK) Error

func (o *CreateServiceAccountOK) Error() string

func (*CreateServiceAccountOK) GetPayload

func (*CreateServiceAccountOK) IsClientError

func (o *CreateServiceAccountOK) IsClientError() bool

IsClientError returns true when this create service account o k response has a 4xx status code

func (*CreateServiceAccountOK) IsCode

func (o *CreateServiceAccountOK) IsCode(code int) bool

IsCode returns true when this create service account o k response a status code equal to that given

func (*CreateServiceAccountOK) IsRedirect

func (o *CreateServiceAccountOK) IsRedirect() bool

IsRedirect returns true when this create service account o k response has a 3xx status code

func (*CreateServiceAccountOK) IsServerError

func (o *CreateServiceAccountOK) IsServerError() bool

IsServerError returns true when this create service account o k response has a 5xx status code

func (*CreateServiceAccountOK) IsSuccess

func (o *CreateServiceAccountOK) IsSuccess() bool

IsSuccess returns true when this create service account o k response has a 2xx status code

func (*CreateServiceAccountOK) String

func (o *CreateServiceAccountOK) String() string

type CreateServiceAccountParams

type CreateServiceAccountParams struct {

	// Body.
	Body *models.Configv1CreateServiceAccountRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateServiceAccountParams contains all the parameters to send to the API endpoint

for the create service account operation.

Typically these are written to a http.Request.

func NewCreateServiceAccountParams

func NewCreateServiceAccountParams() *CreateServiceAccountParams

NewCreateServiceAccountParams creates a new CreateServiceAccountParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateServiceAccountParamsWithContext

func NewCreateServiceAccountParamsWithContext(ctx context.Context) *CreateServiceAccountParams

NewCreateServiceAccountParamsWithContext creates a new CreateServiceAccountParams object with the ability to set a context for a request.

func NewCreateServiceAccountParamsWithHTTPClient

func NewCreateServiceAccountParamsWithHTTPClient(client *http.Client) *CreateServiceAccountParams

NewCreateServiceAccountParamsWithHTTPClient creates a new CreateServiceAccountParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServiceAccountParamsWithTimeout

func NewCreateServiceAccountParamsWithTimeout(timeout time.Duration) *CreateServiceAccountParams

NewCreateServiceAccountParamsWithTimeout creates a new CreateServiceAccountParams object with the ability to set a timeout on a request.

func (*CreateServiceAccountParams) SetBody

SetBody adds the body to the create service account params

func (*CreateServiceAccountParams) SetContext

func (o *CreateServiceAccountParams) SetContext(ctx context.Context)

SetContext adds the context to the create service account params

func (*CreateServiceAccountParams) SetDefaults

func (o *CreateServiceAccountParams) SetDefaults()

SetDefaults hydrates default values in the create service account params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServiceAccountParams) SetHTTPClient

func (o *CreateServiceAccountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create service account params

func (*CreateServiceAccountParams) SetTimeout

func (o *CreateServiceAccountParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create service account params

func (*CreateServiceAccountParams) WithBody

WithBody adds the body to the create service account params

func (*CreateServiceAccountParams) WithContext

WithContext adds the context to the create service account params

func (*CreateServiceAccountParams) WithDefaults

WithDefaults hydrates default values in the create service account params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServiceAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create service account params

func (*CreateServiceAccountParams) WithTimeout

WithTimeout adds the timeout to the create service account params

func (*CreateServiceAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServiceAccountReader

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

CreateServiceAccountReader is a Reader for the CreateServiceAccount structure.

func (*CreateServiceAccountReader) ReadResponse

func (o *CreateServiceAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteServiceAccountBadRequest

type DeleteServiceAccountBadRequest struct {
	Payload *models.APIError
}

DeleteServiceAccountBadRequest describes a response with status code 400, with default header values.

Cannot delete the ServiceAccount because it is in use.

func NewDeleteServiceAccountBadRequest

func NewDeleteServiceAccountBadRequest() *DeleteServiceAccountBadRequest

NewDeleteServiceAccountBadRequest creates a DeleteServiceAccountBadRequest with default headers values

func (*DeleteServiceAccountBadRequest) Code

Code gets the status code for the delete service account bad request response

func (*DeleteServiceAccountBadRequest) Error

func (*DeleteServiceAccountBadRequest) GetPayload

func (*DeleteServiceAccountBadRequest) IsClientError

func (o *DeleteServiceAccountBadRequest) IsClientError() bool

IsClientError returns true when this delete service account bad request response has a 4xx status code

func (*DeleteServiceAccountBadRequest) IsCode

func (o *DeleteServiceAccountBadRequest) IsCode(code int) bool

IsCode returns true when this delete service account bad request response a status code equal to that given

func (*DeleteServiceAccountBadRequest) IsRedirect

func (o *DeleteServiceAccountBadRequest) IsRedirect() bool

IsRedirect returns true when this delete service account bad request response has a 3xx status code

func (*DeleteServiceAccountBadRequest) IsServerError

func (o *DeleteServiceAccountBadRequest) IsServerError() bool

IsServerError returns true when this delete service account bad request response has a 5xx status code

func (*DeleteServiceAccountBadRequest) IsSuccess

func (o *DeleteServiceAccountBadRequest) IsSuccess() bool

IsSuccess returns true when this delete service account bad request response has a 2xx status code

func (*DeleteServiceAccountBadRequest) String

type DeleteServiceAccountDefault

type DeleteServiceAccountDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteServiceAccountDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteServiceAccountDefault

func NewDeleteServiceAccountDefault(code int) *DeleteServiceAccountDefault

NewDeleteServiceAccountDefault creates a DeleteServiceAccountDefault with default headers values

func (*DeleteServiceAccountDefault) Code

func (o *DeleteServiceAccountDefault) Code() int

Code gets the status code for the delete service account default response

func (*DeleteServiceAccountDefault) Error

func (*DeleteServiceAccountDefault) GetPayload

func (*DeleteServiceAccountDefault) IsClientError

func (o *DeleteServiceAccountDefault) IsClientError() bool

IsClientError returns true when this delete service account default response has a 4xx status code

func (*DeleteServiceAccountDefault) IsCode

func (o *DeleteServiceAccountDefault) IsCode(code int) bool

IsCode returns true when this delete service account default response a status code equal to that given

func (*DeleteServiceAccountDefault) IsRedirect

func (o *DeleteServiceAccountDefault) IsRedirect() bool

IsRedirect returns true when this delete service account default response has a 3xx status code

func (*DeleteServiceAccountDefault) IsServerError

func (o *DeleteServiceAccountDefault) IsServerError() bool

IsServerError returns true when this delete service account default response has a 5xx status code

func (*DeleteServiceAccountDefault) IsSuccess

func (o *DeleteServiceAccountDefault) IsSuccess() bool

IsSuccess returns true when this delete service account default response has a 2xx status code

func (*DeleteServiceAccountDefault) String

func (o *DeleteServiceAccountDefault) String() string

type DeleteServiceAccountInternalServerError

type DeleteServiceAccountInternalServerError struct {
	Payload *models.APIError
}

DeleteServiceAccountInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteServiceAccountInternalServerError

func NewDeleteServiceAccountInternalServerError() *DeleteServiceAccountInternalServerError

NewDeleteServiceAccountInternalServerError creates a DeleteServiceAccountInternalServerError with default headers values

func (*DeleteServiceAccountInternalServerError) Code

Code gets the status code for the delete service account internal server error response

func (*DeleteServiceAccountInternalServerError) Error

func (*DeleteServiceAccountInternalServerError) GetPayload

func (*DeleteServiceAccountInternalServerError) IsClientError

func (o *DeleteServiceAccountInternalServerError) IsClientError() bool

IsClientError returns true when this delete service account internal server error response has a 4xx status code

func (*DeleteServiceAccountInternalServerError) IsCode

IsCode returns true when this delete service account internal server error response a status code equal to that given

func (*DeleteServiceAccountInternalServerError) IsRedirect

IsRedirect returns true when this delete service account internal server error response has a 3xx status code

func (*DeleteServiceAccountInternalServerError) IsServerError

func (o *DeleteServiceAccountInternalServerError) IsServerError() bool

IsServerError returns true when this delete service account internal server error response has a 5xx status code

func (*DeleteServiceAccountInternalServerError) IsSuccess

IsSuccess returns true when this delete service account internal server error response has a 2xx status code

func (*DeleteServiceAccountInternalServerError) String

type DeleteServiceAccountNotFound

type DeleteServiceAccountNotFound struct {
	Payload *models.APIError
}

DeleteServiceAccountNotFound describes a response with status code 404, with default header values.

Cannot delete the ServiceAccount because the slug does not exist.

func NewDeleteServiceAccountNotFound

func NewDeleteServiceAccountNotFound() *DeleteServiceAccountNotFound

NewDeleteServiceAccountNotFound creates a DeleteServiceAccountNotFound with default headers values

func (*DeleteServiceAccountNotFound) Code

Code gets the status code for the delete service account not found response

func (*DeleteServiceAccountNotFound) Error

func (*DeleteServiceAccountNotFound) GetPayload

func (o *DeleteServiceAccountNotFound) GetPayload() *models.APIError

func (*DeleteServiceAccountNotFound) IsClientError

func (o *DeleteServiceAccountNotFound) IsClientError() bool

IsClientError returns true when this delete service account not found response has a 4xx status code

func (*DeleteServiceAccountNotFound) IsCode

func (o *DeleteServiceAccountNotFound) IsCode(code int) bool

IsCode returns true when this delete service account not found response a status code equal to that given

func (*DeleteServiceAccountNotFound) IsRedirect

func (o *DeleteServiceAccountNotFound) IsRedirect() bool

IsRedirect returns true when this delete service account not found response has a 3xx status code

func (*DeleteServiceAccountNotFound) IsServerError

func (o *DeleteServiceAccountNotFound) IsServerError() bool

IsServerError returns true when this delete service account not found response has a 5xx status code

func (*DeleteServiceAccountNotFound) IsSuccess

func (o *DeleteServiceAccountNotFound) IsSuccess() bool

IsSuccess returns true when this delete service account not found response has a 2xx status code

func (*DeleteServiceAccountNotFound) String

type DeleteServiceAccountOK

type DeleteServiceAccountOK struct {
	Payload models.Configv1DeleteServiceAccountResponse
}

DeleteServiceAccountOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteServiceAccountOK

func NewDeleteServiceAccountOK() *DeleteServiceAccountOK

NewDeleteServiceAccountOK creates a DeleteServiceAccountOK with default headers values

func (*DeleteServiceAccountOK) Code

func (o *DeleteServiceAccountOK) Code() int

Code gets the status code for the delete service account o k response

func (*DeleteServiceAccountOK) Error

func (o *DeleteServiceAccountOK) Error() string

func (*DeleteServiceAccountOK) GetPayload

func (*DeleteServiceAccountOK) IsClientError

func (o *DeleteServiceAccountOK) IsClientError() bool

IsClientError returns true when this delete service account o k response has a 4xx status code

func (*DeleteServiceAccountOK) IsCode

func (o *DeleteServiceAccountOK) IsCode(code int) bool

IsCode returns true when this delete service account o k response a status code equal to that given

func (*DeleteServiceAccountOK) IsRedirect

func (o *DeleteServiceAccountOK) IsRedirect() bool

IsRedirect returns true when this delete service account o k response has a 3xx status code

func (*DeleteServiceAccountOK) IsServerError

func (o *DeleteServiceAccountOK) IsServerError() bool

IsServerError returns true when this delete service account o k response has a 5xx status code

func (*DeleteServiceAccountOK) IsSuccess

func (o *DeleteServiceAccountOK) IsSuccess() bool

IsSuccess returns true when this delete service account o k response has a 2xx status code

func (*DeleteServiceAccountOK) String

func (o *DeleteServiceAccountOK) String() string

type DeleteServiceAccountParams

type DeleteServiceAccountParams struct {

	// Slug.
	Slug string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteServiceAccountParams contains all the parameters to send to the API endpoint

for the delete service account operation.

Typically these are written to a http.Request.

func NewDeleteServiceAccountParams

func NewDeleteServiceAccountParams() *DeleteServiceAccountParams

NewDeleteServiceAccountParams creates a new DeleteServiceAccountParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteServiceAccountParamsWithContext

func NewDeleteServiceAccountParamsWithContext(ctx context.Context) *DeleteServiceAccountParams

NewDeleteServiceAccountParamsWithContext creates a new DeleteServiceAccountParams object with the ability to set a context for a request.

func NewDeleteServiceAccountParamsWithHTTPClient

func NewDeleteServiceAccountParamsWithHTTPClient(client *http.Client) *DeleteServiceAccountParams

NewDeleteServiceAccountParamsWithHTTPClient creates a new DeleteServiceAccountParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteServiceAccountParamsWithTimeout

func NewDeleteServiceAccountParamsWithTimeout(timeout time.Duration) *DeleteServiceAccountParams

NewDeleteServiceAccountParamsWithTimeout creates a new DeleteServiceAccountParams object with the ability to set a timeout on a request.

func (*DeleteServiceAccountParams) SetContext

func (o *DeleteServiceAccountParams) SetContext(ctx context.Context)

SetContext adds the context to the delete service account params

func (*DeleteServiceAccountParams) SetDefaults

func (o *DeleteServiceAccountParams) SetDefaults()

SetDefaults hydrates default values in the delete service account params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteServiceAccountParams) SetHTTPClient

func (o *DeleteServiceAccountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete service account params

func (*DeleteServiceAccountParams) SetSlug

func (o *DeleteServiceAccountParams) SetSlug(slug string)

SetSlug adds the slug to the delete service account params

func (*DeleteServiceAccountParams) SetTimeout

func (o *DeleteServiceAccountParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete service account params

func (*DeleteServiceAccountParams) WithContext

WithContext adds the context to the delete service account params

func (*DeleteServiceAccountParams) WithDefaults

WithDefaults hydrates default values in the delete service account params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteServiceAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete service account params

func (*DeleteServiceAccountParams) WithSlug

WithSlug adds the slug to the delete service account params

func (*DeleteServiceAccountParams) WithTimeout

WithTimeout adds the timeout to the delete service account params

func (*DeleteServiceAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteServiceAccountReader

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

DeleteServiceAccountReader is a Reader for the DeleteServiceAccount structure.

func (*DeleteServiceAccountReader) ReadResponse

func (o *DeleteServiceAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListServiceAccountsDefault

type ListServiceAccountsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListServiceAccountsDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListServiceAccountsDefault

func NewListServiceAccountsDefault(code int) *ListServiceAccountsDefault

NewListServiceAccountsDefault creates a ListServiceAccountsDefault with default headers values

func (*ListServiceAccountsDefault) Code

func (o *ListServiceAccountsDefault) Code() int

Code gets the status code for the list service accounts default response

func (*ListServiceAccountsDefault) Error

func (*ListServiceAccountsDefault) GetPayload

func (*ListServiceAccountsDefault) IsClientError

func (o *ListServiceAccountsDefault) IsClientError() bool

IsClientError returns true when this list service accounts default response has a 4xx status code

func (*ListServiceAccountsDefault) IsCode

func (o *ListServiceAccountsDefault) IsCode(code int) bool

IsCode returns true when this list service accounts default response a status code equal to that given

func (*ListServiceAccountsDefault) IsRedirect

func (o *ListServiceAccountsDefault) IsRedirect() bool

IsRedirect returns true when this list service accounts default response has a 3xx status code

func (*ListServiceAccountsDefault) IsServerError

func (o *ListServiceAccountsDefault) IsServerError() bool

IsServerError returns true when this list service accounts default response has a 5xx status code

func (*ListServiceAccountsDefault) IsSuccess

func (o *ListServiceAccountsDefault) IsSuccess() bool

IsSuccess returns true when this list service accounts default response has a 2xx status code

func (*ListServiceAccountsDefault) String

func (o *ListServiceAccountsDefault) String() string

type ListServiceAccountsInternalServerError

type ListServiceAccountsInternalServerError struct {
	Payload *models.APIError
}

ListServiceAccountsInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListServiceAccountsInternalServerError

func NewListServiceAccountsInternalServerError() *ListServiceAccountsInternalServerError

NewListServiceAccountsInternalServerError creates a ListServiceAccountsInternalServerError with default headers values

func (*ListServiceAccountsInternalServerError) Code

Code gets the status code for the list service accounts internal server error response

func (*ListServiceAccountsInternalServerError) Error

func (*ListServiceAccountsInternalServerError) GetPayload

func (*ListServiceAccountsInternalServerError) IsClientError

func (o *ListServiceAccountsInternalServerError) IsClientError() bool

IsClientError returns true when this list service accounts internal server error response has a 4xx status code

func (*ListServiceAccountsInternalServerError) IsCode

IsCode returns true when this list service accounts internal server error response a status code equal to that given

func (*ListServiceAccountsInternalServerError) IsRedirect

IsRedirect returns true when this list service accounts internal server error response has a 3xx status code

func (*ListServiceAccountsInternalServerError) IsServerError

func (o *ListServiceAccountsInternalServerError) IsServerError() bool

IsServerError returns true when this list service accounts internal server error response has a 5xx status code

func (*ListServiceAccountsInternalServerError) IsSuccess

IsSuccess returns true when this list service accounts internal server error response has a 2xx status code

func (*ListServiceAccountsInternalServerError) String

type ListServiceAccountsOK

type ListServiceAccountsOK struct {
	Payload *models.Configv1ListServiceAccountsResponse
}

ListServiceAccountsOK describes a response with status code 200, with default header values.

A successful response.

func NewListServiceAccountsOK

func NewListServiceAccountsOK() *ListServiceAccountsOK

NewListServiceAccountsOK creates a ListServiceAccountsOK with default headers values

func (*ListServiceAccountsOK) Code

func (o *ListServiceAccountsOK) Code() int

Code gets the status code for the list service accounts o k response

func (*ListServiceAccountsOK) Error

func (o *ListServiceAccountsOK) Error() string

func (*ListServiceAccountsOK) GetPayload

func (*ListServiceAccountsOK) IsClientError

func (o *ListServiceAccountsOK) IsClientError() bool

IsClientError returns true when this list service accounts o k response has a 4xx status code

func (*ListServiceAccountsOK) IsCode

func (o *ListServiceAccountsOK) IsCode(code int) bool

IsCode returns true when this list service accounts o k response a status code equal to that given

func (*ListServiceAccountsOK) IsRedirect

func (o *ListServiceAccountsOK) IsRedirect() bool

IsRedirect returns true when this list service accounts o k response has a 3xx status code

func (*ListServiceAccountsOK) IsServerError

func (o *ListServiceAccountsOK) IsServerError() bool

IsServerError returns true when this list service accounts o k response has a 5xx status code

func (*ListServiceAccountsOK) IsSuccess

func (o *ListServiceAccountsOK) IsSuccess() bool

IsSuccess returns true when this list service accounts o k response has a 2xx status code

func (*ListServiceAccountsOK) String

func (o *ListServiceAccountsOK) String() string

type ListServiceAccountsParams

type ListServiceAccountsParams struct {

	/* Names.

	   Filters results by name, where any ServiceAccount with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any ServiceAccount with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListServiceAccountsParams contains all the parameters to send to the API endpoint

for the list service accounts operation.

Typically these are written to a http.Request.

func NewListServiceAccountsParams

func NewListServiceAccountsParams() *ListServiceAccountsParams

NewListServiceAccountsParams creates a new ListServiceAccountsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListServiceAccountsParamsWithContext

func NewListServiceAccountsParamsWithContext(ctx context.Context) *ListServiceAccountsParams

NewListServiceAccountsParamsWithContext creates a new ListServiceAccountsParams object with the ability to set a context for a request.

func NewListServiceAccountsParamsWithHTTPClient

func NewListServiceAccountsParamsWithHTTPClient(client *http.Client) *ListServiceAccountsParams

NewListServiceAccountsParamsWithHTTPClient creates a new ListServiceAccountsParams object with the ability to set a custom HTTPClient for a request.

func NewListServiceAccountsParamsWithTimeout

func NewListServiceAccountsParamsWithTimeout(timeout time.Duration) *ListServiceAccountsParams

NewListServiceAccountsParamsWithTimeout creates a new ListServiceAccountsParams object with the ability to set a timeout on a request.

func (*ListServiceAccountsParams) SetContext

func (o *ListServiceAccountsParams) SetContext(ctx context.Context)

SetContext adds the context to the list service accounts params

func (*ListServiceAccountsParams) SetDefaults

func (o *ListServiceAccountsParams) SetDefaults()

SetDefaults hydrates default values in the list service accounts params (not the query body).

All values with no default are reset to their zero value.

func (*ListServiceAccountsParams) SetHTTPClient

func (o *ListServiceAccountsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list service accounts params

func (*ListServiceAccountsParams) SetNames

func (o *ListServiceAccountsParams) SetNames(names []string)

SetNames adds the names to the list service accounts params

func (*ListServiceAccountsParams) SetPageMaxSize

func (o *ListServiceAccountsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list service accounts params

func (*ListServiceAccountsParams) SetPageToken

func (o *ListServiceAccountsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list service accounts params

func (*ListServiceAccountsParams) SetSlugs

func (o *ListServiceAccountsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list service accounts params

func (*ListServiceAccountsParams) SetTimeout

func (o *ListServiceAccountsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list service accounts params

func (*ListServiceAccountsParams) WithContext

WithContext adds the context to the list service accounts params

func (*ListServiceAccountsParams) WithDefaults

WithDefaults hydrates default values in the list service accounts params (not the query body).

All values with no default are reset to their zero value.

func (*ListServiceAccountsParams) WithHTTPClient

func (o *ListServiceAccountsParams) WithHTTPClient(client *http.Client) *ListServiceAccountsParams

WithHTTPClient adds the HTTPClient to the list service accounts params

func (*ListServiceAccountsParams) WithNames

WithNames adds the names to the list service accounts params

func (*ListServiceAccountsParams) WithPageMaxSize

func (o *ListServiceAccountsParams) WithPageMaxSize(pageMaxSize *int64) *ListServiceAccountsParams

WithPageMaxSize adds the pageMaxSize to the list service accounts params

func (*ListServiceAccountsParams) WithPageToken

func (o *ListServiceAccountsParams) WithPageToken(pageToken *string) *ListServiceAccountsParams

WithPageToken adds the pageToken to the list service accounts params

func (*ListServiceAccountsParams) WithSlugs

WithSlugs adds the slugs to the list service accounts params

func (*ListServiceAccountsParams) WithTimeout

WithTimeout adds the timeout to the list service accounts params

func (*ListServiceAccountsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServiceAccountsReader

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

ListServiceAccountsReader is a Reader for the ListServiceAccounts structure.

func (*ListServiceAccountsReader) ReadResponse

func (o *ListServiceAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ReadServiceAccountDefault

type ReadServiceAccountDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadServiceAccountDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadServiceAccountDefault

func NewReadServiceAccountDefault(code int) *ReadServiceAccountDefault

NewReadServiceAccountDefault creates a ReadServiceAccountDefault with default headers values

func (*ReadServiceAccountDefault) Code

func (o *ReadServiceAccountDefault) Code() int

Code gets the status code for the read service account default response

func (*ReadServiceAccountDefault) Error

func (o *ReadServiceAccountDefault) Error() string

func (*ReadServiceAccountDefault) GetPayload

func (*ReadServiceAccountDefault) IsClientError

func (o *ReadServiceAccountDefault) IsClientError() bool

IsClientError returns true when this read service account default response has a 4xx status code

func (*ReadServiceAccountDefault) IsCode

func (o *ReadServiceAccountDefault) IsCode(code int) bool

IsCode returns true when this read service account default response a status code equal to that given

func (*ReadServiceAccountDefault) IsRedirect

func (o *ReadServiceAccountDefault) IsRedirect() bool

IsRedirect returns true when this read service account default response has a 3xx status code

func (*ReadServiceAccountDefault) IsServerError

func (o *ReadServiceAccountDefault) IsServerError() bool

IsServerError returns true when this read service account default response has a 5xx status code

func (*ReadServiceAccountDefault) IsSuccess

func (o *ReadServiceAccountDefault) IsSuccess() bool

IsSuccess returns true when this read service account default response has a 2xx status code

func (*ReadServiceAccountDefault) String

func (o *ReadServiceAccountDefault) String() string

type ReadServiceAccountInternalServerError

type ReadServiceAccountInternalServerError struct {
	Payload *models.APIError
}

ReadServiceAccountInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadServiceAccountInternalServerError

func NewReadServiceAccountInternalServerError() *ReadServiceAccountInternalServerError

NewReadServiceAccountInternalServerError creates a ReadServiceAccountInternalServerError with default headers values

func (*ReadServiceAccountInternalServerError) Code

Code gets the status code for the read service account internal server error response

func (*ReadServiceAccountInternalServerError) Error

func (*ReadServiceAccountInternalServerError) GetPayload

func (*ReadServiceAccountInternalServerError) IsClientError

func (o *ReadServiceAccountInternalServerError) IsClientError() bool

IsClientError returns true when this read service account internal server error response has a 4xx status code

func (*ReadServiceAccountInternalServerError) IsCode

IsCode returns true when this read service account internal server error response a status code equal to that given

func (*ReadServiceAccountInternalServerError) IsRedirect

IsRedirect returns true when this read service account internal server error response has a 3xx status code

func (*ReadServiceAccountInternalServerError) IsServerError

func (o *ReadServiceAccountInternalServerError) IsServerError() bool

IsServerError returns true when this read service account internal server error response has a 5xx status code

func (*ReadServiceAccountInternalServerError) IsSuccess

IsSuccess returns true when this read service account internal server error response has a 2xx status code

func (*ReadServiceAccountInternalServerError) String

type ReadServiceAccountNotFound

type ReadServiceAccountNotFound struct {
	Payload *models.APIError
}

ReadServiceAccountNotFound describes a response with status code 404, with default header values.

Cannot read the ServiceAccount because the slug does not exist.

func NewReadServiceAccountNotFound

func NewReadServiceAccountNotFound() *ReadServiceAccountNotFound

NewReadServiceAccountNotFound creates a ReadServiceAccountNotFound with default headers values

func (*ReadServiceAccountNotFound) Code

func (o *ReadServiceAccountNotFound) Code() int

Code gets the status code for the read service account not found response

func (*ReadServiceAccountNotFound) Error

func (*ReadServiceAccountNotFound) GetPayload

func (o *ReadServiceAccountNotFound) GetPayload() *models.APIError

func (*ReadServiceAccountNotFound) IsClientError

func (o *ReadServiceAccountNotFound) IsClientError() bool

IsClientError returns true when this read service account not found response has a 4xx status code

func (*ReadServiceAccountNotFound) IsCode

func (o *ReadServiceAccountNotFound) IsCode(code int) bool

IsCode returns true when this read service account not found response a status code equal to that given

func (*ReadServiceAccountNotFound) IsRedirect

func (o *ReadServiceAccountNotFound) IsRedirect() bool

IsRedirect returns true when this read service account not found response has a 3xx status code

func (*ReadServiceAccountNotFound) IsServerError

func (o *ReadServiceAccountNotFound) IsServerError() bool

IsServerError returns true when this read service account not found response has a 5xx status code

func (*ReadServiceAccountNotFound) IsSuccess

func (o *ReadServiceAccountNotFound) IsSuccess() bool

IsSuccess returns true when this read service account not found response has a 2xx status code

func (*ReadServiceAccountNotFound) String

func (o *ReadServiceAccountNotFound) String() string

type ReadServiceAccountOK

type ReadServiceAccountOK struct {
	Payload *models.Configv1ReadServiceAccountResponse
}

ReadServiceAccountOK describes a response with status code 200, with default header values.

A successful response.

func NewReadServiceAccountOK

func NewReadServiceAccountOK() *ReadServiceAccountOK

NewReadServiceAccountOK creates a ReadServiceAccountOK with default headers values

func (*ReadServiceAccountOK) Code

func (o *ReadServiceAccountOK) Code() int

Code gets the status code for the read service account o k response

func (*ReadServiceAccountOK) Error

func (o *ReadServiceAccountOK) Error() string

func (*ReadServiceAccountOK) GetPayload

func (*ReadServiceAccountOK) IsClientError

func (o *ReadServiceAccountOK) IsClientError() bool

IsClientError returns true when this read service account o k response has a 4xx status code

func (*ReadServiceAccountOK) IsCode

func (o *ReadServiceAccountOK) IsCode(code int) bool

IsCode returns true when this read service account o k response a status code equal to that given

func (*ReadServiceAccountOK) IsRedirect

func (o *ReadServiceAccountOK) IsRedirect() bool

IsRedirect returns true when this read service account o k response has a 3xx status code

func (*ReadServiceAccountOK) IsServerError

func (o *ReadServiceAccountOK) IsServerError() bool

IsServerError returns true when this read service account o k response has a 5xx status code

func (*ReadServiceAccountOK) IsSuccess

func (o *ReadServiceAccountOK) IsSuccess() bool

IsSuccess returns true when this read service account o k response has a 2xx status code

func (*ReadServiceAccountOK) String

func (o *ReadServiceAccountOK) String() string

type ReadServiceAccountParams

type ReadServiceAccountParams struct {

	// Slug.
	Slug string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ReadServiceAccountParams contains all the parameters to send to the API endpoint

for the read service account operation.

Typically these are written to a http.Request.

func NewReadServiceAccountParams

func NewReadServiceAccountParams() *ReadServiceAccountParams

NewReadServiceAccountParams creates a new ReadServiceAccountParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewReadServiceAccountParamsWithContext

func NewReadServiceAccountParamsWithContext(ctx context.Context) *ReadServiceAccountParams

NewReadServiceAccountParamsWithContext creates a new ReadServiceAccountParams object with the ability to set a context for a request.

func NewReadServiceAccountParamsWithHTTPClient

func NewReadServiceAccountParamsWithHTTPClient(client *http.Client) *ReadServiceAccountParams

NewReadServiceAccountParamsWithHTTPClient creates a new ReadServiceAccountParams object with the ability to set a custom HTTPClient for a request.

func NewReadServiceAccountParamsWithTimeout

func NewReadServiceAccountParamsWithTimeout(timeout time.Duration) *ReadServiceAccountParams

NewReadServiceAccountParamsWithTimeout creates a new ReadServiceAccountParams object with the ability to set a timeout on a request.

func (*ReadServiceAccountParams) SetContext

func (o *ReadServiceAccountParams) SetContext(ctx context.Context)

SetContext adds the context to the read service account params

func (*ReadServiceAccountParams) SetDefaults

func (o *ReadServiceAccountParams) SetDefaults()

SetDefaults hydrates default values in the read service account params (not the query body).

All values with no default are reset to their zero value.

func (*ReadServiceAccountParams) SetHTTPClient

func (o *ReadServiceAccountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the read service account params

func (*ReadServiceAccountParams) SetSlug

func (o *ReadServiceAccountParams) SetSlug(slug string)

SetSlug adds the slug to the read service account params

func (*ReadServiceAccountParams) SetTimeout

func (o *ReadServiceAccountParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the read service account params

func (*ReadServiceAccountParams) WithContext

WithContext adds the context to the read service account params

func (*ReadServiceAccountParams) WithDefaults

WithDefaults hydrates default values in the read service account params (not the query body).

All values with no default are reset to their zero value.

func (*ReadServiceAccountParams) WithHTTPClient

func (o *ReadServiceAccountParams) WithHTTPClient(client *http.Client) *ReadServiceAccountParams

WithHTTPClient adds the HTTPClient to the read service account params

func (*ReadServiceAccountParams) WithSlug

WithSlug adds the slug to the read service account params

func (*ReadServiceAccountParams) WithTimeout

WithTimeout adds the timeout to the read service account params

func (*ReadServiceAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadServiceAccountReader

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

ReadServiceAccountReader is a Reader for the ReadServiceAccount structure.

func (*ReadServiceAccountReader) ReadResponse

func (o *ReadServiceAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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