Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateServiceAccount(params *CreateServiceAccountParams, opts ...ClientOption) (*CreateServiceAccountOK, error)
- func (a *Client) DeleteServiceAccount(params *DeleteServiceAccountParams, opts ...ClientOption) (*DeleteServiceAccountOK, error)
- func (a *Client) ListServiceAccounts(params *ListServiceAccountsParams, opts ...ClientOption) (*ListServiceAccountsOK, error)
- func (a *Client) ReadServiceAccount(params *ReadServiceAccountParams, opts ...ClientOption) (*ReadServiceAccountOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateServiceAccountBadRequest
- func (o *CreateServiceAccountBadRequest) Code() int
- func (o *CreateServiceAccountBadRequest) Error() string
- func (o *CreateServiceAccountBadRequest) GetPayload() *models.APIError
- func (o *CreateServiceAccountBadRequest) IsClientError() bool
- func (o *CreateServiceAccountBadRequest) IsCode(code int) bool
- func (o *CreateServiceAccountBadRequest) IsRedirect() bool
- func (o *CreateServiceAccountBadRequest) IsServerError() bool
- func (o *CreateServiceAccountBadRequest) IsSuccess() bool
- func (o *CreateServiceAccountBadRequest) String() string
- type CreateServiceAccountConflict
- func (o *CreateServiceAccountConflict) Code() int
- func (o *CreateServiceAccountConflict) Error() string
- func (o *CreateServiceAccountConflict) GetPayload() *models.APIError
- func (o *CreateServiceAccountConflict) IsClientError() bool
- func (o *CreateServiceAccountConflict) IsCode(code int) bool
- func (o *CreateServiceAccountConflict) IsRedirect() bool
- func (o *CreateServiceAccountConflict) IsServerError() bool
- func (o *CreateServiceAccountConflict) IsSuccess() bool
- func (o *CreateServiceAccountConflict) String() string
- type CreateServiceAccountDefault
- func (o *CreateServiceAccountDefault) Code() int
- func (o *CreateServiceAccountDefault) Error() string
- func (o *CreateServiceAccountDefault) GetPayload() models.GenericError
- func (o *CreateServiceAccountDefault) IsClientError() bool
- func (o *CreateServiceAccountDefault) IsCode(code int) bool
- func (o *CreateServiceAccountDefault) IsRedirect() bool
- func (o *CreateServiceAccountDefault) IsServerError() bool
- func (o *CreateServiceAccountDefault) IsSuccess() bool
- func (o *CreateServiceAccountDefault) String() string
- type CreateServiceAccountInternalServerError
- func (o *CreateServiceAccountInternalServerError) Code() int
- func (o *CreateServiceAccountInternalServerError) Error() string
- func (o *CreateServiceAccountInternalServerError) GetPayload() *models.APIError
- func (o *CreateServiceAccountInternalServerError) IsClientError() bool
- func (o *CreateServiceAccountInternalServerError) IsCode(code int) bool
- func (o *CreateServiceAccountInternalServerError) IsRedirect() bool
- func (o *CreateServiceAccountInternalServerError) IsServerError() bool
- func (o *CreateServiceAccountInternalServerError) IsSuccess() bool
- func (o *CreateServiceAccountInternalServerError) String() string
- type CreateServiceAccountOK
- func (o *CreateServiceAccountOK) Code() int
- func (o *CreateServiceAccountOK) Error() string
- func (o *CreateServiceAccountOK) GetPayload() *models.Configv1CreateServiceAccountResponse
- func (o *CreateServiceAccountOK) IsClientError() bool
- func (o *CreateServiceAccountOK) IsCode(code int) bool
- func (o *CreateServiceAccountOK) IsRedirect() bool
- func (o *CreateServiceAccountOK) IsServerError() bool
- func (o *CreateServiceAccountOK) IsSuccess() bool
- func (o *CreateServiceAccountOK) String() string
- type CreateServiceAccountParams
- func NewCreateServiceAccountParams() *CreateServiceAccountParams
- func NewCreateServiceAccountParamsWithContext(ctx context.Context) *CreateServiceAccountParams
- func NewCreateServiceAccountParamsWithHTTPClient(client *http.Client) *CreateServiceAccountParams
- func NewCreateServiceAccountParamsWithTimeout(timeout time.Duration) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) SetBody(body *models.Configv1CreateServiceAccountRequest)
- func (o *CreateServiceAccountParams) SetContext(ctx context.Context)
- func (o *CreateServiceAccountParams) SetDefaults()
- func (o *CreateServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *CreateServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *CreateServiceAccountParams) WithBody(body *models.Configv1CreateServiceAccountRequest) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithContext(ctx context.Context) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithDefaults() *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithHTTPClient(client *http.Client) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WithTimeout(timeout time.Duration) *CreateServiceAccountParams
- func (o *CreateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateServiceAccountReader
- type DeleteServiceAccountBadRequest
- func (o *DeleteServiceAccountBadRequest) Code() int
- func (o *DeleteServiceAccountBadRequest) Error() string
- func (o *DeleteServiceAccountBadRequest) GetPayload() *models.APIError
- func (o *DeleteServiceAccountBadRequest) IsClientError() bool
- func (o *DeleteServiceAccountBadRequest) IsCode(code int) bool
- func (o *DeleteServiceAccountBadRequest) IsRedirect() bool
- func (o *DeleteServiceAccountBadRequest) IsServerError() bool
- func (o *DeleteServiceAccountBadRequest) IsSuccess() bool
- func (o *DeleteServiceAccountBadRequest) String() string
- type DeleteServiceAccountDefault
- func (o *DeleteServiceAccountDefault) Code() int
- func (o *DeleteServiceAccountDefault) Error() string
- func (o *DeleteServiceAccountDefault) GetPayload() models.GenericError
- func (o *DeleteServiceAccountDefault) IsClientError() bool
- func (o *DeleteServiceAccountDefault) IsCode(code int) bool
- func (o *DeleteServiceAccountDefault) IsRedirect() bool
- func (o *DeleteServiceAccountDefault) IsServerError() bool
- func (o *DeleteServiceAccountDefault) IsSuccess() bool
- func (o *DeleteServiceAccountDefault) String() string
- type DeleteServiceAccountInternalServerError
- func (o *DeleteServiceAccountInternalServerError) Code() int
- func (o *DeleteServiceAccountInternalServerError) Error() string
- func (o *DeleteServiceAccountInternalServerError) GetPayload() *models.APIError
- func (o *DeleteServiceAccountInternalServerError) IsClientError() bool
- func (o *DeleteServiceAccountInternalServerError) IsCode(code int) bool
- func (o *DeleteServiceAccountInternalServerError) IsRedirect() bool
- func (o *DeleteServiceAccountInternalServerError) IsServerError() bool
- func (o *DeleteServiceAccountInternalServerError) IsSuccess() bool
- func (o *DeleteServiceAccountInternalServerError) String() string
- type DeleteServiceAccountNotFound
- func (o *DeleteServiceAccountNotFound) Code() int
- func (o *DeleteServiceAccountNotFound) Error() string
- func (o *DeleteServiceAccountNotFound) GetPayload() *models.APIError
- func (o *DeleteServiceAccountNotFound) IsClientError() bool
- func (o *DeleteServiceAccountNotFound) IsCode(code int) bool
- func (o *DeleteServiceAccountNotFound) IsRedirect() bool
- func (o *DeleteServiceAccountNotFound) IsServerError() bool
- func (o *DeleteServiceAccountNotFound) IsSuccess() bool
- func (o *DeleteServiceAccountNotFound) String() string
- type DeleteServiceAccountOK
- func (o *DeleteServiceAccountOK) Code() int
- func (o *DeleteServiceAccountOK) Error() string
- func (o *DeleteServiceAccountOK) GetPayload() models.Configv1DeleteServiceAccountResponse
- func (o *DeleteServiceAccountOK) IsClientError() bool
- func (o *DeleteServiceAccountOK) IsCode(code int) bool
- func (o *DeleteServiceAccountOK) IsRedirect() bool
- func (o *DeleteServiceAccountOK) IsServerError() bool
- func (o *DeleteServiceAccountOK) IsSuccess() bool
- func (o *DeleteServiceAccountOK) String() string
- type DeleteServiceAccountParams
- func NewDeleteServiceAccountParams() *DeleteServiceAccountParams
- func NewDeleteServiceAccountParamsWithContext(ctx context.Context) *DeleteServiceAccountParams
- func NewDeleteServiceAccountParamsWithHTTPClient(client *http.Client) *DeleteServiceAccountParams
- func NewDeleteServiceAccountParamsWithTimeout(timeout time.Duration) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) SetContext(ctx context.Context)
- func (o *DeleteServiceAccountParams) SetDefaults()
- func (o *DeleteServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *DeleteServiceAccountParams) SetSlug(slug string)
- func (o *DeleteServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *DeleteServiceAccountParams) WithContext(ctx context.Context) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithDefaults() *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithHTTPClient(client *http.Client) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithSlug(slug string) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithTimeout(timeout time.Duration) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServiceAccountReader
- type ListServiceAccountsDefault
- func (o *ListServiceAccountsDefault) Code() int
- func (o *ListServiceAccountsDefault) Error() string
- func (o *ListServiceAccountsDefault) GetPayload() models.GenericError
- func (o *ListServiceAccountsDefault) IsClientError() bool
- func (o *ListServiceAccountsDefault) IsCode(code int) bool
- func (o *ListServiceAccountsDefault) IsRedirect() bool
- func (o *ListServiceAccountsDefault) IsServerError() bool
- func (o *ListServiceAccountsDefault) IsSuccess() bool
- func (o *ListServiceAccountsDefault) String() string
- type ListServiceAccountsInternalServerError
- func (o *ListServiceAccountsInternalServerError) Code() int
- func (o *ListServiceAccountsInternalServerError) Error() string
- func (o *ListServiceAccountsInternalServerError) GetPayload() *models.APIError
- func (o *ListServiceAccountsInternalServerError) IsClientError() bool
- func (o *ListServiceAccountsInternalServerError) IsCode(code int) bool
- func (o *ListServiceAccountsInternalServerError) IsRedirect() bool
- func (o *ListServiceAccountsInternalServerError) IsServerError() bool
- func (o *ListServiceAccountsInternalServerError) IsSuccess() bool
- func (o *ListServiceAccountsInternalServerError) String() string
- type ListServiceAccountsOK
- func (o *ListServiceAccountsOK) Code() int
- func (o *ListServiceAccountsOK) Error() string
- func (o *ListServiceAccountsOK) GetPayload() *models.Configv1ListServiceAccountsResponse
- func (o *ListServiceAccountsOK) IsClientError() bool
- func (o *ListServiceAccountsOK) IsCode(code int) bool
- func (o *ListServiceAccountsOK) IsRedirect() bool
- func (o *ListServiceAccountsOK) IsServerError() bool
- func (o *ListServiceAccountsOK) IsSuccess() bool
- func (o *ListServiceAccountsOK) String() string
- type ListServiceAccountsParams
- func NewListServiceAccountsParams() *ListServiceAccountsParams
- func NewListServiceAccountsParamsWithContext(ctx context.Context) *ListServiceAccountsParams
- func NewListServiceAccountsParamsWithHTTPClient(client *http.Client) *ListServiceAccountsParams
- func NewListServiceAccountsParamsWithTimeout(timeout time.Duration) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) SetContext(ctx context.Context)
- func (o *ListServiceAccountsParams) SetDefaults()
- func (o *ListServiceAccountsParams) SetHTTPClient(client *http.Client)
- func (o *ListServiceAccountsParams) SetNames(names []string)
- func (o *ListServiceAccountsParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListServiceAccountsParams) SetPageToken(pageToken *string)
- func (o *ListServiceAccountsParams) SetSlugs(slugs []string)
- func (o *ListServiceAccountsParams) SetTimeout(timeout time.Duration)
- func (o *ListServiceAccountsParams) WithContext(ctx context.Context) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithDefaults() *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithHTTPClient(client *http.Client) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithNames(names []string) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithPageMaxSize(pageMaxSize *int64) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithPageToken(pageToken *string) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithSlugs(slugs []string) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithTimeout(timeout time.Duration) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListServiceAccountsReader
- type ReadServiceAccountDefault
- func (o *ReadServiceAccountDefault) Code() int
- func (o *ReadServiceAccountDefault) Error() string
- func (o *ReadServiceAccountDefault) GetPayload() models.GenericError
- func (o *ReadServiceAccountDefault) IsClientError() bool
- func (o *ReadServiceAccountDefault) IsCode(code int) bool
- func (o *ReadServiceAccountDefault) IsRedirect() bool
- func (o *ReadServiceAccountDefault) IsServerError() bool
- func (o *ReadServiceAccountDefault) IsSuccess() bool
- func (o *ReadServiceAccountDefault) String() string
- type ReadServiceAccountInternalServerError
- func (o *ReadServiceAccountInternalServerError) Code() int
- func (o *ReadServiceAccountInternalServerError) Error() string
- func (o *ReadServiceAccountInternalServerError) GetPayload() *models.APIError
- func (o *ReadServiceAccountInternalServerError) IsClientError() bool
- func (o *ReadServiceAccountInternalServerError) IsCode(code int) bool
- func (o *ReadServiceAccountInternalServerError) IsRedirect() bool
- func (o *ReadServiceAccountInternalServerError) IsServerError() bool
- func (o *ReadServiceAccountInternalServerError) IsSuccess() bool
- func (o *ReadServiceAccountInternalServerError) String() string
- type ReadServiceAccountNotFound
- func (o *ReadServiceAccountNotFound) Code() int
- func (o *ReadServiceAccountNotFound) Error() string
- func (o *ReadServiceAccountNotFound) GetPayload() *models.APIError
- func (o *ReadServiceAccountNotFound) IsClientError() bool
- func (o *ReadServiceAccountNotFound) IsCode(code int) bool
- func (o *ReadServiceAccountNotFound) IsRedirect() bool
- func (o *ReadServiceAccountNotFound) IsServerError() bool
- func (o *ReadServiceAccountNotFound) IsSuccess() bool
- func (o *ReadServiceAccountNotFound) String() string
- type ReadServiceAccountOK
- func (o *ReadServiceAccountOK) Code() int
- func (o *ReadServiceAccountOK) Error() string
- func (o *ReadServiceAccountOK) GetPayload() *models.Configv1ReadServiceAccountResponse
- func (o *ReadServiceAccountOK) IsClientError() bool
- func (o *ReadServiceAccountOK) IsCode(code int) bool
- func (o *ReadServiceAccountOK) IsRedirect() bool
- func (o *ReadServiceAccountOK) IsServerError() bool
- func (o *ReadServiceAccountOK) IsSuccess() bool
- func (o *ReadServiceAccountOK) String() string
- type ReadServiceAccountParams
- func NewReadServiceAccountParams() *ReadServiceAccountParams
- func NewReadServiceAccountParamsWithContext(ctx context.Context) *ReadServiceAccountParams
- func NewReadServiceAccountParamsWithHTTPClient(client *http.Client) *ReadServiceAccountParams
- func NewReadServiceAccountParamsWithTimeout(timeout time.Duration) *ReadServiceAccountParams
- func (o *ReadServiceAccountParams) SetContext(ctx context.Context)
- func (o *ReadServiceAccountParams) SetDefaults()
- func (o *ReadServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *ReadServiceAccountParams) SetSlug(slug string)
- func (o *ReadServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *ReadServiceAccountParams) WithContext(ctx context.Context) *ReadServiceAccountParams
- func (o *ReadServiceAccountParams) WithDefaults() *ReadServiceAccountParams
- func (o *ReadServiceAccountParams) WithHTTPClient(client *http.Client) *ReadServiceAccountParams
- func (o *ReadServiceAccountParams) WithSlug(slug string) *ReadServiceAccountParams
- func (o *ReadServiceAccountParams) WithTimeout(timeout time.Duration) *ReadServiceAccountParams
- func (o *ReadServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadServiceAccountReader
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 ¶
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 ¶
func (o *CreateServiceAccountBadRequest) Code() int
Code gets the status code for the create service account bad request response
func (*CreateServiceAccountBadRequest) Error ¶
func (o *CreateServiceAccountBadRequest) Error() string
func (*CreateServiceAccountBadRequest) GetPayload ¶
func (o *CreateServiceAccountBadRequest) GetPayload() *models.APIError
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 ¶
func (o *CreateServiceAccountBadRequest) String() string
type CreateServiceAccountConflict ¶
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 ¶
func (o *CreateServiceAccountConflict) Code() int
Code gets the status code for the create service account conflict response
func (*CreateServiceAccountConflict) Error ¶
func (o *CreateServiceAccountConflict) Error() string
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 ¶
func (o *CreateServiceAccountConflict) String() 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 (o *CreateServiceAccountDefault) Error() string
func (*CreateServiceAccountDefault) GetPayload ¶
func (o *CreateServiceAccountDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *CreateServiceAccountInternalServerError) Code() int
Code gets the status code for the create service account internal server error response
func (*CreateServiceAccountInternalServerError) Error ¶
func (o *CreateServiceAccountInternalServerError) Error() string
func (*CreateServiceAccountInternalServerError) GetPayload ¶
func (o *CreateServiceAccountInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *CreateServiceAccountInternalServerError) IsCode(code int) bool
IsCode returns true when this create service account internal server error response a status code equal to that given
func (*CreateServiceAccountInternalServerError) IsRedirect ¶
func (o *CreateServiceAccountInternalServerError) IsRedirect() bool
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 ¶
func (o *CreateServiceAccountInternalServerError) IsSuccess() bool
IsSuccess returns true when this create service account internal server error response has a 2xx status code
func (*CreateServiceAccountInternalServerError) String ¶
func (o *CreateServiceAccountInternalServerError) String() 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 (o *CreateServiceAccountOK) GetPayload() *models.Configv1CreateServiceAccountResponse
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 ¶
func (o *CreateServiceAccountParams) SetBody(body *models.Configv1CreateServiceAccountRequest)
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 ¶
func (o *CreateServiceAccountParams) WithBody(body *models.Configv1CreateServiceAccountRequest) *CreateServiceAccountParams
WithBody adds the body to the create service account params
func (*CreateServiceAccountParams) WithContext ¶
func (o *CreateServiceAccountParams) WithContext(ctx context.Context) *CreateServiceAccountParams
WithContext adds the context to the create service account params
func (*CreateServiceAccountParams) WithDefaults ¶
func (o *CreateServiceAccountParams) WithDefaults() *CreateServiceAccountParams
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 ¶
func (o *CreateServiceAccountParams) WithHTTPClient(client *http.Client) *CreateServiceAccountParams
WithHTTPClient adds the HTTPClient to the create service account params
func (*CreateServiceAccountParams) WithTimeout ¶
func (o *CreateServiceAccountParams) WithTimeout(timeout time.Duration) *CreateServiceAccountParams
WithTimeout adds the timeout to the create service account params
func (*CreateServiceAccountParams) WriteToRequest ¶
func (o *CreateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *DeleteServiceAccountBadRequest) Code() int
Code gets the status code for the delete service account bad request response
func (*DeleteServiceAccountBadRequest) Error ¶
func (o *DeleteServiceAccountBadRequest) Error() string
func (*DeleteServiceAccountBadRequest) GetPayload ¶
func (o *DeleteServiceAccountBadRequest) GetPayload() *models.APIError
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 ¶
func (o *DeleteServiceAccountBadRequest) String() 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 (o *DeleteServiceAccountDefault) Error() string
func (*DeleteServiceAccountDefault) GetPayload ¶
func (o *DeleteServiceAccountDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *DeleteServiceAccountInternalServerError) Code() int
Code gets the status code for the delete service account internal server error response
func (*DeleteServiceAccountInternalServerError) Error ¶
func (o *DeleteServiceAccountInternalServerError) Error() string
func (*DeleteServiceAccountInternalServerError) GetPayload ¶
func (o *DeleteServiceAccountInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *DeleteServiceAccountInternalServerError) IsCode(code int) bool
IsCode returns true when this delete service account internal server error response a status code equal to that given
func (*DeleteServiceAccountInternalServerError) IsRedirect ¶
func (o *DeleteServiceAccountInternalServerError) IsRedirect() bool
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 ¶
func (o *DeleteServiceAccountInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete service account internal server error response has a 2xx status code
func (*DeleteServiceAccountInternalServerError) String ¶
func (o *DeleteServiceAccountInternalServerError) String() string
type DeleteServiceAccountNotFound ¶
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 ¶
func (o *DeleteServiceAccountNotFound) Code() int
Code gets the status code for the delete service account not found response
func (*DeleteServiceAccountNotFound) Error ¶
func (o *DeleteServiceAccountNotFound) Error() string
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 ¶
func (o *DeleteServiceAccountNotFound) String() 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 (o *DeleteServiceAccountOK) GetPayload() models.Configv1DeleteServiceAccountResponse
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 ¶
func (o *DeleteServiceAccountParams) WithContext(ctx context.Context) *DeleteServiceAccountParams
WithContext adds the context to the delete service account params
func (*DeleteServiceAccountParams) WithDefaults ¶
func (o *DeleteServiceAccountParams) WithDefaults() *DeleteServiceAccountParams
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 ¶
func (o *DeleteServiceAccountParams) WithHTTPClient(client *http.Client) *DeleteServiceAccountParams
WithHTTPClient adds the HTTPClient to the delete service account params
func (*DeleteServiceAccountParams) WithSlug ¶
func (o *DeleteServiceAccountParams) WithSlug(slug string) *DeleteServiceAccountParams
WithSlug adds the slug to the delete service account params
func (*DeleteServiceAccountParams) WithTimeout ¶
func (o *DeleteServiceAccountParams) WithTimeout(timeout time.Duration) *DeleteServiceAccountParams
WithTimeout adds the timeout to the delete service account params
func (*DeleteServiceAccountParams) WriteToRequest ¶
func (o *DeleteServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ListServiceAccountsDefault) Error() string
func (*ListServiceAccountsDefault) GetPayload ¶
func (o *ListServiceAccountsDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *ListServiceAccountsInternalServerError) Code() int
Code gets the status code for the list service accounts internal server error response
func (*ListServiceAccountsInternalServerError) Error ¶
func (o *ListServiceAccountsInternalServerError) Error() string
func (*ListServiceAccountsInternalServerError) GetPayload ¶
func (o *ListServiceAccountsInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ListServiceAccountsInternalServerError) IsCode(code int) bool
IsCode returns true when this list service accounts internal server error response a status code equal to that given
func (*ListServiceAccountsInternalServerError) IsRedirect ¶
func (o *ListServiceAccountsInternalServerError) IsRedirect() bool
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 ¶
func (o *ListServiceAccountsInternalServerError) IsSuccess() bool
IsSuccess returns true when this list service accounts internal server error response has a 2xx status code
func (*ListServiceAccountsInternalServerError) String ¶
func (o *ListServiceAccountsInternalServerError) String() 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 (o *ListServiceAccountsOK) GetPayload() *models.Configv1ListServiceAccountsResponse
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 ¶
func (o *ListServiceAccountsParams) WithContext(ctx context.Context) *ListServiceAccountsParams
WithContext adds the context to the list service accounts params
func (*ListServiceAccountsParams) WithDefaults ¶
func (o *ListServiceAccountsParams) WithDefaults() *ListServiceAccountsParams
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 ¶
func (o *ListServiceAccountsParams) WithNames(names []string) *ListServiceAccountsParams
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 ¶
func (o *ListServiceAccountsParams) WithSlugs(slugs []string) *ListServiceAccountsParams
WithSlugs adds the slugs to the list service accounts params
func (*ListServiceAccountsParams) WithTimeout ¶
func (o *ListServiceAccountsParams) WithTimeout(timeout time.Duration) *ListServiceAccountsParams
WithTimeout adds the timeout to the list service accounts params
func (*ListServiceAccountsParams) WriteToRequest ¶
func (o *ListServiceAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ReadServiceAccountDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *ReadServiceAccountInternalServerError) Code() int
Code gets the status code for the read service account internal server error response
func (*ReadServiceAccountInternalServerError) Error ¶
func (o *ReadServiceAccountInternalServerError) Error() string
func (*ReadServiceAccountInternalServerError) GetPayload ¶
func (o *ReadServiceAccountInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ReadServiceAccountInternalServerError) IsCode(code int) bool
IsCode returns true when this read service account internal server error response a status code equal to that given
func (*ReadServiceAccountInternalServerError) IsRedirect ¶
func (o *ReadServiceAccountInternalServerError) IsRedirect() bool
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 ¶
func (o *ReadServiceAccountInternalServerError) IsSuccess() bool
IsSuccess returns true when this read service account internal server error response has a 2xx status code
func (*ReadServiceAccountInternalServerError) String ¶
func (o *ReadServiceAccountInternalServerError) String() string
type ReadServiceAccountNotFound ¶
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 (o *ReadServiceAccountNotFound) Error() string
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 (o *ReadServiceAccountOK) GetPayload() *models.Configv1ReadServiceAccountResponse
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 ¶
func (o *ReadServiceAccountParams) WithContext(ctx context.Context) *ReadServiceAccountParams
WithContext adds the context to the read service account params
func (*ReadServiceAccountParams) WithDefaults ¶
func (o *ReadServiceAccountParams) WithDefaults() *ReadServiceAccountParams
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 ¶
func (o *ReadServiceAccountParams) WithSlug(slug string) *ReadServiceAccountParams
WithSlug adds the slug to the read service account params
func (*ReadServiceAccountParams) WithTimeout ¶
func (o *ReadServiceAccountParams) WithTimeout(timeout time.Duration) *ReadServiceAccountParams
WithTimeout adds the timeout to the read service account params
func (*ReadServiceAccountParams) WriteToRequest ¶
func (o *ReadServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_service_account_parameters.go
- create_service_account_responses.go
- delete_service_account_parameters.go
- delete_service_account_responses.go
- list_service_accounts_parameters.go
- list_service_accounts_responses.go
- read_service_account_parameters.go
- read_service_account_responses.go
- service_account_client.go