Documentation ¶
Index ¶
- type AddServiceAccountToProjectCreated
- type AddServiceAccountToProjectDefault
- type AddServiceAccountToProjectForbidden
- type AddServiceAccountToProjectParams
- func NewAddServiceAccountToProjectParams() *AddServiceAccountToProjectParams
- func NewAddServiceAccountToProjectParamsWithContext(ctx context.Context) *AddServiceAccountToProjectParams
- func NewAddServiceAccountToProjectParamsWithHTTPClient(client *http.Client) *AddServiceAccountToProjectParams
- func NewAddServiceAccountToProjectParamsWithTimeout(timeout time.Duration) *AddServiceAccountToProjectParams
- func (o *AddServiceAccountToProjectParams) SetBody(body *models.ServiceAccount)
- func (o *AddServiceAccountToProjectParams) SetContext(ctx context.Context)
- func (o *AddServiceAccountToProjectParams) SetDefaults()
- func (o *AddServiceAccountToProjectParams) SetHTTPClient(client *http.Client)
- func (o *AddServiceAccountToProjectParams) SetProjectID(projectID string)
- func (o *AddServiceAccountToProjectParams) SetTimeout(timeout time.Duration)
- func (o *AddServiceAccountToProjectParams) WithBody(body *models.ServiceAccount) *AddServiceAccountToProjectParams
- func (o *AddServiceAccountToProjectParams) WithContext(ctx context.Context) *AddServiceAccountToProjectParams
- func (o *AddServiceAccountToProjectParams) WithDefaults() *AddServiceAccountToProjectParams
- func (o *AddServiceAccountToProjectParams) WithHTTPClient(client *http.Client) *AddServiceAccountToProjectParams
- func (o *AddServiceAccountToProjectParams) WithProjectID(projectID string) *AddServiceAccountToProjectParams
- func (o *AddServiceAccountToProjectParams) WithTimeout(timeout time.Duration) *AddServiceAccountToProjectParams
- func (o *AddServiceAccountToProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddServiceAccountToProjectReader
- type AddServiceAccountToProjectUnauthorized
- type Client
- func (a *Client) AddServiceAccountToProject(params *AddServiceAccountToProjectParams, ...) (*AddServiceAccountToProjectCreated, error)
- func (a *Client) DeleteServiceAccount(params *DeleteServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteServiceAccountOK, error)
- func (a *Client) ListServiceAccounts(params *ListServiceAccountsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListServiceAccountsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateServiceAccount(params *UpdateServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateServiceAccountOK, error)
- type ClientOption
- type ClientService
- type DeleteServiceAccountDefault
- type DeleteServiceAccountForbidden
- type DeleteServiceAccountOK
- 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) SetProjectID(projectID string)
- func (o *DeleteServiceAccountParams) SetServiceAccountID(serviceaccountID 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) WithProjectID(projectID string) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithServiceAccountID(serviceaccountID string) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WithTimeout(timeout time.Duration) *DeleteServiceAccountParams
- func (o *DeleteServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServiceAccountReader
- type DeleteServiceAccountUnauthorized
- type ListServiceAccountsDefault
- type ListServiceAccountsForbidden
- type ListServiceAccountsOK
- 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) SetProjectID(projectID 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) WithProjectID(projectID string) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WithTimeout(timeout time.Duration) *ListServiceAccountsParams
- func (o *ListServiceAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListServiceAccountsReader
- type ListServiceAccountsUnauthorized
- type UpdateServiceAccountDefault
- type UpdateServiceAccountForbidden
- type UpdateServiceAccountOK
- type UpdateServiceAccountParams
- func NewUpdateServiceAccountParams() *UpdateServiceAccountParams
- func NewUpdateServiceAccountParamsWithContext(ctx context.Context) *UpdateServiceAccountParams
- func NewUpdateServiceAccountParamsWithHTTPClient(client *http.Client) *UpdateServiceAccountParams
- func NewUpdateServiceAccountParamsWithTimeout(timeout time.Duration) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) SetBody(body *models.ServiceAccount)
- func (o *UpdateServiceAccountParams) SetContext(ctx context.Context)
- func (o *UpdateServiceAccountParams) SetDefaults()
- func (o *UpdateServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *UpdateServiceAccountParams) SetProjectID(projectID string)
- func (o *UpdateServiceAccountParams) SetServiceAccountID(serviceaccountID string)
- func (o *UpdateServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *UpdateServiceAccountParams) WithBody(body *models.ServiceAccount) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithContext(ctx context.Context) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithDefaults() *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithHTTPClient(client *http.Client) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithProjectID(projectID string) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithServiceAccountID(serviceaccountID string) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WithTimeout(timeout time.Duration) *UpdateServiceAccountParams
- func (o *UpdateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateServiceAccountReader
- type UpdateServiceAccountUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddServiceAccountToProjectCreated ¶
type AddServiceAccountToProjectCreated struct {
Payload *models.ServiceAccount
}
AddServiceAccountToProjectCreated describes a response with status code 201, with default header values.
ServiceAccount
func NewAddServiceAccountToProjectCreated ¶
func NewAddServiceAccountToProjectCreated() *AddServiceAccountToProjectCreated
NewAddServiceAccountToProjectCreated creates a AddServiceAccountToProjectCreated with default headers values
func (*AddServiceAccountToProjectCreated) Error ¶
func (o *AddServiceAccountToProjectCreated) Error() string
func (*AddServiceAccountToProjectCreated) GetPayload ¶
func (o *AddServiceAccountToProjectCreated) GetPayload() *models.ServiceAccount
type AddServiceAccountToProjectDefault ¶
type AddServiceAccountToProjectDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
AddServiceAccountToProjectDefault describes a response with status code -1, with default header values.
errorResponse
func NewAddServiceAccountToProjectDefault ¶
func NewAddServiceAccountToProjectDefault(code int) *AddServiceAccountToProjectDefault
NewAddServiceAccountToProjectDefault creates a AddServiceAccountToProjectDefault with default headers values
func (*AddServiceAccountToProjectDefault) Code ¶
func (o *AddServiceAccountToProjectDefault) Code() int
Code gets the status code for the add service account to project default response
func (*AddServiceAccountToProjectDefault) Error ¶
func (o *AddServiceAccountToProjectDefault) Error() string
func (*AddServiceAccountToProjectDefault) GetPayload ¶
func (o *AddServiceAccountToProjectDefault) GetPayload() *models.ErrorResponse
type AddServiceAccountToProjectForbidden ¶
type AddServiceAccountToProjectForbidden struct { }
AddServiceAccountToProjectForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewAddServiceAccountToProjectForbidden ¶
func NewAddServiceAccountToProjectForbidden() *AddServiceAccountToProjectForbidden
NewAddServiceAccountToProjectForbidden creates a AddServiceAccountToProjectForbidden with default headers values
func (*AddServiceAccountToProjectForbidden) Error ¶
func (o *AddServiceAccountToProjectForbidden) Error() string
type AddServiceAccountToProjectParams ¶
type AddServiceAccountToProjectParams struct { // Body. Body *models.ServiceAccount // ProjectID. ProjectID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddServiceAccountToProjectParams contains all the parameters to send to the API endpoint
for the add service account to project operation. Typically these are written to a http.Request.
func NewAddServiceAccountToProjectParams ¶
func NewAddServiceAccountToProjectParams() *AddServiceAccountToProjectParams
NewAddServiceAccountToProjectParams creates a new AddServiceAccountToProjectParams 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 NewAddServiceAccountToProjectParamsWithContext ¶
func NewAddServiceAccountToProjectParamsWithContext(ctx context.Context) *AddServiceAccountToProjectParams
NewAddServiceAccountToProjectParamsWithContext creates a new AddServiceAccountToProjectParams object with the ability to set a context for a request.
func NewAddServiceAccountToProjectParamsWithHTTPClient ¶
func NewAddServiceAccountToProjectParamsWithHTTPClient(client *http.Client) *AddServiceAccountToProjectParams
NewAddServiceAccountToProjectParamsWithHTTPClient creates a new AddServiceAccountToProjectParams object with the ability to set a custom HTTPClient for a request.
func NewAddServiceAccountToProjectParamsWithTimeout ¶
func NewAddServiceAccountToProjectParamsWithTimeout(timeout time.Duration) *AddServiceAccountToProjectParams
NewAddServiceAccountToProjectParamsWithTimeout creates a new AddServiceAccountToProjectParams object with the ability to set a timeout on a request.
func (*AddServiceAccountToProjectParams) SetBody ¶
func (o *AddServiceAccountToProjectParams) SetBody(body *models.ServiceAccount)
SetBody adds the body to the add service account to project params
func (*AddServiceAccountToProjectParams) SetContext ¶
func (o *AddServiceAccountToProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the add service account to project params
func (*AddServiceAccountToProjectParams) SetDefaults ¶ added in v2.18.0
func (o *AddServiceAccountToProjectParams) SetDefaults()
SetDefaults hydrates default values in the add service account to project params (not the query body).
All values with no default are reset to their zero value.
func (*AddServiceAccountToProjectParams) SetHTTPClient ¶
func (o *AddServiceAccountToProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add service account to project params
func (*AddServiceAccountToProjectParams) SetProjectID ¶
func (o *AddServiceAccountToProjectParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the add service account to project params
func (*AddServiceAccountToProjectParams) SetTimeout ¶
func (o *AddServiceAccountToProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add service account to project params
func (*AddServiceAccountToProjectParams) WithBody ¶
func (o *AddServiceAccountToProjectParams) WithBody(body *models.ServiceAccount) *AddServiceAccountToProjectParams
WithBody adds the body to the add service account to project params
func (*AddServiceAccountToProjectParams) WithContext ¶
func (o *AddServiceAccountToProjectParams) WithContext(ctx context.Context) *AddServiceAccountToProjectParams
WithContext adds the context to the add service account to project params
func (*AddServiceAccountToProjectParams) WithDefaults ¶ added in v2.18.0
func (o *AddServiceAccountToProjectParams) WithDefaults() *AddServiceAccountToProjectParams
WithDefaults hydrates default values in the add service account to project params (not the query body).
All values with no default are reset to their zero value.
func (*AddServiceAccountToProjectParams) WithHTTPClient ¶
func (o *AddServiceAccountToProjectParams) WithHTTPClient(client *http.Client) *AddServiceAccountToProjectParams
WithHTTPClient adds the HTTPClient to the add service account to project params
func (*AddServiceAccountToProjectParams) WithProjectID ¶
func (o *AddServiceAccountToProjectParams) WithProjectID(projectID string) *AddServiceAccountToProjectParams
WithProjectID adds the projectID to the add service account to project params
func (*AddServiceAccountToProjectParams) WithTimeout ¶
func (o *AddServiceAccountToProjectParams) WithTimeout(timeout time.Duration) *AddServiceAccountToProjectParams
WithTimeout adds the timeout to the add service account to project params
func (*AddServiceAccountToProjectParams) WriteToRequest ¶
func (o *AddServiceAccountToProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddServiceAccountToProjectReader ¶
type AddServiceAccountToProjectReader struct {
// contains filtered or unexported fields
}
AddServiceAccountToProjectReader is a Reader for the AddServiceAccountToProject structure.
func (*AddServiceAccountToProjectReader) ReadResponse ¶
func (o *AddServiceAccountToProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddServiceAccountToProjectUnauthorized ¶
type AddServiceAccountToProjectUnauthorized struct { }
AddServiceAccountToProjectUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewAddServiceAccountToProjectUnauthorized ¶
func NewAddServiceAccountToProjectUnauthorized() *AddServiceAccountToProjectUnauthorized
NewAddServiceAccountToProjectUnauthorized creates a AddServiceAccountToProjectUnauthorized with default headers values
func (*AddServiceAccountToProjectUnauthorized) Error ¶
func (o *AddServiceAccountToProjectUnauthorized) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for serviceaccounts API
func (*Client) AddServiceAccountToProject ¶
func (a *Client) AddServiceAccountToProject(params *AddServiceAccountToProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddServiceAccountToProjectCreated, error)
AddServiceAccountToProject Adds the given service account to the given project
func (*Client) DeleteServiceAccount ¶
func (a *Client) DeleteServiceAccount(params *DeleteServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceAccountOK, error)
DeleteServiceAccount Deletes service account for the given project
func (*Client) ListServiceAccounts ¶
func (a *Client) ListServiceAccounts(params *ListServiceAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceAccountsOK, error)
ListServiceAccounts List Service Accounts for the given project
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateServiceAccount ¶
func (a *Client) UpdateServiceAccount(params *UpdateServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceAccountOK, error)
UpdateServiceAccount Updates service account for the given project
type ClientOption ¶ added in v2.18.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddServiceAccountToProject(params *AddServiceAccountToProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddServiceAccountToProjectCreated, error) DeleteServiceAccount(params *DeleteServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceAccountOK, error) ListServiceAccounts(params *ListServiceAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceAccountsOK, error) UpdateServiceAccount(params *UpdateServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceAccountOK, 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 serviceaccounts API client.
type DeleteServiceAccountDefault ¶
type DeleteServiceAccountDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
DeleteServiceAccountDefault describes a response with status code -1, with default header values.
errorResponse
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.ErrorResponse
type DeleteServiceAccountForbidden ¶
type DeleteServiceAccountForbidden struct { }
DeleteServiceAccountForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewDeleteServiceAccountForbidden ¶
func NewDeleteServiceAccountForbidden() *DeleteServiceAccountForbidden
NewDeleteServiceAccountForbidden creates a DeleteServiceAccountForbidden with default headers values
func (*DeleteServiceAccountForbidden) Error ¶
func (o *DeleteServiceAccountForbidden) Error() string
type DeleteServiceAccountOK ¶
type DeleteServiceAccountOK struct { }
DeleteServiceAccountOK describes a response with status code 200, with default header values.
EmptyResponse is a empty response
func NewDeleteServiceAccountOK ¶
func NewDeleteServiceAccountOK() *DeleteServiceAccountOK
NewDeleteServiceAccountOK creates a DeleteServiceAccountOK with default headers values
func (*DeleteServiceAccountOK) Error ¶
func (o *DeleteServiceAccountOK) Error() string
type DeleteServiceAccountParams ¶
type DeleteServiceAccountParams struct { // ProjectID. ProjectID string // ServiceaccountID. ServiceAccountID 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 ¶ added in v2.18.0
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) SetProjectID ¶
func (o *DeleteServiceAccountParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the delete service account params
func (*DeleteServiceAccountParams) SetServiceAccountID ¶
func (o *DeleteServiceAccountParams) SetServiceAccountID(serviceaccountID string)
SetServiceAccountID adds the serviceaccountId 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 ¶ added in v2.18.0
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) WithProjectID ¶
func (o *DeleteServiceAccountParams) WithProjectID(projectID string) *DeleteServiceAccountParams
WithProjectID adds the projectID to the delete service account params
func (*DeleteServiceAccountParams) WithServiceAccountID ¶
func (o *DeleteServiceAccountParams) WithServiceAccountID(serviceaccountID string) *DeleteServiceAccountParams
WithServiceAccountID adds the serviceaccountID 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 DeleteServiceAccountUnauthorized ¶
type DeleteServiceAccountUnauthorized struct { }
DeleteServiceAccountUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewDeleteServiceAccountUnauthorized ¶
func NewDeleteServiceAccountUnauthorized() *DeleteServiceAccountUnauthorized
NewDeleteServiceAccountUnauthorized creates a DeleteServiceAccountUnauthorized with default headers values
func (*DeleteServiceAccountUnauthorized) Error ¶
func (o *DeleteServiceAccountUnauthorized) Error() string
type ListServiceAccountsDefault ¶
type ListServiceAccountsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListServiceAccountsDefault describes a response with status code -1, with default header values.
errorResponse
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.ErrorResponse
type ListServiceAccountsForbidden ¶
type ListServiceAccountsForbidden struct { }
ListServiceAccountsForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewListServiceAccountsForbidden ¶
func NewListServiceAccountsForbidden() *ListServiceAccountsForbidden
NewListServiceAccountsForbidden creates a ListServiceAccountsForbidden with default headers values
func (*ListServiceAccountsForbidden) Error ¶
func (o *ListServiceAccountsForbidden) Error() string
type ListServiceAccountsOK ¶
type ListServiceAccountsOK struct {
Payload []*models.ServiceAccount
}
ListServiceAccountsOK describes a response with status code 200, with default header values.
ServiceAccount
func NewListServiceAccountsOK ¶
func NewListServiceAccountsOK() *ListServiceAccountsOK
NewListServiceAccountsOK creates a ListServiceAccountsOK with default headers values
func (*ListServiceAccountsOK) Error ¶
func (o *ListServiceAccountsOK) Error() string
func (*ListServiceAccountsOK) GetPayload ¶
func (o *ListServiceAccountsOK) GetPayload() []*models.ServiceAccount
type ListServiceAccountsParams ¶
type ListServiceAccountsParams struct { // ProjectID. ProjectID 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 ¶ added in v2.18.0
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) SetProjectID ¶
func (o *ListServiceAccountsParams) SetProjectID(projectID string)
SetProjectID adds the projectId 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 ¶ added in v2.18.0
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) WithProjectID ¶
func (o *ListServiceAccountsParams) WithProjectID(projectID string) *ListServiceAccountsParams
WithProjectID adds the projectID 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 ListServiceAccountsUnauthorized ¶
type ListServiceAccountsUnauthorized struct { }
ListServiceAccountsUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewListServiceAccountsUnauthorized ¶
func NewListServiceAccountsUnauthorized() *ListServiceAccountsUnauthorized
NewListServiceAccountsUnauthorized creates a ListServiceAccountsUnauthorized with default headers values
func (*ListServiceAccountsUnauthorized) Error ¶
func (o *ListServiceAccountsUnauthorized) Error() string
type UpdateServiceAccountDefault ¶
type UpdateServiceAccountDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
UpdateServiceAccountDefault describes a response with status code -1, with default header values.
errorResponse
func NewUpdateServiceAccountDefault ¶
func NewUpdateServiceAccountDefault(code int) *UpdateServiceAccountDefault
NewUpdateServiceAccountDefault creates a UpdateServiceAccountDefault with default headers values
func (*UpdateServiceAccountDefault) Code ¶
func (o *UpdateServiceAccountDefault) Code() int
Code gets the status code for the update service account default response
func (*UpdateServiceAccountDefault) Error ¶
func (o *UpdateServiceAccountDefault) Error() string
func (*UpdateServiceAccountDefault) GetPayload ¶
func (o *UpdateServiceAccountDefault) GetPayload() *models.ErrorResponse
type UpdateServiceAccountForbidden ¶
type UpdateServiceAccountForbidden struct { }
UpdateServiceAccountForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewUpdateServiceAccountForbidden ¶
func NewUpdateServiceAccountForbidden() *UpdateServiceAccountForbidden
NewUpdateServiceAccountForbidden creates a UpdateServiceAccountForbidden with default headers values
func (*UpdateServiceAccountForbidden) Error ¶
func (o *UpdateServiceAccountForbidden) Error() string
type UpdateServiceAccountOK ¶
type UpdateServiceAccountOK struct {
Payload *models.ServiceAccount
}
UpdateServiceAccountOK describes a response with status code 200, with default header values.
ServiceAccount
func NewUpdateServiceAccountOK ¶
func NewUpdateServiceAccountOK() *UpdateServiceAccountOK
NewUpdateServiceAccountOK creates a UpdateServiceAccountOK with default headers values
func (*UpdateServiceAccountOK) Error ¶
func (o *UpdateServiceAccountOK) Error() string
func (*UpdateServiceAccountOK) GetPayload ¶
func (o *UpdateServiceAccountOK) GetPayload() *models.ServiceAccount
type UpdateServiceAccountParams ¶
type UpdateServiceAccountParams struct { // Body. Body *models.ServiceAccount // ProjectID. ProjectID string // ServiceaccountID. ServiceAccountID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateServiceAccountParams contains all the parameters to send to the API endpoint
for the update service account operation. Typically these are written to a http.Request.
func NewUpdateServiceAccountParams ¶
func NewUpdateServiceAccountParams() *UpdateServiceAccountParams
NewUpdateServiceAccountParams creates a new UpdateServiceAccountParams 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 NewUpdateServiceAccountParamsWithContext ¶
func NewUpdateServiceAccountParamsWithContext(ctx context.Context) *UpdateServiceAccountParams
NewUpdateServiceAccountParamsWithContext creates a new UpdateServiceAccountParams object with the ability to set a context for a request.
func NewUpdateServiceAccountParamsWithHTTPClient ¶
func NewUpdateServiceAccountParamsWithHTTPClient(client *http.Client) *UpdateServiceAccountParams
NewUpdateServiceAccountParamsWithHTTPClient creates a new UpdateServiceAccountParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateServiceAccountParamsWithTimeout ¶
func NewUpdateServiceAccountParamsWithTimeout(timeout time.Duration) *UpdateServiceAccountParams
NewUpdateServiceAccountParamsWithTimeout creates a new UpdateServiceAccountParams object with the ability to set a timeout on a request.
func (*UpdateServiceAccountParams) SetBody ¶
func (o *UpdateServiceAccountParams) SetBody(body *models.ServiceAccount)
SetBody adds the body to the update service account params
func (*UpdateServiceAccountParams) SetContext ¶
func (o *UpdateServiceAccountParams) SetContext(ctx context.Context)
SetContext adds the context to the update service account params
func (*UpdateServiceAccountParams) SetDefaults ¶ added in v2.18.0
func (o *UpdateServiceAccountParams) SetDefaults()
SetDefaults hydrates default values in the update service account params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateServiceAccountParams) SetHTTPClient ¶
func (o *UpdateServiceAccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update service account params
func (*UpdateServiceAccountParams) SetProjectID ¶
func (o *UpdateServiceAccountParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the update service account params
func (*UpdateServiceAccountParams) SetServiceAccountID ¶
func (o *UpdateServiceAccountParams) SetServiceAccountID(serviceaccountID string)
SetServiceAccountID adds the serviceaccountId to the update service account params
func (*UpdateServiceAccountParams) SetTimeout ¶
func (o *UpdateServiceAccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update service account params
func (*UpdateServiceAccountParams) WithBody ¶
func (o *UpdateServiceAccountParams) WithBody(body *models.ServiceAccount) *UpdateServiceAccountParams
WithBody adds the body to the update service account params
func (*UpdateServiceAccountParams) WithContext ¶
func (o *UpdateServiceAccountParams) WithContext(ctx context.Context) *UpdateServiceAccountParams
WithContext adds the context to the update service account params
func (*UpdateServiceAccountParams) WithDefaults ¶ added in v2.18.0
func (o *UpdateServiceAccountParams) WithDefaults() *UpdateServiceAccountParams
WithDefaults hydrates default values in the update service account params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateServiceAccountParams) WithHTTPClient ¶
func (o *UpdateServiceAccountParams) WithHTTPClient(client *http.Client) *UpdateServiceAccountParams
WithHTTPClient adds the HTTPClient to the update service account params
func (*UpdateServiceAccountParams) WithProjectID ¶
func (o *UpdateServiceAccountParams) WithProjectID(projectID string) *UpdateServiceAccountParams
WithProjectID adds the projectID to the update service account params
func (*UpdateServiceAccountParams) WithServiceAccountID ¶
func (o *UpdateServiceAccountParams) WithServiceAccountID(serviceaccountID string) *UpdateServiceAccountParams
WithServiceAccountID adds the serviceaccountID to the update service account params
func (*UpdateServiceAccountParams) WithTimeout ¶
func (o *UpdateServiceAccountParams) WithTimeout(timeout time.Duration) *UpdateServiceAccountParams
WithTimeout adds the timeout to the update service account params
func (*UpdateServiceAccountParams) WriteToRequest ¶
func (o *UpdateServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateServiceAccountReader ¶
type UpdateServiceAccountReader struct {
// contains filtered or unexported fields
}
UpdateServiceAccountReader is a Reader for the UpdateServiceAccount structure.
func (*UpdateServiceAccountReader) ReadResponse ¶
func (o *UpdateServiceAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateServiceAccountUnauthorized ¶
type UpdateServiceAccountUnauthorized struct { }
UpdateServiceAccountUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewUpdateServiceAccountUnauthorized ¶
func NewUpdateServiceAccountUnauthorized() *UpdateServiceAccountUnauthorized
NewUpdateServiceAccountUnauthorized creates a UpdateServiceAccountUnauthorized with default headers values
func (*UpdateServiceAccountUnauthorized) Error ¶
func (o *UpdateServiceAccountUnauthorized) Error() string
Source Files ¶
- add_service_account_to_project_parameters.go
- add_service_account_to_project_responses.go
- delete_service_account_parameters.go
- delete_service_account_responses.go
- list_service_accounts_parameters.go
- list_service_accounts_responses.go
- serviceaccounts_client.go
- update_service_account_parameters.go
- update_service_account_responses.go