network_policies

package
v2.0.1-0...-670b387 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for network policies API

func (*Client) CreateNetworkPolicy

func (a *Client) CreateNetworkPolicy(params *CreateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNetworkPolicyOK, error)

CreateNetworkPolicy creates a policy

func (*Client) DeleteNetworkPolicy

func (a *Client) DeleteNetworkPolicy(params *DeleteNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNetworkPolicyNoContent, error)

DeleteNetworkPolicy deletes a policy

func (*Client) GetNetworkPolicies

func (a *Client) GetNetworkPolicies(params *GetNetworkPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNetworkPoliciesOK, error)

GetNetworkPolicies gets all policies

func (*Client) GetNetworkPolicy

func (a *Client) GetNetworkPolicy(params *GetNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNetworkPolicyOK, error)

GetNetworkPolicy gets a policy

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateNetworkPolicy

func (a *Client) UpdateNetworkPolicy(params *UpdateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNetworkPolicyOK, error)

UpdateNetworkPolicy updates a policy

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateNetworkPolicy(params *CreateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNetworkPolicyOK, error)

	DeleteNetworkPolicy(params *DeleteNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNetworkPolicyNoContent, error)

	GetNetworkPolicies(params *GetNetworkPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNetworkPoliciesOK, error)

	GetNetworkPolicy(params *GetNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNetworkPolicyOK, error)

	UpdateNetworkPolicy(params *UpdateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNetworkPolicyOK, 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 network policies API client.

type CreateNetworkPolicyDefault

type CreateNetworkPolicyDefault struct {
	Payload *ipam_models.APIStatus
	// contains filtered or unexported fields
}
CreateNetworkPolicyDefault describes a response with status code -1, with default header values.

Default error structure.

func NewCreateNetworkPolicyDefault

func NewCreateNetworkPolicyDefault(code int) *CreateNetworkPolicyDefault

NewCreateNetworkPolicyDefault creates a CreateNetworkPolicyDefault with default headers values

func (*CreateNetworkPolicyDefault) Code

func (o *CreateNetworkPolicyDefault) Code() int

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

func (*CreateNetworkPolicyDefault) Error

func (*CreateNetworkPolicyDefault) GetPayload

type CreateNetworkPolicyInternalServerError

type CreateNetworkPolicyInternalServerError struct {
	Payload *ipam_models.APIStatus
}
CreateNetworkPolicyInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewCreateNetworkPolicyInternalServerError

func NewCreateNetworkPolicyInternalServerError() *CreateNetworkPolicyInternalServerError

NewCreateNetworkPolicyInternalServerError creates a CreateNetworkPolicyInternalServerError with default headers values

func (*CreateNetworkPolicyInternalServerError) Error

func (*CreateNetworkPolicyInternalServerError) GetPayload

type CreateNetworkPolicyOK

type CreateNetworkPolicyOK struct {
	Payload *ipam_models.V1CreateNetworkPolicyResponse
}
CreateNetworkPolicyOK describes a response with status code 200, with default header values.

CreateNetworkPolicyOK create network policy o k

func NewCreateNetworkPolicyOK

func NewCreateNetworkPolicyOK() *CreateNetworkPolicyOK

NewCreateNetworkPolicyOK creates a CreateNetworkPolicyOK with default headers values

func (*CreateNetworkPolicyOK) Error

func (o *CreateNetworkPolicyOK) Error() string

func (*CreateNetworkPolicyOK) GetPayload

type CreateNetworkPolicyParams

type CreateNetworkPolicyParams struct {

	// Body.
	Body *ipam_models.V1CreateNetworkPolicyRequest

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

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

CreateNetworkPolicyParams contains all the parameters to send to the API endpoint

for the create network policy operation.

Typically these are written to a http.Request.

func NewCreateNetworkPolicyParams

func NewCreateNetworkPolicyParams() *CreateNetworkPolicyParams

NewCreateNetworkPolicyParams creates a new CreateNetworkPolicyParams 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 NewCreateNetworkPolicyParamsWithContext

func NewCreateNetworkPolicyParamsWithContext(ctx context.Context) *CreateNetworkPolicyParams

NewCreateNetworkPolicyParamsWithContext creates a new CreateNetworkPolicyParams object with the ability to set a context for a request.

func NewCreateNetworkPolicyParamsWithHTTPClient

func NewCreateNetworkPolicyParamsWithHTTPClient(client *http.Client) *CreateNetworkPolicyParams

NewCreateNetworkPolicyParamsWithHTTPClient creates a new CreateNetworkPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateNetworkPolicyParamsWithTimeout

func NewCreateNetworkPolicyParamsWithTimeout(timeout time.Duration) *CreateNetworkPolicyParams

NewCreateNetworkPolicyParamsWithTimeout creates a new CreateNetworkPolicyParams object with the ability to set a timeout on a request.

func (*CreateNetworkPolicyParams) SetBody

SetBody adds the body to the create network policy params

func (*CreateNetworkPolicyParams) SetContext

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

SetContext adds the context to the create network policy params

func (*CreateNetworkPolicyParams) SetDefaults

func (o *CreateNetworkPolicyParams) SetDefaults()

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

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

func (*CreateNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create network policy params

func (*CreateNetworkPolicyParams) SetStackID

func (o *CreateNetworkPolicyParams) SetStackID(stackID string)

SetStackID adds the stackId to the create network policy params

func (*CreateNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create network policy params

func (*CreateNetworkPolicyParams) WithBody

WithBody adds the body to the create network policy params

func (*CreateNetworkPolicyParams) WithContext

WithContext adds the context to the create network policy params

func (*CreateNetworkPolicyParams) WithDefaults

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

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

func (*CreateNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create network policy params

func (*CreateNetworkPolicyParams) WithStackID

WithStackID adds the stackID to the create network policy params

func (*CreateNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the create network policy params

func (*CreateNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateNetworkPolicyReader

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

CreateNetworkPolicyReader is a Reader for the CreateNetworkPolicy structure.

func (*CreateNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateNetworkPolicyUnauthorized

type CreateNetworkPolicyUnauthorized struct {
	Payload *ipam_models.APIStatus
}
CreateNetworkPolicyUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewCreateNetworkPolicyUnauthorized

func NewCreateNetworkPolicyUnauthorized() *CreateNetworkPolicyUnauthorized

NewCreateNetworkPolicyUnauthorized creates a CreateNetworkPolicyUnauthorized with default headers values

func (*CreateNetworkPolicyUnauthorized) Error

func (*CreateNetworkPolicyUnauthorized) GetPayload

type DeleteNetworkPolicyDefault

type DeleteNetworkPolicyDefault struct {
	Payload *ipam_models.APIStatus
	// contains filtered or unexported fields
}
DeleteNetworkPolicyDefault describes a response with status code -1, with default header values.

Default error structure.

func NewDeleteNetworkPolicyDefault

func NewDeleteNetworkPolicyDefault(code int) *DeleteNetworkPolicyDefault

NewDeleteNetworkPolicyDefault creates a DeleteNetworkPolicyDefault with default headers values

func (*DeleteNetworkPolicyDefault) Code

func (o *DeleteNetworkPolicyDefault) Code() int

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

func (*DeleteNetworkPolicyDefault) Error

func (*DeleteNetworkPolicyDefault) GetPayload

type DeleteNetworkPolicyInternalServerError

type DeleteNetworkPolicyInternalServerError struct {
	Payload *ipam_models.APIStatus
}
DeleteNetworkPolicyInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewDeleteNetworkPolicyInternalServerError

func NewDeleteNetworkPolicyInternalServerError() *DeleteNetworkPolicyInternalServerError

NewDeleteNetworkPolicyInternalServerError creates a DeleteNetworkPolicyInternalServerError with default headers values

func (*DeleteNetworkPolicyInternalServerError) Error

func (*DeleteNetworkPolicyInternalServerError) GetPayload

type DeleteNetworkPolicyNoContent

type DeleteNetworkPolicyNoContent struct {
}
DeleteNetworkPolicyNoContent describes a response with status code 204, with default header values.

No content

func NewDeleteNetworkPolicyNoContent

func NewDeleteNetworkPolicyNoContent() *DeleteNetworkPolicyNoContent

NewDeleteNetworkPolicyNoContent creates a DeleteNetworkPolicyNoContent with default headers values

func (*DeleteNetworkPolicyNoContent) Error

type DeleteNetworkPolicyParams

type DeleteNetworkPolicyParams struct {

	/* NetworkPolicyID.

	   An EdgeCompute network policy ID
	*/
	NetworkPolicyID string

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

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

DeleteNetworkPolicyParams contains all the parameters to send to the API endpoint

for the delete network policy operation.

Typically these are written to a http.Request.

func NewDeleteNetworkPolicyParams

func NewDeleteNetworkPolicyParams() *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParams creates a new DeleteNetworkPolicyParams 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 NewDeleteNetworkPolicyParamsWithContext

func NewDeleteNetworkPolicyParamsWithContext(ctx context.Context) *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParamsWithContext creates a new DeleteNetworkPolicyParams object with the ability to set a context for a request.

func NewDeleteNetworkPolicyParamsWithHTTPClient

func NewDeleteNetworkPolicyParamsWithHTTPClient(client *http.Client) *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParamsWithHTTPClient creates a new DeleteNetworkPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNetworkPolicyParamsWithTimeout

func NewDeleteNetworkPolicyParamsWithTimeout(timeout time.Duration) *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParamsWithTimeout creates a new DeleteNetworkPolicyParams object with the ability to set a timeout on a request.

func (*DeleteNetworkPolicyParams) SetContext

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

SetContext adds the context to the delete network policy params

func (*DeleteNetworkPolicyParams) SetDefaults

func (o *DeleteNetworkPolicyParams) SetDefaults()

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

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

func (*DeleteNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete network policy params

func (*DeleteNetworkPolicyParams) SetNetworkPolicyID

func (o *DeleteNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)

SetNetworkPolicyID adds the networkPolicyId to the delete network policy params

func (*DeleteNetworkPolicyParams) SetStackID

func (o *DeleteNetworkPolicyParams) SetStackID(stackID string)

SetStackID adds the stackId to the delete network policy params

func (*DeleteNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the delete network policy params

func (*DeleteNetworkPolicyParams) WithContext

WithContext adds the context to the delete network policy params

func (*DeleteNetworkPolicyParams) WithDefaults

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

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

func (*DeleteNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete network policy params

func (*DeleteNetworkPolicyParams) WithNetworkPolicyID

func (o *DeleteNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *DeleteNetworkPolicyParams

WithNetworkPolicyID adds the networkPolicyID to the delete network policy params

func (*DeleteNetworkPolicyParams) WithStackID

WithStackID adds the stackID to the delete network policy params

func (*DeleteNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the delete network policy params

func (*DeleteNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNetworkPolicyReader

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

DeleteNetworkPolicyReader is a Reader for the DeleteNetworkPolicy structure.

func (*DeleteNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNetworkPolicyUnauthorized

type DeleteNetworkPolicyUnauthorized struct {
	Payload *ipam_models.APIStatus
}
DeleteNetworkPolicyUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewDeleteNetworkPolicyUnauthorized

func NewDeleteNetworkPolicyUnauthorized() *DeleteNetworkPolicyUnauthorized

NewDeleteNetworkPolicyUnauthorized creates a DeleteNetworkPolicyUnauthorized with default headers values

func (*DeleteNetworkPolicyUnauthorized) Error

func (*DeleteNetworkPolicyUnauthorized) GetPayload

type GetNetworkPoliciesDefault

type GetNetworkPoliciesDefault struct {
	Payload *ipam_models.APIStatus
	// contains filtered or unexported fields
}
GetNetworkPoliciesDefault describes a response with status code -1, with default header values.

Default error structure.

func NewGetNetworkPoliciesDefault

func NewGetNetworkPoliciesDefault(code int) *GetNetworkPoliciesDefault

NewGetNetworkPoliciesDefault creates a GetNetworkPoliciesDefault with default headers values

func (*GetNetworkPoliciesDefault) Code

func (o *GetNetworkPoliciesDefault) Code() int

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

func (*GetNetworkPoliciesDefault) Error

func (o *GetNetworkPoliciesDefault) Error() string

func (*GetNetworkPoliciesDefault) GetPayload

type GetNetworkPoliciesInternalServerError

type GetNetworkPoliciesInternalServerError struct {
	Payload *ipam_models.APIStatus
}
GetNetworkPoliciesInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewGetNetworkPoliciesInternalServerError

func NewGetNetworkPoliciesInternalServerError() *GetNetworkPoliciesInternalServerError

NewGetNetworkPoliciesInternalServerError creates a GetNetworkPoliciesInternalServerError with default headers values

func (*GetNetworkPoliciesInternalServerError) Error

func (*GetNetworkPoliciesInternalServerError) GetPayload

type GetNetworkPoliciesOK

type GetNetworkPoliciesOK struct {
	Payload *ipam_models.V1GetNetworkPoliciesResponse
}
GetNetworkPoliciesOK describes a response with status code 200, with default header values.

GetNetworkPoliciesOK get network policies o k

func NewGetNetworkPoliciesOK

func NewGetNetworkPoliciesOK() *GetNetworkPoliciesOK

NewGetNetworkPoliciesOK creates a GetNetworkPoliciesOK with default headers values

func (*GetNetworkPoliciesOK) Error

func (o *GetNetworkPoliciesOK) Error() string

func (*GetNetworkPoliciesOK) GetPayload

type GetNetworkPoliciesParams

type GetNetworkPoliciesParams struct {

	/* PageRequestAfter.

	   The cursor value after which data will be returned.
	*/
	PageRequestAfter *string

	/* PageRequestFilter.

	   SQL-style constraint filters.
	*/
	PageRequestFilter *string

	/* PageRequestFirst.

	   The number of items desired.
	*/
	PageRequestFirst *string

	/* PageRequestSortBy.

	   Sort the response by the given field.
	*/
	PageRequestSortBy *string

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

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

GetNetworkPoliciesParams contains all the parameters to send to the API endpoint

for the get network policies operation.

Typically these are written to a http.Request.

func NewGetNetworkPoliciesParams

func NewGetNetworkPoliciesParams() *GetNetworkPoliciesParams

NewGetNetworkPoliciesParams creates a new GetNetworkPoliciesParams 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 NewGetNetworkPoliciesParamsWithContext

func NewGetNetworkPoliciesParamsWithContext(ctx context.Context) *GetNetworkPoliciesParams

NewGetNetworkPoliciesParamsWithContext creates a new GetNetworkPoliciesParams object with the ability to set a context for a request.

func NewGetNetworkPoliciesParamsWithHTTPClient

func NewGetNetworkPoliciesParamsWithHTTPClient(client *http.Client) *GetNetworkPoliciesParams

NewGetNetworkPoliciesParamsWithHTTPClient creates a new GetNetworkPoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworkPoliciesParamsWithTimeout

func NewGetNetworkPoliciesParamsWithTimeout(timeout time.Duration) *GetNetworkPoliciesParams

NewGetNetworkPoliciesParamsWithTimeout creates a new GetNetworkPoliciesParams object with the ability to set a timeout on a request.

func (*GetNetworkPoliciesParams) SetContext

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

SetContext adds the context to the get network policies params

func (*GetNetworkPoliciesParams) SetDefaults

func (o *GetNetworkPoliciesParams) SetDefaults()

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

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

func (*GetNetworkPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestAfter

func (o *GetNetworkPoliciesParams) SetPageRequestAfter(pageRequestAfter *string)

SetPageRequestAfter adds the pageRequestAfter to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestFilter

func (o *GetNetworkPoliciesParams) SetPageRequestFilter(pageRequestFilter *string)

SetPageRequestFilter adds the pageRequestFilter to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestFirst

func (o *GetNetworkPoliciesParams) SetPageRequestFirst(pageRequestFirst *string)

SetPageRequestFirst adds the pageRequestFirst to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestSortBy

func (o *GetNetworkPoliciesParams) SetPageRequestSortBy(pageRequestSortBy *string)

SetPageRequestSortBy adds the pageRequestSortBy to the get network policies params

func (*GetNetworkPoliciesParams) SetStackID

func (o *GetNetworkPoliciesParams) SetStackID(stackID string)

SetStackID adds the stackId to the get network policies params

func (*GetNetworkPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the get network policies params

func (*GetNetworkPoliciesParams) WithContext

WithContext adds the context to the get network policies params

func (*GetNetworkPoliciesParams) WithDefaults

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

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

func (*GetNetworkPoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestAfter

func (o *GetNetworkPoliciesParams) WithPageRequestAfter(pageRequestAfter *string) *GetNetworkPoliciesParams

WithPageRequestAfter adds the pageRequestAfter to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestFilter

func (o *GetNetworkPoliciesParams) WithPageRequestFilter(pageRequestFilter *string) *GetNetworkPoliciesParams

WithPageRequestFilter adds the pageRequestFilter to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestFirst

func (o *GetNetworkPoliciesParams) WithPageRequestFirst(pageRequestFirst *string) *GetNetworkPoliciesParams

WithPageRequestFirst adds the pageRequestFirst to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestSortBy

func (o *GetNetworkPoliciesParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetNetworkPoliciesParams

WithPageRequestSortBy adds the pageRequestSortBy to the get network policies params

func (*GetNetworkPoliciesParams) WithStackID

func (o *GetNetworkPoliciesParams) WithStackID(stackID string) *GetNetworkPoliciesParams

WithStackID adds the stackID to the get network policies params

func (*GetNetworkPoliciesParams) WithTimeout

WithTimeout adds the timeout to the get network policies params

func (*GetNetworkPoliciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkPoliciesReader

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

GetNetworkPoliciesReader is a Reader for the GetNetworkPolicies structure.

func (*GetNetworkPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworkPoliciesUnauthorized

type GetNetworkPoliciesUnauthorized struct {
	Payload *ipam_models.APIStatus
}
GetNetworkPoliciesUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewGetNetworkPoliciesUnauthorized

func NewGetNetworkPoliciesUnauthorized() *GetNetworkPoliciesUnauthorized

NewGetNetworkPoliciesUnauthorized creates a GetNetworkPoliciesUnauthorized with default headers values

func (*GetNetworkPoliciesUnauthorized) Error

func (*GetNetworkPoliciesUnauthorized) GetPayload

type GetNetworkPolicyDefault

type GetNetworkPolicyDefault struct {
	Payload *ipam_models.APIStatus
	// contains filtered or unexported fields
}
GetNetworkPolicyDefault describes a response with status code -1, with default header values.

Default error structure.

func NewGetNetworkPolicyDefault

func NewGetNetworkPolicyDefault(code int) *GetNetworkPolicyDefault

NewGetNetworkPolicyDefault creates a GetNetworkPolicyDefault with default headers values

func (*GetNetworkPolicyDefault) Code

func (o *GetNetworkPolicyDefault) Code() int

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

func (*GetNetworkPolicyDefault) Error

func (o *GetNetworkPolicyDefault) Error() string

func (*GetNetworkPolicyDefault) GetPayload

type GetNetworkPolicyInternalServerError

type GetNetworkPolicyInternalServerError struct {
	Payload *ipam_models.APIStatus
}
GetNetworkPolicyInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewGetNetworkPolicyInternalServerError

func NewGetNetworkPolicyInternalServerError() *GetNetworkPolicyInternalServerError

NewGetNetworkPolicyInternalServerError creates a GetNetworkPolicyInternalServerError with default headers values

func (*GetNetworkPolicyInternalServerError) Error

func (*GetNetworkPolicyInternalServerError) GetPayload

type GetNetworkPolicyOK

type GetNetworkPolicyOK struct {
	Payload *ipam_models.V1GetNetworkPolicyResponse
}
GetNetworkPolicyOK describes a response with status code 200, with default header values.

GetNetworkPolicyOK get network policy o k

func NewGetNetworkPolicyOK

func NewGetNetworkPolicyOK() *GetNetworkPolicyOK

NewGetNetworkPolicyOK creates a GetNetworkPolicyOK with default headers values

func (*GetNetworkPolicyOK) Error

func (o *GetNetworkPolicyOK) Error() string

func (*GetNetworkPolicyOK) GetPayload

type GetNetworkPolicyParams

type GetNetworkPolicyParams struct {

	/* NetworkPolicyID.

	   An EdgeCompute network policy ID
	*/
	NetworkPolicyID string

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

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

GetNetworkPolicyParams contains all the parameters to send to the API endpoint

for the get network policy operation.

Typically these are written to a http.Request.

func NewGetNetworkPolicyParams

func NewGetNetworkPolicyParams() *GetNetworkPolicyParams

NewGetNetworkPolicyParams creates a new GetNetworkPolicyParams 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 NewGetNetworkPolicyParamsWithContext

func NewGetNetworkPolicyParamsWithContext(ctx context.Context) *GetNetworkPolicyParams

NewGetNetworkPolicyParamsWithContext creates a new GetNetworkPolicyParams object with the ability to set a context for a request.

func NewGetNetworkPolicyParamsWithHTTPClient

func NewGetNetworkPolicyParamsWithHTTPClient(client *http.Client) *GetNetworkPolicyParams

NewGetNetworkPolicyParamsWithHTTPClient creates a new GetNetworkPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworkPolicyParamsWithTimeout

func NewGetNetworkPolicyParamsWithTimeout(timeout time.Duration) *GetNetworkPolicyParams

NewGetNetworkPolicyParamsWithTimeout creates a new GetNetworkPolicyParams object with the ability to set a timeout on a request.

func (*GetNetworkPolicyParams) SetContext

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

SetContext adds the context to the get network policy params

func (*GetNetworkPolicyParams) SetDefaults

func (o *GetNetworkPolicyParams) SetDefaults()

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

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

func (*GetNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get network policy params

func (*GetNetworkPolicyParams) SetNetworkPolicyID

func (o *GetNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)

SetNetworkPolicyID adds the networkPolicyId to the get network policy params

func (*GetNetworkPolicyParams) SetStackID

func (o *GetNetworkPolicyParams) SetStackID(stackID string)

SetStackID adds the stackId to the get network policy params

func (*GetNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the get network policy params

func (*GetNetworkPolicyParams) WithContext

WithContext adds the context to the get network policy params

func (*GetNetworkPolicyParams) WithDefaults

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

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

func (*GetNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get network policy params

func (*GetNetworkPolicyParams) WithNetworkPolicyID

func (o *GetNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *GetNetworkPolicyParams

WithNetworkPolicyID adds the networkPolicyID to the get network policy params

func (*GetNetworkPolicyParams) WithStackID

func (o *GetNetworkPolicyParams) WithStackID(stackID string) *GetNetworkPolicyParams

WithStackID adds the stackID to the get network policy params

func (*GetNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the get network policy params

func (*GetNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkPolicyReader

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

GetNetworkPolicyReader is a Reader for the GetNetworkPolicy structure.

func (*GetNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworkPolicyUnauthorized

type GetNetworkPolicyUnauthorized struct {
	Payload *ipam_models.APIStatus
}
GetNetworkPolicyUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewGetNetworkPolicyUnauthorized

func NewGetNetworkPolicyUnauthorized() *GetNetworkPolicyUnauthorized

NewGetNetworkPolicyUnauthorized creates a GetNetworkPolicyUnauthorized with default headers values

func (*GetNetworkPolicyUnauthorized) Error

func (*GetNetworkPolicyUnauthorized) GetPayload

type UpdateNetworkPolicyDefault

type UpdateNetworkPolicyDefault struct {
	Payload *ipam_models.APIStatus
	// contains filtered or unexported fields
}
UpdateNetworkPolicyDefault describes a response with status code -1, with default header values.

Default error structure.

func NewUpdateNetworkPolicyDefault

func NewUpdateNetworkPolicyDefault(code int) *UpdateNetworkPolicyDefault

NewUpdateNetworkPolicyDefault creates a UpdateNetworkPolicyDefault with default headers values

func (*UpdateNetworkPolicyDefault) Code

func (o *UpdateNetworkPolicyDefault) Code() int

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

func (*UpdateNetworkPolicyDefault) Error

func (*UpdateNetworkPolicyDefault) GetPayload

type UpdateNetworkPolicyInternalServerError

type UpdateNetworkPolicyInternalServerError struct {
	Payload *ipam_models.APIStatus
}
UpdateNetworkPolicyInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewUpdateNetworkPolicyInternalServerError

func NewUpdateNetworkPolicyInternalServerError() *UpdateNetworkPolicyInternalServerError

NewUpdateNetworkPolicyInternalServerError creates a UpdateNetworkPolicyInternalServerError with default headers values

func (*UpdateNetworkPolicyInternalServerError) Error

func (*UpdateNetworkPolicyInternalServerError) GetPayload

type UpdateNetworkPolicyOK

type UpdateNetworkPolicyOK struct {
	Payload *ipam_models.V1UpdateNetworkPolicyResponse
}
UpdateNetworkPolicyOK describes a response with status code 200, with default header values.

UpdateNetworkPolicyOK update network policy o k

func NewUpdateNetworkPolicyOK

func NewUpdateNetworkPolicyOK() *UpdateNetworkPolicyOK

NewUpdateNetworkPolicyOK creates a UpdateNetworkPolicyOK with default headers values

func (*UpdateNetworkPolicyOK) Error

func (o *UpdateNetworkPolicyOK) Error() string

func (*UpdateNetworkPolicyOK) GetPayload

type UpdateNetworkPolicyParams

type UpdateNetworkPolicyParams struct {

	// Body.
	Body *ipam_models.V1UpdateNetworkPolicyRequest

	/* NetworkPolicyID.

	   An EdgeCompute network policy ID
	*/
	NetworkPolicyID string

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

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

UpdateNetworkPolicyParams contains all the parameters to send to the API endpoint

for the update network policy operation.

Typically these are written to a http.Request.

func NewUpdateNetworkPolicyParams

func NewUpdateNetworkPolicyParams() *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParams creates a new UpdateNetworkPolicyParams 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 NewUpdateNetworkPolicyParamsWithContext

func NewUpdateNetworkPolicyParamsWithContext(ctx context.Context) *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParamsWithContext creates a new UpdateNetworkPolicyParams object with the ability to set a context for a request.

func NewUpdateNetworkPolicyParamsWithHTTPClient

func NewUpdateNetworkPolicyParamsWithHTTPClient(client *http.Client) *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParamsWithHTTPClient creates a new UpdateNetworkPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateNetworkPolicyParamsWithTimeout

func NewUpdateNetworkPolicyParamsWithTimeout(timeout time.Duration) *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParamsWithTimeout creates a new UpdateNetworkPolicyParams object with the ability to set a timeout on a request.

func (*UpdateNetworkPolicyParams) SetBody

SetBody adds the body to the update network policy params

func (*UpdateNetworkPolicyParams) SetContext

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

SetContext adds the context to the update network policy params

func (*UpdateNetworkPolicyParams) SetDefaults

func (o *UpdateNetworkPolicyParams) SetDefaults()

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

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

func (*UpdateNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update network policy params

func (*UpdateNetworkPolicyParams) SetNetworkPolicyID

func (o *UpdateNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)

SetNetworkPolicyID adds the networkPolicyId to the update network policy params

func (*UpdateNetworkPolicyParams) SetStackID

func (o *UpdateNetworkPolicyParams) SetStackID(stackID string)

SetStackID adds the stackId to the update network policy params

func (*UpdateNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the update network policy params

func (*UpdateNetworkPolicyParams) WithBody

WithBody adds the body to the update network policy params

func (*UpdateNetworkPolicyParams) WithContext

WithContext adds the context to the update network policy params

func (*UpdateNetworkPolicyParams) WithDefaults

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

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

func (*UpdateNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update network policy params

func (*UpdateNetworkPolicyParams) WithNetworkPolicyID

func (o *UpdateNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *UpdateNetworkPolicyParams

WithNetworkPolicyID adds the networkPolicyID to the update network policy params

func (*UpdateNetworkPolicyParams) WithStackID

WithStackID adds the stackID to the update network policy params

func (*UpdateNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the update network policy params

func (*UpdateNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateNetworkPolicyReader

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

UpdateNetworkPolicyReader is a Reader for the UpdateNetworkPolicy structure.

func (*UpdateNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateNetworkPolicyUnauthorized

type UpdateNetworkPolicyUnauthorized struct {
	Payload *ipam_models.APIStatus
}
UpdateNetworkPolicyUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewUpdateNetworkPolicyUnauthorized

func NewUpdateNetworkPolicyUnauthorized() *UpdateNetworkPolicyUnauthorized

NewUpdateNetworkPolicyUnauthorized creates a UpdateNetworkPolicyUnauthorized with default headers values

func (*UpdateNetworkPolicyUnauthorized) Error

func (*UpdateNetworkPolicyUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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