global

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: 11 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 global API

func (*Client) GlobalRead

func (a *Client) GlobalRead(params *GlobalReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalReadOK, error)
GlobalRead retrieves the global configuration

Use this method to retrieve the __Global__ configuration object.

The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance.

func (*Client) GlobalRead2

func (a *Client) GlobalRead2(params *GlobalRead2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalRead2OK, error)
GlobalRead2 retrieves the global configuration

Use this method to retrieve the __Global__ configuration object.

The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance.

func (*Client) GlobalUpdate

func (a *Client) GlobalUpdate(params *GlobalUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalUpdateCreated, error)
GlobalUpdate updates the global configuration

Use this method to update the __Global__ configuration object.

The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance.

func (*Client) GlobalUpdate2

func (a *Client) GlobalUpdate2(params *GlobalUpdate2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalUpdate2Created, error)
GlobalUpdate2 updates the global configuration

Use this method to update the __Global__ configuration object.

The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GlobalRead(params *GlobalReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalReadOK, error)

	GlobalRead2(params *GlobalRead2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalRead2OK, error)

	GlobalUpdate(params *GlobalUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalUpdateCreated, error)

	GlobalUpdate2(params *GlobalUpdate2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GlobalUpdate2Created, 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 global API client.

type GlobalRead2OK

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

GET operation response

func NewGlobalRead2OK

func NewGlobalRead2OK() *GlobalRead2OK

NewGlobalRead2OK creates a GlobalRead2OK with default headers values

func (*GlobalRead2OK) Error

func (o *GlobalRead2OK) Error() string

func (*GlobalRead2OK) GetPayload

type GlobalRead2Params

type GlobalRead2Params 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
}

GlobalRead2Params contains all the parameters to send to the API endpoint

for the global read2 operation.

Typically these are written to a http.Request.

func NewGlobalRead2Params

func NewGlobalRead2Params() *GlobalRead2Params

NewGlobalRead2Params creates a new GlobalRead2Params 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 NewGlobalRead2ParamsWithContext

func NewGlobalRead2ParamsWithContext(ctx context.Context) *GlobalRead2Params

NewGlobalRead2ParamsWithContext creates a new GlobalRead2Params object with the ability to set a context for a request.

func NewGlobalRead2ParamsWithHTTPClient

func NewGlobalRead2ParamsWithHTTPClient(client *http.Client) *GlobalRead2Params

NewGlobalRead2ParamsWithHTTPClient creates a new GlobalRead2Params object with the ability to set a custom HTTPClient for a request.

func NewGlobalRead2ParamsWithTimeout

func NewGlobalRead2ParamsWithTimeout(timeout time.Duration) *GlobalRead2Params

NewGlobalRead2ParamsWithTimeout creates a new GlobalRead2Params object with the ability to set a timeout on a request.

func (*GlobalRead2Params) SetContext

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

SetContext adds the context to the global read2 params

func (*GlobalRead2Params) SetDefaults

func (o *GlobalRead2Params) SetDefaults()

SetDefaults hydrates default values in the global read2 params (not the query body).

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

func (*GlobalRead2Params) SetFields

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

SetFields adds the fields to the global read2 params

func (*GlobalRead2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the global read2 params

func (*GlobalRead2Params) SetID

func (o *GlobalRead2Params) SetID(id string)

SetID adds the id to the global read2 params

func (*GlobalRead2Params) SetTimeout

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

SetTimeout adds the timeout to the global read2 params

func (*GlobalRead2Params) WithContext

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

WithContext adds the context to the global read2 params

func (*GlobalRead2Params) WithDefaults

func (o *GlobalRead2Params) WithDefaults() *GlobalRead2Params

WithDefaults hydrates default values in the global read2 params (not the query body).

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

func (*GlobalRead2Params) WithFields

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

WithFields adds the fields to the global read2 params

func (*GlobalRead2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the global read2 params

func (*GlobalRead2Params) WithID

WithID adds the id to the global read2 params

func (*GlobalRead2Params) WithTimeout

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

WithTimeout adds the timeout to the global read2 params

func (*GlobalRead2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GlobalRead2Reader

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

GlobalRead2Reader is a Reader for the GlobalRead2 structure.

func (*GlobalRead2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GlobalReadOK

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

GET operation response

func NewGlobalReadOK

func NewGlobalReadOK() *GlobalReadOK

NewGlobalReadOK creates a GlobalReadOK with default headers values

func (*GlobalReadOK) Error

func (o *GlobalReadOK) Error() string

func (*GlobalReadOK) GetPayload

type GlobalReadParams

type GlobalReadParams 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

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

GlobalReadParams contains all the parameters to send to the API endpoint

for the global read operation.

Typically these are written to a http.Request.

func NewGlobalReadParams

func NewGlobalReadParams() *GlobalReadParams

NewGlobalReadParams creates a new GlobalReadParams 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 NewGlobalReadParamsWithContext

func NewGlobalReadParamsWithContext(ctx context.Context) *GlobalReadParams

NewGlobalReadParamsWithContext creates a new GlobalReadParams object with the ability to set a context for a request.

func NewGlobalReadParamsWithHTTPClient

func NewGlobalReadParamsWithHTTPClient(client *http.Client) *GlobalReadParams

NewGlobalReadParamsWithHTTPClient creates a new GlobalReadParams object with the ability to set a custom HTTPClient for a request.

func NewGlobalReadParamsWithTimeout

func NewGlobalReadParamsWithTimeout(timeout time.Duration) *GlobalReadParams

NewGlobalReadParamsWithTimeout creates a new GlobalReadParams object with the ability to set a timeout on a request.

func (*GlobalReadParams) SetContext

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

SetContext adds the context to the global read params

func (*GlobalReadParams) SetDefaults

func (o *GlobalReadParams) SetDefaults()

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

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

func (*GlobalReadParams) SetFields

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

SetFields adds the fields to the global read params

func (*GlobalReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the global read params

func (*GlobalReadParams) SetTimeout

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

SetTimeout adds the timeout to the global read params

func (*GlobalReadParams) WithContext

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

WithContext adds the context to the global read params

func (*GlobalReadParams) WithDefaults

func (o *GlobalReadParams) WithDefaults() *GlobalReadParams

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

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

func (*GlobalReadParams) WithFields

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

WithFields adds the fields to the global read params

func (*GlobalReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the global read params

func (*GlobalReadParams) WithTimeout

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

WithTimeout adds the timeout to the global read params

func (*GlobalReadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GlobalReadReader

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

GlobalReadReader is a Reader for the GlobalRead structure.

func (*GlobalReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GlobalUpdate2Created

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

PATCH operation response

func NewGlobalUpdate2Created

func NewGlobalUpdate2Created() *GlobalUpdate2Created

NewGlobalUpdate2Created creates a GlobalUpdate2Created with default headers values

func (*GlobalUpdate2Created) Error

func (o *GlobalUpdate2Created) Error() string

func (*GlobalUpdate2Created) GetPayload

type GlobalUpdate2Params

type GlobalUpdate2Params struct {

	// Body.
	Body *models.IpamsvcGlobal

	/* ID.

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

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

GlobalUpdate2Params contains all the parameters to send to the API endpoint

for the global update2 operation.

Typically these are written to a http.Request.

func NewGlobalUpdate2Params

func NewGlobalUpdate2Params() *GlobalUpdate2Params

NewGlobalUpdate2Params creates a new GlobalUpdate2Params 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 NewGlobalUpdate2ParamsWithContext

func NewGlobalUpdate2ParamsWithContext(ctx context.Context) *GlobalUpdate2Params

NewGlobalUpdate2ParamsWithContext creates a new GlobalUpdate2Params object with the ability to set a context for a request.

func NewGlobalUpdate2ParamsWithHTTPClient

func NewGlobalUpdate2ParamsWithHTTPClient(client *http.Client) *GlobalUpdate2Params

NewGlobalUpdate2ParamsWithHTTPClient creates a new GlobalUpdate2Params object with the ability to set a custom HTTPClient for a request.

func NewGlobalUpdate2ParamsWithTimeout

func NewGlobalUpdate2ParamsWithTimeout(timeout time.Duration) *GlobalUpdate2Params

NewGlobalUpdate2ParamsWithTimeout creates a new GlobalUpdate2Params object with the ability to set a timeout on a request.

func (*GlobalUpdate2Params) SetBody

func (o *GlobalUpdate2Params) SetBody(body *models.IpamsvcGlobal)

SetBody adds the body to the global update2 params

func (*GlobalUpdate2Params) SetContext

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

SetContext adds the context to the global update2 params

func (*GlobalUpdate2Params) SetDefaults

func (o *GlobalUpdate2Params) SetDefaults()

SetDefaults hydrates default values in the global update2 params (not the query body).

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

func (*GlobalUpdate2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the global update2 params

func (*GlobalUpdate2Params) SetID

func (o *GlobalUpdate2Params) SetID(id string)

SetID adds the id to the global update2 params

func (*GlobalUpdate2Params) SetTimeout

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

SetTimeout adds the timeout to the global update2 params

func (*GlobalUpdate2Params) WithBody

WithBody adds the body to the global update2 params

func (*GlobalUpdate2Params) WithContext

WithContext adds the context to the global update2 params

func (*GlobalUpdate2Params) WithDefaults

func (o *GlobalUpdate2Params) WithDefaults() *GlobalUpdate2Params

WithDefaults hydrates default values in the global update2 params (not the query body).

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

func (*GlobalUpdate2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the global update2 params

func (*GlobalUpdate2Params) WithID

WithID adds the id to the global update2 params

func (*GlobalUpdate2Params) WithTimeout

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

WithTimeout adds the timeout to the global update2 params

func (*GlobalUpdate2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GlobalUpdate2Reader

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

GlobalUpdate2Reader is a Reader for the GlobalUpdate2 structure.

func (*GlobalUpdate2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GlobalUpdateCreated

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

PATCH operation response

func NewGlobalUpdateCreated

func NewGlobalUpdateCreated() *GlobalUpdateCreated

NewGlobalUpdateCreated creates a GlobalUpdateCreated with default headers values

func (*GlobalUpdateCreated) Error

func (o *GlobalUpdateCreated) Error() string

func (*GlobalUpdateCreated) GetPayload

type GlobalUpdateParams

type GlobalUpdateParams struct {

	// Body.
	Body *models.IpamsvcGlobal

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

GlobalUpdateParams contains all the parameters to send to the API endpoint

for the global update operation.

Typically these are written to a http.Request.

func NewGlobalUpdateParams

func NewGlobalUpdateParams() *GlobalUpdateParams

NewGlobalUpdateParams creates a new GlobalUpdateParams 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 NewGlobalUpdateParamsWithContext

func NewGlobalUpdateParamsWithContext(ctx context.Context) *GlobalUpdateParams

NewGlobalUpdateParamsWithContext creates a new GlobalUpdateParams object with the ability to set a context for a request.

func NewGlobalUpdateParamsWithHTTPClient

func NewGlobalUpdateParamsWithHTTPClient(client *http.Client) *GlobalUpdateParams

NewGlobalUpdateParamsWithHTTPClient creates a new GlobalUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewGlobalUpdateParamsWithTimeout

func NewGlobalUpdateParamsWithTimeout(timeout time.Duration) *GlobalUpdateParams

NewGlobalUpdateParamsWithTimeout creates a new GlobalUpdateParams object with the ability to set a timeout on a request.

func (*GlobalUpdateParams) SetBody

func (o *GlobalUpdateParams) SetBody(body *models.IpamsvcGlobal)

SetBody adds the body to the global update params

func (*GlobalUpdateParams) SetContext

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

SetContext adds the context to the global update params

func (*GlobalUpdateParams) SetDefaults

func (o *GlobalUpdateParams) SetDefaults()

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

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

func (*GlobalUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the global update params

func (*GlobalUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the global update params

func (*GlobalUpdateParams) WithBody

WithBody adds the body to the global update params

func (*GlobalUpdateParams) WithContext

WithContext adds the context to the global update params

func (*GlobalUpdateParams) WithDefaults

func (o *GlobalUpdateParams) WithDefaults() *GlobalUpdateParams

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

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

func (*GlobalUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the global update params

func (*GlobalUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the global update params

func (*GlobalUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GlobalUpdateReader

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

GlobalUpdateReader is a Reader for the GlobalUpdate structure.

func (*GlobalUpdateReader) ReadResponse

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