security_policies

package
v1.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for security policies API

func (*Client) SecurityPolicyGetUsingGET

func (a *Client) SecurityPolicyGetUsingGET(params *SecurityPolicyGetUsingGETParams, opts ...ClientOption) (*SecurityPolicyGetUsingGETOK, error)

SecurityPolicyGetUsingGET gets

Get security policy from NSX-T

func (*Client) SecurityPolicyListUsingGET

func (a *Client) SecurityPolicyListUsingGET(params *SecurityPolicyListUsingGETParams, opts ...ClientOption) (*SecurityPolicyListUsingGETOK, error)

SecurityPolicyListUsingGET lists

List security policies from NSX-T

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.2.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SecurityPolicyGetUsingGET(params *SecurityPolicyGetUsingGETParams, opts ...ClientOption) (*SecurityPolicyGetUsingGETOK, error)

	SecurityPolicyListUsingGET(params *SecurityPolicyListUsingGETParams, opts ...ClientOption) (*SecurityPolicyListUsingGETOK, 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 security policies API client.

type SecurityPolicyGetUsingGETBadRequest

type SecurityPolicyGetUsingGETBadRequest struct {
	Payload *models.ProxyResponseMessage
}
SecurityPolicyGetUsingGETBadRequest describes a response with status code 400, with default header values.

Bad request, error occurred. For more details see log messages.

func NewSecurityPolicyGetUsingGETBadRequest

func NewSecurityPolicyGetUsingGETBadRequest() *SecurityPolicyGetUsingGETBadRequest

NewSecurityPolicyGetUsingGETBadRequest creates a SecurityPolicyGetUsingGETBadRequest with default headers values

func (*SecurityPolicyGetUsingGETBadRequest) Error

func (*SecurityPolicyGetUsingGETBadRequest) GetPayload added in v1.2.0

type SecurityPolicyGetUsingGETNotFound

type SecurityPolicyGetUsingGETNotFound struct {
}
SecurityPolicyGetUsingGETNotFound describes a response with status code 404, with default header values.

Entity not found.

func NewSecurityPolicyGetUsingGETNotFound

func NewSecurityPolicyGetUsingGETNotFound() *SecurityPolicyGetUsingGETNotFound

NewSecurityPolicyGetUsingGETNotFound creates a SecurityPolicyGetUsingGETNotFound with default headers values

func (*SecurityPolicyGetUsingGETNotFound) Error

type SecurityPolicyGetUsingGETOK

type SecurityPolicyGetUsingGETOK struct {
	Payload *models.SecurityPolicyGetResponse
}
SecurityPolicyGetUsingGETOK describes a response with status code 200, with default header values.

OK

func NewSecurityPolicyGetUsingGETOK

func NewSecurityPolicyGetUsingGETOK() *SecurityPolicyGetUsingGETOK

NewSecurityPolicyGetUsingGETOK creates a SecurityPolicyGetUsingGETOK with default headers values

func (*SecurityPolicyGetUsingGETOK) Error

func (*SecurityPolicyGetUsingGETOK) GetPayload

type SecurityPolicyGetUsingGETParams

type SecurityPolicyGetUsingGETParams struct {

	/* SecurityPolicyID.

	   SecurityPolicyId
	*/
	SecurityPolicyID string

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

SecurityPolicyGetUsingGETParams contains all the parameters to send to the API endpoint

for the security policy get using g e t operation.

Typically these are written to a http.Request.

func NewSecurityPolicyGetUsingGETParams

func NewSecurityPolicyGetUsingGETParams() *SecurityPolicyGetUsingGETParams

NewSecurityPolicyGetUsingGETParams creates a new SecurityPolicyGetUsingGETParams 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 NewSecurityPolicyGetUsingGETParamsWithContext

func NewSecurityPolicyGetUsingGETParamsWithContext(ctx context.Context) *SecurityPolicyGetUsingGETParams

NewSecurityPolicyGetUsingGETParamsWithContext creates a new SecurityPolicyGetUsingGETParams object with the ability to set a context for a request.

func NewSecurityPolicyGetUsingGETParamsWithHTTPClient

func NewSecurityPolicyGetUsingGETParamsWithHTTPClient(client *http.Client) *SecurityPolicyGetUsingGETParams

NewSecurityPolicyGetUsingGETParamsWithHTTPClient creates a new SecurityPolicyGetUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewSecurityPolicyGetUsingGETParamsWithTimeout

func NewSecurityPolicyGetUsingGETParamsWithTimeout(timeout time.Duration) *SecurityPolicyGetUsingGETParams

NewSecurityPolicyGetUsingGETParamsWithTimeout creates a new SecurityPolicyGetUsingGETParams object with the ability to set a timeout on a request.

func (*SecurityPolicyGetUsingGETParams) SetContext

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

SetContext adds the context to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) SetDefaults added in v1.2.4

func (o *SecurityPolicyGetUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the security policy get using g e t params (not the query body).

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

func (*SecurityPolicyGetUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) SetSecurityPolicyID

func (o *SecurityPolicyGetUsingGETParams) SetSecurityPolicyID(securityPolicyID string)

SetSecurityPolicyID adds the securityPolicyId to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) WithContext

WithContext adds the context to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the security policy get using g e t params (not the query body).

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

func (*SecurityPolicyGetUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) WithSecurityPolicyID

func (o *SecurityPolicyGetUsingGETParams) WithSecurityPolicyID(securityPolicyID string) *SecurityPolicyGetUsingGETParams

WithSecurityPolicyID adds the securityPolicyID to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) WithTimeout

WithTimeout adds the timeout to the security policy get using g e t params

func (*SecurityPolicyGetUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SecurityPolicyGetUsingGETReader

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

SecurityPolicyGetUsingGETReader is a Reader for the SecurityPolicyGetUsingGET structure.

func (*SecurityPolicyGetUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SecurityPolicyListUsingGETBadRequest

type SecurityPolicyListUsingGETBadRequest struct {
	Payload *models.ProxyResponseMessage
}
SecurityPolicyListUsingGETBadRequest describes a response with status code 400, with default header values.

Bad request, error occurred. For more details see log messages.

func NewSecurityPolicyListUsingGETBadRequest

func NewSecurityPolicyListUsingGETBadRequest() *SecurityPolicyListUsingGETBadRequest

NewSecurityPolicyListUsingGETBadRequest creates a SecurityPolicyListUsingGETBadRequest with default headers values

func (*SecurityPolicyListUsingGETBadRequest) Error

func (*SecurityPolicyListUsingGETBadRequest) GetPayload added in v1.2.0

type SecurityPolicyListUsingGETOK

type SecurityPolicyListUsingGETOK struct {
	Payload *models.SecurityPolicyListResponse
}
SecurityPolicyListUsingGETOK describes a response with status code 200, with default header values.

OK

func NewSecurityPolicyListUsingGETOK

func NewSecurityPolicyListUsingGETOK() *SecurityPolicyListUsingGETOK

NewSecurityPolicyListUsingGETOK creates a SecurityPolicyListUsingGETOK with default headers values

func (*SecurityPolicyListUsingGETOK) Error

func (*SecurityPolicyListUsingGETOK) GetPayload

type SecurityPolicyListUsingGETParams

type SecurityPolicyListUsingGETParams struct {

	/* DisplayName.

	   displayName
	*/
	DisplayName *string

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

SecurityPolicyListUsingGETParams contains all the parameters to send to the API endpoint

for the security policy list using g e t operation.

Typically these are written to a http.Request.

func NewSecurityPolicyListUsingGETParams

func NewSecurityPolicyListUsingGETParams() *SecurityPolicyListUsingGETParams

NewSecurityPolicyListUsingGETParams creates a new SecurityPolicyListUsingGETParams 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 NewSecurityPolicyListUsingGETParamsWithContext

func NewSecurityPolicyListUsingGETParamsWithContext(ctx context.Context) *SecurityPolicyListUsingGETParams

NewSecurityPolicyListUsingGETParamsWithContext creates a new SecurityPolicyListUsingGETParams object with the ability to set a context for a request.

func NewSecurityPolicyListUsingGETParamsWithHTTPClient

func NewSecurityPolicyListUsingGETParamsWithHTTPClient(client *http.Client) *SecurityPolicyListUsingGETParams

NewSecurityPolicyListUsingGETParamsWithHTTPClient creates a new SecurityPolicyListUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewSecurityPolicyListUsingGETParamsWithTimeout

func NewSecurityPolicyListUsingGETParamsWithTimeout(timeout time.Duration) *SecurityPolicyListUsingGETParams

NewSecurityPolicyListUsingGETParamsWithTimeout creates a new SecurityPolicyListUsingGETParams object with the ability to set a timeout on a request.

func (*SecurityPolicyListUsingGETParams) SetContext

SetContext adds the context to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) SetDefaults added in v1.2.4

func (o *SecurityPolicyListUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the security policy list using g e t params (not the query body).

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

func (*SecurityPolicyListUsingGETParams) SetDisplayName

func (o *SecurityPolicyListUsingGETParams) SetDisplayName(displayName *string)

SetDisplayName adds the displayName to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) WithContext

WithContext adds the context to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the security policy list using g e t params (not the query body).

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

func (*SecurityPolicyListUsingGETParams) WithDisplayName

WithDisplayName adds the displayName to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) WithTimeout

WithTimeout adds the timeout to the security policy list using g e t params

func (*SecurityPolicyListUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SecurityPolicyListUsingGETReader

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

SecurityPolicyListUsingGETReader is a Reader for the SecurityPolicyListUsingGET structure.

func (*SecurityPolicyListUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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