Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePostureResponse(params *CreatePostureResponseParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePostureResponseCreated, error)
- func (a *Client) CreatePostureResponseBulk(params *CreatePostureResponseBulkParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePostureResponseBulkOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreatePostureResponseBadRequest
- type CreatePostureResponseBulkBadRequest
- type CreatePostureResponseBulkOK
- type CreatePostureResponseBulkParams
- func NewCreatePostureResponseBulkParams() *CreatePostureResponseBulkParams
- func NewCreatePostureResponseBulkParamsWithContext(ctx context.Context) *CreatePostureResponseBulkParams
- func NewCreatePostureResponseBulkParamsWithHTTPClient(client *http.Client) *CreatePostureResponseBulkParams
- func NewCreatePostureResponseBulkParamsWithTimeout(timeout time.Duration) *CreatePostureResponseBulkParams
- func (o *CreatePostureResponseBulkParams) SetContext(ctx context.Context)
- func (o *CreatePostureResponseBulkParams) SetDefaults()
- func (o *CreatePostureResponseBulkParams) SetHTTPClient(client *http.Client)
- func (o *CreatePostureResponseBulkParams) SetPostureResponse(postureResponse []rest_model.PostureResponseCreate)
- func (o *CreatePostureResponseBulkParams) SetTimeout(timeout time.Duration)
- func (o *CreatePostureResponseBulkParams) WithContext(ctx context.Context) *CreatePostureResponseBulkParams
- func (o *CreatePostureResponseBulkParams) WithDefaults() *CreatePostureResponseBulkParams
- func (o *CreatePostureResponseBulkParams) WithHTTPClient(client *http.Client) *CreatePostureResponseBulkParams
- func (o *CreatePostureResponseBulkParams) WithPostureResponse(postureResponse []rest_model.PostureResponseCreate) *CreatePostureResponseBulkParams
- func (o *CreatePostureResponseBulkParams) WithTimeout(timeout time.Duration) *CreatePostureResponseBulkParams
- func (o *CreatePostureResponseBulkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePostureResponseBulkReader
- type CreatePostureResponseBulkTooManyRequests
- type CreatePostureResponseBulkUnauthorized
- type CreatePostureResponseCreated
- type CreatePostureResponseParams
- func NewCreatePostureResponseParams() *CreatePostureResponseParams
- func NewCreatePostureResponseParamsWithContext(ctx context.Context) *CreatePostureResponseParams
- func NewCreatePostureResponseParamsWithHTTPClient(client *http.Client) *CreatePostureResponseParams
- func NewCreatePostureResponseParamsWithTimeout(timeout time.Duration) *CreatePostureResponseParams
- func (o *CreatePostureResponseParams) SetContext(ctx context.Context)
- func (o *CreatePostureResponseParams) SetDefaults()
- func (o *CreatePostureResponseParams) SetHTTPClient(client *http.Client)
- func (o *CreatePostureResponseParams) SetPostureResponse(postureResponse rest_model.PostureResponseCreate)
- func (o *CreatePostureResponseParams) SetTimeout(timeout time.Duration)
- func (o *CreatePostureResponseParams) WithContext(ctx context.Context) *CreatePostureResponseParams
- func (o *CreatePostureResponseParams) WithDefaults() *CreatePostureResponseParams
- func (o *CreatePostureResponseParams) WithHTTPClient(client *http.Client) *CreatePostureResponseParams
- func (o *CreatePostureResponseParams) WithPostureResponse(postureResponse rest_model.PostureResponseCreate) *CreatePostureResponseParams
- func (o *CreatePostureResponseParams) WithTimeout(timeout time.Duration) *CreatePostureResponseParams
- func (o *CreatePostureResponseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePostureResponseReader
- type CreatePostureResponseTooManyRequests
- type CreatePostureResponseUnauthorized
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 posture checks API
func (*Client) CreatePostureResponse ¶
func (a *Client) CreatePostureResponse(params *CreatePostureResponseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePostureResponseCreated, error)
CreatePostureResponse submits a posture response to a posture query
Submits posture responses
func (*Client) CreatePostureResponseBulk ¶
func (a *Client) CreatePostureResponseBulk(params *CreatePostureResponseBulkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePostureResponseBulkOK, error)
CreatePostureResponseBulk submits multiple posture responses
Submits posture responses
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 { CreatePostureResponse(params *CreatePostureResponseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePostureResponseCreated, error) CreatePostureResponseBulk(params *CreatePostureResponseBulkParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePostureResponseBulkOK, 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 posture checks API client.
type CreatePostureResponseBadRequest ¶
type CreatePostureResponseBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
CreatePostureResponseBadRequest describes a response with status code 400, with default header values.
The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
func NewCreatePostureResponseBadRequest ¶
func NewCreatePostureResponseBadRequest() *CreatePostureResponseBadRequest
NewCreatePostureResponseBadRequest creates a CreatePostureResponseBadRequest with default headers values
func (*CreatePostureResponseBadRequest) Error ¶
func (o *CreatePostureResponseBadRequest) Error() string
func (*CreatePostureResponseBadRequest) GetPayload ¶
func (o *CreatePostureResponseBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type CreatePostureResponseBulkBadRequest ¶
type CreatePostureResponseBulkBadRequest struct {
Payload *rest_model.APIErrorEnvelope
}
CreatePostureResponseBulkBadRequest describes a response with status code 400, with default header values.
The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
func NewCreatePostureResponseBulkBadRequest ¶
func NewCreatePostureResponseBulkBadRequest() *CreatePostureResponseBulkBadRequest
NewCreatePostureResponseBulkBadRequest creates a CreatePostureResponseBulkBadRequest with default headers values
func (*CreatePostureResponseBulkBadRequest) Error ¶
func (o *CreatePostureResponseBulkBadRequest) Error() string
func (*CreatePostureResponseBulkBadRequest) GetPayload ¶
func (o *CreatePostureResponseBulkBadRequest) GetPayload() *rest_model.APIErrorEnvelope
type CreatePostureResponseBulkOK ¶
type CreatePostureResponseBulkOK struct {
Payload *rest_model.PostureResponseEnvelope
}
CreatePostureResponseBulkOK describes a response with status code 200, with default header values.
Contains a list of services that have had their timers altered
func NewCreatePostureResponseBulkOK ¶
func NewCreatePostureResponseBulkOK() *CreatePostureResponseBulkOK
NewCreatePostureResponseBulkOK creates a CreatePostureResponseBulkOK with default headers values
func (*CreatePostureResponseBulkOK) Error ¶
func (o *CreatePostureResponseBulkOK) Error() string
func (*CreatePostureResponseBulkOK) GetPayload ¶
func (o *CreatePostureResponseBulkOK) GetPayload() *rest_model.PostureResponseEnvelope
type CreatePostureResponseBulkParams ¶
type CreatePostureResponseBulkParams struct { /* PostureResponse. A Posture Response */ PostureResponse []rest_model.PostureResponseCreate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePostureResponseBulkParams contains all the parameters to send to the API endpoint
for the create posture response bulk operation. Typically these are written to a http.Request.
func NewCreatePostureResponseBulkParams ¶
func NewCreatePostureResponseBulkParams() *CreatePostureResponseBulkParams
NewCreatePostureResponseBulkParams creates a new CreatePostureResponseBulkParams 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 NewCreatePostureResponseBulkParamsWithContext ¶
func NewCreatePostureResponseBulkParamsWithContext(ctx context.Context) *CreatePostureResponseBulkParams
NewCreatePostureResponseBulkParamsWithContext creates a new CreatePostureResponseBulkParams object with the ability to set a context for a request.
func NewCreatePostureResponseBulkParamsWithHTTPClient ¶
func NewCreatePostureResponseBulkParamsWithHTTPClient(client *http.Client) *CreatePostureResponseBulkParams
NewCreatePostureResponseBulkParamsWithHTTPClient creates a new CreatePostureResponseBulkParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePostureResponseBulkParamsWithTimeout ¶
func NewCreatePostureResponseBulkParamsWithTimeout(timeout time.Duration) *CreatePostureResponseBulkParams
NewCreatePostureResponseBulkParamsWithTimeout creates a new CreatePostureResponseBulkParams object with the ability to set a timeout on a request.
func (*CreatePostureResponseBulkParams) SetContext ¶
func (o *CreatePostureResponseBulkParams) SetContext(ctx context.Context)
SetContext adds the context to the create posture response bulk params
func (*CreatePostureResponseBulkParams) SetDefaults ¶
func (o *CreatePostureResponseBulkParams) SetDefaults()
SetDefaults hydrates default values in the create posture response bulk params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePostureResponseBulkParams) SetHTTPClient ¶
func (o *CreatePostureResponseBulkParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create posture response bulk params
func (*CreatePostureResponseBulkParams) SetPostureResponse ¶
func (o *CreatePostureResponseBulkParams) SetPostureResponse(postureResponse []rest_model.PostureResponseCreate)
SetPostureResponse adds the postureResponse to the create posture response bulk params
func (*CreatePostureResponseBulkParams) SetTimeout ¶
func (o *CreatePostureResponseBulkParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create posture response bulk params
func (*CreatePostureResponseBulkParams) WithContext ¶
func (o *CreatePostureResponseBulkParams) WithContext(ctx context.Context) *CreatePostureResponseBulkParams
WithContext adds the context to the create posture response bulk params
func (*CreatePostureResponseBulkParams) WithDefaults ¶
func (o *CreatePostureResponseBulkParams) WithDefaults() *CreatePostureResponseBulkParams
WithDefaults hydrates default values in the create posture response bulk params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePostureResponseBulkParams) WithHTTPClient ¶
func (o *CreatePostureResponseBulkParams) WithHTTPClient(client *http.Client) *CreatePostureResponseBulkParams
WithHTTPClient adds the HTTPClient to the create posture response bulk params
func (*CreatePostureResponseBulkParams) WithPostureResponse ¶
func (o *CreatePostureResponseBulkParams) WithPostureResponse(postureResponse []rest_model.PostureResponseCreate) *CreatePostureResponseBulkParams
WithPostureResponse adds the postureResponse to the create posture response bulk params
func (*CreatePostureResponseBulkParams) WithTimeout ¶
func (o *CreatePostureResponseBulkParams) WithTimeout(timeout time.Duration) *CreatePostureResponseBulkParams
WithTimeout adds the timeout to the create posture response bulk params
func (*CreatePostureResponseBulkParams) WriteToRequest ¶
func (o *CreatePostureResponseBulkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePostureResponseBulkReader ¶
type CreatePostureResponseBulkReader struct {
// contains filtered or unexported fields
}
CreatePostureResponseBulkReader is a Reader for the CreatePostureResponseBulk structure.
func (*CreatePostureResponseBulkReader) ReadResponse ¶
func (o *CreatePostureResponseBulkReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePostureResponseBulkTooManyRequests ¶ added in v0.26.0
type CreatePostureResponseBulkTooManyRequests struct {
Payload *rest_model.APIErrorEnvelope
}
CreatePostureResponseBulkTooManyRequests describes a response with status code 429, with default header values.
The resource requested is rate limited and the rate limit has been exceeded
func NewCreatePostureResponseBulkTooManyRequests ¶ added in v0.26.0
func NewCreatePostureResponseBulkTooManyRequests() *CreatePostureResponseBulkTooManyRequests
NewCreatePostureResponseBulkTooManyRequests creates a CreatePostureResponseBulkTooManyRequests with default headers values
func (*CreatePostureResponseBulkTooManyRequests) Error ¶ added in v0.26.0
func (o *CreatePostureResponseBulkTooManyRequests) Error() string
func (*CreatePostureResponseBulkTooManyRequests) GetPayload ¶ added in v0.26.0
func (o *CreatePostureResponseBulkTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
type CreatePostureResponseBulkUnauthorized ¶
type CreatePostureResponseBulkUnauthorized struct {
}CreatePostureResponseBulkUnauthorized describes a response with status code 401, with default header values.
The supplied session does not have the correct access rights to request this resource
func NewCreatePostureResponseBulkUnauthorized ¶
func NewCreatePostureResponseBulkUnauthorized() *CreatePostureResponseBulkUnauthorized
NewCreatePostureResponseBulkUnauthorized creates a CreatePostureResponseBulkUnauthorized with default headers values
func (*CreatePostureResponseBulkUnauthorized) Error ¶
func (o *CreatePostureResponseBulkUnauthorized) Error() string
func (*CreatePostureResponseBulkUnauthorized) GetPayload ¶
func (o *CreatePostureResponseBulkUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
type CreatePostureResponseCreated ¶
type CreatePostureResponseCreated struct {
Payload *rest_model.PostureResponseEnvelope
}
CreatePostureResponseCreated describes a response with status code 201, with default header values.
Contains a list of services that have had their timers altered
func NewCreatePostureResponseCreated ¶
func NewCreatePostureResponseCreated() *CreatePostureResponseCreated
NewCreatePostureResponseCreated creates a CreatePostureResponseCreated with default headers values
func (*CreatePostureResponseCreated) Error ¶
func (o *CreatePostureResponseCreated) Error() string
func (*CreatePostureResponseCreated) GetPayload ¶
func (o *CreatePostureResponseCreated) GetPayload() *rest_model.PostureResponseEnvelope
type CreatePostureResponseParams ¶
type CreatePostureResponseParams struct { /* PostureResponse. A Posture Response */ PostureResponse rest_model.PostureResponseCreate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePostureResponseParams contains all the parameters to send to the API endpoint
for the create posture response operation. Typically these are written to a http.Request.
func NewCreatePostureResponseParams ¶
func NewCreatePostureResponseParams() *CreatePostureResponseParams
NewCreatePostureResponseParams creates a new CreatePostureResponseParams 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 NewCreatePostureResponseParamsWithContext ¶
func NewCreatePostureResponseParamsWithContext(ctx context.Context) *CreatePostureResponseParams
NewCreatePostureResponseParamsWithContext creates a new CreatePostureResponseParams object with the ability to set a context for a request.
func NewCreatePostureResponseParamsWithHTTPClient ¶
func NewCreatePostureResponseParamsWithHTTPClient(client *http.Client) *CreatePostureResponseParams
NewCreatePostureResponseParamsWithHTTPClient creates a new CreatePostureResponseParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePostureResponseParamsWithTimeout ¶
func NewCreatePostureResponseParamsWithTimeout(timeout time.Duration) *CreatePostureResponseParams
NewCreatePostureResponseParamsWithTimeout creates a new CreatePostureResponseParams object with the ability to set a timeout on a request.
func (*CreatePostureResponseParams) SetContext ¶
func (o *CreatePostureResponseParams) SetContext(ctx context.Context)
SetContext adds the context to the create posture response params
func (*CreatePostureResponseParams) SetDefaults ¶
func (o *CreatePostureResponseParams) SetDefaults()
SetDefaults hydrates default values in the create posture response params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePostureResponseParams) SetHTTPClient ¶
func (o *CreatePostureResponseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create posture response params
func (*CreatePostureResponseParams) SetPostureResponse ¶
func (o *CreatePostureResponseParams) SetPostureResponse(postureResponse rest_model.PostureResponseCreate)
SetPostureResponse adds the postureResponse to the create posture response params
func (*CreatePostureResponseParams) SetTimeout ¶
func (o *CreatePostureResponseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create posture response params
func (*CreatePostureResponseParams) WithContext ¶
func (o *CreatePostureResponseParams) WithContext(ctx context.Context) *CreatePostureResponseParams
WithContext adds the context to the create posture response params
func (*CreatePostureResponseParams) WithDefaults ¶
func (o *CreatePostureResponseParams) WithDefaults() *CreatePostureResponseParams
WithDefaults hydrates default values in the create posture response params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePostureResponseParams) WithHTTPClient ¶
func (o *CreatePostureResponseParams) WithHTTPClient(client *http.Client) *CreatePostureResponseParams
WithHTTPClient adds the HTTPClient to the create posture response params
func (*CreatePostureResponseParams) WithPostureResponse ¶
func (o *CreatePostureResponseParams) WithPostureResponse(postureResponse rest_model.PostureResponseCreate) *CreatePostureResponseParams
WithPostureResponse adds the postureResponse to the create posture response params
func (*CreatePostureResponseParams) WithTimeout ¶
func (o *CreatePostureResponseParams) WithTimeout(timeout time.Duration) *CreatePostureResponseParams
WithTimeout adds the timeout to the create posture response params
func (*CreatePostureResponseParams) WriteToRequest ¶
func (o *CreatePostureResponseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePostureResponseReader ¶
type CreatePostureResponseReader struct {
// contains filtered or unexported fields
}
CreatePostureResponseReader is a Reader for the CreatePostureResponse structure.
func (*CreatePostureResponseReader) ReadResponse ¶
func (o *CreatePostureResponseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePostureResponseTooManyRequests ¶ added in v0.26.0
type CreatePostureResponseTooManyRequests struct {
Payload *rest_model.APIErrorEnvelope
}
CreatePostureResponseTooManyRequests describes a response with status code 429, with default header values.
The resource requested is rate limited and the rate limit has been exceeded
func NewCreatePostureResponseTooManyRequests ¶ added in v0.26.0
func NewCreatePostureResponseTooManyRequests() *CreatePostureResponseTooManyRequests
NewCreatePostureResponseTooManyRequests creates a CreatePostureResponseTooManyRequests with default headers values
func (*CreatePostureResponseTooManyRequests) Error ¶ added in v0.26.0
func (o *CreatePostureResponseTooManyRequests) Error() string
func (*CreatePostureResponseTooManyRequests) GetPayload ¶ added in v0.26.0
func (o *CreatePostureResponseTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
type CreatePostureResponseUnauthorized ¶
type CreatePostureResponseUnauthorized struct {
}CreatePostureResponseUnauthorized describes a response with status code 401, with default header values.
The supplied session does not have the correct access rights to request this resource
func NewCreatePostureResponseUnauthorized ¶
func NewCreatePostureResponseUnauthorized() *CreatePostureResponseUnauthorized
NewCreatePostureResponseUnauthorized creates a CreatePostureResponseUnauthorized with default headers values
func (*CreatePostureResponseUnauthorized) Error ¶
func (o *CreatePostureResponseUnauthorized) Error() string
func (*CreatePostureResponseUnauthorized) GetPayload ¶
func (o *CreatePostureResponseUnauthorized) GetPayload() *rest_model.APIErrorEnvelope