gateway_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 gateway policies API

func (*Client) GatewayPolicyGetUsingGET

func (a *Client) GatewayPolicyGetUsingGET(params *GatewayPolicyGetUsingGETParams, opts ...ClientOption) (*GatewayPolicyGetUsingGETOK, error)

GatewayPolicyGetUsingGET gets

Get gateway policies from NSX-T

func (*Client) GatewayPolicyListUsingGET

func (a *Client) GatewayPolicyListUsingGET(params *GatewayPolicyListUsingGETParams, opts ...ClientOption) (*GatewayPolicyListUsingGETOK, error)

GatewayPolicyListUsingGET lists

List gateway 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 {
	GatewayPolicyGetUsingGET(params *GatewayPolicyGetUsingGETParams, opts ...ClientOption) (*GatewayPolicyGetUsingGETOK, error)

	GatewayPolicyListUsingGET(params *GatewayPolicyListUsingGETParams, opts ...ClientOption) (*GatewayPolicyListUsingGETOK, 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 gateway policies API client.

type GatewayPolicyGetUsingGETBadRequest

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

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

func NewGatewayPolicyGetUsingGETBadRequest

func NewGatewayPolicyGetUsingGETBadRequest() *GatewayPolicyGetUsingGETBadRequest

NewGatewayPolicyGetUsingGETBadRequest creates a GatewayPolicyGetUsingGETBadRequest with default headers values

func (*GatewayPolicyGetUsingGETBadRequest) Error

func (*GatewayPolicyGetUsingGETBadRequest) GetPayload added in v1.2.0

type GatewayPolicyGetUsingGETNotFound

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

Entity not found.

func NewGatewayPolicyGetUsingGETNotFound

func NewGatewayPolicyGetUsingGETNotFound() *GatewayPolicyGetUsingGETNotFound

NewGatewayPolicyGetUsingGETNotFound creates a GatewayPolicyGetUsingGETNotFound with default headers values

func (*GatewayPolicyGetUsingGETNotFound) Error

type GatewayPolicyGetUsingGETOK

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

OK

func NewGatewayPolicyGetUsingGETOK

func NewGatewayPolicyGetUsingGETOK() *GatewayPolicyGetUsingGETOK

NewGatewayPolicyGetUsingGETOK creates a GatewayPolicyGetUsingGETOK with default headers values

func (*GatewayPolicyGetUsingGETOK) Error

func (*GatewayPolicyGetUsingGETOK) GetPayload

type GatewayPolicyGetUsingGETParams

type GatewayPolicyGetUsingGETParams struct {

	/* GatewayPolicyID.

	   gatewayPolicyId
	*/
	GatewayPolicyID string

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

GatewayPolicyGetUsingGETParams contains all the parameters to send to the API endpoint

for the gateway policy get using g e t operation.

Typically these are written to a http.Request.

func NewGatewayPolicyGetUsingGETParams

func NewGatewayPolicyGetUsingGETParams() *GatewayPolicyGetUsingGETParams

NewGatewayPolicyGetUsingGETParams creates a new GatewayPolicyGetUsingGETParams 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 NewGatewayPolicyGetUsingGETParamsWithContext

func NewGatewayPolicyGetUsingGETParamsWithContext(ctx context.Context) *GatewayPolicyGetUsingGETParams

NewGatewayPolicyGetUsingGETParamsWithContext creates a new GatewayPolicyGetUsingGETParams object with the ability to set a context for a request.

func NewGatewayPolicyGetUsingGETParamsWithHTTPClient

func NewGatewayPolicyGetUsingGETParamsWithHTTPClient(client *http.Client) *GatewayPolicyGetUsingGETParams

NewGatewayPolicyGetUsingGETParamsWithHTTPClient creates a new GatewayPolicyGetUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGatewayPolicyGetUsingGETParamsWithTimeout

func NewGatewayPolicyGetUsingGETParamsWithTimeout(timeout time.Duration) *GatewayPolicyGetUsingGETParams

NewGatewayPolicyGetUsingGETParamsWithTimeout creates a new GatewayPolicyGetUsingGETParams object with the ability to set a timeout on a request.

func (*GatewayPolicyGetUsingGETParams) SetContext

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

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

func (*GatewayPolicyGetUsingGETParams) SetDefaults added in v1.2.4

func (o *GatewayPolicyGetUsingGETParams) SetDefaults()

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

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

func (*GatewayPolicyGetUsingGETParams) SetGatewayPolicyID

func (o *GatewayPolicyGetUsingGETParams) SetGatewayPolicyID(gatewayPolicyID string)

SetGatewayPolicyID adds the gatewayPolicyId to the gateway policy get using g e t params

func (*GatewayPolicyGetUsingGETParams) SetHTTPClient

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

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

func (*GatewayPolicyGetUsingGETParams) SetTimeout

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

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

func (*GatewayPolicyGetUsingGETParams) WithContext

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

func (*GatewayPolicyGetUsingGETParams) WithDefaults added in v1.2.4

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

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

func (*GatewayPolicyGetUsingGETParams) WithGatewayPolicyID

func (o *GatewayPolicyGetUsingGETParams) WithGatewayPolicyID(gatewayPolicyID string) *GatewayPolicyGetUsingGETParams

WithGatewayPolicyID adds the gatewayPolicyID to the gateway policy get using g e t params

func (*GatewayPolicyGetUsingGETParams) WithHTTPClient

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

func (*GatewayPolicyGetUsingGETParams) WithTimeout

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

func (*GatewayPolicyGetUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GatewayPolicyGetUsingGETReader

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

GatewayPolicyGetUsingGETReader is a Reader for the GatewayPolicyGetUsingGET structure.

func (*GatewayPolicyGetUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GatewayPolicyListUsingGETBadRequest

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

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

func NewGatewayPolicyListUsingGETBadRequest

func NewGatewayPolicyListUsingGETBadRequest() *GatewayPolicyListUsingGETBadRequest

NewGatewayPolicyListUsingGETBadRequest creates a GatewayPolicyListUsingGETBadRequest with default headers values

func (*GatewayPolicyListUsingGETBadRequest) Error

func (*GatewayPolicyListUsingGETBadRequest) GetPayload added in v1.2.0

type GatewayPolicyListUsingGETOK

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

OK

func NewGatewayPolicyListUsingGETOK

func NewGatewayPolicyListUsingGETOK() *GatewayPolicyListUsingGETOK

NewGatewayPolicyListUsingGETOK creates a GatewayPolicyListUsingGETOK with default headers values

func (*GatewayPolicyListUsingGETOK) Error

func (*GatewayPolicyListUsingGETOK) GetPayload

type GatewayPolicyListUsingGETParams

type GatewayPolicyListUsingGETParams struct {

	/* DisplayName.

	   displayName
	*/
	DisplayName *string

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

GatewayPolicyListUsingGETParams contains all the parameters to send to the API endpoint

for the gateway policy list using g e t operation.

Typically these are written to a http.Request.

func NewGatewayPolicyListUsingGETParams

func NewGatewayPolicyListUsingGETParams() *GatewayPolicyListUsingGETParams

NewGatewayPolicyListUsingGETParams creates a new GatewayPolicyListUsingGETParams 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 NewGatewayPolicyListUsingGETParamsWithContext

func NewGatewayPolicyListUsingGETParamsWithContext(ctx context.Context) *GatewayPolicyListUsingGETParams

NewGatewayPolicyListUsingGETParamsWithContext creates a new GatewayPolicyListUsingGETParams object with the ability to set a context for a request.

func NewGatewayPolicyListUsingGETParamsWithHTTPClient

func NewGatewayPolicyListUsingGETParamsWithHTTPClient(client *http.Client) *GatewayPolicyListUsingGETParams

NewGatewayPolicyListUsingGETParamsWithHTTPClient creates a new GatewayPolicyListUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGatewayPolicyListUsingGETParamsWithTimeout

func NewGatewayPolicyListUsingGETParamsWithTimeout(timeout time.Duration) *GatewayPolicyListUsingGETParams

NewGatewayPolicyListUsingGETParamsWithTimeout creates a new GatewayPolicyListUsingGETParams object with the ability to set a timeout on a request.

func (*GatewayPolicyListUsingGETParams) SetContext

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

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

func (*GatewayPolicyListUsingGETParams) SetDefaults added in v1.2.4

func (o *GatewayPolicyListUsingGETParams) SetDefaults()

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

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

func (*GatewayPolicyListUsingGETParams) SetDisplayName

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

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

func (*GatewayPolicyListUsingGETParams) SetHTTPClient

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

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

func (*GatewayPolicyListUsingGETParams) SetTimeout

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

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

func (*GatewayPolicyListUsingGETParams) WithContext

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

func (*GatewayPolicyListUsingGETParams) WithDefaults added in v1.2.4

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

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

func (*GatewayPolicyListUsingGETParams) WithDisplayName

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

func (*GatewayPolicyListUsingGETParams) WithHTTPClient

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

func (*GatewayPolicyListUsingGETParams) WithTimeout

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

func (*GatewayPolicyListUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GatewayPolicyListUsingGETReader

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

GatewayPolicyListUsingGETReader is a Reader for the GatewayPolicyListUsingGET structure.

func (*GatewayPolicyListUsingGETReader) ReadResponse

func (o *GatewayPolicyListUsingGETReader) 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