organization_infrastructure_policies

package
v1.0.100 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationVndCycloidIoV1JSON

func WithAcceptApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithAcceptApplicationVndCycloidIoV1JSON sets the Accept header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationVndCycloidIoV1JSON

func WithContentTypeApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithContentTypeApplicationVndCycloidIoV1JSON sets the Content-Type header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for organization infrastructure policies API

func (*Client) CreateInfraPolicy

func (a *Client) CreateInfraPolicy(params *CreateInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInfraPolicyOK, error)

CreateInfraPolicy Create a new policy.

func (*Client) DeleteInfraPolicy

func (a *Client) DeleteInfraPolicy(params *DeleteInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteInfraPolicyNoContent, error)

DeleteInfraPolicy Delete the InfraPolicy.

func (*Client) GetInfraPolicies

func (a *Client) GetInfraPolicies(params *GetInfraPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfraPoliciesOK, error)

GetInfraPolicies Return a list of infrastructure policies which matches the scope specified by the filter.

func (*Client) GetInfraPolicy

func (a *Client) GetInfraPolicy(params *GetInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfraPolicyOK, error)

GetInfraPolicy Get the information of the InfraPolicy.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateInfraPolicy

func (a *Client) UpdateInfraPolicy(params *UpdateInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateInfraPolicyOK, error)

UpdateInfraPolicy Update an existing InfraPolicy

func (*Client) ValidateProjectInfraPolicies

func (a *Client) ValidateProjectInfraPolicies(params *ValidateProjectInfraPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateProjectInfraPoliciesOK, error)

ValidateProjectInfraPolicies Check the InfraPolicies assigned to the Project and the Environment to identify if some are not respected.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	CreateInfraPolicy(params *CreateInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInfraPolicyOK, error)

	DeleteInfraPolicy(params *DeleteInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteInfraPolicyNoContent, error)

	GetInfraPolicies(params *GetInfraPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfraPoliciesOK, error)

	GetInfraPolicy(params *GetInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfraPolicyOK, error)

	UpdateInfraPolicy(params *UpdateInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateInfraPolicyOK, error)

	ValidateProjectInfraPolicies(params *ValidateProjectInfraPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateProjectInfraPoliciesOK, 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 organization infrastructure policies API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new organization infrastructure policies API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new organization infrastructure policies API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateInfraPolicyDefault

type CreateInfraPolicyDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewCreateInfraPolicyDefault

func NewCreateInfraPolicyDefault(code int) *CreateInfraPolicyDefault

NewCreateInfraPolicyDefault creates a CreateInfraPolicyDefault with default headers values

func (*CreateInfraPolicyDefault) Code

func (o *CreateInfraPolicyDefault) Code() int

Code gets the status code for the create infra policy default response

func (*CreateInfraPolicyDefault) Error

func (o *CreateInfraPolicyDefault) Error() string

func (*CreateInfraPolicyDefault) GetPayload

func (o *CreateInfraPolicyDefault) GetPayload() *models.ErrorPayload

func (*CreateInfraPolicyDefault) IsClientError

func (o *CreateInfraPolicyDefault) IsClientError() bool

IsClientError returns true when this create infra policy default response has a 4xx status code

func (*CreateInfraPolicyDefault) IsCode

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

IsCode returns true when this create infra policy default response a status code equal to that given

func (*CreateInfraPolicyDefault) IsRedirect

func (o *CreateInfraPolicyDefault) IsRedirect() bool

IsRedirect returns true when this create infra policy default response has a 3xx status code

func (*CreateInfraPolicyDefault) IsServerError

func (o *CreateInfraPolicyDefault) IsServerError() bool

IsServerError returns true when this create infra policy default response has a 5xx status code

func (*CreateInfraPolicyDefault) IsSuccess

func (o *CreateInfraPolicyDefault) IsSuccess() bool

IsSuccess returns true when this create infra policy default response has a 2xx status code

func (*CreateInfraPolicyDefault) String

func (o *CreateInfraPolicyDefault) String() string

type CreateInfraPolicyLengthRequired

type CreateInfraPolicyLengthRequired struct {
}

CreateInfraPolicyLengthRequired describes a response with status code 411, with default header values.

The request has a body but it doesn't have a Content-Length header.

func NewCreateInfraPolicyLengthRequired

func NewCreateInfraPolicyLengthRequired() *CreateInfraPolicyLengthRequired

NewCreateInfraPolicyLengthRequired creates a CreateInfraPolicyLengthRequired with default headers values

func (*CreateInfraPolicyLengthRequired) Code

Code gets the status code for the create infra policy length required response

func (*CreateInfraPolicyLengthRequired) Error

func (*CreateInfraPolicyLengthRequired) IsClientError

func (o *CreateInfraPolicyLengthRequired) IsClientError() bool

IsClientError returns true when this create infra policy length required response has a 4xx status code

func (*CreateInfraPolicyLengthRequired) IsCode

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

IsCode returns true when this create infra policy length required response a status code equal to that given

func (*CreateInfraPolicyLengthRequired) IsRedirect

func (o *CreateInfraPolicyLengthRequired) IsRedirect() bool

IsRedirect returns true when this create infra policy length required response has a 3xx status code

func (*CreateInfraPolicyLengthRequired) IsServerError

func (o *CreateInfraPolicyLengthRequired) IsServerError() bool

IsServerError returns true when this create infra policy length required response has a 5xx status code

func (*CreateInfraPolicyLengthRequired) IsSuccess

func (o *CreateInfraPolicyLengthRequired) IsSuccess() bool

IsSuccess returns true when this create infra policy length required response has a 2xx status code

func (*CreateInfraPolicyLengthRequired) String

type CreateInfraPolicyOK

type CreateInfraPolicyOK struct {
	Payload *CreateInfraPolicyOKBody
}

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

The new InfraPolicy created.

func NewCreateInfraPolicyOK

func NewCreateInfraPolicyOK() *CreateInfraPolicyOK

NewCreateInfraPolicyOK creates a CreateInfraPolicyOK with default headers values

func (*CreateInfraPolicyOK) Code

func (o *CreateInfraPolicyOK) Code() int

Code gets the status code for the create infra policy o k response

func (*CreateInfraPolicyOK) Error

func (o *CreateInfraPolicyOK) Error() string

func (*CreateInfraPolicyOK) GetPayload

func (*CreateInfraPolicyOK) IsClientError

func (o *CreateInfraPolicyOK) IsClientError() bool

IsClientError returns true when this create infra policy o k response has a 4xx status code

func (*CreateInfraPolicyOK) IsCode

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

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

func (*CreateInfraPolicyOK) IsRedirect

func (o *CreateInfraPolicyOK) IsRedirect() bool

IsRedirect returns true when this create infra policy o k response has a 3xx status code

func (*CreateInfraPolicyOK) IsServerError

func (o *CreateInfraPolicyOK) IsServerError() bool

IsServerError returns true when this create infra policy o k response has a 5xx status code

func (*CreateInfraPolicyOK) IsSuccess

func (o *CreateInfraPolicyOK) IsSuccess() bool

IsSuccess returns true when this create infra policy o k response has a 2xx status code

func (*CreateInfraPolicyOK) String

func (o *CreateInfraPolicyOK) String() string

type CreateInfraPolicyOKBody

type CreateInfraPolicyOKBody struct {

	// data
	// Required: true
	Data *models.InfraPolicy `json:"data"`
}

CreateInfraPolicyOKBody create infra policy o k body swagger:model CreateInfraPolicyOKBody

func (*CreateInfraPolicyOKBody) ContextValidate

func (o *CreateInfraPolicyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create infra policy o k body based on the context it is used

func (*CreateInfraPolicyOKBody) MarshalBinary

func (o *CreateInfraPolicyOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateInfraPolicyOKBody) UnmarshalBinary

func (o *CreateInfraPolicyOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateInfraPolicyOKBody) Validate

func (o *CreateInfraPolicyOKBody) Validate(formats strfmt.Registry) error

Validate validates this create infra policy o k body

type CreateInfraPolicyParams

type CreateInfraPolicyParams struct {

	// Body.
	Body *models.NewInfraPolicy

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

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

CreateInfraPolicyParams contains all the parameters to send to the API endpoint

for the create infra policy operation.

Typically these are written to a http.Request.

func NewCreateInfraPolicyParams

func NewCreateInfraPolicyParams() *CreateInfraPolicyParams

NewCreateInfraPolicyParams creates a new CreateInfraPolicyParams 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 NewCreateInfraPolicyParamsWithContext

func NewCreateInfraPolicyParamsWithContext(ctx context.Context) *CreateInfraPolicyParams

NewCreateInfraPolicyParamsWithContext creates a new CreateInfraPolicyParams object with the ability to set a context for a request.

func NewCreateInfraPolicyParamsWithHTTPClient

func NewCreateInfraPolicyParamsWithHTTPClient(client *http.Client) *CreateInfraPolicyParams

NewCreateInfraPolicyParamsWithHTTPClient creates a new CreateInfraPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateInfraPolicyParamsWithTimeout

func NewCreateInfraPolicyParamsWithTimeout(timeout time.Duration) *CreateInfraPolicyParams

NewCreateInfraPolicyParamsWithTimeout creates a new CreateInfraPolicyParams object with the ability to set a timeout on a request.

func (*CreateInfraPolicyParams) SetBody

func (o *CreateInfraPolicyParams) SetBody(body *models.NewInfraPolicy)

SetBody adds the body to the create infra policy params

func (*CreateInfraPolicyParams) SetContext

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

SetContext adds the context to the create infra policy params

func (*CreateInfraPolicyParams) SetDefaults

func (o *CreateInfraPolicyParams) SetDefaults()

SetDefaults hydrates default values in the create infra policy params (not the query body).

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

func (*CreateInfraPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create infra policy params

func (*CreateInfraPolicyParams) SetOrganizationCanonical

func (o *CreateInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the create infra policy params

func (*CreateInfraPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create infra policy params

func (*CreateInfraPolicyParams) WithBody

WithBody adds the body to the create infra policy params

func (*CreateInfraPolicyParams) WithContext

WithContext adds the context to the create infra policy params

func (*CreateInfraPolicyParams) WithDefaults

WithDefaults hydrates default values in the create infra policy params (not the query body).

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

func (*CreateInfraPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create infra policy params

func (*CreateInfraPolicyParams) WithOrganizationCanonical

func (o *CreateInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *CreateInfraPolicyParams

WithOrganizationCanonical adds the organizationCanonical to the create infra policy params

func (*CreateInfraPolicyParams) WithTimeout

WithTimeout adds the timeout to the create infra policy params

func (*CreateInfraPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateInfraPolicyReader

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

CreateInfraPolicyReader is a Reader for the CreateInfraPolicy structure.

func (*CreateInfraPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateInfraPolicyUnprocessableEntity

type CreateInfraPolicyUnprocessableEntity struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

CreateInfraPolicyUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewCreateInfraPolicyUnprocessableEntity

func NewCreateInfraPolicyUnprocessableEntity() *CreateInfraPolicyUnprocessableEntity

NewCreateInfraPolicyUnprocessableEntity creates a CreateInfraPolicyUnprocessableEntity with default headers values

func (*CreateInfraPolicyUnprocessableEntity) Code

Code gets the status code for the create infra policy unprocessable entity response

func (*CreateInfraPolicyUnprocessableEntity) Error

func (*CreateInfraPolicyUnprocessableEntity) GetPayload

func (*CreateInfraPolicyUnprocessableEntity) IsClientError

func (o *CreateInfraPolicyUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create infra policy unprocessable entity response has a 4xx status code

func (*CreateInfraPolicyUnprocessableEntity) IsCode

IsCode returns true when this create infra policy unprocessable entity response a status code equal to that given

func (*CreateInfraPolicyUnprocessableEntity) IsRedirect

IsRedirect returns true when this create infra policy unprocessable entity response has a 3xx status code

func (*CreateInfraPolicyUnprocessableEntity) IsServerError

func (o *CreateInfraPolicyUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create infra policy unprocessable entity response has a 5xx status code

func (*CreateInfraPolicyUnprocessableEntity) IsSuccess

IsSuccess returns true when this create infra policy unprocessable entity response has a 2xx status code

func (*CreateInfraPolicyUnprocessableEntity) String

type DeleteInfraPolicyDefault

type DeleteInfraPolicyDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewDeleteInfraPolicyDefault

func NewDeleteInfraPolicyDefault(code int) *DeleteInfraPolicyDefault

NewDeleteInfraPolicyDefault creates a DeleteInfraPolicyDefault with default headers values

func (*DeleteInfraPolicyDefault) Code

func (o *DeleteInfraPolicyDefault) Code() int

Code gets the status code for the delete infra policy default response

func (*DeleteInfraPolicyDefault) Error

func (o *DeleteInfraPolicyDefault) Error() string

func (*DeleteInfraPolicyDefault) GetPayload

func (o *DeleteInfraPolicyDefault) GetPayload() *models.ErrorPayload

func (*DeleteInfraPolicyDefault) IsClientError

func (o *DeleteInfraPolicyDefault) IsClientError() bool

IsClientError returns true when this delete infra policy default response has a 4xx status code

func (*DeleteInfraPolicyDefault) IsCode

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

IsCode returns true when this delete infra policy default response a status code equal to that given

func (*DeleteInfraPolicyDefault) IsRedirect

func (o *DeleteInfraPolicyDefault) IsRedirect() bool

IsRedirect returns true when this delete infra policy default response has a 3xx status code

func (*DeleteInfraPolicyDefault) IsServerError

func (o *DeleteInfraPolicyDefault) IsServerError() bool

IsServerError returns true when this delete infra policy default response has a 5xx status code

func (*DeleteInfraPolicyDefault) IsSuccess

func (o *DeleteInfraPolicyDefault) IsSuccess() bool

IsSuccess returns true when this delete infra policy default response has a 2xx status code

func (*DeleteInfraPolicyDefault) String

func (o *DeleteInfraPolicyDefault) String() string

type DeleteInfraPolicyForbidden

type DeleteInfraPolicyForbidden struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

DeleteInfraPolicyForbidden describes a response with status code 403, with default header values.

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewDeleteInfraPolicyForbidden

func NewDeleteInfraPolicyForbidden() *DeleteInfraPolicyForbidden

NewDeleteInfraPolicyForbidden creates a DeleteInfraPolicyForbidden with default headers values

func (*DeleteInfraPolicyForbidden) Code

func (o *DeleteInfraPolicyForbidden) Code() int

Code gets the status code for the delete infra policy forbidden response

func (*DeleteInfraPolicyForbidden) Error

func (*DeleteInfraPolicyForbidden) GetPayload

func (*DeleteInfraPolicyForbidden) IsClientError

func (o *DeleteInfraPolicyForbidden) IsClientError() bool

IsClientError returns true when this delete infra policy forbidden response has a 4xx status code

func (*DeleteInfraPolicyForbidden) IsCode

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

IsCode returns true when this delete infra policy forbidden response a status code equal to that given

func (*DeleteInfraPolicyForbidden) IsRedirect

func (o *DeleteInfraPolicyForbidden) IsRedirect() bool

IsRedirect returns true when this delete infra policy forbidden response has a 3xx status code

func (*DeleteInfraPolicyForbidden) IsServerError

func (o *DeleteInfraPolicyForbidden) IsServerError() bool

IsServerError returns true when this delete infra policy forbidden response has a 5xx status code

func (*DeleteInfraPolicyForbidden) IsSuccess

func (o *DeleteInfraPolicyForbidden) IsSuccess() bool

IsSuccess returns true when this delete infra policy forbidden response has a 2xx status code

func (*DeleteInfraPolicyForbidden) String

func (o *DeleteInfraPolicyForbidden) String() string

type DeleteInfraPolicyNoContent

type DeleteInfraPolicyNoContent struct {
}

DeleteInfraPolicyNoContent describes a response with status code 204, with default header values.

InfraPolicy has been deleted.

func NewDeleteInfraPolicyNoContent

func NewDeleteInfraPolicyNoContent() *DeleteInfraPolicyNoContent

NewDeleteInfraPolicyNoContent creates a DeleteInfraPolicyNoContent with default headers values

func (*DeleteInfraPolicyNoContent) Code

func (o *DeleteInfraPolicyNoContent) Code() int

Code gets the status code for the delete infra policy no content response

func (*DeleteInfraPolicyNoContent) Error

func (*DeleteInfraPolicyNoContent) IsClientError

func (o *DeleteInfraPolicyNoContent) IsClientError() bool

IsClientError returns true when this delete infra policy no content response has a 4xx status code

func (*DeleteInfraPolicyNoContent) IsCode

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

IsCode returns true when this delete infra policy no content response a status code equal to that given

func (*DeleteInfraPolicyNoContent) IsRedirect

func (o *DeleteInfraPolicyNoContent) IsRedirect() bool

IsRedirect returns true when this delete infra policy no content response has a 3xx status code

func (*DeleteInfraPolicyNoContent) IsServerError

func (o *DeleteInfraPolicyNoContent) IsServerError() bool

IsServerError returns true when this delete infra policy no content response has a 5xx status code

func (*DeleteInfraPolicyNoContent) IsSuccess

func (o *DeleteInfraPolicyNoContent) IsSuccess() bool

IsSuccess returns true when this delete infra policy no content response has a 2xx status code

func (*DeleteInfraPolicyNoContent) String

func (o *DeleteInfraPolicyNoContent) String() string

type DeleteInfraPolicyNotFound

type DeleteInfraPolicyNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The response sent when any of the entities present in the path is not found.

func NewDeleteInfraPolicyNotFound

func NewDeleteInfraPolicyNotFound() *DeleteInfraPolicyNotFound

NewDeleteInfraPolicyNotFound creates a DeleteInfraPolicyNotFound with default headers values

func (*DeleteInfraPolicyNotFound) Code

func (o *DeleteInfraPolicyNotFound) Code() int

Code gets the status code for the delete infra policy not found response

func (*DeleteInfraPolicyNotFound) Error

func (o *DeleteInfraPolicyNotFound) Error() string

func (*DeleteInfraPolicyNotFound) GetPayload

func (*DeleteInfraPolicyNotFound) IsClientError

func (o *DeleteInfraPolicyNotFound) IsClientError() bool

IsClientError returns true when this delete infra policy not found response has a 4xx status code

func (*DeleteInfraPolicyNotFound) IsCode

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

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

func (*DeleteInfraPolicyNotFound) IsRedirect

func (o *DeleteInfraPolicyNotFound) IsRedirect() bool

IsRedirect returns true when this delete infra policy not found response has a 3xx status code

func (*DeleteInfraPolicyNotFound) IsServerError

func (o *DeleteInfraPolicyNotFound) IsServerError() bool

IsServerError returns true when this delete infra policy not found response has a 5xx status code

func (*DeleteInfraPolicyNotFound) IsSuccess

func (o *DeleteInfraPolicyNotFound) IsSuccess() bool

IsSuccess returns true when this delete infra policy not found response has a 2xx status code

func (*DeleteInfraPolicyNotFound) String

func (o *DeleteInfraPolicyNotFound) String() string

type DeleteInfraPolicyParams

type DeleteInfraPolicyParams struct {

	/* InfraPolicyCanonical.

	   The canonical of an InfraPolicy.
	*/
	InfraPolicyCanonical string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

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

DeleteInfraPolicyParams contains all the parameters to send to the API endpoint

for the delete infra policy operation.

Typically these are written to a http.Request.

func NewDeleteInfraPolicyParams

func NewDeleteInfraPolicyParams() *DeleteInfraPolicyParams

NewDeleteInfraPolicyParams creates a new DeleteInfraPolicyParams 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 NewDeleteInfraPolicyParamsWithContext

func NewDeleteInfraPolicyParamsWithContext(ctx context.Context) *DeleteInfraPolicyParams

NewDeleteInfraPolicyParamsWithContext creates a new DeleteInfraPolicyParams object with the ability to set a context for a request.

func NewDeleteInfraPolicyParamsWithHTTPClient

func NewDeleteInfraPolicyParamsWithHTTPClient(client *http.Client) *DeleteInfraPolicyParams

NewDeleteInfraPolicyParamsWithHTTPClient creates a new DeleteInfraPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteInfraPolicyParamsWithTimeout

func NewDeleteInfraPolicyParamsWithTimeout(timeout time.Duration) *DeleteInfraPolicyParams

NewDeleteInfraPolicyParamsWithTimeout creates a new DeleteInfraPolicyParams object with the ability to set a timeout on a request.

func (*DeleteInfraPolicyParams) SetContext

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

SetContext adds the context to the delete infra policy params

func (*DeleteInfraPolicyParams) SetDefaults

func (o *DeleteInfraPolicyParams) SetDefaults()

SetDefaults hydrates default values in the delete infra policy params (not the query body).

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

func (*DeleteInfraPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete infra policy params

func (*DeleteInfraPolicyParams) SetInfraPolicyCanonical

func (o *DeleteInfraPolicyParams) SetInfraPolicyCanonical(infraPolicyCanonical string)

SetInfraPolicyCanonical adds the infraPolicyCanonical to the delete infra policy params

func (*DeleteInfraPolicyParams) SetOrganizationCanonical

func (o *DeleteInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the delete infra policy params

func (*DeleteInfraPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the delete infra policy params

func (*DeleteInfraPolicyParams) WithContext

WithContext adds the context to the delete infra policy params

func (*DeleteInfraPolicyParams) WithDefaults

WithDefaults hydrates default values in the delete infra policy params (not the query body).

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

func (*DeleteInfraPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete infra policy params

func (*DeleteInfraPolicyParams) WithInfraPolicyCanonical

func (o *DeleteInfraPolicyParams) WithInfraPolicyCanonical(infraPolicyCanonical string) *DeleteInfraPolicyParams

WithInfraPolicyCanonical adds the infraPolicyCanonical to the delete infra policy params

func (*DeleteInfraPolicyParams) WithOrganizationCanonical

func (o *DeleteInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *DeleteInfraPolicyParams

WithOrganizationCanonical adds the organizationCanonical to the delete infra policy params

func (*DeleteInfraPolicyParams) WithTimeout

WithTimeout adds the timeout to the delete infra policy params

func (*DeleteInfraPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteInfraPolicyReader

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

DeleteInfraPolicyReader is a Reader for the DeleteInfraPolicy structure.

func (*DeleteInfraPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInfraPoliciesDefault

type GetInfraPoliciesDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetInfraPoliciesDefault

func NewGetInfraPoliciesDefault(code int) *GetInfraPoliciesDefault

NewGetInfraPoliciesDefault creates a GetInfraPoliciesDefault with default headers values

func (*GetInfraPoliciesDefault) Code

func (o *GetInfraPoliciesDefault) Code() int

Code gets the status code for the get infra policies default response

func (*GetInfraPoliciesDefault) Error

func (o *GetInfraPoliciesDefault) Error() string

func (*GetInfraPoliciesDefault) GetPayload

func (o *GetInfraPoliciesDefault) GetPayload() *models.ErrorPayload

func (*GetInfraPoliciesDefault) IsClientError

func (o *GetInfraPoliciesDefault) IsClientError() bool

IsClientError returns true when this get infra policies default response has a 4xx status code

func (*GetInfraPoliciesDefault) IsCode

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

IsCode returns true when this get infra policies default response a status code equal to that given

func (*GetInfraPoliciesDefault) IsRedirect

func (o *GetInfraPoliciesDefault) IsRedirect() bool

IsRedirect returns true when this get infra policies default response has a 3xx status code

func (*GetInfraPoliciesDefault) IsServerError

func (o *GetInfraPoliciesDefault) IsServerError() bool

IsServerError returns true when this get infra policies default response has a 5xx status code

func (*GetInfraPoliciesDefault) IsSuccess

func (o *GetInfraPoliciesDefault) IsSuccess() bool

IsSuccess returns true when this get infra policies default response has a 2xx status code

func (*GetInfraPoliciesDefault) String

func (o *GetInfraPoliciesDefault) String() string

type GetInfraPoliciesForbidden

type GetInfraPoliciesForbidden struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetInfraPoliciesForbidden describes a response with status code 403, with default header values.

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewGetInfraPoliciesForbidden

func NewGetInfraPoliciesForbidden() *GetInfraPoliciesForbidden

NewGetInfraPoliciesForbidden creates a GetInfraPoliciesForbidden with default headers values

func (*GetInfraPoliciesForbidden) Code

func (o *GetInfraPoliciesForbidden) Code() int

Code gets the status code for the get infra policies forbidden response

func (*GetInfraPoliciesForbidden) Error

func (o *GetInfraPoliciesForbidden) Error() string

func (*GetInfraPoliciesForbidden) GetPayload

func (*GetInfraPoliciesForbidden) IsClientError

func (o *GetInfraPoliciesForbidden) IsClientError() bool

IsClientError returns true when this get infra policies forbidden response has a 4xx status code

func (*GetInfraPoliciesForbidden) IsCode

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

IsCode returns true when this get infra policies forbidden response a status code equal to that given

func (*GetInfraPoliciesForbidden) IsRedirect

func (o *GetInfraPoliciesForbidden) IsRedirect() bool

IsRedirect returns true when this get infra policies forbidden response has a 3xx status code

func (*GetInfraPoliciesForbidden) IsServerError

func (o *GetInfraPoliciesForbidden) IsServerError() bool

IsServerError returns true when this get infra policies forbidden response has a 5xx status code

func (*GetInfraPoliciesForbidden) IsSuccess

func (o *GetInfraPoliciesForbidden) IsSuccess() bool

IsSuccess returns true when this get infra policies forbidden response has a 2xx status code

func (*GetInfraPoliciesForbidden) String

func (o *GetInfraPoliciesForbidden) String() string

type GetInfraPoliciesNotFound

type GetInfraPoliciesNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The response sent when any of the entities present in the path is not found.

func NewGetInfraPoliciesNotFound

func NewGetInfraPoliciesNotFound() *GetInfraPoliciesNotFound

NewGetInfraPoliciesNotFound creates a GetInfraPoliciesNotFound with default headers values

func (*GetInfraPoliciesNotFound) Code

func (o *GetInfraPoliciesNotFound) Code() int

Code gets the status code for the get infra policies not found response

func (*GetInfraPoliciesNotFound) Error

func (o *GetInfraPoliciesNotFound) Error() string

func (*GetInfraPoliciesNotFound) GetPayload

func (o *GetInfraPoliciesNotFound) GetPayload() *models.ErrorPayload

func (*GetInfraPoliciesNotFound) IsClientError

func (o *GetInfraPoliciesNotFound) IsClientError() bool

IsClientError returns true when this get infra policies not found response has a 4xx status code

func (*GetInfraPoliciesNotFound) IsCode

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

IsCode returns true when this get infra policies not found response a status code equal to that given

func (*GetInfraPoliciesNotFound) IsRedirect

func (o *GetInfraPoliciesNotFound) IsRedirect() bool

IsRedirect returns true when this get infra policies not found response has a 3xx status code

func (*GetInfraPoliciesNotFound) IsServerError

func (o *GetInfraPoliciesNotFound) IsServerError() bool

IsServerError returns true when this get infra policies not found response has a 5xx status code

func (*GetInfraPoliciesNotFound) IsSuccess

func (o *GetInfraPoliciesNotFound) IsSuccess() bool

IsSuccess returns true when this get infra policies not found response has a 2xx status code

func (*GetInfraPoliciesNotFound) String

func (o *GetInfraPoliciesNotFound) String() string

type GetInfraPoliciesOK

type GetInfraPoliciesOK struct {
	Payload *GetInfraPoliciesOKBody
}

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

List of infrastructure policies.

func NewGetInfraPoliciesOK

func NewGetInfraPoliciesOK() *GetInfraPoliciesOK

NewGetInfraPoliciesOK creates a GetInfraPoliciesOK with default headers values

func (*GetInfraPoliciesOK) Code

func (o *GetInfraPoliciesOK) Code() int

Code gets the status code for the get infra policies o k response

func (*GetInfraPoliciesOK) Error

func (o *GetInfraPoliciesOK) Error() string

func (*GetInfraPoliciesOK) GetPayload

func (o *GetInfraPoliciesOK) GetPayload() *GetInfraPoliciesOKBody

func (*GetInfraPoliciesOK) IsClientError

func (o *GetInfraPoliciesOK) IsClientError() bool

IsClientError returns true when this get infra policies o k response has a 4xx status code

func (*GetInfraPoliciesOK) IsCode

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

IsCode returns true when this get infra policies o k response a status code equal to that given

func (*GetInfraPoliciesOK) IsRedirect

func (o *GetInfraPoliciesOK) IsRedirect() bool

IsRedirect returns true when this get infra policies o k response has a 3xx status code

func (*GetInfraPoliciesOK) IsServerError

func (o *GetInfraPoliciesOK) IsServerError() bool

IsServerError returns true when this get infra policies o k response has a 5xx status code

func (*GetInfraPoliciesOK) IsSuccess

func (o *GetInfraPoliciesOK) IsSuccess() bool

IsSuccess returns true when this get infra policies o k response has a 2xx status code

func (*GetInfraPoliciesOK) String

func (o *GetInfraPoliciesOK) String() string

type GetInfraPoliciesOKBody

type GetInfraPoliciesOKBody struct {

	// data
	// Required: true
	Data []*models.InfraPolicy `json:"data"`

	// pagination
	Pagination *models.Pagination `json:"pagination,omitempty"`
}

GetInfraPoliciesOKBody get infra policies o k body swagger:model GetInfraPoliciesOKBody

func (*GetInfraPoliciesOKBody) ContextValidate

func (o *GetInfraPoliciesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get infra policies o k body based on the context it is used

func (*GetInfraPoliciesOKBody) MarshalBinary

func (o *GetInfraPoliciesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetInfraPoliciesOKBody) UnmarshalBinary

func (o *GetInfraPoliciesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetInfraPoliciesOKBody) Validate

func (o *GetInfraPoliciesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get infra policies o k body

type GetInfraPoliciesParams

type GetInfraPoliciesParams struct {

	/* InfraPolicyCanonical.

	   Search by infra policy canonical
	*/
	InfraPolicyCanonical *string

	/* InfraPolicyCreatedAt.

	   Search by InfraPolicy's creation date

	   Format: uint64
	*/
	InfraPolicyCreatedAt *uint64

	/* InfraPolicyEnabled.

	   Search by InfraPolicy's enabled
	*/
	InfraPolicyEnabled *bool

	/* InfraPolicyName.

	   Search by InfraPolicy's name
	*/
	InfraPolicyName *string

	/* InfraPolicySeverity.

	   Search by InfraPolicy's severity
	*/
	InfraPolicySeverity *string

	/* OrderBy.

	   Allows to order the list of items. Example usage: field_name:asc

	*/
	OrderBy *string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

	/* PageIndex.

	   The page number to request. The first page is 1.

	   Format: uint32
	   Default: 1
	*/
	PageIndex *uint32

	/* PageSize.

	   The number of items at most which the response can have.

	   Format: uint32
	   Default: 1000
	*/
	PageSize *uint32

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

GetInfraPoliciesParams contains all the parameters to send to the API endpoint

for the get infra policies operation.

Typically these are written to a http.Request.

func NewGetInfraPoliciesParams

func NewGetInfraPoliciesParams() *GetInfraPoliciesParams

NewGetInfraPoliciesParams creates a new GetInfraPoliciesParams 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 NewGetInfraPoliciesParamsWithContext

func NewGetInfraPoliciesParamsWithContext(ctx context.Context) *GetInfraPoliciesParams

NewGetInfraPoliciesParamsWithContext creates a new GetInfraPoliciesParams object with the ability to set a context for a request.

func NewGetInfraPoliciesParamsWithHTTPClient

func NewGetInfraPoliciesParamsWithHTTPClient(client *http.Client) *GetInfraPoliciesParams

NewGetInfraPoliciesParamsWithHTTPClient creates a new GetInfraPoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewGetInfraPoliciesParamsWithTimeout

func NewGetInfraPoliciesParamsWithTimeout(timeout time.Duration) *GetInfraPoliciesParams

NewGetInfraPoliciesParamsWithTimeout creates a new GetInfraPoliciesParams object with the ability to set a timeout on a request.

func (*GetInfraPoliciesParams) SetContext

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

SetContext adds the context to the get infra policies params

func (*GetInfraPoliciesParams) SetDefaults

func (o *GetInfraPoliciesParams) SetDefaults()

SetDefaults hydrates default values in the get infra policies params (not the query body).

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

func (*GetInfraPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get infra policies params

func (*GetInfraPoliciesParams) SetInfraPolicyCanonical

func (o *GetInfraPoliciesParams) SetInfraPolicyCanonical(infraPolicyCanonical *string)

SetInfraPolicyCanonical adds the infraPolicyCanonical to the get infra policies params

func (*GetInfraPoliciesParams) SetInfraPolicyCreatedAt

func (o *GetInfraPoliciesParams) SetInfraPolicyCreatedAt(infraPolicyCreatedAt *uint64)

SetInfraPolicyCreatedAt adds the infraPolicyCreatedAt to the get infra policies params

func (*GetInfraPoliciesParams) SetInfraPolicyEnabled

func (o *GetInfraPoliciesParams) SetInfraPolicyEnabled(infraPolicyEnabled *bool)

SetInfraPolicyEnabled adds the infraPolicyEnabled to the get infra policies params

func (*GetInfraPoliciesParams) SetInfraPolicyName

func (o *GetInfraPoliciesParams) SetInfraPolicyName(infraPolicyName *string)

SetInfraPolicyName adds the infraPolicyName to the get infra policies params

func (*GetInfraPoliciesParams) SetInfraPolicySeverity

func (o *GetInfraPoliciesParams) SetInfraPolicySeverity(infraPolicySeverity *string)

SetInfraPolicySeverity adds the infraPolicySeverity to the get infra policies params

func (*GetInfraPoliciesParams) SetOrderBy

func (o *GetInfraPoliciesParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get infra policies params

func (*GetInfraPoliciesParams) SetOrganizationCanonical

func (o *GetInfraPoliciesParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get infra policies params

func (*GetInfraPoliciesParams) SetPageIndex

func (o *GetInfraPoliciesParams) SetPageIndex(pageIndex *uint32)

SetPageIndex adds the pageIndex to the get infra policies params

func (*GetInfraPoliciesParams) SetPageSize

func (o *GetInfraPoliciesParams) SetPageSize(pageSize *uint32)

SetPageSize adds the pageSize to the get infra policies params

func (*GetInfraPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the get infra policies params

func (*GetInfraPoliciesParams) WithContext

WithContext adds the context to the get infra policies params

func (*GetInfraPoliciesParams) WithDefaults

WithDefaults hydrates default values in the get infra policies params (not the query body).

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

func (*GetInfraPoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get infra policies params

func (*GetInfraPoliciesParams) WithInfraPolicyCanonical

func (o *GetInfraPoliciesParams) WithInfraPolicyCanonical(infraPolicyCanonical *string) *GetInfraPoliciesParams

WithInfraPolicyCanonical adds the infraPolicyCanonical to the get infra policies params

func (*GetInfraPoliciesParams) WithInfraPolicyCreatedAt

func (o *GetInfraPoliciesParams) WithInfraPolicyCreatedAt(infraPolicyCreatedAt *uint64) *GetInfraPoliciesParams

WithInfraPolicyCreatedAt adds the infraPolicyCreatedAt to the get infra policies params

func (*GetInfraPoliciesParams) WithInfraPolicyEnabled

func (o *GetInfraPoliciesParams) WithInfraPolicyEnabled(infraPolicyEnabled *bool) *GetInfraPoliciesParams

WithInfraPolicyEnabled adds the infraPolicyEnabled to the get infra policies params

func (*GetInfraPoliciesParams) WithInfraPolicyName

func (o *GetInfraPoliciesParams) WithInfraPolicyName(infraPolicyName *string) *GetInfraPoliciesParams

WithInfraPolicyName adds the infraPolicyName to the get infra policies params

func (*GetInfraPoliciesParams) WithInfraPolicySeverity

func (o *GetInfraPoliciesParams) WithInfraPolicySeverity(infraPolicySeverity *string) *GetInfraPoliciesParams

WithInfraPolicySeverity adds the infraPolicySeverity to the get infra policies params

func (*GetInfraPoliciesParams) WithOrderBy

func (o *GetInfraPoliciesParams) WithOrderBy(orderBy *string) *GetInfraPoliciesParams

WithOrderBy adds the orderBy to the get infra policies params

func (*GetInfraPoliciesParams) WithOrganizationCanonical

func (o *GetInfraPoliciesParams) WithOrganizationCanonical(organizationCanonical string) *GetInfraPoliciesParams

WithOrganizationCanonical adds the organizationCanonical to the get infra policies params

func (*GetInfraPoliciesParams) WithPageIndex

func (o *GetInfraPoliciesParams) WithPageIndex(pageIndex *uint32) *GetInfraPoliciesParams

WithPageIndex adds the pageIndex to the get infra policies params

func (*GetInfraPoliciesParams) WithPageSize

func (o *GetInfraPoliciesParams) WithPageSize(pageSize *uint32) *GetInfraPoliciesParams

WithPageSize adds the pageSize to the get infra policies params

func (*GetInfraPoliciesParams) WithTimeout

WithTimeout adds the timeout to the get infra policies params

func (*GetInfraPoliciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInfraPoliciesReader

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

GetInfraPoliciesReader is a Reader for the GetInfraPolicies structure.

func (*GetInfraPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInfraPoliciesUnprocessableEntity

type GetInfraPoliciesUnprocessableEntity struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetInfraPoliciesUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetInfraPoliciesUnprocessableEntity

func NewGetInfraPoliciesUnprocessableEntity() *GetInfraPoliciesUnprocessableEntity

NewGetInfraPoliciesUnprocessableEntity creates a GetInfraPoliciesUnprocessableEntity with default headers values

func (*GetInfraPoliciesUnprocessableEntity) Code

Code gets the status code for the get infra policies unprocessable entity response

func (*GetInfraPoliciesUnprocessableEntity) Error

func (*GetInfraPoliciesUnprocessableEntity) GetPayload

func (*GetInfraPoliciesUnprocessableEntity) IsClientError

func (o *GetInfraPoliciesUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get infra policies unprocessable entity response has a 4xx status code

func (*GetInfraPoliciesUnprocessableEntity) IsCode

IsCode returns true when this get infra policies unprocessable entity response a status code equal to that given

func (*GetInfraPoliciesUnprocessableEntity) IsRedirect

func (o *GetInfraPoliciesUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this get infra policies unprocessable entity response has a 3xx status code

func (*GetInfraPoliciesUnprocessableEntity) IsServerError

func (o *GetInfraPoliciesUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get infra policies unprocessable entity response has a 5xx status code

func (*GetInfraPoliciesUnprocessableEntity) IsSuccess

IsSuccess returns true when this get infra policies unprocessable entity response has a 2xx status code

func (*GetInfraPoliciesUnprocessableEntity) String

type GetInfraPolicyDefault

type GetInfraPolicyDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetInfraPolicyDefault

func NewGetInfraPolicyDefault(code int) *GetInfraPolicyDefault

NewGetInfraPolicyDefault creates a GetInfraPolicyDefault with default headers values

func (*GetInfraPolicyDefault) Code

func (o *GetInfraPolicyDefault) Code() int

Code gets the status code for the get infra policy default response

func (*GetInfraPolicyDefault) Error

func (o *GetInfraPolicyDefault) Error() string

func (*GetInfraPolicyDefault) GetPayload

func (o *GetInfraPolicyDefault) GetPayload() *models.ErrorPayload

func (*GetInfraPolicyDefault) IsClientError

func (o *GetInfraPolicyDefault) IsClientError() bool

IsClientError returns true when this get infra policy default response has a 4xx status code

func (*GetInfraPolicyDefault) IsCode

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

IsCode returns true when this get infra policy default response a status code equal to that given

func (*GetInfraPolicyDefault) IsRedirect

func (o *GetInfraPolicyDefault) IsRedirect() bool

IsRedirect returns true when this get infra policy default response has a 3xx status code

func (*GetInfraPolicyDefault) IsServerError

func (o *GetInfraPolicyDefault) IsServerError() bool

IsServerError returns true when this get infra policy default response has a 5xx status code

func (*GetInfraPolicyDefault) IsSuccess

func (o *GetInfraPolicyDefault) IsSuccess() bool

IsSuccess returns true when this get infra policy default response has a 2xx status code

func (*GetInfraPolicyDefault) String

func (o *GetInfraPolicyDefault) String() string

type GetInfraPolicyForbidden

type GetInfraPolicyForbidden struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetInfraPolicyForbidden describes a response with status code 403, with default header values.

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewGetInfraPolicyForbidden

func NewGetInfraPolicyForbidden() *GetInfraPolicyForbidden

NewGetInfraPolicyForbidden creates a GetInfraPolicyForbidden with default headers values

func (*GetInfraPolicyForbidden) Code

func (o *GetInfraPolicyForbidden) Code() int

Code gets the status code for the get infra policy forbidden response

func (*GetInfraPolicyForbidden) Error

func (o *GetInfraPolicyForbidden) Error() string

func (*GetInfraPolicyForbidden) GetPayload

func (o *GetInfraPolicyForbidden) GetPayload() *models.ErrorPayload

func (*GetInfraPolicyForbidden) IsClientError

func (o *GetInfraPolicyForbidden) IsClientError() bool

IsClientError returns true when this get infra policy forbidden response has a 4xx status code

func (*GetInfraPolicyForbidden) IsCode

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

IsCode returns true when this get infra policy forbidden response a status code equal to that given

func (*GetInfraPolicyForbidden) IsRedirect

func (o *GetInfraPolicyForbidden) IsRedirect() bool

IsRedirect returns true when this get infra policy forbidden response has a 3xx status code

func (*GetInfraPolicyForbidden) IsServerError

func (o *GetInfraPolicyForbidden) IsServerError() bool

IsServerError returns true when this get infra policy forbidden response has a 5xx status code

func (*GetInfraPolicyForbidden) IsSuccess

func (o *GetInfraPolicyForbidden) IsSuccess() bool

IsSuccess returns true when this get infra policy forbidden response has a 2xx status code

func (*GetInfraPolicyForbidden) String

func (o *GetInfraPolicyForbidden) String() string

type GetInfraPolicyNotFound

type GetInfraPolicyNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The response sent when any of the entities present in the path is not found.

func NewGetInfraPolicyNotFound

func NewGetInfraPolicyNotFound() *GetInfraPolicyNotFound

NewGetInfraPolicyNotFound creates a GetInfraPolicyNotFound with default headers values

func (*GetInfraPolicyNotFound) Code

func (o *GetInfraPolicyNotFound) Code() int

Code gets the status code for the get infra policy not found response

func (*GetInfraPolicyNotFound) Error

func (o *GetInfraPolicyNotFound) Error() string

func (*GetInfraPolicyNotFound) GetPayload

func (o *GetInfraPolicyNotFound) GetPayload() *models.ErrorPayload

func (*GetInfraPolicyNotFound) IsClientError

func (o *GetInfraPolicyNotFound) IsClientError() bool

IsClientError returns true when this get infra policy not found response has a 4xx status code

func (*GetInfraPolicyNotFound) IsCode

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

IsCode returns true when this get infra policy not found response a status code equal to that given

func (*GetInfraPolicyNotFound) IsRedirect

func (o *GetInfraPolicyNotFound) IsRedirect() bool

IsRedirect returns true when this get infra policy not found response has a 3xx status code

func (*GetInfraPolicyNotFound) IsServerError

func (o *GetInfraPolicyNotFound) IsServerError() bool

IsServerError returns true when this get infra policy not found response has a 5xx status code

func (*GetInfraPolicyNotFound) IsSuccess

func (o *GetInfraPolicyNotFound) IsSuccess() bool

IsSuccess returns true when this get infra policy not found response has a 2xx status code

func (*GetInfraPolicyNotFound) String

func (o *GetInfraPolicyNotFound) String() string

type GetInfraPolicyOK

type GetInfraPolicyOK struct {
	Payload *GetInfraPolicyOKBody
}

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

The information of the InfraPolicy which has the specified canonical.

func NewGetInfraPolicyOK

func NewGetInfraPolicyOK() *GetInfraPolicyOK

NewGetInfraPolicyOK creates a GetInfraPolicyOK with default headers values

func (*GetInfraPolicyOK) Code

func (o *GetInfraPolicyOK) Code() int

Code gets the status code for the get infra policy o k response

func (*GetInfraPolicyOK) Error

func (o *GetInfraPolicyOK) Error() string

func (*GetInfraPolicyOK) GetPayload

func (o *GetInfraPolicyOK) GetPayload() *GetInfraPolicyOKBody

func (*GetInfraPolicyOK) IsClientError

func (o *GetInfraPolicyOK) IsClientError() bool

IsClientError returns true when this get infra policy o k response has a 4xx status code

func (*GetInfraPolicyOK) IsCode

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

IsCode returns true when this get infra policy o k response a status code equal to that given

func (*GetInfraPolicyOK) IsRedirect

func (o *GetInfraPolicyOK) IsRedirect() bool

IsRedirect returns true when this get infra policy o k response has a 3xx status code

func (*GetInfraPolicyOK) IsServerError

func (o *GetInfraPolicyOK) IsServerError() bool

IsServerError returns true when this get infra policy o k response has a 5xx status code

func (*GetInfraPolicyOK) IsSuccess

func (o *GetInfraPolicyOK) IsSuccess() bool

IsSuccess returns true when this get infra policy o k response has a 2xx status code

func (*GetInfraPolicyOK) String

func (o *GetInfraPolicyOK) String() string

type GetInfraPolicyOKBody

type GetInfraPolicyOKBody struct {

	// data
	// Required: true
	Data *models.InfraPolicy `json:"data"`
}

GetInfraPolicyOKBody get infra policy o k body swagger:model GetInfraPolicyOKBody

func (*GetInfraPolicyOKBody) ContextValidate

func (o *GetInfraPolicyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get infra policy o k body based on the context it is used

func (*GetInfraPolicyOKBody) MarshalBinary

func (o *GetInfraPolicyOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetInfraPolicyOKBody) UnmarshalBinary

func (o *GetInfraPolicyOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetInfraPolicyOKBody) Validate

func (o *GetInfraPolicyOKBody) Validate(formats strfmt.Registry) error

Validate validates this get infra policy o k body

type GetInfraPolicyParams

type GetInfraPolicyParams struct {

	/* InfraPolicyCanonical.

	   The canonical of an InfraPolicy.
	*/
	InfraPolicyCanonical string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

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

GetInfraPolicyParams contains all the parameters to send to the API endpoint

for the get infra policy operation.

Typically these are written to a http.Request.

func NewGetInfraPolicyParams

func NewGetInfraPolicyParams() *GetInfraPolicyParams

NewGetInfraPolicyParams creates a new GetInfraPolicyParams 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 NewGetInfraPolicyParamsWithContext

func NewGetInfraPolicyParamsWithContext(ctx context.Context) *GetInfraPolicyParams

NewGetInfraPolicyParamsWithContext creates a new GetInfraPolicyParams object with the ability to set a context for a request.

func NewGetInfraPolicyParamsWithHTTPClient

func NewGetInfraPolicyParamsWithHTTPClient(client *http.Client) *GetInfraPolicyParams

NewGetInfraPolicyParamsWithHTTPClient creates a new GetInfraPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewGetInfraPolicyParamsWithTimeout

func NewGetInfraPolicyParamsWithTimeout(timeout time.Duration) *GetInfraPolicyParams

NewGetInfraPolicyParamsWithTimeout creates a new GetInfraPolicyParams object with the ability to set a timeout on a request.

func (*GetInfraPolicyParams) SetContext

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

SetContext adds the context to the get infra policy params

func (*GetInfraPolicyParams) SetDefaults

func (o *GetInfraPolicyParams) SetDefaults()

SetDefaults hydrates default values in the get infra policy params (not the query body).

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

func (*GetInfraPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get infra policy params

func (*GetInfraPolicyParams) SetInfraPolicyCanonical

func (o *GetInfraPolicyParams) SetInfraPolicyCanonical(infraPolicyCanonical string)

SetInfraPolicyCanonical adds the infraPolicyCanonical to the get infra policy params

func (*GetInfraPolicyParams) SetOrganizationCanonical

func (o *GetInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get infra policy params

func (*GetInfraPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the get infra policy params

func (*GetInfraPolicyParams) WithContext

WithContext adds the context to the get infra policy params

func (*GetInfraPolicyParams) WithDefaults

func (o *GetInfraPolicyParams) WithDefaults() *GetInfraPolicyParams

WithDefaults hydrates default values in the get infra policy params (not the query body).

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

func (*GetInfraPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get infra policy params

func (*GetInfraPolicyParams) WithInfraPolicyCanonical

func (o *GetInfraPolicyParams) WithInfraPolicyCanonical(infraPolicyCanonical string) *GetInfraPolicyParams

WithInfraPolicyCanonical adds the infraPolicyCanonical to the get infra policy params

func (*GetInfraPolicyParams) WithOrganizationCanonical

func (o *GetInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *GetInfraPolicyParams

WithOrganizationCanonical adds the organizationCanonical to the get infra policy params

func (*GetInfraPolicyParams) WithTimeout

func (o *GetInfraPolicyParams) WithTimeout(timeout time.Duration) *GetInfraPolicyParams

WithTimeout adds the timeout to the get infra policy params

func (*GetInfraPolicyParams) WriteToRequest

func (o *GetInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetInfraPolicyReader

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

GetInfraPolicyReader is a Reader for the GetInfraPolicy structure.

func (*GetInfraPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateInfraPolicyDefault

type UpdateInfraPolicyDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewUpdateInfraPolicyDefault

func NewUpdateInfraPolicyDefault(code int) *UpdateInfraPolicyDefault

NewUpdateInfraPolicyDefault creates a UpdateInfraPolicyDefault with default headers values

func (*UpdateInfraPolicyDefault) Code

func (o *UpdateInfraPolicyDefault) Code() int

Code gets the status code for the update infra policy default response

func (*UpdateInfraPolicyDefault) Error

func (o *UpdateInfraPolicyDefault) Error() string

func (*UpdateInfraPolicyDefault) GetPayload

func (o *UpdateInfraPolicyDefault) GetPayload() *models.ErrorPayload

func (*UpdateInfraPolicyDefault) IsClientError

func (o *UpdateInfraPolicyDefault) IsClientError() bool

IsClientError returns true when this update infra policy default response has a 4xx status code

func (*UpdateInfraPolicyDefault) IsCode

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

IsCode returns true when this update infra policy default response a status code equal to that given

func (*UpdateInfraPolicyDefault) IsRedirect

func (o *UpdateInfraPolicyDefault) IsRedirect() bool

IsRedirect returns true when this update infra policy default response has a 3xx status code

func (*UpdateInfraPolicyDefault) IsServerError

func (o *UpdateInfraPolicyDefault) IsServerError() bool

IsServerError returns true when this update infra policy default response has a 5xx status code

func (*UpdateInfraPolicyDefault) IsSuccess

func (o *UpdateInfraPolicyDefault) IsSuccess() bool

IsSuccess returns true when this update infra policy default response has a 2xx status code

func (*UpdateInfraPolicyDefault) String

func (o *UpdateInfraPolicyDefault) String() string

type UpdateInfraPolicyForbidden

type UpdateInfraPolicyForbidden struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

UpdateInfraPolicyForbidden describes a response with status code 403, with default header values.

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewUpdateInfraPolicyForbidden

func NewUpdateInfraPolicyForbidden() *UpdateInfraPolicyForbidden

NewUpdateInfraPolicyForbidden creates a UpdateInfraPolicyForbidden with default headers values

func (*UpdateInfraPolicyForbidden) Code

func (o *UpdateInfraPolicyForbidden) Code() int

Code gets the status code for the update infra policy forbidden response

func (*UpdateInfraPolicyForbidden) Error

func (*UpdateInfraPolicyForbidden) GetPayload

func (*UpdateInfraPolicyForbidden) IsClientError

func (o *UpdateInfraPolicyForbidden) IsClientError() bool

IsClientError returns true when this update infra policy forbidden response has a 4xx status code

func (*UpdateInfraPolicyForbidden) IsCode

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

IsCode returns true when this update infra policy forbidden response a status code equal to that given

func (*UpdateInfraPolicyForbidden) IsRedirect

func (o *UpdateInfraPolicyForbidden) IsRedirect() bool

IsRedirect returns true when this update infra policy forbidden response has a 3xx status code

func (*UpdateInfraPolicyForbidden) IsServerError

func (o *UpdateInfraPolicyForbidden) IsServerError() bool

IsServerError returns true when this update infra policy forbidden response has a 5xx status code

func (*UpdateInfraPolicyForbidden) IsSuccess

func (o *UpdateInfraPolicyForbidden) IsSuccess() bool

IsSuccess returns true when this update infra policy forbidden response has a 2xx status code

func (*UpdateInfraPolicyForbidden) String

func (o *UpdateInfraPolicyForbidden) String() string

type UpdateInfraPolicyNotFound

type UpdateInfraPolicyNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The response sent when any of the entities present in the path is not found.

func NewUpdateInfraPolicyNotFound

func NewUpdateInfraPolicyNotFound() *UpdateInfraPolicyNotFound

NewUpdateInfraPolicyNotFound creates a UpdateInfraPolicyNotFound with default headers values

func (*UpdateInfraPolicyNotFound) Code

func (o *UpdateInfraPolicyNotFound) Code() int

Code gets the status code for the update infra policy not found response

func (*UpdateInfraPolicyNotFound) Error

func (o *UpdateInfraPolicyNotFound) Error() string

func (*UpdateInfraPolicyNotFound) GetPayload

func (*UpdateInfraPolicyNotFound) IsClientError

func (o *UpdateInfraPolicyNotFound) IsClientError() bool

IsClientError returns true when this update infra policy not found response has a 4xx status code

func (*UpdateInfraPolicyNotFound) IsCode

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

IsCode returns true when this update infra policy not found response a status code equal to that given

func (*UpdateInfraPolicyNotFound) IsRedirect

func (o *UpdateInfraPolicyNotFound) IsRedirect() bool

IsRedirect returns true when this update infra policy not found response has a 3xx status code

func (*UpdateInfraPolicyNotFound) IsServerError

func (o *UpdateInfraPolicyNotFound) IsServerError() bool

IsServerError returns true when this update infra policy not found response has a 5xx status code

func (*UpdateInfraPolicyNotFound) IsSuccess

func (o *UpdateInfraPolicyNotFound) IsSuccess() bool

IsSuccess returns true when this update infra policy not found response has a 2xx status code

func (*UpdateInfraPolicyNotFound) String

func (o *UpdateInfraPolicyNotFound) String() string

type UpdateInfraPolicyOK

type UpdateInfraPolicyOK struct {
	Payload *UpdateInfraPolicyOKBody
}

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

InfraPolicy updated.

func NewUpdateInfraPolicyOK

func NewUpdateInfraPolicyOK() *UpdateInfraPolicyOK

NewUpdateInfraPolicyOK creates a UpdateInfraPolicyOK with default headers values

func (*UpdateInfraPolicyOK) Code

func (o *UpdateInfraPolicyOK) Code() int

Code gets the status code for the update infra policy o k response

func (*UpdateInfraPolicyOK) Error

func (o *UpdateInfraPolicyOK) Error() string

func (*UpdateInfraPolicyOK) GetPayload

func (*UpdateInfraPolicyOK) IsClientError

func (o *UpdateInfraPolicyOK) IsClientError() bool

IsClientError returns true when this update infra policy o k response has a 4xx status code

func (*UpdateInfraPolicyOK) IsCode

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

IsCode returns true when this update infra policy o k response a status code equal to that given

func (*UpdateInfraPolicyOK) IsRedirect

func (o *UpdateInfraPolicyOK) IsRedirect() bool

IsRedirect returns true when this update infra policy o k response has a 3xx status code

func (*UpdateInfraPolicyOK) IsServerError

func (o *UpdateInfraPolicyOK) IsServerError() bool

IsServerError returns true when this update infra policy o k response has a 5xx status code

func (*UpdateInfraPolicyOK) IsSuccess

func (o *UpdateInfraPolicyOK) IsSuccess() bool

IsSuccess returns true when this update infra policy o k response has a 2xx status code

func (*UpdateInfraPolicyOK) String

func (o *UpdateInfraPolicyOK) String() string

type UpdateInfraPolicyOKBody

type UpdateInfraPolicyOKBody struct {

	// data
	// Required: true
	Data *models.InfraPolicy `json:"data"`
}

UpdateInfraPolicyOKBody update infra policy o k body swagger:model UpdateInfraPolicyOKBody

func (*UpdateInfraPolicyOKBody) ContextValidate

func (o *UpdateInfraPolicyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update infra policy o k body based on the context it is used

func (*UpdateInfraPolicyOKBody) MarshalBinary

func (o *UpdateInfraPolicyOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateInfraPolicyOKBody) UnmarshalBinary

func (o *UpdateInfraPolicyOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateInfraPolicyOKBody) Validate

func (o *UpdateInfraPolicyOKBody) Validate(formats strfmt.Registry) error

Validate validates this update infra policy o k body

type UpdateInfraPolicyParams

type UpdateInfraPolicyParams struct {

	/* Body.

	   The information of the organization to update.
	*/
	Body *models.UpdateInfraPolicy

	/* InfraPolicyCanonical.

	   The canonical of an InfraPolicy.
	*/
	InfraPolicyCanonical string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

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

UpdateInfraPolicyParams contains all the parameters to send to the API endpoint

for the update infra policy operation.

Typically these are written to a http.Request.

func NewUpdateInfraPolicyParams

func NewUpdateInfraPolicyParams() *UpdateInfraPolicyParams

NewUpdateInfraPolicyParams creates a new UpdateInfraPolicyParams 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 NewUpdateInfraPolicyParamsWithContext

func NewUpdateInfraPolicyParamsWithContext(ctx context.Context) *UpdateInfraPolicyParams

NewUpdateInfraPolicyParamsWithContext creates a new UpdateInfraPolicyParams object with the ability to set a context for a request.

func NewUpdateInfraPolicyParamsWithHTTPClient

func NewUpdateInfraPolicyParamsWithHTTPClient(client *http.Client) *UpdateInfraPolicyParams

NewUpdateInfraPolicyParamsWithHTTPClient creates a new UpdateInfraPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateInfraPolicyParamsWithTimeout

func NewUpdateInfraPolicyParamsWithTimeout(timeout time.Duration) *UpdateInfraPolicyParams

NewUpdateInfraPolicyParamsWithTimeout creates a new UpdateInfraPolicyParams object with the ability to set a timeout on a request.

func (*UpdateInfraPolicyParams) SetBody

SetBody adds the body to the update infra policy params

func (*UpdateInfraPolicyParams) SetContext

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

SetContext adds the context to the update infra policy params

func (*UpdateInfraPolicyParams) SetDefaults

func (o *UpdateInfraPolicyParams) SetDefaults()

SetDefaults hydrates default values in the update infra policy params (not the query body).

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

func (*UpdateInfraPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update infra policy params

func (*UpdateInfraPolicyParams) SetInfraPolicyCanonical

func (o *UpdateInfraPolicyParams) SetInfraPolicyCanonical(infraPolicyCanonical string)

SetInfraPolicyCanonical adds the infraPolicyCanonical to the update infra policy params

func (*UpdateInfraPolicyParams) SetOrganizationCanonical

func (o *UpdateInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the update infra policy params

func (*UpdateInfraPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the update infra policy params

func (*UpdateInfraPolicyParams) WithBody

WithBody adds the body to the update infra policy params

func (*UpdateInfraPolicyParams) WithContext

WithContext adds the context to the update infra policy params

func (*UpdateInfraPolicyParams) WithDefaults

WithDefaults hydrates default values in the update infra policy params (not the query body).

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

func (*UpdateInfraPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update infra policy params

func (*UpdateInfraPolicyParams) WithInfraPolicyCanonical

func (o *UpdateInfraPolicyParams) WithInfraPolicyCanonical(infraPolicyCanonical string) *UpdateInfraPolicyParams

WithInfraPolicyCanonical adds the infraPolicyCanonical to the update infra policy params

func (*UpdateInfraPolicyParams) WithOrganizationCanonical

func (o *UpdateInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *UpdateInfraPolicyParams

WithOrganizationCanonical adds the organizationCanonical to the update infra policy params

func (*UpdateInfraPolicyParams) WithTimeout

WithTimeout adds the timeout to the update infra policy params

func (*UpdateInfraPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateInfraPolicyReader

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

UpdateInfraPolicyReader is a Reader for the UpdateInfraPolicy structure.

func (*UpdateInfraPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateInfraPolicyUnprocessableEntity

type UpdateInfraPolicyUnprocessableEntity struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

UpdateInfraPolicyUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewUpdateInfraPolicyUnprocessableEntity

func NewUpdateInfraPolicyUnprocessableEntity() *UpdateInfraPolicyUnprocessableEntity

NewUpdateInfraPolicyUnprocessableEntity creates a UpdateInfraPolicyUnprocessableEntity with default headers values

func (*UpdateInfraPolicyUnprocessableEntity) Code

Code gets the status code for the update infra policy unprocessable entity response

func (*UpdateInfraPolicyUnprocessableEntity) Error

func (*UpdateInfraPolicyUnprocessableEntity) GetPayload

func (*UpdateInfraPolicyUnprocessableEntity) IsClientError

func (o *UpdateInfraPolicyUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update infra policy unprocessable entity response has a 4xx status code

func (*UpdateInfraPolicyUnprocessableEntity) IsCode

IsCode returns true when this update infra policy unprocessable entity response a status code equal to that given

func (*UpdateInfraPolicyUnprocessableEntity) IsRedirect

IsRedirect returns true when this update infra policy unprocessable entity response has a 3xx status code

func (*UpdateInfraPolicyUnprocessableEntity) IsServerError

func (o *UpdateInfraPolicyUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update infra policy unprocessable entity response has a 5xx status code

func (*UpdateInfraPolicyUnprocessableEntity) IsSuccess

IsSuccess returns true when this update infra policy unprocessable entity response has a 2xx status code

func (*UpdateInfraPolicyUnprocessableEntity) String

type ValidateProjectInfraPoliciesDefault

type ValidateProjectInfraPoliciesDefault struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

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

The response sent when an unexpected error happened, as known as an internal server error.

func NewValidateProjectInfraPoliciesDefault

func NewValidateProjectInfraPoliciesDefault(code int) *ValidateProjectInfraPoliciesDefault

NewValidateProjectInfraPoliciesDefault creates a ValidateProjectInfraPoliciesDefault with default headers values

func (*ValidateProjectInfraPoliciesDefault) Code

Code gets the status code for the validate project infra policies default response

func (*ValidateProjectInfraPoliciesDefault) Error

func (*ValidateProjectInfraPoliciesDefault) GetPayload

func (*ValidateProjectInfraPoliciesDefault) IsClientError

func (o *ValidateProjectInfraPoliciesDefault) IsClientError() bool

IsClientError returns true when this validate project infra policies default response has a 4xx status code

func (*ValidateProjectInfraPoliciesDefault) IsCode

IsCode returns true when this validate project infra policies default response a status code equal to that given

func (*ValidateProjectInfraPoliciesDefault) IsRedirect

func (o *ValidateProjectInfraPoliciesDefault) IsRedirect() bool

IsRedirect returns true when this validate project infra policies default response has a 3xx status code

func (*ValidateProjectInfraPoliciesDefault) IsServerError

func (o *ValidateProjectInfraPoliciesDefault) IsServerError() bool

IsServerError returns true when this validate project infra policies default response has a 5xx status code

func (*ValidateProjectInfraPoliciesDefault) IsSuccess

IsSuccess returns true when this validate project infra policies default response has a 2xx status code

func (*ValidateProjectInfraPoliciesDefault) String

type ValidateProjectInfraPoliciesForbidden

type ValidateProjectInfraPoliciesForbidden struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

ValidateProjectInfraPoliciesForbidden describes a response with status code 403, with default header values.

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewValidateProjectInfraPoliciesForbidden

func NewValidateProjectInfraPoliciesForbidden() *ValidateProjectInfraPoliciesForbidden

NewValidateProjectInfraPoliciesForbidden creates a ValidateProjectInfraPoliciesForbidden with default headers values

func (*ValidateProjectInfraPoliciesForbidden) Code

Code gets the status code for the validate project infra policies forbidden response

func (*ValidateProjectInfraPoliciesForbidden) Error

func (*ValidateProjectInfraPoliciesForbidden) GetPayload

func (*ValidateProjectInfraPoliciesForbidden) IsClientError

func (o *ValidateProjectInfraPoliciesForbidden) IsClientError() bool

IsClientError returns true when this validate project infra policies forbidden response has a 4xx status code

func (*ValidateProjectInfraPoliciesForbidden) IsCode

IsCode returns true when this validate project infra policies forbidden response a status code equal to that given

func (*ValidateProjectInfraPoliciesForbidden) IsRedirect

IsRedirect returns true when this validate project infra policies forbidden response has a 3xx status code

func (*ValidateProjectInfraPoliciesForbidden) IsServerError

func (o *ValidateProjectInfraPoliciesForbidden) IsServerError() bool

IsServerError returns true when this validate project infra policies forbidden response has a 5xx status code

func (*ValidateProjectInfraPoliciesForbidden) IsSuccess

IsSuccess returns true when this validate project infra policies forbidden response has a 2xx status code

func (*ValidateProjectInfraPoliciesForbidden) String

type ValidateProjectInfraPoliciesNotFound

type ValidateProjectInfraPoliciesNotFound struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

The response sent when any of the entities present in the path is not found.

func NewValidateProjectInfraPoliciesNotFound

func NewValidateProjectInfraPoliciesNotFound() *ValidateProjectInfraPoliciesNotFound

NewValidateProjectInfraPoliciesNotFound creates a ValidateProjectInfraPoliciesNotFound with default headers values

func (*ValidateProjectInfraPoliciesNotFound) Code

Code gets the status code for the validate project infra policies not found response

func (*ValidateProjectInfraPoliciesNotFound) Error

func (*ValidateProjectInfraPoliciesNotFound) GetPayload

func (*ValidateProjectInfraPoliciesNotFound) IsClientError

func (o *ValidateProjectInfraPoliciesNotFound) IsClientError() bool

IsClientError returns true when this validate project infra policies not found response has a 4xx status code

func (*ValidateProjectInfraPoliciesNotFound) IsCode

IsCode returns true when this validate project infra policies not found response a status code equal to that given

func (*ValidateProjectInfraPoliciesNotFound) IsRedirect

IsRedirect returns true when this validate project infra policies not found response has a 3xx status code

func (*ValidateProjectInfraPoliciesNotFound) IsServerError

func (o *ValidateProjectInfraPoliciesNotFound) IsServerError() bool

IsServerError returns true when this validate project infra policies not found response has a 5xx status code

func (*ValidateProjectInfraPoliciesNotFound) IsSuccess

IsSuccess returns true when this validate project infra policies not found response has a 2xx status code

func (*ValidateProjectInfraPoliciesNotFound) String

type ValidateProjectInfraPoliciesOK

type ValidateProjectInfraPoliciesOK struct {
	Payload *ValidateProjectInfraPoliciesOKBody
}

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

The list of the policies not respected.

func NewValidateProjectInfraPoliciesOK

func NewValidateProjectInfraPoliciesOK() *ValidateProjectInfraPoliciesOK

NewValidateProjectInfraPoliciesOK creates a ValidateProjectInfraPoliciesOK with default headers values

func (*ValidateProjectInfraPoliciesOK) Code

Code gets the status code for the validate project infra policies o k response

func (*ValidateProjectInfraPoliciesOK) Error

func (*ValidateProjectInfraPoliciesOK) GetPayload

func (*ValidateProjectInfraPoliciesOK) IsClientError

func (o *ValidateProjectInfraPoliciesOK) IsClientError() bool

IsClientError returns true when this validate project infra policies o k response has a 4xx status code

func (*ValidateProjectInfraPoliciesOK) IsCode

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

IsCode returns true when this validate project infra policies o k response a status code equal to that given

func (*ValidateProjectInfraPoliciesOK) IsRedirect

func (o *ValidateProjectInfraPoliciesOK) IsRedirect() bool

IsRedirect returns true when this validate project infra policies o k response has a 3xx status code

func (*ValidateProjectInfraPoliciesOK) IsServerError

func (o *ValidateProjectInfraPoliciesOK) IsServerError() bool

IsServerError returns true when this validate project infra policies o k response has a 5xx status code

func (*ValidateProjectInfraPoliciesOK) IsSuccess

func (o *ValidateProjectInfraPoliciesOK) IsSuccess() bool

IsSuccess returns true when this validate project infra policies o k response has a 2xx status code

func (*ValidateProjectInfraPoliciesOK) String

type ValidateProjectInfraPoliciesOKBody

type ValidateProjectInfraPoliciesOKBody struct {

	// data
	Data *models.InfraPoliciesValidationResult `json:"data,omitempty"`
}

ValidateProjectInfraPoliciesOKBody validate project infra policies o k body swagger:model ValidateProjectInfraPoliciesOKBody

func (*ValidateProjectInfraPoliciesOKBody) ContextValidate

func (o *ValidateProjectInfraPoliciesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this validate project infra policies o k body based on the context it is used

func (*ValidateProjectInfraPoliciesOKBody) MarshalBinary

func (o *ValidateProjectInfraPoliciesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ValidateProjectInfraPoliciesOKBody) UnmarshalBinary

func (o *ValidateProjectInfraPoliciesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ValidateProjectInfraPoliciesOKBody) Validate

Validate validates this validate project infra policies o k body

type ValidateProjectInfraPoliciesParams

type ValidateProjectInfraPoliciesParams struct {

	/* Body.

	   The project's attributes to check before to apply an infrastructure change.
	*/
	Body *models.TerraformPlanInput

	/* EnvironmentCanonical.

	   The environment canonical to use as part of a path
	*/
	EnvironmentCanonical string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

	/* ProjectCanonical.

	   A canonical of a project.
	*/
	ProjectCanonical string

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

ValidateProjectInfraPoliciesParams contains all the parameters to send to the API endpoint

for the validate project infra policies operation.

Typically these are written to a http.Request.

func NewValidateProjectInfraPoliciesParams

func NewValidateProjectInfraPoliciesParams() *ValidateProjectInfraPoliciesParams

NewValidateProjectInfraPoliciesParams creates a new ValidateProjectInfraPoliciesParams 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 NewValidateProjectInfraPoliciesParamsWithContext

func NewValidateProjectInfraPoliciesParamsWithContext(ctx context.Context) *ValidateProjectInfraPoliciesParams

NewValidateProjectInfraPoliciesParamsWithContext creates a new ValidateProjectInfraPoliciesParams object with the ability to set a context for a request.

func NewValidateProjectInfraPoliciesParamsWithHTTPClient

func NewValidateProjectInfraPoliciesParamsWithHTTPClient(client *http.Client) *ValidateProjectInfraPoliciesParams

NewValidateProjectInfraPoliciesParamsWithHTTPClient creates a new ValidateProjectInfraPoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewValidateProjectInfraPoliciesParamsWithTimeout

func NewValidateProjectInfraPoliciesParamsWithTimeout(timeout time.Duration) *ValidateProjectInfraPoliciesParams

NewValidateProjectInfraPoliciesParamsWithTimeout creates a new ValidateProjectInfraPoliciesParams object with the ability to set a timeout on a request.

func (*ValidateProjectInfraPoliciesParams) SetBody

SetBody adds the body to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) SetContext

SetContext adds the context to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) SetDefaults

func (o *ValidateProjectInfraPoliciesParams) SetDefaults()

SetDefaults hydrates default values in the validate project infra policies params (not the query body).

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

func (*ValidateProjectInfraPoliciesParams) SetEnvironmentCanonical

func (o *ValidateProjectInfraPoliciesParams) SetEnvironmentCanonical(environmentCanonical string)

SetEnvironmentCanonical adds the environmentCanonical to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) SetOrganizationCanonical

func (o *ValidateProjectInfraPoliciesParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) SetProjectCanonical

func (o *ValidateProjectInfraPoliciesParams) SetProjectCanonical(projectCanonical string)

SetProjectCanonical adds the projectCanonical to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WithBody

WithBody adds the body to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WithContext

WithContext adds the context to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WithDefaults

WithDefaults hydrates default values in the validate project infra policies params (not the query body).

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

func (*ValidateProjectInfraPoliciesParams) WithEnvironmentCanonical

func (o *ValidateProjectInfraPoliciesParams) WithEnvironmentCanonical(environmentCanonical string) *ValidateProjectInfraPoliciesParams

WithEnvironmentCanonical adds the environmentCanonical to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WithOrganizationCanonical

func (o *ValidateProjectInfraPoliciesParams) WithOrganizationCanonical(organizationCanonical string) *ValidateProjectInfraPoliciesParams

WithOrganizationCanonical adds the organizationCanonical to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WithProjectCanonical

func (o *ValidateProjectInfraPoliciesParams) WithProjectCanonical(projectCanonical string) *ValidateProjectInfraPoliciesParams

WithProjectCanonical adds the projectCanonical to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WithTimeout

WithTimeout adds the timeout to the validate project infra policies params

func (*ValidateProjectInfraPoliciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ValidateProjectInfraPoliciesReader

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

ValidateProjectInfraPoliciesReader is a Reader for the ValidateProjectInfraPolicies structure.

func (*ValidateProjectInfraPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ValidateProjectInfraPoliciesUnprocessableEntity

type ValidateProjectInfraPoliciesUnprocessableEntity struct {

	/* The length of the response body in octets (8-bit bytes).

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

ValidateProjectInfraPoliciesUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewValidateProjectInfraPoliciesUnprocessableEntity

func NewValidateProjectInfraPoliciesUnprocessableEntity() *ValidateProjectInfraPoliciesUnprocessableEntity

NewValidateProjectInfraPoliciesUnprocessableEntity creates a ValidateProjectInfraPoliciesUnprocessableEntity with default headers values

func (*ValidateProjectInfraPoliciesUnprocessableEntity) Code

Code gets the status code for the validate project infra policies unprocessable entity response

func (*ValidateProjectInfraPoliciesUnprocessableEntity) Error

func (*ValidateProjectInfraPoliciesUnprocessableEntity) GetPayload

func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsClientError

IsClientError returns true when this validate project infra policies unprocessable entity response has a 4xx status code

func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsCode

IsCode returns true when this validate project infra policies unprocessable entity response a status code equal to that given

func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsRedirect

IsRedirect returns true when this validate project infra policies unprocessable entity response has a 3xx status code

func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsServerError

IsServerError returns true when this validate project infra policies unprocessable entity response has a 5xx status code

func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsSuccess

IsSuccess returns true when this validate project infra policies unprocessable entity response has a 2xx status code

func (*ValidateProjectInfraPoliciesUnprocessableEntity) String

Jump to

Keyboard shortcuts

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