posture_checks

package
v0.21.251 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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 (*CreatePostureResponseBadRequest) GetPayload

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 (*CreatePostureResponseBulkBadRequest) GetPayload

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 (*CreatePostureResponseBulkOK) GetPayload

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

WithContext adds the context to the create posture response bulk params

func (*CreatePostureResponseBulkParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the create posture response bulk params

func (*CreatePostureResponseBulkParams) WithPostureResponse

WithPostureResponse adds the postureResponse to the create posture response bulk params

func (*CreatePostureResponseBulkParams) WithTimeout

WithTimeout adds the timeout to the create posture response bulk params

func (*CreatePostureResponseBulkParams) WriteToRequest

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 CreatePostureResponseBulkUnauthorized

type CreatePostureResponseBulkUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
CreatePostureResponseBulkUnauthorized describes a response with status code 401, with default header values.

The currently 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 (*CreatePostureResponseBulkUnauthorized) GetPayload

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 (*CreatePostureResponseCreated) GetPayload

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

WithContext adds the context to the create posture response params

func (*CreatePostureResponseParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the create posture response params

func (*CreatePostureResponseParams) WithPostureResponse

WithPostureResponse adds the postureResponse to the create posture response params

func (*CreatePostureResponseParams) WithTimeout

WithTimeout adds the timeout to the create posture response params

func (*CreatePostureResponseParams) WriteToRequest

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 CreatePostureResponseUnauthorized

type CreatePostureResponseUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
CreatePostureResponseUnauthorized describes a response with status code 401, with default header values.

The currently 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 (*CreatePostureResponseUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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