Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateNetworkPolicy(params *CreateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNetworkPolicyOK, error)
- func (a *Client) DeleteNetworkPolicy(params *DeleteNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNetworkPolicyNoContent, error)
- func (a *Client) GetNetworkPolicies(params *GetNetworkPoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkPoliciesOK, error)
- func (a *Client) GetNetworkPolicy(params *GetNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkPolicyOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateNetworkPolicy(params *UpdateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNetworkPolicyOK, error)
- type ClientService
- type CreateNetworkPolicyDefault
- type CreateNetworkPolicyInternalServerError
- type CreateNetworkPolicyOK
- type CreateNetworkPolicyParams
- func NewCreateNetworkPolicyParams() *CreateNetworkPolicyParams
- func NewCreateNetworkPolicyParamsWithContext(ctx context.Context) *CreateNetworkPolicyParams
- func NewCreateNetworkPolicyParamsWithHTTPClient(client *http.Client) *CreateNetworkPolicyParams
- func NewCreateNetworkPolicyParamsWithTimeout(timeout time.Duration) *CreateNetworkPolicyParams
- func (o *CreateNetworkPolicyParams) SetBody(body *ipam_models.V1CreateNetworkPolicyRequest)
- func (o *CreateNetworkPolicyParams) SetContext(ctx context.Context)
- func (o *CreateNetworkPolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreateNetworkPolicyParams) SetStackID(stackID string)
- func (o *CreateNetworkPolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreateNetworkPolicyParams) WithBody(body *ipam_models.V1CreateNetworkPolicyRequest) *CreateNetworkPolicyParams
- func (o *CreateNetworkPolicyParams) WithContext(ctx context.Context) *CreateNetworkPolicyParams
- func (o *CreateNetworkPolicyParams) WithHTTPClient(client *http.Client) *CreateNetworkPolicyParams
- func (o *CreateNetworkPolicyParams) WithStackID(stackID string) *CreateNetworkPolicyParams
- func (o *CreateNetworkPolicyParams) WithTimeout(timeout time.Duration) *CreateNetworkPolicyParams
- func (o *CreateNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateNetworkPolicyReader
- type CreateNetworkPolicyUnauthorized
- type DeleteNetworkPolicyDefault
- type DeleteNetworkPolicyInternalServerError
- type DeleteNetworkPolicyNoContent
- type DeleteNetworkPolicyParams
- func NewDeleteNetworkPolicyParams() *DeleteNetworkPolicyParams
- func NewDeleteNetworkPolicyParamsWithContext(ctx context.Context) *DeleteNetworkPolicyParams
- func NewDeleteNetworkPolicyParamsWithHTTPClient(client *http.Client) *DeleteNetworkPolicyParams
- func NewDeleteNetworkPolicyParamsWithTimeout(timeout time.Duration) *DeleteNetworkPolicyParams
- func (o *DeleteNetworkPolicyParams) SetContext(ctx context.Context)
- func (o *DeleteNetworkPolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeleteNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)
- func (o *DeleteNetworkPolicyParams) SetStackID(stackID string)
- func (o *DeleteNetworkPolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeleteNetworkPolicyParams) WithContext(ctx context.Context) *DeleteNetworkPolicyParams
- func (o *DeleteNetworkPolicyParams) WithHTTPClient(client *http.Client) *DeleteNetworkPolicyParams
- func (o *DeleteNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *DeleteNetworkPolicyParams
- func (o *DeleteNetworkPolicyParams) WithStackID(stackID string) *DeleteNetworkPolicyParams
- func (o *DeleteNetworkPolicyParams) WithTimeout(timeout time.Duration) *DeleteNetworkPolicyParams
- func (o *DeleteNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteNetworkPolicyReader
- type DeleteNetworkPolicyUnauthorized
- type GetNetworkPoliciesDefault
- type GetNetworkPoliciesInternalServerError
- type GetNetworkPoliciesOK
- type GetNetworkPoliciesParams
- func NewGetNetworkPoliciesParams() *GetNetworkPoliciesParams
- func NewGetNetworkPoliciesParamsWithContext(ctx context.Context) *GetNetworkPoliciesParams
- func NewGetNetworkPoliciesParamsWithHTTPClient(client *http.Client) *GetNetworkPoliciesParams
- func NewGetNetworkPoliciesParamsWithTimeout(timeout time.Duration) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) SetContext(ctx context.Context)
- func (o *GetNetworkPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *GetNetworkPoliciesParams) SetPageRequestAfter(pageRequestAfter *string)
- func (o *GetNetworkPoliciesParams) SetPageRequestFilter(pageRequestFilter *string)
- func (o *GetNetworkPoliciesParams) SetPageRequestFirst(pageRequestFirst *string)
- func (o *GetNetworkPoliciesParams) SetPageRequestSortBy(pageRequestSortBy *string)
- func (o *GetNetworkPoliciesParams) SetStackID(stackID string)
- func (o *GetNetworkPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *GetNetworkPoliciesParams) WithContext(ctx context.Context) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WithHTTPClient(client *http.Client) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WithPageRequestAfter(pageRequestAfter *string) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WithPageRequestFilter(pageRequestFilter *string) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WithPageRequestFirst(pageRequestFirst *string) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WithStackID(stackID string) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WithTimeout(timeout time.Duration) *GetNetworkPoliciesParams
- func (o *GetNetworkPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNetworkPoliciesReader
- type GetNetworkPoliciesUnauthorized
- type GetNetworkPolicyDefault
- type GetNetworkPolicyInternalServerError
- type GetNetworkPolicyOK
- type GetNetworkPolicyParams
- func NewGetNetworkPolicyParams() *GetNetworkPolicyParams
- func NewGetNetworkPolicyParamsWithContext(ctx context.Context) *GetNetworkPolicyParams
- func NewGetNetworkPolicyParamsWithHTTPClient(client *http.Client) *GetNetworkPolicyParams
- func NewGetNetworkPolicyParamsWithTimeout(timeout time.Duration) *GetNetworkPolicyParams
- func (o *GetNetworkPolicyParams) SetContext(ctx context.Context)
- func (o *GetNetworkPolicyParams) SetHTTPClient(client *http.Client)
- func (o *GetNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)
- func (o *GetNetworkPolicyParams) SetStackID(stackID string)
- func (o *GetNetworkPolicyParams) SetTimeout(timeout time.Duration)
- func (o *GetNetworkPolicyParams) WithContext(ctx context.Context) *GetNetworkPolicyParams
- func (o *GetNetworkPolicyParams) WithHTTPClient(client *http.Client) *GetNetworkPolicyParams
- func (o *GetNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *GetNetworkPolicyParams
- func (o *GetNetworkPolicyParams) WithStackID(stackID string) *GetNetworkPolicyParams
- func (o *GetNetworkPolicyParams) WithTimeout(timeout time.Duration) *GetNetworkPolicyParams
- func (o *GetNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNetworkPolicyReader
- type GetNetworkPolicyUnauthorized
- type UpdateNetworkPolicyDefault
- type UpdateNetworkPolicyInternalServerError
- type UpdateNetworkPolicyOK
- type UpdateNetworkPolicyParams
- func NewUpdateNetworkPolicyParams() *UpdateNetworkPolicyParams
- func NewUpdateNetworkPolicyParamsWithContext(ctx context.Context) *UpdateNetworkPolicyParams
- func NewUpdateNetworkPolicyParamsWithHTTPClient(client *http.Client) *UpdateNetworkPolicyParams
- func NewUpdateNetworkPolicyParamsWithTimeout(timeout time.Duration) *UpdateNetworkPolicyParams
- func (o *UpdateNetworkPolicyParams) SetBody(body *ipam_models.V1UpdateNetworkPolicyRequest)
- func (o *UpdateNetworkPolicyParams) SetContext(ctx context.Context)
- func (o *UpdateNetworkPolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdateNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)
- func (o *UpdateNetworkPolicyParams) SetStackID(stackID string)
- func (o *UpdateNetworkPolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdateNetworkPolicyParams) WithBody(body *ipam_models.V1UpdateNetworkPolicyRequest) *UpdateNetworkPolicyParams
- func (o *UpdateNetworkPolicyParams) WithContext(ctx context.Context) *UpdateNetworkPolicyParams
- func (o *UpdateNetworkPolicyParams) WithHTTPClient(client *http.Client) *UpdateNetworkPolicyParams
- func (o *UpdateNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *UpdateNetworkPolicyParams
- func (o *UpdateNetworkPolicyParams) WithStackID(stackID string) *UpdateNetworkPolicyParams
- func (o *UpdateNetworkPolicyParams) WithTimeout(timeout time.Duration) *UpdateNetworkPolicyParams
- func (o *UpdateNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateNetworkPolicyReader
- type UpdateNetworkPolicyUnauthorized
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) (*CreateNetworkPolicyOK, error)
CreateNetworkPolicy creates a new network policy
func (*Client) DeleteNetworkPolicy ¶
func (a *Client) DeleteNetworkPolicy(params *DeleteNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNetworkPolicyNoContent, error)
DeleteNetworkPolicy deletes a network policy
func (*Client) GetNetworkPolicies ¶
func (a *Client) GetNetworkPolicies(params *GetNetworkPoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkPoliciesOK, error)
GetNetworkPolicies gets a list of network policies by stack id
func (*Client) GetNetworkPolicy ¶
func (a *Client) GetNetworkPolicy(params *GetNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkPolicyOK, error)
GetNetworkPolicy gets a network 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) (*UpdateNetworkPolicyOK, error)
UpdateNetworkPolicy updates a network policy
type ClientService ¶
type ClientService interface { CreateNetworkPolicy(params *CreateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNetworkPolicyOK, error) DeleteNetworkPolicy(params *DeleteNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNetworkPolicyNoContent, error) GetNetworkPolicies(params *GetNetworkPoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkPoliciesOK, error) GetNetworkPolicy(params *GetNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*GetNetworkPolicyOK, error) UpdateNetworkPolicy(params *UpdateNetworkPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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 (o *CreateNetworkPolicyDefault) Error() string
func (*CreateNetworkPolicyDefault) GetPayload ¶
func (o *CreateNetworkPolicyDefault) GetPayload() *ipam_models.APIStatus
type CreateNetworkPolicyInternalServerError ¶
type CreateNetworkPolicyInternalServerError struct {
Payload *ipam_models.APIStatus
}
CreateNetworkPolicyInternalServerError handles this case with default header values.
Internal server error.
func NewCreateNetworkPolicyInternalServerError ¶
func NewCreateNetworkPolicyInternalServerError() *CreateNetworkPolicyInternalServerError
NewCreateNetworkPolicyInternalServerError creates a CreateNetworkPolicyInternalServerError with default headers values
func (*CreateNetworkPolicyInternalServerError) Error ¶
func (o *CreateNetworkPolicyInternalServerError) Error() string
func (*CreateNetworkPolicyInternalServerError) GetPayload ¶
func (o *CreateNetworkPolicyInternalServerError) GetPayload() *ipam_models.APIStatus
type CreateNetworkPolicyOK ¶
type CreateNetworkPolicyOK struct {
Payload *ipam_models.V1CreateNetworkPolicyResponse
}
CreateNetworkPolicyOK handles this case 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 ¶
func (o *CreateNetworkPolicyOK) GetPayload() *ipam_models.V1CreateNetworkPolicyResponse
type CreateNetworkPolicyParams ¶
type CreateNetworkPolicyParams struct { /*Body*/ Body *ipam_models.V1CreateNetworkPolicyRequest /*StackID The ID of the stack that a network policy belongs to */ 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 values initialized.
func NewCreateNetworkPolicyParamsWithContext ¶
func NewCreateNetworkPolicyParamsWithContext(ctx context.Context) *CreateNetworkPolicyParams
NewCreateNetworkPolicyParamsWithContext creates a new CreateNetworkPolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*CreateNetworkPolicyParams) SetBody ¶
func (o *CreateNetworkPolicyParams) SetBody(body *ipam_models.V1CreateNetworkPolicyRequest)
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) 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 ¶
func (o *CreateNetworkPolicyParams) WithBody(body *ipam_models.V1CreateNetworkPolicyRequest) *CreateNetworkPolicyParams
WithBody adds the body to the create network policy params
func (*CreateNetworkPolicyParams) WithContext ¶
func (o *CreateNetworkPolicyParams) WithContext(ctx context.Context) *CreateNetworkPolicyParams
WithContext adds the context to the create network policy params
func (*CreateNetworkPolicyParams) WithHTTPClient ¶
func (o *CreateNetworkPolicyParams) WithHTTPClient(client *http.Client) *CreateNetworkPolicyParams
WithHTTPClient adds the HTTPClient to the create network policy params
func (*CreateNetworkPolicyParams) WithStackID ¶
func (o *CreateNetworkPolicyParams) WithStackID(stackID string) *CreateNetworkPolicyParams
WithStackID adds the stackID to the create network policy params
func (*CreateNetworkPolicyParams) WithTimeout ¶
func (o *CreateNetworkPolicyParams) WithTimeout(timeout time.Duration) *CreateNetworkPolicyParams
WithTimeout adds the timeout to the create network policy params
func (*CreateNetworkPolicyParams) WriteToRequest ¶
func (o *CreateNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}CreateNetworkPolicyUnauthorized handles this case 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 (o *CreateNetworkPolicyUnauthorized) Error() string
func (*CreateNetworkPolicyUnauthorized) GetPayload ¶
func (o *CreateNetworkPolicyUnauthorized) GetPayload() *ipam_models.APIStatus
type DeleteNetworkPolicyDefault ¶
type DeleteNetworkPolicyDefault struct { Payload *ipam_models.APIStatus // contains filtered or unexported fields }
DeleteNetworkPolicyDefault handles this case 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 (o *DeleteNetworkPolicyDefault) Error() string
func (*DeleteNetworkPolicyDefault) GetPayload ¶
func (o *DeleteNetworkPolicyDefault) GetPayload() *ipam_models.APIStatus
type DeleteNetworkPolicyInternalServerError ¶
type DeleteNetworkPolicyInternalServerError struct {
Payload *ipam_models.APIStatus
}
DeleteNetworkPolicyInternalServerError handles this case with default header values.
Internal server error.
func NewDeleteNetworkPolicyInternalServerError ¶
func NewDeleteNetworkPolicyInternalServerError() *DeleteNetworkPolicyInternalServerError
NewDeleteNetworkPolicyInternalServerError creates a DeleteNetworkPolicyInternalServerError with default headers values
func (*DeleteNetworkPolicyInternalServerError) Error ¶
func (o *DeleteNetworkPolicyInternalServerError) Error() string
func (*DeleteNetworkPolicyInternalServerError) GetPayload ¶
func (o *DeleteNetworkPolicyInternalServerError) GetPayload() *ipam_models.APIStatus
type DeleteNetworkPolicyNoContent ¶
type DeleteNetworkPolicyNoContent struct { }
DeleteNetworkPolicyNoContent handles this case with default header values.
No content
func NewDeleteNetworkPolicyNoContent ¶
func NewDeleteNetworkPolicyNoContent() *DeleteNetworkPolicyNoContent
NewDeleteNetworkPolicyNoContent creates a DeleteNetworkPolicyNoContent with default headers values
func (*DeleteNetworkPolicyNoContent) Error ¶
func (o *DeleteNetworkPolicyNoContent) Error() string
type DeleteNetworkPolicyParams ¶
type DeleteNetworkPolicyParams struct { /*NetworkPolicyID The ID of the network policy to delete */ NetworkPolicyID string /*StackID The ID of the stack containing the network policy to delete */ 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 values initialized.
func NewDeleteNetworkPolicyParamsWithContext ¶
func NewDeleteNetworkPolicyParamsWithContext(ctx context.Context) *DeleteNetworkPolicyParams
NewDeleteNetworkPolicyParamsWithContext creates a new DeleteNetworkPolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *DeleteNetworkPolicyParams) WithContext(ctx context.Context) *DeleteNetworkPolicyParams
WithContext adds the context to the delete network policy params
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 ¶
func (o *DeleteNetworkPolicyParams) WithStackID(stackID string) *DeleteNetworkPolicyParams
WithStackID adds the stackID to the delete network policy params
func (*DeleteNetworkPolicyParams) WithTimeout ¶
func (o *DeleteNetworkPolicyParams) WithTimeout(timeout time.Duration) *DeleteNetworkPolicyParams
WithTimeout adds the timeout to the delete network policy params
func (*DeleteNetworkPolicyParams) WriteToRequest ¶
func (o *DeleteNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}DeleteNetworkPolicyUnauthorized handles this case 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 (o *DeleteNetworkPolicyUnauthorized) Error() string
func (*DeleteNetworkPolicyUnauthorized) GetPayload ¶
func (o *DeleteNetworkPolicyUnauthorized) GetPayload() *ipam_models.APIStatus
type GetNetworkPoliciesDefault ¶
type GetNetworkPoliciesDefault struct { Payload *ipam_models.APIStatus // contains filtered or unexported fields }
GetNetworkPoliciesDefault handles this case 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 ¶
func (o *GetNetworkPoliciesDefault) GetPayload() *ipam_models.APIStatus
type GetNetworkPoliciesInternalServerError ¶
type GetNetworkPoliciesInternalServerError struct {
Payload *ipam_models.APIStatus
}
GetNetworkPoliciesInternalServerError handles this case with default header values.
Internal server error.
func NewGetNetworkPoliciesInternalServerError ¶
func NewGetNetworkPoliciesInternalServerError() *GetNetworkPoliciesInternalServerError
NewGetNetworkPoliciesInternalServerError creates a GetNetworkPoliciesInternalServerError with default headers values
func (*GetNetworkPoliciesInternalServerError) Error ¶
func (o *GetNetworkPoliciesInternalServerError) Error() string
func (*GetNetworkPoliciesInternalServerError) GetPayload ¶
func (o *GetNetworkPoliciesInternalServerError) GetPayload() *ipam_models.APIStatus
type GetNetworkPoliciesOK ¶
type GetNetworkPoliciesOK struct {
Payload *ipam_models.V1GetNetworkPoliciesResponse
}
GetNetworkPoliciesOK handles this case 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 ¶
func (o *GetNetworkPoliciesOK) GetPayload() *ipam_models.V1GetNetworkPoliciesResponse
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 The ID of the stack to retrieve network policies from */ 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 values initialized.
func NewGetNetworkPoliciesParamsWithContext ¶
func NewGetNetworkPoliciesParamsWithContext(ctx context.Context) *GetNetworkPoliciesParams
NewGetNetworkPoliciesParamsWithContext creates a new GetNetworkPoliciesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *GetNetworkPoliciesParams) WithContext(ctx context.Context) *GetNetworkPoliciesParams
WithContext adds the context to the get network policies params
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 ¶
func (o *GetNetworkPoliciesParams) WithTimeout(timeout time.Duration) *GetNetworkPoliciesParams
WithTimeout adds the timeout to the get network policies params
func (*GetNetworkPoliciesParams) WriteToRequest ¶
func (o *GetNetworkPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}GetNetworkPoliciesUnauthorized handles this case 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 (o *GetNetworkPoliciesUnauthorized) Error() string
func (*GetNetworkPoliciesUnauthorized) GetPayload ¶
func (o *GetNetworkPoliciesUnauthorized) GetPayload() *ipam_models.APIStatus
type GetNetworkPolicyDefault ¶
type GetNetworkPolicyDefault struct { Payload *ipam_models.APIStatus // contains filtered or unexported fields }
GetNetworkPolicyDefault handles this case 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 ¶
func (o *GetNetworkPolicyDefault) GetPayload() *ipam_models.APIStatus
type GetNetworkPolicyInternalServerError ¶
type GetNetworkPolicyInternalServerError struct {
Payload *ipam_models.APIStatus
}
GetNetworkPolicyInternalServerError handles this case with default header values.
Internal server error.
func NewGetNetworkPolicyInternalServerError ¶
func NewGetNetworkPolicyInternalServerError() *GetNetworkPolicyInternalServerError
NewGetNetworkPolicyInternalServerError creates a GetNetworkPolicyInternalServerError with default headers values
func (*GetNetworkPolicyInternalServerError) Error ¶
func (o *GetNetworkPolicyInternalServerError) Error() string
func (*GetNetworkPolicyInternalServerError) GetPayload ¶
func (o *GetNetworkPolicyInternalServerError) GetPayload() *ipam_models.APIStatus
type GetNetworkPolicyOK ¶
type GetNetworkPolicyOK struct {
Payload *ipam_models.V1GetNetworkPolicyResponse
}
GetNetworkPolicyOK handles this case 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 ¶
func (o *GetNetworkPolicyOK) GetPayload() *ipam_models.V1GetNetworkPolicyResponse
type GetNetworkPolicyParams ¶
type GetNetworkPolicyParams struct { /*NetworkPolicyID The ID the network policy to retrieve */ NetworkPolicyID string /*StackID The ID of the stack containing the network policy to retrieve */ 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 values initialized.
func NewGetNetworkPolicyParamsWithContext ¶
func NewGetNetworkPolicyParamsWithContext(ctx context.Context) *GetNetworkPolicyParams
NewGetNetworkPolicyParamsWithContext creates a new GetNetworkPolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 ¶
func (o *GetNetworkPolicyParams) WithContext(ctx context.Context) *GetNetworkPolicyParams
WithContext adds the context to the get network policy params
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 ¶
func (o *GetNetworkPolicyParams) WithTimeout(timeout time.Duration) *GetNetworkPolicyParams
WithTimeout adds the timeout to the get network policy params
func (*GetNetworkPolicyParams) WriteToRequest ¶
func (o *GetNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}GetNetworkPolicyUnauthorized handles this case 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 (o *GetNetworkPolicyUnauthorized) Error() string
func (*GetNetworkPolicyUnauthorized) GetPayload ¶
func (o *GetNetworkPolicyUnauthorized) GetPayload() *ipam_models.APIStatus
type UpdateNetworkPolicyDefault ¶
type UpdateNetworkPolicyDefault struct { Payload *ipam_models.APIStatus // contains filtered or unexported fields }
UpdateNetworkPolicyDefault handles this case 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 (o *UpdateNetworkPolicyDefault) Error() string
func (*UpdateNetworkPolicyDefault) GetPayload ¶
func (o *UpdateNetworkPolicyDefault) GetPayload() *ipam_models.APIStatus
type UpdateNetworkPolicyInternalServerError ¶
type UpdateNetworkPolicyInternalServerError struct {
Payload *ipam_models.APIStatus
}
UpdateNetworkPolicyInternalServerError handles this case with default header values.
Internal server error.
func NewUpdateNetworkPolicyInternalServerError ¶
func NewUpdateNetworkPolicyInternalServerError() *UpdateNetworkPolicyInternalServerError
NewUpdateNetworkPolicyInternalServerError creates a UpdateNetworkPolicyInternalServerError with default headers values
func (*UpdateNetworkPolicyInternalServerError) Error ¶
func (o *UpdateNetworkPolicyInternalServerError) Error() string
func (*UpdateNetworkPolicyInternalServerError) GetPayload ¶
func (o *UpdateNetworkPolicyInternalServerError) GetPayload() *ipam_models.APIStatus
type UpdateNetworkPolicyOK ¶
type UpdateNetworkPolicyOK struct {
Payload *ipam_models.V1UpdateNetworkPolicyResponse
}
UpdateNetworkPolicyOK handles this case 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 ¶
func (o *UpdateNetworkPolicyOK) GetPayload() *ipam_models.V1UpdateNetworkPolicyResponse
type UpdateNetworkPolicyParams ¶
type UpdateNetworkPolicyParams struct { /*Body*/ Body *ipam_models.V1UpdateNetworkPolicyRequest /*NetworkPolicyID A network policy's unique identifier */ NetworkPolicyID string /*StackID The ID of the stack that a network policy belongs to */ 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 values initialized.
func NewUpdateNetworkPolicyParamsWithContext ¶
func NewUpdateNetworkPolicyParamsWithContext(ctx context.Context) *UpdateNetworkPolicyParams
NewUpdateNetworkPolicyParamsWithContext creates a new UpdateNetworkPolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*UpdateNetworkPolicyParams) SetBody ¶
func (o *UpdateNetworkPolicyParams) SetBody(body *ipam_models.V1UpdateNetworkPolicyRequest)
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) 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 ¶
func (o *UpdateNetworkPolicyParams) WithBody(body *ipam_models.V1UpdateNetworkPolicyRequest) *UpdateNetworkPolicyParams
WithBody adds the body to the update network policy params
func (*UpdateNetworkPolicyParams) WithContext ¶
func (o *UpdateNetworkPolicyParams) WithContext(ctx context.Context) *UpdateNetworkPolicyParams
WithContext adds the context to the update network policy params
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 ¶
func (o *UpdateNetworkPolicyParams) WithStackID(stackID string) *UpdateNetworkPolicyParams
WithStackID adds the stackID to the update network policy params
func (*UpdateNetworkPolicyParams) WithTimeout ¶
func (o *UpdateNetworkPolicyParams) WithTimeout(timeout time.Duration) *UpdateNetworkPolicyParams
WithTimeout adds the timeout to the update network policy params
func (*UpdateNetworkPolicyParams) WriteToRequest ¶
func (o *UpdateNetworkPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}UpdateNetworkPolicyUnauthorized handles this case 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 (o *UpdateNetworkPolicyUnauthorized) Error() string
func (*UpdateNetworkPolicyUnauthorized) GetPayload ¶
func (o *UpdateNetworkPolicyUnauthorized) GetPayload() *ipam_models.APIStatus
Source Files ¶
- create_network_policy_parameters.go
- create_network_policy_responses.go
- delete_network_policy_parameters.go
- delete_network_policy_responses.go
- get_network_policies_parameters.go
- get_network_policies_responses.go
- get_network_policy_parameters.go
- get_network_policy_responses.go
- network_policies_client.go
- update_network_policy_parameters.go
- update_network_policy_responses.go