subnet

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 12 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 subnet API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SubnetCopy

func (a *Client) SubnetCopy(params *SubnetCopyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetCopyCreated, error)
SubnetCopy copies the subnet

Use this method to copy a __Subnet__ object.

The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces.

func (*Client) SubnetCreate

func (a *Client) SubnetCreate(params *SubnetCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetCreateCreated, error)
SubnetCreate creates the subnet

Use this method to create a __Subnet__ object.

The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces.

func (*Client) SubnetCreateNextAvailableIP

func (a *Client) SubnetCreateNextAvailableIP(params *SubnetCreateNextAvailableIPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetCreateNextAvailableIPCreated, error)
SubnetCreateNextAvailableIP allocates the next available IP address

Use this method to allocate the next available IP address.

This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation.

func (*Client) SubnetDelete

func (a *Client) SubnetDelete(params *SubnetDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetDeleteNoContent, error)
SubnetDelete moves the subnet to the recycle bin

Use this method to move a __Subnet__ object to the recycle bin.

The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces.

func (*Client) SubnetList

func (a *Client) SubnetList(params *SubnetListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetListOK, error)
SubnetList retrieves subnets

Use this method to retrieve __Subnet__ objects.

The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces.

func (*Client) SubnetListNextAvailableIP

func (a *Client) SubnetListNextAvailableIP(params *SubnetListNextAvailableIPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetListNextAvailableIPOK, error)
SubnetListNextAvailableIP retrieves the next available IP address

Use this method to retrieve the next available IP address.

This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation.

func (*Client) SubnetRead

func (a *Client) SubnetRead(params *SubnetReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetReadOK, error)
SubnetRead retrieves the subnet

Use this method to retrieve a __Subnet__ object.

The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces.

func (*Client) SubnetUpdate

func (a *Client) SubnetUpdate(params *SubnetUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetUpdateCreated, error)
SubnetUpdate updates the subnet

Use this method to update a __Subnet__ object.

The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SubnetCopy(params *SubnetCopyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetCopyCreated, error)

	SubnetCreate(params *SubnetCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetCreateCreated, error)

	SubnetCreateNextAvailableIP(params *SubnetCreateNextAvailableIPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetCreateNextAvailableIPCreated, error)

	SubnetDelete(params *SubnetDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetDeleteNoContent, error)

	SubnetList(params *SubnetListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetListOK, error)

	SubnetListNextAvailableIP(params *SubnetListNextAvailableIPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetListNextAvailableIPOK, error)

	SubnetRead(params *SubnetReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetReadOK, error)

	SubnetUpdate(params *SubnetUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubnetUpdateCreated, 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 subnet API client.

type SubnetCopyCreated

type SubnetCopyCreated struct {
	Payload *models.IpamsvcCopySubnetResponse
}
SubnetCopyCreated describes a response with status code 201, with default header values.

POST operation response

func NewSubnetCopyCreated

func NewSubnetCopyCreated() *SubnetCopyCreated

NewSubnetCopyCreated creates a SubnetCopyCreated with default headers values

func (*SubnetCopyCreated) Error

func (o *SubnetCopyCreated) Error() string

func (*SubnetCopyCreated) GetPayload

type SubnetCopyParams

type SubnetCopyParams struct {

	// Body.
	Body *models.IpamsvcCopySubnet

	/* ID.

	   An application specific resource identity of a resource
	*/
	ID string

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

SubnetCopyParams contains all the parameters to send to the API endpoint

for the subnet copy operation.

Typically these are written to a http.Request.

func NewSubnetCopyParams

func NewSubnetCopyParams() *SubnetCopyParams

NewSubnetCopyParams creates a new SubnetCopyParams 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 NewSubnetCopyParamsWithContext

func NewSubnetCopyParamsWithContext(ctx context.Context) *SubnetCopyParams

NewSubnetCopyParamsWithContext creates a new SubnetCopyParams object with the ability to set a context for a request.

func NewSubnetCopyParamsWithHTTPClient

func NewSubnetCopyParamsWithHTTPClient(client *http.Client) *SubnetCopyParams

NewSubnetCopyParamsWithHTTPClient creates a new SubnetCopyParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetCopyParamsWithTimeout

func NewSubnetCopyParamsWithTimeout(timeout time.Duration) *SubnetCopyParams

NewSubnetCopyParamsWithTimeout creates a new SubnetCopyParams object with the ability to set a timeout on a request.

func (*SubnetCopyParams) SetBody

func (o *SubnetCopyParams) SetBody(body *models.IpamsvcCopySubnet)

SetBody adds the body to the subnet copy params

func (*SubnetCopyParams) SetContext

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

SetContext adds the context to the subnet copy params

func (*SubnetCopyParams) SetDefaults

func (o *SubnetCopyParams) SetDefaults()

SetDefaults hydrates default values in the subnet copy params (not the query body).

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

func (*SubnetCopyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet copy params

func (*SubnetCopyParams) SetID

func (o *SubnetCopyParams) SetID(id string)

SetID adds the id to the subnet copy params

func (*SubnetCopyParams) SetTimeout

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

SetTimeout adds the timeout to the subnet copy params

func (*SubnetCopyParams) WithBody

WithBody adds the body to the subnet copy params

func (*SubnetCopyParams) WithContext

func (o *SubnetCopyParams) WithContext(ctx context.Context) *SubnetCopyParams

WithContext adds the context to the subnet copy params

func (*SubnetCopyParams) WithDefaults

func (o *SubnetCopyParams) WithDefaults() *SubnetCopyParams

WithDefaults hydrates default values in the subnet copy params (not the query body).

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

func (*SubnetCopyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the subnet copy params

func (*SubnetCopyParams) WithID

func (o *SubnetCopyParams) WithID(id string) *SubnetCopyParams

WithID adds the id to the subnet copy params

func (*SubnetCopyParams) WithTimeout

func (o *SubnetCopyParams) WithTimeout(timeout time.Duration) *SubnetCopyParams

WithTimeout adds the timeout to the subnet copy params

func (*SubnetCopyParams) WriteToRequest

func (o *SubnetCopyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SubnetCopyReader

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

SubnetCopyReader is a Reader for the SubnetCopy structure.

func (*SubnetCopyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubnetCreateCreated

type SubnetCreateCreated struct {
	Payload *models.IpamsvcCreateSubnetResponse
}
SubnetCreateCreated describes a response with status code 201, with default header values.

POST operation response

func NewSubnetCreateCreated

func NewSubnetCreateCreated() *SubnetCreateCreated

NewSubnetCreateCreated creates a SubnetCreateCreated with default headers values

func (*SubnetCreateCreated) Error

func (o *SubnetCreateCreated) Error() string

func (*SubnetCreateCreated) GetPayload

type SubnetCreateNextAvailableIPCreated

type SubnetCreateNextAvailableIPCreated struct {
	Payload *models.IpamsvcCreateNextAvailableIPResponse
}
SubnetCreateNextAvailableIPCreated describes a response with status code 201, with default header values.

POST operation response

func NewSubnetCreateNextAvailableIPCreated

func NewSubnetCreateNextAvailableIPCreated() *SubnetCreateNextAvailableIPCreated

NewSubnetCreateNextAvailableIPCreated creates a SubnetCreateNextAvailableIPCreated with default headers values

func (*SubnetCreateNextAvailableIPCreated) Error

func (*SubnetCreateNextAvailableIPCreated) GetPayload

type SubnetCreateNextAvailableIPParams

type SubnetCreateNextAvailableIPParams struct {

	/* ID.

	   An application specific resource identity of a resource
	*/
	ID string

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

SubnetCreateNextAvailableIPParams contains all the parameters to send to the API endpoint

for the subnet create next available IP operation.

Typically these are written to a http.Request.

func NewSubnetCreateNextAvailableIPParams

func NewSubnetCreateNextAvailableIPParams() *SubnetCreateNextAvailableIPParams

NewSubnetCreateNextAvailableIPParams creates a new SubnetCreateNextAvailableIPParams 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 NewSubnetCreateNextAvailableIPParamsWithContext

func NewSubnetCreateNextAvailableIPParamsWithContext(ctx context.Context) *SubnetCreateNextAvailableIPParams

NewSubnetCreateNextAvailableIPParamsWithContext creates a new SubnetCreateNextAvailableIPParams object with the ability to set a context for a request.

func NewSubnetCreateNextAvailableIPParamsWithHTTPClient

func NewSubnetCreateNextAvailableIPParamsWithHTTPClient(client *http.Client) *SubnetCreateNextAvailableIPParams

NewSubnetCreateNextAvailableIPParamsWithHTTPClient creates a new SubnetCreateNextAvailableIPParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetCreateNextAvailableIPParamsWithTimeout

func NewSubnetCreateNextAvailableIPParamsWithTimeout(timeout time.Duration) *SubnetCreateNextAvailableIPParams

NewSubnetCreateNextAvailableIPParamsWithTimeout creates a new SubnetCreateNextAvailableIPParams object with the ability to set a timeout on a request.

func (*SubnetCreateNextAvailableIPParams) SetContext

SetContext adds the context to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) SetDefaults

func (o *SubnetCreateNextAvailableIPParams) SetDefaults()

SetDefaults hydrates default values in the subnet create next available IP params (not the query body).

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

func (*SubnetCreateNextAvailableIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) SetID

SetID adds the id to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) SetTimeout

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

SetTimeout adds the timeout to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) WithContext

WithContext adds the context to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) WithDefaults

WithDefaults hydrates default values in the subnet create next available IP params (not the query body).

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

func (*SubnetCreateNextAvailableIPParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) WithID

WithID adds the id to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) WithTimeout

WithTimeout adds the timeout to the subnet create next available IP params

func (*SubnetCreateNextAvailableIPParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SubnetCreateNextAvailableIPReader

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

SubnetCreateNextAvailableIPReader is a Reader for the SubnetCreateNextAvailableIP structure.

func (*SubnetCreateNextAvailableIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubnetCreateParams

type SubnetCreateParams struct {

	// Body.
	Body *models.IpamsvcSubnet

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

SubnetCreateParams contains all the parameters to send to the API endpoint

for the subnet create operation.

Typically these are written to a http.Request.

func NewSubnetCreateParams

func NewSubnetCreateParams() *SubnetCreateParams

NewSubnetCreateParams creates a new SubnetCreateParams 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 NewSubnetCreateParamsWithContext

func NewSubnetCreateParamsWithContext(ctx context.Context) *SubnetCreateParams

NewSubnetCreateParamsWithContext creates a new SubnetCreateParams object with the ability to set a context for a request.

func NewSubnetCreateParamsWithHTTPClient

func NewSubnetCreateParamsWithHTTPClient(client *http.Client) *SubnetCreateParams

NewSubnetCreateParamsWithHTTPClient creates a new SubnetCreateParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetCreateParamsWithTimeout

func NewSubnetCreateParamsWithTimeout(timeout time.Duration) *SubnetCreateParams

NewSubnetCreateParamsWithTimeout creates a new SubnetCreateParams object with the ability to set a timeout on a request.

func (*SubnetCreateParams) SetBody

func (o *SubnetCreateParams) SetBody(body *models.IpamsvcSubnet)

SetBody adds the body to the subnet create params

func (*SubnetCreateParams) SetContext

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

SetContext adds the context to the subnet create params

func (*SubnetCreateParams) SetDefaults

func (o *SubnetCreateParams) SetDefaults()

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

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

func (*SubnetCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet create params

func (*SubnetCreateParams) SetTimeout

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

SetTimeout adds the timeout to the subnet create params

func (*SubnetCreateParams) WithBody

WithBody adds the body to the subnet create params

func (*SubnetCreateParams) WithContext

WithContext adds the context to the subnet create params

func (*SubnetCreateParams) WithDefaults

func (o *SubnetCreateParams) WithDefaults() *SubnetCreateParams

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

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

func (*SubnetCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the subnet create params

func (*SubnetCreateParams) WithTimeout

func (o *SubnetCreateParams) WithTimeout(timeout time.Duration) *SubnetCreateParams

WithTimeout adds the timeout to the subnet create params

func (*SubnetCreateParams) WriteToRequest

func (o *SubnetCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SubnetCreateReader

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

SubnetCreateReader is a Reader for the SubnetCreate structure.

func (*SubnetCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubnetDeleteNoContent

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

No Content

func NewSubnetDeleteNoContent

func NewSubnetDeleteNoContent() *SubnetDeleteNoContent

NewSubnetDeleteNoContent creates a SubnetDeleteNoContent with default headers values

func (*SubnetDeleteNoContent) Error

func (o *SubnetDeleteNoContent) Error() string

type SubnetDeleteParams

type SubnetDeleteParams struct {

	/* ID.

	   An application specific resource identity of a resource
	*/
	ID string

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

SubnetDeleteParams contains all the parameters to send to the API endpoint

for the subnet delete operation.

Typically these are written to a http.Request.

func NewSubnetDeleteParams

func NewSubnetDeleteParams() *SubnetDeleteParams

NewSubnetDeleteParams creates a new SubnetDeleteParams 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 NewSubnetDeleteParamsWithContext

func NewSubnetDeleteParamsWithContext(ctx context.Context) *SubnetDeleteParams

NewSubnetDeleteParamsWithContext creates a new SubnetDeleteParams object with the ability to set a context for a request.

func NewSubnetDeleteParamsWithHTTPClient

func NewSubnetDeleteParamsWithHTTPClient(client *http.Client) *SubnetDeleteParams

NewSubnetDeleteParamsWithHTTPClient creates a new SubnetDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetDeleteParamsWithTimeout

func NewSubnetDeleteParamsWithTimeout(timeout time.Duration) *SubnetDeleteParams

NewSubnetDeleteParamsWithTimeout creates a new SubnetDeleteParams object with the ability to set a timeout on a request.

func (*SubnetDeleteParams) SetContext

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

SetContext adds the context to the subnet delete params

func (*SubnetDeleteParams) SetDefaults

func (o *SubnetDeleteParams) SetDefaults()

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

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

func (*SubnetDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet delete params

func (*SubnetDeleteParams) SetID

func (o *SubnetDeleteParams) SetID(id string)

SetID adds the id to the subnet delete params

func (*SubnetDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the subnet delete params

func (*SubnetDeleteParams) WithContext

WithContext adds the context to the subnet delete params

func (*SubnetDeleteParams) WithDefaults

func (o *SubnetDeleteParams) WithDefaults() *SubnetDeleteParams

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

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

func (*SubnetDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the subnet delete params

func (*SubnetDeleteParams) WithID

WithID adds the id to the subnet delete params

func (*SubnetDeleteParams) WithTimeout

func (o *SubnetDeleteParams) WithTimeout(timeout time.Duration) *SubnetDeleteParams

WithTimeout adds the timeout to the subnet delete params

func (*SubnetDeleteParams) WriteToRequest

func (o *SubnetDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SubnetDeleteReader

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

SubnetDeleteReader is a Reader for the SubnetDelete structure.

func (*SubnetDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubnetListNextAvailableIPOK

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

GET operation response

func NewSubnetListNextAvailableIPOK

func NewSubnetListNextAvailableIPOK() *SubnetListNextAvailableIPOK

NewSubnetListNextAvailableIPOK creates a SubnetListNextAvailableIPOK with default headers values

func (*SubnetListNextAvailableIPOK) Error

func (*SubnetListNextAvailableIPOK) GetPayload

type SubnetListNextAvailableIPParams

type SubnetListNextAvailableIPParams struct {

	/* Contiguous.

	     Indicates whether the IP addresses should belong to a contiguous block.

	Defaults to _false_.

	     Format: boolean
	*/
	Contiguous *bool

	/* Count.

	     The number of IP addresses requested.

	Defaults to 1.

	     Format: int32
	*/
	Count *int32

	/* ID.

	   An application specific resource identity of a resource
	*/
	ID string

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

SubnetListNextAvailableIPParams contains all the parameters to send to the API endpoint

for the subnet list next available IP operation.

Typically these are written to a http.Request.

func NewSubnetListNextAvailableIPParams

func NewSubnetListNextAvailableIPParams() *SubnetListNextAvailableIPParams

NewSubnetListNextAvailableIPParams creates a new SubnetListNextAvailableIPParams 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 NewSubnetListNextAvailableIPParamsWithContext

func NewSubnetListNextAvailableIPParamsWithContext(ctx context.Context) *SubnetListNextAvailableIPParams

NewSubnetListNextAvailableIPParamsWithContext creates a new SubnetListNextAvailableIPParams object with the ability to set a context for a request.

func NewSubnetListNextAvailableIPParamsWithHTTPClient

func NewSubnetListNextAvailableIPParamsWithHTTPClient(client *http.Client) *SubnetListNextAvailableIPParams

NewSubnetListNextAvailableIPParamsWithHTTPClient creates a new SubnetListNextAvailableIPParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetListNextAvailableIPParamsWithTimeout

func NewSubnetListNextAvailableIPParamsWithTimeout(timeout time.Duration) *SubnetListNextAvailableIPParams

NewSubnetListNextAvailableIPParamsWithTimeout creates a new SubnetListNextAvailableIPParams object with the ability to set a timeout on a request.

func (*SubnetListNextAvailableIPParams) SetContext

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

SetContext adds the context to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) SetContiguous

func (o *SubnetListNextAvailableIPParams) SetContiguous(contiguous *bool)

SetContiguous adds the contiguous to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) SetCount

func (o *SubnetListNextAvailableIPParams) SetCount(count *int32)

SetCount adds the count to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) SetDefaults

func (o *SubnetListNextAvailableIPParams) SetDefaults()

SetDefaults hydrates default values in the subnet list next available IP params (not the query body).

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

func (*SubnetListNextAvailableIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) SetID

SetID adds the id to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) SetTimeout

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

SetTimeout adds the timeout to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) WithContext

WithContext adds the context to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) WithContiguous

WithContiguous adds the contiguous to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) WithCount

WithCount adds the count to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) WithDefaults

WithDefaults hydrates default values in the subnet list next available IP params (not the query body).

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

func (*SubnetListNextAvailableIPParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) WithID

WithID adds the id to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) WithTimeout

WithTimeout adds the timeout to the subnet list next available IP params

func (*SubnetListNextAvailableIPParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SubnetListNextAvailableIPReader

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

SubnetListNextAvailableIPReader is a Reader for the SubnetListNextAvailableIP structure.

func (*SubnetListNextAvailableIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubnetListOK

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

GET operation response

func NewSubnetListOK

func NewSubnetListOK() *SubnetListOK

NewSubnetListOK creates a SubnetListOK with default headers values

func (*SubnetListOK) Error

func (o *SubnetListOK) Error() string

func (*SubnetListOK) GetPayload

type SubnetListParams

type SubnetListParams struct {

	/* Fields.



	A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource.

	Specify this parameter as a comma-separated list of JSON tag names.


	*/
	Fields *string

	/* Filter.



	A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null.

	Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions:

	|  Op   |  Description               |
	|  --   |  -----------               |
	|  ==   |  Equal                     |
	|  !=   |  Not Equal                 |
	|  >    |  Greater Than              |
	|   >=  |  Greater Than or Equal To  |
	|  <    |  Less Than                 |
	|  <=   |  Less Than or Equal To     |
	|  and  |  Logical AND               |
	|  ~    |  Matches Regex             |
	|  !~   |  Does Not Match Regex      |
	|  or   |  Logical OR                |
	|  not  |  Logical NOT               |
	|  ()   |  Groupping Operators       |


	*/
	Filter *string

	/* Limit.



	The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value.


	*/
	Limit *int64

	/* Offset.



	The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'.


	*/
	Offset *int64

	/* OrderBy.



	A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.)

	Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order.


	*/
	OrderBy *string

	/* PageToken.



	The service-defined string used to identify a page of resources. A null value indicates the first page.


	*/
	PageToken *string

	/* Tfilter.

	   This parameter is used for filtering by tags.
	*/
	Tfilter *string

	/* TorderBy.

	   This parameter is used for sorting by tags.
	*/
	TorderBy *string

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

SubnetListParams contains all the parameters to send to the API endpoint

for the subnet list operation.

Typically these are written to a http.Request.

func NewSubnetListParams

func NewSubnetListParams() *SubnetListParams

NewSubnetListParams creates a new SubnetListParams 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 NewSubnetListParamsWithContext

func NewSubnetListParamsWithContext(ctx context.Context) *SubnetListParams

NewSubnetListParamsWithContext creates a new SubnetListParams object with the ability to set a context for a request.

func NewSubnetListParamsWithHTTPClient

func NewSubnetListParamsWithHTTPClient(client *http.Client) *SubnetListParams

NewSubnetListParamsWithHTTPClient creates a new SubnetListParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetListParamsWithTimeout

func NewSubnetListParamsWithTimeout(timeout time.Duration) *SubnetListParams

NewSubnetListParamsWithTimeout creates a new SubnetListParams object with the ability to set a timeout on a request.

func (*SubnetListParams) SetContext

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

SetContext adds the context to the subnet list params

func (*SubnetListParams) SetDefaults

func (o *SubnetListParams) SetDefaults()

SetDefaults hydrates default values in the subnet list params (not the query body).

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

func (*SubnetListParams) SetFields

func (o *SubnetListParams) SetFields(fields *string)

SetFields adds the fields to the subnet list params

func (*SubnetListParams) SetFilter

func (o *SubnetListParams) SetFilter(filter *string)

SetFilter adds the filter to the subnet list params

func (*SubnetListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet list params

func (*SubnetListParams) SetLimit

func (o *SubnetListParams) SetLimit(limit *int64)

SetLimit adds the limit to the subnet list params

func (*SubnetListParams) SetOffset

func (o *SubnetListParams) SetOffset(offset *int64)

SetOffset adds the offset to the subnet list params

func (*SubnetListParams) SetOrderBy

func (o *SubnetListParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the subnet list params

func (*SubnetListParams) SetPageToken

func (o *SubnetListParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the subnet list params

func (*SubnetListParams) SetTfilter

func (o *SubnetListParams) SetTfilter(tfilter *string)

SetTfilter adds the tfilter to the subnet list params

func (*SubnetListParams) SetTimeout

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

SetTimeout adds the timeout to the subnet list params

func (*SubnetListParams) SetTorderBy

func (o *SubnetListParams) SetTorderBy(torderBy *string)

SetTorderBy adds the torderBy to the subnet list params

func (*SubnetListParams) WithContext

func (o *SubnetListParams) WithContext(ctx context.Context) *SubnetListParams

WithContext adds the context to the subnet list params

func (*SubnetListParams) WithDefaults

func (o *SubnetListParams) WithDefaults() *SubnetListParams

WithDefaults hydrates default values in the subnet list params (not the query body).

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

func (*SubnetListParams) WithFields

func (o *SubnetListParams) WithFields(fields *string) *SubnetListParams

WithFields adds the fields to the subnet list params

func (*SubnetListParams) WithFilter

func (o *SubnetListParams) WithFilter(filter *string) *SubnetListParams

WithFilter adds the filter to the subnet list params

func (*SubnetListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the subnet list params

func (*SubnetListParams) WithLimit

func (o *SubnetListParams) WithLimit(limit *int64) *SubnetListParams

WithLimit adds the limit to the subnet list params

func (*SubnetListParams) WithOffset

func (o *SubnetListParams) WithOffset(offset *int64) *SubnetListParams

WithOffset adds the offset to the subnet list params

func (*SubnetListParams) WithOrderBy

func (o *SubnetListParams) WithOrderBy(orderBy *string) *SubnetListParams

WithOrderBy adds the orderBy to the subnet list params

func (*SubnetListParams) WithPageToken

func (o *SubnetListParams) WithPageToken(pageToken *string) *SubnetListParams

WithPageToken adds the pageToken to the subnet list params

func (*SubnetListParams) WithTfilter

func (o *SubnetListParams) WithTfilter(tfilter *string) *SubnetListParams

WithTfilter adds the tfilter to the subnet list params

func (*SubnetListParams) WithTimeout

func (o *SubnetListParams) WithTimeout(timeout time.Duration) *SubnetListParams

WithTimeout adds the timeout to the subnet list params

func (*SubnetListParams) WithTorderBy

func (o *SubnetListParams) WithTorderBy(torderBy *string) *SubnetListParams

WithTorderBy adds the torderBy to the subnet list params

func (*SubnetListParams) WriteToRequest

func (o *SubnetListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SubnetListReader

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

SubnetListReader is a Reader for the SubnetList structure.

func (*SubnetListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubnetReadOK

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

GET operation response

func NewSubnetReadOK

func NewSubnetReadOK() *SubnetReadOK

NewSubnetReadOK creates a SubnetReadOK with default headers values

func (*SubnetReadOK) Error

func (o *SubnetReadOK) Error() string

func (*SubnetReadOK) GetPayload

type SubnetReadParams

type SubnetReadParams struct {

	/* Fields.



	A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource.

	Specify this parameter as a comma-separated list of JSON tag names.


	*/
	Fields *string

	/* ID.

	   An application specific resource identity of a resource
	*/
	ID string

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

SubnetReadParams contains all the parameters to send to the API endpoint

for the subnet read operation.

Typically these are written to a http.Request.

func NewSubnetReadParams

func NewSubnetReadParams() *SubnetReadParams

NewSubnetReadParams creates a new SubnetReadParams 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 NewSubnetReadParamsWithContext

func NewSubnetReadParamsWithContext(ctx context.Context) *SubnetReadParams

NewSubnetReadParamsWithContext creates a new SubnetReadParams object with the ability to set a context for a request.

func NewSubnetReadParamsWithHTTPClient

func NewSubnetReadParamsWithHTTPClient(client *http.Client) *SubnetReadParams

NewSubnetReadParamsWithHTTPClient creates a new SubnetReadParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetReadParamsWithTimeout

func NewSubnetReadParamsWithTimeout(timeout time.Duration) *SubnetReadParams

NewSubnetReadParamsWithTimeout creates a new SubnetReadParams object with the ability to set a timeout on a request.

func (*SubnetReadParams) SetContext

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

SetContext adds the context to the subnet read params

func (*SubnetReadParams) SetDefaults

func (o *SubnetReadParams) SetDefaults()

SetDefaults hydrates default values in the subnet read params (not the query body).

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

func (*SubnetReadParams) SetFields

func (o *SubnetReadParams) SetFields(fields *string)

SetFields adds the fields to the subnet read params

func (*SubnetReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet read params

func (*SubnetReadParams) SetID

func (o *SubnetReadParams) SetID(id string)

SetID adds the id to the subnet read params

func (*SubnetReadParams) SetTimeout

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

SetTimeout adds the timeout to the subnet read params

func (*SubnetReadParams) WithContext

func (o *SubnetReadParams) WithContext(ctx context.Context) *SubnetReadParams

WithContext adds the context to the subnet read params

func (*SubnetReadParams) WithDefaults

func (o *SubnetReadParams) WithDefaults() *SubnetReadParams

WithDefaults hydrates default values in the subnet read params (not the query body).

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

func (*SubnetReadParams) WithFields

func (o *SubnetReadParams) WithFields(fields *string) *SubnetReadParams

WithFields adds the fields to the subnet read params

func (*SubnetReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the subnet read params

func (*SubnetReadParams) WithID

func (o *SubnetReadParams) WithID(id string) *SubnetReadParams

WithID adds the id to the subnet read params

func (*SubnetReadParams) WithTimeout

func (o *SubnetReadParams) WithTimeout(timeout time.Duration) *SubnetReadParams

WithTimeout adds the timeout to the subnet read params

func (*SubnetReadParams) WriteToRequest

func (o *SubnetReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SubnetReadReader

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

SubnetReadReader is a Reader for the SubnetRead structure.

func (*SubnetReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubnetUpdateCreated

type SubnetUpdateCreated struct {
	Payload *models.IpamsvcUpdateSubnetResponse
}
SubnetUpdateCreated describes a response with status code 201, with default header values.

PATCH operation response

func NewSubnetUpdateCreated

func NewSubnetUpdateCreated() *SubnetUpdateCreated

NewSubnetUpdateCreated creates a SubnetUpdateCreated with default headers values

func (*SubnetUpdateCreated) Error

func (o *SubnetUpdateCreated) Error() string

func (*SubnetUpdateCreated) GetPayload

type SubnetUpdateParams

type SubnetUpdateParams struct {

	// Body.
	Body *models.IpamsvcSubnet

	/* ID.

	   An application specific resource identity of a resource
	*/
	ID string

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

SubnetUpdateParams contains all the parameters to send to the API endpoint

for the subnet update operation.

Typically these are written to a http.Request.

func NewSubnetUpdateParams

func NewSubnetUpdateParams() *SubnetUpdateParams

NewSubnetUpdateParams creates a new SubnetUpdateParams 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 NewSubnetUpdateParamsWithContext

func NewSubnetUpdateParamsWithContext(ctx context.Context) *SubnetUpdateParams

NewSubnetUpdateParamsWithContext creates a new SubnetUpdateParams object with the ability to set a context for a request.

func NewSubnetUpdateParamsWithHTTPClient

func NewSubnetUpdateParamsWithHTTPClient(client *http.Client) *SubnetUpdateParams

NewSubnetUpdateParamsWithHTTPClient creates a new SubnetUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewSubnetUpdateParamsWithTimeout

func NewSubnetUpdateParamsWithTimeout(timeout time.Duration) *SubnetUpdateParams

NewSubnetUpdateParamsWithTimeout creates a new SubnetUpdateParams object with the ability to set a timeout on a request.

func (*SubnetUpdateParams) SetBody

func (o *SubnetUpdateParams) SetBody(body *models.IpamsvcSubnet)

SetBody adds the body to the subnet update params

func (*SubnetUpdateParams) SetContext

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

SetContext adds the context to the subnet update params

func (*SubnetUpdateParams) SetDefaults

func (o *SubnetUpdateParams) SetDefaults()

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

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

func (*SubnetUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subnet update params

func (*SubnetUpdateParams) SetID

func (o *SubnetUpdateParams) SetID(id string)

SetID adds the id to the subnet update params

func (*SubnetUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the subnet update params

func (*SubnetUpdateParams) WithBody

WithBody adds the body to the subnet update params

func (*SubnetUpdateParams) WithContext

WithContext adds the context to the subnet update params

func (*SubnetUpdateParams) WithDefaults

func (o *SubnetUpdateParams) WithDefaults() *SubnetUpdateParams

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

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

func (*SubnetUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the subnet update params

func (*SubnetUpdateParams) WithID

WithID adds the id to the subnet update params

func (*SubnetUpdateParams) WithTimeout

func (o *SubnetUpdateParams) WithTimeout(timeout time.Duration) *SubnetUpdateParams

WithTimeout adds the timeout to the subnet update params

func (*SubnetUpdateParams) WriteToRequest

func (o *SubnetUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SubnetUpdateReader

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

SubnetUpdateReader is a Reader for the SubnetUpdate structure.

func (*SubnetUpdateReader) ReadResponse

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