Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) CreateInfraPolicy(params *CreateInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateInfraPolicyOK, error)
- func (a *Client) DeleteInfraPolicy(params *DeleteInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteInfraPolicyNoContent, error)
- func (a *Client) GetInfraPolicies(params *GetInfraPoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetInfraPoliciesOK, error)
- func (a *Client) GetInfraPolicy(params *GetInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetInfraPolicyOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateInfraPolicy(params *UpdateInfraPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateInfraPolicyOK, error)
- func (a *Client) ValidateProjectInfraPolicies(params *ValidateProjectInfraPoliciesParams, ...) (*ValidateProjectInfraPoliciesOK, error)
- type ClientOption
- type ClientService
- type CreateInfraPolicyDefault
- func (o *CreateInfraPolicyDefault) Code() int
- func (o *CreateInfraPolicyDefault) Error() string
- func (o *CreateInfraPolicyDefault) GetPayload() *models.ErrorPayload
- func (o *CreateInfraPolicyDefault) IsClientError() bool
- func (o *CreateInfraPolicyDefault) IsCode(code int) bool
- func (o *CreateInfraPolicyDefault) IsRedirect() bool
- func (o *CreateInfraPolicyDefault) IsServerError() bool
- func (o *CreateInfraPolicyDefault) IsSuccess() bool
- func (o *CreateInfraPolicyDefault) String() string
- type CreateInfraPolicyLengthRequired
- func (o *CreateInfraPolicyLengthRequired) Code() int
- func (o *CreateInfraPolicyLengthRequired) Error() string
- func (o *CreateInfraPolicyLengthRequired) IsClientError() bool
- func (o *CreateInfraPolicyLengthRequired) IsCode(code int) bool
- func (o *CreateInfraPolicyLengthRequired) IsRedirect() bool
- func (o *CreateInfraPolicyLengthRequired) IsServerError() bool
- func (o *CreateInfraPolicyLengthRequired) IsSuccess() bool
- func (o *CreateInfraPolicyLengthRequired) String() string
- type CreateInfraPolicyOK
- func (o *CreateInfraPolicyOK) Code() int
- func (o *CreateInfraPolicyOK) Error() string
- func (o *CreateInfraPolicyOK) GetPayload() *CreateInfraPolicyOKBody
- func (o *CreateInfraPolicyOK) IsClientError() bool
- func (o *CreateInfraPolicyOK) IsCode(code int) bool
- func (o *CreateInfraPolicyOK) IsRedirect() bool
- func (o *CreateInfraPolicyOK) IsServerError() bool
- func (o *CreateInfraPolicyOK) IsSuccess() bool
- func (o *CreateInfraPolicyOK) String() string
- type CreateInfraPolicyOKBody
- func (o *CreateInfraPolicyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateInfraPolicyOKBody) MarshalBinary() ([]byte, error)
- func (o *CreateInfraPolicyOKBody) UnmarshalBinary(b []byte) error
- func (o *CreateInfraPolicyOKBody) Validate(formats strfmt.Registry) error
- type CreateInfraPolicyParams
- func NewCreateInfraPolicyParams() *CreateInfraPolicyParams
- func NewCreateInfraPolicyParamsWithContext(ctx context.Context) *CreateInfraPolicyParams
- func NewCreateInfraPolicyParamsWithHTTPClient(client *http.Client) *CreateInfraPolicyParams
- func NewCreateInfraPolicyParamsWithTimeout(timeout time.Duration) *CreateInfraPolicyParams
- func (o *CreateInfraPolicyParams) SetBody(body *models.NewInfraPolicy)
- func (o *CreateInfraPolicyParams) SetContext(ctx context.Context)
- func (o *CreateInfraPolicyParams) SetDefaults()
- func (o *CreateInfraPolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreateInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *CreateInfraPolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreateInfraPolicyParams) WithBody(body *models.NewInfraPolicy) *CreateInfraPolicyParams
- func (o *CreateInfraPolicyParams) WithContext(ctx context.Context) *CreateInfraPolicyParams
- func (o *CreateInfraPolicyParams) WithDefaults() *CreateInfraPolicyParams
- func (o *CreateInfraPolicyParams) WithHTTPClient(client *http.Client) *CreateInfraPolicyParams
- func (o *CreateInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *CreateInfraPolicyParams
- func (o *CreateInfraPolicyParams) WithTimeout(timeout time.Duration) *CreateInfraPolicyParams
- func (o *CreateInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateInfraPolicyReader
- type CreateInfraPolicyUnprocessableEntity
- func (o *CreateInfraPolicyUnprocessableEntity) Code() int
- func (o *CreateInfraPolicyUnprocessableEntity) Error() string
- func (o *CreateInfraPolicyUnprocessableEntity) GetPayload() *models.ErrorPayload
- func (o *CreateInfraPolicyUnprocessableEntity) IsClientError() bool
- func (o *CreateInfraPolicyUnprocessableEntity) IsCode(code int) bool
- func (o *CreateInfraPolicyUnprocessableEntity) IsRedirect() bool
- func (o *CreateInfraPolicyUnprocessableEntity) IsServerError() bool
- func (o *CreateInfraPolicyUnprocessableEntity) IsSuccess() bool
- func (o *CreateInfraPolicyUnprocessableEntity) String() string
- type DeleteInfraPolicyDefault
- func (o *DeleteInfraPolicyDefault) Code() int
- func (o *DeleteInfraPolicyDefault) Error() string
- func (o *DeleteInfraPolicyDefault) GetPayload() *models.ErrorPayload
- func (o *DeleteInfraPolicyDefault) IsClientError() bool
- func (o *DeleteInfraPolicyDefault) IsCode(code int) bool
- func (o *DeleteInfraPolicyDefault) IsRedirect() bool
- func (o *DeleteInfraPolicyDefault) IsServerError() bool
- func (o *DeleteInfraPolicyDefault) IsSuccess() bool
- func (o *DeleteInfraPolicyDefault) String() string
- type DeleteInfraPolicyForbidden
- func (o *DeleteInfraPolicyForbidden) Code() int
- func (o *DeleteInfraPolicyForbidden) Error() string
- func (o *DeleteInfraPolicyForbidden) GetPayload() *models.ErrorPayload
- func (o *DeleteInfraPolicyForbidden) IsClientError() bool
- func (o *DeleteInfraPolicyForbidden) IsCode(code int) bool
- func (o *DeleteInfraPolicyForbidden) IsRedirect() bool
- func (o *DeleteInfraPolicyForbidden) IsServerError() bool
- func (o *DeleteInfraPolicyForbidden) IsSuccess() bool
- func (o *DeleteInfraPolicyForbidden) String() string
- type DeleteInfraPolicyNoContent
- func (o *DeleteInfraPolicyNoContent) Code() int
- func (o *DeleteInfraPolicyNoContent) Error() string
- func (o *DeleteInfraPolicyNoContent) IsClientError() bool
- func (o *DeleteInfraPolicyNoContent) IsCode(code int) bool
- func (o *DeleteInfraPolicyNoContent) IsRedirect() bool
- func (o *DeleteInfraPolicyNoContent) IsServerError() bool
- func (o *DeleteInfraPolicyNoContent) IsSuccess() bool
- func (o *DeleteInfraPolicyNoContent) String() string
- type DeleteInfraPolicyNotFound
- func (o *DeleteInfraPolicyNotFound) Code() int
- func (o *DeleteInfraPolicyNotFound) Error() string
- func (o *DeleteInfraPolicyNotFound) GetPayload() *models.ErrorPayload
- func (o *DeleteInfraPolicyNotFound) IsClientError() bool
- func (o *DeleteInfraPolicyNotFound) IsCode(code int) bool
- func (o *DeleteInfraPolicyNotFound) IsRedirect() bool
- func (o *DeleteInfraPolicyNotFound) IsServerError() bool
- func (o *DeleteInfraPolicyNotFound) IsSuccess() bool
- func (o *DeleteInfraPolicyNotFound) String() string
- type DeleteInfraPolicyParams
- func NewDeleteInfraPolicyParams() *DeleteInfraPolicyParams
- func NewDeleteInfraPolicyParamsWithContext(ctx context.Context) *DeleteInfraPolicyParams
- func NewDeleteInfraPolicyParamsWithHTTPClient(client *http.Client) *DeleteInfraPolicyParams
- func NewDeleteInfraPolicyParamsWithTimeout(timeout time.Duration) *DeleteInfraPolicyParams
- func (o *DeleteInfraPolicyParams) SetContext(ctx context.Context)
- func (o *DeleteInfraPolicyParams) SetDefaults()
- func (o *DeleteInfraPolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeleteInfraPolicyParams) SetInfraPolicyCanonical(infraPolicyCanonical string)
- func (o *DeleteInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *DeleteInfraPolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeleteInfraPolicyParams) WithContext(ctx context.Context) *DeleteInfraPolicyParams
- func (o *DeleteInfraPolicyParams) WithDefaults() *DeleteInfraPolicyParams
- func (o *DeleteInfraPolicyParams) WithHTTPClient(client *http.Client) *DeleteInfraPolicyParams
- func (o *DeleteInfraPolicyParams) WithInfraPolicyCanonical(infraPolicyCanonical string) *DeleteInfraPolicyParams
- func (o *DeleteInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *DeleteInfraPolicyParams
- func (o *DeleteInfraPolicyParams) WithTimeout(timeout time.Duration) *DeleteInfraPolicyParams
- func (o *DeleteInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteInfraPolicyReader
- type GetInfraPoliciesDefault
- func (o *GetInfraPoliciesDefault) Code() int
- func (o *GetInfraPoliciesDefault) Error() string
- func (o *GetInfraPoliciesDefault) GetPayload() *models.ErrorPayload
- func (o *GetInfraPoliciesDefault) IsClientError() bool
- func (o *GetInfraPoliciesDefault) IsCode(code int) bool
- func (o *GetInfraPoliciesDefault) IsRedirect() bool
- func (o *GetInfraPoliciesDefault) IsServerError() bool
- func (o *GetInfraPoliciesDefault) IsSuccess() bool
- func (o *GetInfraPoliciesDefault) String() string
- type GetInfraPoliciesForbidden
- func (o *GetInfraPoliciesForbidden) Code() int
- func (o *GetInfraPoliciesForbidden) Error() string
- func (o *GetInfraPoliciesForbidden) GetPayload() *models.ErrorPayload
- func (o *GetInfraPoliciesForbidden) IsClientError() bool
- func (o *GetInfraPoliciesForbidden) IsCode(code int) bool
- func (o *GetInfraPoliciesForbidden) IsRedirect() bool
- func (o *GetInfraPoliciesForbidden) IsServerError() bool
- func (o *GetInfraPoliciesForbidden) IsSuccess() bool
- func (o *GetInfraPoliciesForbidden) String() string
- type GetInfraPoliciesNotFound
- func (o *GetInfraPoliciesNotFound) Code() int
- func (o *GetInfraPoliciesNotFound) Error() string
- func (o *GetInfraPoliciesNotFound) GetPayload() *models.ErrorPayload
- func (o *GetInfraPoliciesNotFound) IsClientError() bool
- func (o *GetInfraPoliciesNotFound) IsCode(code int) bool
- func (o *GetInfraPoliciesNotFound) IsRedirect() bool
- func (o *GetInfraPoliciesNotFound) IsServerError() bool
- func (o *GetInfraPoliciesNotFound) IsSuccess() bool
- func (o *GetInfraPoliciesNotFound) String() string
- type GetInfraPoliciesOK
- func (o *GetInfraPoliciesOK) Code() int
- func (o *GetInfraPoliciesOK) Error() string
- func (o *GetInfraPoliciesOK) GetPayload() *GetInfraPoliciesOKBody
- func (o *GetInfraPoliciesOK) IsClientError() bool
- func (o *GetInfraPoliciesOK) IsCode(code int) bool
- func (o *GetInfraPoliciesOK) IsRedirect() bool
- func (o *GetInfraPoliciesOK) IsServerError() bool
- func (o *GetInfraPoliciesOK) IsSuccess() bool
- func (o *GetInfraPoliciesOK) String() string
- type GetInfraPoliciesOKBody
- func (o *GetInfraPoliciesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetInfraPoliciesOKBody) MarshalBinary() ([]byte, error)
- func (o *GetInfraPoliciesOKBody) UnmarshalBinary(b []byte) error
- func (o *GetInfraPoliciesOKBody) Validate(formats strfmt.Registry) error
- type GetInfraPoliciesParams
- func NewGetInfraPoliciesParams() *GetInfraPoliciesParams
- func NewGetInfraPoliciesParamsWithContext(ctx context.Context) *GetInfraPoliciesParams
- func NewGetInfraPoliciesParamsWithHTTPClient(client *http.Client) *GetInfraPoliciesParams
- func NewGetInfraPoliciesParamsWithTimeout(timeout time.Duration) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) SetContext(ctx context.Context)
- func (o *GetInfraPoliciesParams) SetDefaults()
- func (o *GetInfraPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *GetInfraPoliciesParams) SetInfraPolicyCanonical(infraPolicyCanonical *string)
- func (o *GetInfraPoliciesParams) SetInfraPolicyCreatedAt(infraPolicyCreatedAt *uint64)
- func (o *GetInfraPoliciesParams) SetInfraPolicyEnabled(infraPolicyEnabled *bool)
- func (o *GetInfraPoliciesParams) SetInfraPolicyName(infraPolicyName *string)
- func (o *GetInfraPoliciesParams) SetInfraPolicySeverity(infraPolicySeverity *string)
- func (o *GetInfraPoliciesParams) SetOrderBy(orderBy *string)
- func (o *GetInfraPoliciesParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *GetInfraPoliciesParams) SetPageIndex(pageIndex *uint32)
- func (o *GetInfraPoliciesParams) SetPageSize(pageSize *uint32)
- func (o *GetInfraPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *GetInfraPoliciesParams) WithContext(ctx context.Context) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithDefaults() *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithHTTPClient(client *http.Client) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithInfraPolicyCanonical(infraPolicyCanonical *string) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithInfraPolicyCreatedAt(infraPolicyCreatedAt *uint64) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithInfraPolicyEnabled(infraPolicyEnabled *bool) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithInfraPolicyName(infraPolicyName *string) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithInfraPolicySeverity(infraPolicySeverity *string) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithOrderBy(orderBy *string) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithOrganizationCanonical(organizationCanonical string) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithPageIndex(pageIndex *uint32) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithPageSize(pageSize *uint32) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WithTimeout(timeout time.Duration) *GetInfraPoliciesParams
- func (o *GetInfraPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetInfraPoliciesReader
- type GetInfraPoliciesUnprocessableEntity
- func (o *GetInfraPoliciesUnprocessableEntity) Code() int
- func (o *GetInfraPoliciesUnprocessableEntity) Error() string
- func (o *GetInfraPoliciesUnprocessableEntity) GetPayload() *models.ErrorPayload
- func (o *GetInfraPoliciesUnprocessableEntity) IsClientError() bool
- func (o *GetInfraPoliciesUnprocessableEntity) IsCode(code int) bool
- func (o *GetInfraPoliciesUnprocessableEntity) IsRedirect() bool
- func (o *GetInfraPoliciesUnprocessableEntity) IsServerError() bool
- func (o *GetInfraPoliciesUnprocessableEntity) IsSuccess() bool
- func (o *GetInfraPoliciesUnprocessableEntity) String() string
- type GetInfraPolicyDefault
- func (o *GetInfraPolicyDefault) Code() int
- func (o *GetInfraPolicyDefault) Error() string
- func (o *GetInfraPolicyDefault) GetPayload() *models.ErrorPayload
- func (o *GetInfraPolicyDefault) IsClientError() bool
- func (o *GetInfraPolicyDefault) IsCode(code int) bool
- func (o *GetInfraPolicyDefault) IsRedirect() bool
- func (o *GetInfraPolicyDefault) IsServerError() bool
- func (o *GetInfraPolicyDefault) IsSuccess() bool
- func (o *GetInfraPolicyDefault) String() string
- type GetInfraPolicyForbidden
- func (o *GetInfraPolicyForbidden) Code() int
- func (o *GetInfraPolicyForbidden) Error() string
- func (o *GetInfraPolicyForbidden) GetPayload() *models.ErrorPayload
- func (o *GetInfraPolicyForbidden) IsClientError() bool
- func (o *GetInfraPolicyForbidden) IsCode(code int) bool
- func (o *GetInfraPolicyForbidden) IsRedirect() bool
- func (o *GetInfraPolicyForbidden) IsServerError() bool
- func (o *GetInfraPolicyForbidden) IsSuccess() bool
- func (o *GetInfraPolicyForbidden) String() string
- type GetInfraPolicyNotFound
- func (o *GetInfraPolicyNotFound) Code() int
- func (o *GetInfraPolicyNotFound) Error() string
- func (o *GetInfraPolicyNotFound) GetPayload() *models.ErrorPayload
- func (o *GetInfraPolicyNotFound) IsClientError() bool
- func (o *GetInfraPolicyNotFound) IsCode(code int) bool
- func (o *GetInfraPolicyNotFound) IsRedirect() bool
- func (o *GetInfraPolicyNotFound) IsServerError() bool
- func (o *GetInfraPolicyNotFound) IsSuccess() bool
- func (o *GetInfraPolicyNotFound) String() string
- type GetInfraPolicyOK
- func (o *GetInfraPolicyOK) Code() int
- func (o *GetInfraPolicyOK) Error() string
- func (o *GetInfraPolicyOK) GetPayload() *GetInfraPolicyOKBody
- func (o *GetInfraPolicyOK) IsClientError() bool
- func (o *GetInfraPolicyOK) IsCode(code int) bool
- func (o *GetInfraPolicyOK) IsRedirect() bool
- func (o *GetInfraPolicyOK) IsServerError() bool
- func (o *GetInfraPolicyOK) IsSuccess() bool
- func (o *GetInfraPolicyOK) String() string
- type GetInfraPolicyOKBody
- type GetInfraPolicyParams
- func NewGetInfraPolicyParams() *GetInfraPolicyParams
- func NewGetInfraPolicyParamsWithContext(ctx context.Context) *GetInfraPolicyParams
- func NewGetInfraPolicyParamsWithHTTPClient(client *http.Client) *GetInfraPolicyParams
- func NewGetInfraPolicyParamsWithTimeout(timeout time.Duration) *GetInfraPolicyParams
- func (o *GetInfraPolicyParams) SetContext(ctx context.Context)
- func (o *GetInfraPolicyParams) SetDefaults()
- func (o *GetInfraPolicyParams) SetHTTPClient(client *http.Client)
- func (o *GetInfraPolicyParams) SetInfraPolicyCanonical(infraPolicyCanonical string)
- func (o *GetInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *GetInfraPolicyParams) SetTimeout(timeout time.Duration)
- func (o *GetInfraPolicyParams) WithContext(ctx context.Context) *GetInfraPolicyParams
- func (o *GetInfraPolicyParams) WithDefaults() *GetInfraPolicyParams
- func (o *GetInfraPolicyParams) WithHTTPClient(client *http.Client) *GetInfraPolicyParams
- func (o *GetInfraPolicyParams) WithInfraPolicyCanonical(infraPolicyCanonical string) *GetInfraPolicyParams
- func (o *GetInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *GetInfraPolicyParams
- func (o *GetInfraPolicyParams) WithTimeout(timeout time.Duration) *GetInfraPolicyParams
- func (o *GetInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetInfraPolicyReader
- type UpdateInfraPolicyDefault
- func (o *UpdateInfraPolicyDefault) Code() int
- func (o *UpdateInfraPolicyDefault) Error() string
- func (o *UpdateInfraPolicyDefault) GetPayload() *models.ErrorPayload
- func (o *UpdateInfraPolicyDefault) IsClientError() bool
- func (o *UpdateInfraPolicyDefault) IsCode(code int) bool
- func (o *UpdateInfraPolicyDefault) IsRedirect() bool
- func (o *UpdateInfraPolicyDefault) IsServerError() bool
- func (o *UpdateInfraPolicyDefault) IsSuccess() bool
- func (o *UpdateInfraPolicyDefault) String() string
- type UpdateInfraPolicyForbidden
- func (o *UpdateInfraPolicyForbidden) Code() int
- func (o *UpdateInfraPolicyForbidden) Error() string
- func (o *UpdateInfraPolicyForbidden) GetPayload() *models.ErrorPayload
- func (o *UpdateInfraPolicyForbidden) IsClientError() bool
- func (o *UpdateInfraPolicyForbidden) IsCode(code int) bool
- func (o *UpdateInfraPolicyForbidden) IsRedirect() bool
- func (o *UpdateInfraPolicyForbidden) IsServerError() bool
- func (o *UpdateInfraPolicyForbidden) IsSuccess() bool
- func (o *UpdateInfraPolicyForbidden) String() string
- type UpdateInfraPolicyNotFound
- func (o *UpdateInfraPolicyNotFound) Code() int
- func (o *UpdateInfraPolicyNotFound) Error() string
- func (o *UpdateInfraPolicyNotFound) GetPayload() *models.ErrorPayload
- func (o *UpdateInfraPolicyNotFound) IsClientError() bool
- func (o *UpdateInfraPolicyNotFound) IsCode(code int) bool
- func (o *UpdateInfraPolicyNotFound) IsRedirect() bool
- func (o *UpdateInfraPolicyNotFound) IsServerError() bool
- func (o *UpdateInfraPolicyNotFound) IsSuccess() bool
- func (o *UpdateInfraPolicyNotFound) String() string
- type UpdateInfraPolicyOK
- func (o *UpdateInfraPolicyOK) Code() int
- func (o *UpdateInfraPolicyOK) Error() string
- func (o *UpdateInfraPolicyOK) GetPayload() *UpdateInfraPolicyOKBody
- func (o *UpdateInfraPolicyOK) IsClientError() bool
- func (o *UpdateInfraPolicyOK) IsCode(code int) bool
- func (o *UpdateInfraPolicyOK) IsRedirect() bool
- func (o *UpdateInfraPolicyOK) IsServerError() bool
- func (o *UpdateInfraPolicyOK) IsSuccess() bool
- func (o *UpdateInfraPolicyOK) String() string
- type UpdateInfraPolicyOKBody
- func (o *UpdateInfraPolicyOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateInfraPolicyOKBody) MarshalBinary() ([]byte, error)
- func (o *UpdateInfraPolicyOKBody) UnmarshalBinary(b []byte) error
- func (o *UpdateInfraPolicyOKBody) Validate(formats strfmt.Registry) error
- type UpdateInfraPolicyParams
- func NewUpdateInfraPolicyParams() *UpdateInfraPolicyParams
- func NewUpdateInfraPolicyParamsWithContext(ctx context.Context) *UpdateInfraPolicyParams
- func NewUpdateInfraPolicyParamsWithHTTPClient(client *http.Client) *UpdateInfraPolicyParams
- func NewUpdateInfraPolicyParamsWithTimeout(timeout time.Duration) *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) SetBody(body *models.UpdateInfraPolicy)
- func (o *UpdateInfraPolicyParams) SetContext(ctx context.Context)
- func (o *UpdateInfraPolicyParams) SetDefaults()
- func (o *UpdateInfraPolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdateInfraPolicyParams) SetInfraPolicyCanonical(infraPolicyCanonical string)
- func (o *UpdateInfraPolicyParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *UpdateInfraPolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdateInfraPolicyParams) WithBody(body *models.UpdateInfraPolicy) *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) WithContext(ctx context.Context) *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) WithDefaults() *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) WithHTTPClient(client *http.Client) *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) WithInfraPolicyCanonical(infraPolicyCanonical string) *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) WithOrganizationCanonical(organizationCanonical string) *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) WithTimeout(timeout time.Duration) *UpdateInfraPolicyParams
- func (o *UpdateInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateInfraPolicyReader
- type UpdateInfraPolicyUnprocessableEntity
- func (o *UpdateInfraPolicyUnprocessableEntity) Code() int
- func (o *UpdateInfraPolicyUnprocessableEntity) Error() string
- func (o *UpdateInfraPolicyUnprocessableEntity) GetPayload() *models.ErrorPayload
- func (o *UpdateInfraPolicyUnprocessableEntity) IsClientError() bool
- func (o *UpdateInfraPolicyUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateInfraPolicyUnprocessableEntity) IsRedirect() bool
- func (o *UpdateInfraPolicyUnprocessableEntity) IsServerError() bool
- func (o *UpdateInfraPolicyUnprocessableEntity) IsSuccess() bool
- func (o *UpdateInfraPolicyUnprocessableEntity) String() string
- type ValidateProjectInfraPoliciesDefault
- func (o *ValidateProjectInfraPoliciesDefault) Code() int
- func (o *ValidateProjectInfraPoliciesDefault) Error() string
- func (o *ValidateProjectInfraPoliciesDefault) GetPayload() *models.ErrorPayload
- func (o *ValidateProjectInfraPoliciesDefault) IsClientError() bool
- func (o *ValidateProjectInfraPoliciesDefault) IsCode(code int) bool
- func (o *ValidateProjectInfraPoliciesDefault) IsRedirect() bool
- func (o *ValidateProjectInfraPoliciesDefault) IsServerError() bool
- func (o *ValidateProjectInfraPoliciesDefault) IsSuccess() bool
- func (o *ValidateProjectInfraPoliciesDefault) String() string
- type ValidateProjectInfraPoliciesForbidden
- func (o *ValidateProjectInfraPoliciesForbidden) Code() int
- func (o *ValidateProjectInfraPoliciesForbidden) Error() string
- func (o *ValidateProjectInfraPoliciesForbidden) GetPayload() *models.ErrorPayload
- func (o *ValidateProjectInfraPoliciesForbidden) IsClientError() bool
- func (o *ValidateProjectInfraPoliciesForbidden) IsCode(code int) bool
- func (o *ValidateProjectInfraPoliciesForbidden) IsRedirect() bool
- func (o *ValidateProjectInfraPoliciesForbidden) IsServerError() bool
- func (o *ValidateProjectInfraPoliciesForbidden) IsSuccess() bool
- func (o *ValidateProjectInfraPoliciesForbidden) String() string
- type ValidateProjectInfraPoliciesNotFound
- func (o *ValidateProjectInfraPoliciesNotFound) Code() int
- func (o *ValidateProjectInfraPoliciesNotFound) Error() string
- func (o *ValidateProjectInfraPoliciesNotFound) GetPayload() *models.ErrorPayload
- func (o *ValidateProjectInfraPoliciesNotFound) IsClientError() bool
- func (o *ValidateProjectInfraPoliciesNotFound) IsCode(code int) bool
- func (o *ValidateProjectInfraPoliciesNotFound) IsRedirect() bool
- func (o *ValidateProjectInfraPoliciesNotFound) IsServerError() bool
- func (o *ValidateProjectInfraPoliciesNotFound) IsSuccess() bool
- func (o *ValidateProjectInfraPoliciesNotFound) String() string
- type ValidateProjectInfraPoliciesOK
- func (o *ValidateProjectInfraPoliciesOK) Code() int
- func (o *ValidateProjectInfraPoliciesOK) Error() string
- func (o *ValidateProjectInfraPoliciesOK) GetPayload() *ValidateProjectInfraPoliciesOKBody
- func (o *ValidateProjectInfraPoliciesOK) IsClientError() bool
- func (o *ValidateProjectInfraPoliciesOK) IsCode(code int) bool
- func (o *ValidateProjectInfraPoliciesOK) IsRedirect() bool
- func (o *ValidateProjectInfraPoliciesOK) IsServerError() bool
- func (o *ValidateProjectInfraPoliciesOK) IsSuccess() bool
- func (o *ValidateProjectInfraPoliciesOK) String() string
- type ValidateProjectInfraPoliciesOKBody
- func (o *ValidateProjectInfraPoliciesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ValidateProjectInfraPoliciesOKBody) MarshalBinary() ([]byte, error)
- func (o *ValidateProjectInfraPoliciesOKBody) UnmarshalBinary(b []byte) error
- func (o *ValidateProjectInfraPoliciesOKBody) Validate(formats strfmt.Registry) error
- type ValidateProjectInfraPoliciesParams
- func NewValidateProjectInfraPoliciesParams() *ValidateProjectInfraPoliciesParams
- func NewValidateProjectInfraPoliciesParamsWithContext(ctx context.Context) *ValidateProjectInfraPoliciesParams
- func NewValidateProjectInfraPoliciesParamsWithHTTPClient(client *http.Client) *ValidateProjectInfraPoliciesParams
- func NewValidateProjectInfraPoliciesParamsWithTimeout(timeout time.Duration) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) SetBody(body *models.TerraformPlanInput)
- func (o *ValidateProjectInfraPoliciesParams) SetContext(ctx context.Context)
- func (o *ValidateProjectInfraPoliciesParams) SetDefaults()
- func (o *ValidateProjectInfraPoliciesParams) SetEnvironmentCanonical(environmentCanonical string)
- func (o *ValidateProjectInfraPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *ValidateProjectInfraPoliciesParams) SetOrganizationCanonical(organizationCanonical string)
- func (o *ValidateProjectInfraPoliciesParams) SetProjectCanonical(projectCanonical string)
- func (o *ValidateProjectInfraPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *ValidateProjectInfraPoliciesParams) WithBody(body *models.TerraformPlanInput) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WithContext(ctx context.Context) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WithDefaults() *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WithEnvironmentCanonical(environmentCanonical string) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WithHTTPClient(client *http.Client) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WithOrganizationCanonical(organizationCanonical string) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WithProjectCanonical(projectCanonical string) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WithTimeout(timeout time.Duration) *ValidateProjectInfraPoliciesParams
- func (o *ValidateProjectInfraPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ValidateProjectInfraPoliciesReader
- type ValidateProjectInfraPoliciesUnprocessableEntity
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) Code() int
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) Error() string
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) GetPayload() *models.ErrorPayload
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsClientError() bool
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsCode(code int) bool
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsRedirect() bool
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsServerError() bool
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsSuccess() bool
- func (o *ValidateProjectInfraPoliciesUnprocessableEntity) String() string
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 ¶
func (o *CreateInfraPolicyLengthRequired) Code() int
Code gets the status code for the create infra policy length required response
func (*CreateInfraPolicyLengthRequired) Error ¶
func (o *CreateInfraPolicyLengthRequired) Error() string
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 ¶
func (o *CreateInfraPolicyLengthRequired) String() 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 (o *CreateInfraPolicyOK) GetPayload() *CreateInfraPolicyOKBody
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
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 ¶
func (o *CreateInfraPolicyParams) WithBody(body *models.NewInfraPolicy) *CreateInfraPolicyParams
WithBody adds the body to the create infra policy params
func (*CreateInfraPolicyParams) WithContext ¶
func (o *CreateInfraPolicyParams) WithContext(ctx context.Context) *CreateInfraPolicyParams
WithContext adds the context to the create infra policy params
func (*CreateInfraPolicyParams) WithDefaults ¶
func (o *CreateInfraPolicyParams) WithDefaults() *CreateInfraPolicyParams
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 ¶
func (o *CreateInfraPolicyParams) WithTimeout(timeout time.Duration) *CreateInfraPolicyParams
WithTimeout adds the timeout to the create infra policy params
func (*CreateInfraPolicyParams) WriteToRequest ¶
func (o *CreateInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CreateInfraPolicyUnprocessableEntity) Code() int
Code gets the status code for the create infra policy unprocessable entity response
func (*CreateInfraPolicyUnprocessableEntity) Error ¶
func (o *CreateInfraPolicyUnprocessableEntity) Error() string
func (*CreateInfraPolicyUnprocessableEntity) GetPayload ¶
func (o *CreateInfraPolicyUnprocessableEntity) GetPayload() *models.ErrorPayload
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 ¶
func (o *CreateInfraPolicyUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create infra policy unprocessable entity response a status code equal to that given
func (*CreateInfraPolicyUnprocessableEntity) IsRedirect ¶
func (o *CreateInfraPolicyUnprocessableEntity) IsRedirect() bool
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 ¶
func (o *CreateInfraPolicyUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create infra policy unprocessable entity response has a 2xx status code
func (*CreateInfraPolicyUnprocessableEntity) String ¶
func (o *CreateInfraPolicyUnprocessableEntity) String() 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 (o *DeleteInfraPolicyForbidden) Error() string
func (*DeleteInfraPolicyForbidden) GetPayload ¶
func (o *DeleteInfraPolicyForbidden) GetPayload() *models.ErrorPayload
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 (o *DeleteInfraPolicyNoContent) Error() string
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 (o *DeleteInfraPolicyNotFound) GetPayload() *models.ErrorPayload
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 ¶
func (o *DeleteInfraPolicyParams) WithContext(ctx context.Context) *DeleteInfraPolicyParams
WithContext adds the context to the delete infra policy params
func (*DeleteInfraPolicyParams) WithDefaults ¶
func (o *DeleteInfraPolicyParams) WithDefaults() *DeleteInfraPolicyParams
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 ¶
func (o *DeleteInfraPolicyParams) WithTimeout(timeout time.Duration) *DeleteInfraPolicyParams
WithTimeout adds the timeout to the delete infra policy params
func (*DeleteInfraPolicyParams) WriteToRequest ¶
func (o *DeleteInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetInfraPoliciesForbidden) GetPayload() *models.ErrorPayload
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
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 ¶
func (o *GetInfraPoliciesParams) WithContext(ctx context.Context) *GetInfraPoliciesParams
WithContext adds the context to the get infra policies params
func (*GetInfraPoliciesParams) WithDefaults ¶
func (o *GetInfraPoliciesParams) WithDefaults() *GetInfraPoliciesParams
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 ¶
func (o *GetInfraPoliciesParams) WithTimeout(timeout time.Duration) *GetInfraPoliciesParams
WithTimeout adds the timeout to the get infra policies params
func (*GetInfraPoliciesParams) WriteToRequest ¶
func (o *GetInfraPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetInfraPoliciesUnprocessableEntity) Code() int
Code gets the status code for the get infra policies unprocessable entity response
func (*GetInfraPoliciesUnprocessableEntity) Error ¶
func (o *GetInfraPoliciesUnprocessableEntity) Error() string
func (*GetInfraPoliciesUnprocessableEntity) GetPayload ¶
func (o *GetInfraPoliciesUnprocessableEntity) GetPayload() *models.ErrorPayload
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 ¶
func (o *GetInfraPoliciesUnprocessableEntity) IsCode(code int) bool
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 ¶
func (o *GetInfraPoliciesUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this get infra policies unprocessable entity response has a 2xx status code
func (*GetInfraPoliciesUnprocessableEntity) String ¶
func (o *GetInfraPoliciesUnprocessableEntity) String() 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 ¶
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
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 ¶
func (o *GetInfraPolicyParams) WithContext(ctx context.Context) *GetInfraPolicyParams
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 (o *UpdateInfraPolicyForbidden) Error() string
func (*UpdateInfraPolicyForbidden) GetPayload ¶
func (o *UpdateInfraPolicyForbidden) GetPayload() *models.ErrorPayload
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 (o *UpdateInfraPolicyNotFound) GetPayload() *models.ErrorPayload
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 (o *UpdateInfraPolicyOK) GetPayload() *UpdateInfraPolicyOKBody
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
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 ¶
func (o *UpdateInfraPolicyParams) SetBody(body *models.UpdateInfraPolicy)
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 ¶
func (o *UpdateInfraPolicyParams) WithBody(body *models.UpdateInfraPolicy) *UpdateInfraPolicyParams
WithBody adds the body to the update infra policy params
func (*UpdateInfraPolicyParams) WithContext ¶
func (o *UpdateInfraPolicyParams) WithContext(ctx context.Context) *UpdateInfraPolicyParams
WithContext adds the context to the update infra policy params
func (*UpdateInfraPolicyParams) WithDefaults ¶
func (o *UpdateInfraPolicyParams) WithDefaults() *UpdateInfraPolicyParams
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 ¶
func (o *UpdateInfraPolicyParams) WithTimeout(timeout time.Duration) *UpdateInfraPolicyParams
WithTimeout adds the timeout to the update infra policy params
func (*UpdateInfraPolicyParams) WriteToRequest ¶
func (o *UpdateInfraPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateInfraPolicyUnprocessableEntity) Code() int
Code gets the status code for the update infra policy unprocessable entity response
func (*UpdateInfraPolicyUnprocessableEntity) Error ¶
func (o *UpdateInfraPolicyUnprocessableEntity) Error() string
func (*UpdateInfraPolicyUnprocessableEntity) GetPayload ¶
func (o *UpdateInfraPolicyUnprocessableEntity) GetPayload() *models.ErrorPayload
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 ¶
func (o *UpdateInfraPolicyUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update infra policy unprocessable entity response a status code equal to that given
func (*UpdateInfraPolicyUnprocessableEntity) IsRedirect ¶
func (o *UpdateInfraPolicyUnprocessableEntity) IsRedirect() bool
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 ¶
func (o *UpdateInfraPolicyUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update infra policy unprocessable entity response has a 2xx status code
func (*UpdateInfraPolicyUnprocessableEntity) String ¶
func (o *UpdateInfraPolicyUnprocessableEntity) String() 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 ¶
func (o *ValidateProjectInfraPoliciesDefault) Code() int
Code gets the status code for the validate project infra policies default response
func (*ValidateProjectInfraPoliciesDefault) Error ¶
func (o *ValidateProjectInfraPoliciesDefault) Error() string
func (*ValidateProjectInfraPoliciesDefault) GetPayload ¶
func (o *ValidateProjectInfraPoliciesDefault) GetPayload() *models.ErrorPayload
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 ¶
func (o *ValidateProjectInfraPoliciesDefault) IsCode(code int) bool
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 ¶
func (o *ValidateProjectInfraPoliciesDefault) IsSuccess() bool
IsSuccess returns true when this validate project infra policies default response has a 2xx status code
func (*ValidateProjectInfraPoliciesDefault) String ¶
func (o *ValidateProjectInfraPoliciesDefault) String() 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 ¶
func (o *ValidateProjectInfraPoliciesForbidden) Code() int
Code gets the status code for the validate project infra policies forbidden response
func (*ValidateProjectInfraPoliciesForbidden) Error ¶
func (o *ValidateProjectInfraPoliciesForbidden) Error() string
func (*ValidateProjectInfraPoliciesForbidden) GetPayload ¶
func (o *ValidateProjectInfraPoliciesForbidden) GetPayload() *models.ErrorPayload
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 ¶
func (o *ValidateProjectInfraPoliciesForbidden) IsCode(code int) bool
IsCode returns true when this validate project infra policies forbidden response a status code equal to that given
func (*ValidateProjectInfraPoliciesForbidden) IsRedirect ¶
func (o *ValidateProjectInfraPoliciesForbidden) IsRedirect() bool
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 ¶
func (o *ValidateProjectInfraPoliciesForbidden) IsSuccess() bool
IsSuccess returns true when this validate project infra policies forbidden response has a 2xx status code
func (*ValidateProjectInfraPoliciesForbidden) String ¶
func (o *ValidateProjectInfraPoliciesForbidden) String() 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 ¶
func (o *ValidateProjectInfraPoliciesNotFound) Code() int
Code gets the status code for the validate project infra policies not found response
func (*ValidateProjectInfraPoliciesNotFound) Error ¶
func (o *ValidateProjectInfraPoliciesNotFound) Error() string
func (*ValidateProjectInfraPoliciesNotFound) GetPayload ¶
func (o *ValidateProjectInfraPoliciesNotFound) GetPayload() *models.ErrorPayload
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 ¶
func (o *ValidateProjectInfraPoliciesNotFound) IsCode(code int) bool
IsCode returns true when this validate project infra policies not found response a status code equal to that given
func (*ValidateProjectInfraPoliciesNotFound) IsRedirect ¶
func (o *ValidateProjectInfraPoliciesNotFound) IsRedirect() bool
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 ¶
func (o *ValidateProjectInfraPoliciesNotFound) IsSuccess() bool
IsSuccess returns true when this validate project infra policies not found response has a 2xx status code
func (*ValidateProjectInfraPoliciesNotFound) String ¶
func (o *ValidateProjectInfraPoliciesNotFound) String() 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 ¶
func (o *ValidateProjectInfraPoliciesOK) Code() int
Code gets the status code for the validate project infra policies o k response
func (*ValidateProjectInfraPoliciesOK) Error ¶
func (o *ValidateProjectInfraPoliciesOK) Error() string
func (*ValidateProjectInfraPoliciesOK) GetPayload ¶
func (o *ValidateProjectInfraPoliciesOK) GetPayload() *ValidateProjectInfraPoliciesOKBody
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 ¶
func (o *ValidateProjectInfraPoliciesOK) String() 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
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 ¶
func (o *ValidateProjectInfraPoliciesParams) SetBody(body *models.TerraformPlanInput)
SetBody adds the body to the validate project infra policies params
func (*ValidateProjectInfraPoliciesParams) SetContext ¶
func (o *ValidateProjectInfraPoliciesParams) SetContext(ctx context.Context)
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 ¶
func (o *ValidateProjectInfraPoliciesParams) WithBody(body *models.TerraformPlanInput) *ValidateProjectInfraPoliciesParams
WithBody adds the body to the validate project infra policies params
func (*ValidateProjectInfraPoliciesParams) WithContext ¶
func (o *ValidateProjectInfraPoliciesParams) WithContext(ctx context.Context) *ValidateProjectInfraPoliciesParams
WithContext adds the context to the validate project infra policies params
func (*ValidateProjectInfraPoliciesParams) WithDefaults ¶
func (o *ValidateProjectInfraPoliciesParams) WithDefaults() *ValidateProjectInfraPoliciesParams
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 ¶
func (o *ValidateProjectInfraPoliciesParams) WithHTTPClient(client *http.Client) *ValidateProjectInfraPoliciesParams
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 ¶
func (o *ValidateProjectInfraPoliciesParams) WithTimeout(timeout time.Duration) *ValidateProjectInfraPoliciesParams
WithTimeout adds the timeout to the validate project infra policies params
func (*ValidateProjectInfraPoliciesParams) WriteToRequest ¶
func (o *ValidateProjectInfraPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) Code() int
Code gets the status code for the validate project infra policies unprocessable entity response
func (*ValidateProjectInfraPoliciesUnprocessableEntity) Error ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) Error() string
func (*ValidateProjectInfraPoliciesUnprocessableEntity) GetPayload ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) GetPayload() *models.ErrorPayload
func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsClientError ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsClientError() bool
IsClientError returns true when this validate project infra policies unprocessable entity response has a 4xx status code
func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsCode ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this validate project infra policies unprocessable entity response a status code equal to that given
func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsRedirect ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this validate project infra policies unprocessable entity response has a 3xx status code
func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsServerError ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsServerError() bool
IsServerError returns true when this validate project infra policies unprocessable entity response has a 5xx status code
func (*ValidateProjectInfraPoliciesUnprocessableEntity) IsSuccess ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this validate project infra policies unprocessable entity response has a 2xx status code
func (*ValidateProjectInfraPoliciesUnprocessableEntity) String ¶
func (o *ValidateProjectInfraPoliciesUnprocessableEntity) String() string
Source Files
¶
- create_infra_policy_parameters.go
- create_infra_policy_responses.go
- delete_infra_policy_parameters.go
- delete_infra_policy_responses.go
- get_infra_policies_parameters.go
- get_infra_policies_responses.go
- get_infra_policy_parameters.go
- get_infra_policy_responses.go
- organization_infrastructure_policies_client.go
- update_infra_policy_parameters.go
- update_infra_policy_responses.go
- validate_project_infra_policies_parameters.go
- validate_project_infra_policies_responses.go