option_code

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 option code API

func (*Client) OptionCodeCreate

func (a *Client) OptionCodeCreate(params *OptionCodeCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeCreateCreated, error)
OptionCodeCreate creates the d h c p option code

Use this method to create an __OptionCode__ object.

The __OptionCode__ object defines a DHCP option code.

func (*Client) OptionCodeDelete

func (a *Client) OptionCodeDelete(params *OptionCodeDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeDeleteNoContent, error)
OptionCodeDelete deletes the d h c p option code

Use this method to delete an __OptionCode__ object.

The __OptionCode__ object defines a DHCP option code.

func (*Client) OptionCodeList

func (a *Client) OptionCodeList(params *OptionCodeListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeListOK, error)
OptionCodeList retrieves d h c p option codes

Use this method to retrieve __OptionCode__ objects.

The __OptionCode__ object defines a DHCP option code.

func (*Client) OptionCodeRead

func (a *Client) OptionCodeRead(params *OptionCodeReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeReadOK, error)
OptionCodeRead retrieves the d h c p option code

Use this method to retrieve an __OptionCode__ object.

The __OptionCode__ object defines a DHCP option code.

func (*Client) OptionCodeUpdate

func (a *Client) OptionCodeUpdate(params *OptionCodeUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeUpdateCreated, error)
OptionCodeUpdate updates the d h c p option code

Use this method to update an __OptionCode__ object.

The __OptionCode__ object defines a DHCP option code.

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 {
	OptionCodeCreate(params *OptionCodeCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeCreateCreated, error)

	OptionCodeDelete(params *OptionCodeDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeDeleteNoContent, error)

	OptionCodeList(params *OptionCodeListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeListOK, error)

	OptionCodeRead(params *OptionCodeReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeReadOK, error)

	OptionCodeUpdate(params *OptionCodeUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OptionCodeUpdateCreated, 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 option code API client.

type OptionCodeCreateCreated

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

POST operation response

func NewOptionCodeCreateCreated

func NewOptionCodeCreateCreated() *OptionCodeCreateCreated

NewOptionCodeCreateCreated creates a OptionCodeCreateCreated with default headers values

func (*OptionCodeCreateCreated) Error

func (o *OptionCodeCreateCreated) Error() string

func (*OptionCodeCreateCreated) GetPayload

type OptionCodeCreateParams

type OptionCodeCreateParams struct {

	// Body.
	Body *models.IpamsvcOptionCode

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

OptionCodeCreateParams contains all the parameters to send to the API endpoint

for the option code create operation.

Typically these are written to a http.Request.

func NewOptionCodeCreateParams

func NewOptionCodeCreateParams() *OptionCodeCreateParams

NewOptionCodeCreateParams creates a new OptionCodeCreateParams 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 NewOptionCodeCreateParamsWithContext

func NewOptionCodeCreateParamsWithContext(ctx context.Context) *OptionCodeCreateParams

NewOptionCodeCreateParamsWithContext creates a new OptionCodeCreateParams object with the ability to set a context for a request.

func NewOptionCodeCreateParamsWithHTTPClient

func NewOptionCodeCreateParamsWithHTTPClient(client *http.Client) *OptionCodeCreateParams

NewOptionCodeCreateParamsWithHTTPClient creates a new OptionCodeCreateParams object with the ability to set a custom HTTPClient for a request.

func NewOptionCodeCreateParamsWithTimeout

func NewOptionCodeCreateParamsWithTimeout(timeout time.Duration) *OptionCodeCreateParams

NewOptionCodeCreateParamsWithTimeout creates a new OptionCodeCreateParams object with the ability to set a timeout on a request.

func (*OptionCodeCreateParams) SetBody

SetBody adds the body to the option code create params

func (*OptionCodeCreateParams) SetContext

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

SetContext adds the context to the option code create params

func (*OptionCodeCreateParams) SetDefaults

func (o *OptionCodeCreateParams) SetDefaults()

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

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

func (*OptionCodeCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the option code create params

func (*OptionCodeCreateParams) SetTimeout

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

SetTimeout adds the timeout to the option code create params

func (*OptionCodeCreateParams) WithBody

WithBody adds the body to the option code create params

func (*OptionCodeCreateParams) WithContext

WithContext adds the context to the option code create params

func (*OptionCodeCreateParams) WithDefaults

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

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

func (*OptionCodeCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the option code create params

func (*OptionCodeCreateParams) WithTimeout

WithTimeout adds the timeout to the option code create params

func (*OptionCodeCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OptionCodeCreateReader

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

OptionCodeCreateReader is a Reader for the OptionCodeCreate structure.

func (*OptionCodeCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionCodeDeleteNoContent

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

No Content

func NewOptionCodeDeleteNoContent

func NewOptionCodeDeleteNoContent() *OptionCodeDeleteNoContent

NewOptionCodeDeleteNoContent creates a OptionCodeDeleteNoContent with default headers values

func (*OptionCodeDeleteNoContent) Error

func (o *OptionCodeDeleteNoContent) Error() string

type OptionCodeDeleteParams

type OptionCodeDeleteParams struct {

	/* ID.

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

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

OptionCodeDeleteParams contains all the parameters to send to the API endpoint

for the option code delete operation.

Typically these are written to a http.Request.

func NewOptionCodeDeleteParams

func NewOptionCodeDeleteParams() *OptionCodeDeleteParams

NewOptionCodeDeleteParams creates a new OptionCodeDeleteParams 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 NewOptionCodeDeleteParamsWithContext

func NewOptionCodeDeleteParamsWithContext(ctx context.Context) *OptionCodeDeleteParams

NewOptionCodeDeleteParamsWithContext creates a new OptionCodeDeleteParams object with the ability to set a context for a request.

func NewOptionCodeDeleteParamsWithHTTPClient

func NewOptionCodeDeleteParamsWithHTTPClient(client *http.Client) *OptionCodeDeleteParams

NewOptionCodeDeleteParamsWithHTTPClient creates a new OptionCodeDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewOptionCodeDeleteParamsWithTimeout

func NewOptionCodeDeleteParamsWithTimeout(timeout time.Duration) *OptionCodeDeleteParams

NewOptionCodeDeleteParamsWithTimeout creates a new OptionCodeDeleteParams object with the ability to set a timeout on a request.

func (*OptionCodeDeleteParams) SetContext

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

SetContext adds the context to the option code delete params

func (*OptionCodeDeleteParams) SetDefaults

func (o *OptionCodeDeleteParams) SetDefaults()

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

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

func (*OptionCodeDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the option code delete params

func (*OptionCodeDeleteParams) SetID

func (o *OptionCodeDeleteParams) SetID(id string)

SetID adds the id to the option code delete params

func (*OptionCodeDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the option code delete params

func (*OptionCodeDeleteParams) WithContext

WithContext adds the context to the option code delete params

func (*OptionCodeDeleteParams) WithDefaults

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

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

func (*OptionCodeDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the option code delete params

func (*OptionCodeDeleteParams) WithID

WithID adds the id to the option code delete params

func (*OptionCodeDeleteParams) WithTimeout

WithTimeout adds the timeout to the option code delete params

func (*OptionCodeDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OptionCodeDeleteReader

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

OptionCodeDeleteReader is a Reader for the OptionCodeDelete structure.

func (*OptionCodeDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionCodeListOK

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

GET operation response

func NewOptionCodeListOK

func NewOptionCodeListOK() *OptionCodeListOK

NewOptionCodeListOK creates a OptionCodeListOK with default headers values

func (*OptionCodeListOK) Error

func (o *OptionCodeListOK) Error() string

func (*OptionCodeListOK) GetPayload

type OptionCodeListParams

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

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

OptionCodeListParams contains all the parameters to send to the API endpoint

for the option code list operation.

Typically these are written to a http.Request.

func NewOptionCodeListParams

func NewOptionCodeListParams() *OptionCodeListParams

NewOptionCodeListParams creates a new OptionCodeListParams 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 NewOptionCodeListParamsWithContext

func NewOptionCodeListParamsWithContext(ctx context.Context) *OptionCodeListParams

NewOptionCodeListParamsWithContext creates a new OptionCodeListParams object with the ability to set a context for a request.

func NewOptionCodeListParamsWithHTTPClient

func NewOptionCodeListParamsWithHTTPClient(client *http.Client) *OptionCodeListParams

NewOptionCodeListParamsWithHTTPClient creates a new OptionCodeListParams object with the ability to set a custom HTTPClient for a request.

func NewOptionCodeListParamsWithTimeout

func NewOptionCodeListParamsWithTimeout(timeout time.Duration) *OptionCodeListParams

NewOptionCodeListParamsWithTimeout creates a new OptionCodeListParams object with the ability to set a timeout on a request.

func (*OptionCodeListParams) SetContext

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

SetContext adds the context to the option code list params

func (*OptionCodeListParams) SetDefaults

func (o *OptionCodeListParams) SetDefaults()

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

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

func (*OptionCodeListParams) SetFields

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

SetFields adds the fields to the option code list params

func (*OptionCodeListParams) SetFilter

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

SetFilter adds the filter to the option code list params

func (*OptionCodeListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the option code list params

func (*OptionCodeListParams) SetLimit

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

SetLimit adds the limit to the option code list params

func (*OptionCodeListParams) SetOffset

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

SetOffset adds the offset to the option code list params

func (*OptionCodeListParams) SetOrderBy

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

SetOrderBy adds the orderBy to the option code list params

func (*OptionCodeListParams) SetPageToken

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

SetPageToken adds the pageToken to the option code list params

func (*OptionCodeListParams) SetTimeout

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

SetTimeout adds the timeout to the option code list params

func (*OptionCodeListParams) WithContext

WithContext adds the context to the option code list params

func (*OptionCodeListParams) WithDefaults

func (o *OptionCodeListParams) WithDefaults() *OptionCodeListParams

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

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

func (*OptionCodeListParams) WithFields

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

WithFields adds the fields to the option code list params

func (*OptionCodeListParams) WithFilter

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

WithFilter adds the filter to the option code list params

func (*OptionCodeListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the option code list params

func (*OptionCodeListParams) WithLimit

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

WithLimit adds the limit to the option code list params

func (*OptionCodeListParams) WithOffset

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

WithOffset adds the offset to the option code list params

func (*OptionCodeListParams) WithOrderBy

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

WithOrderBy adds the orderBy to the option code list params

func (*OptionCodeListParams) WithPageToken

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

WithPageToken adds the pageToken to the option code list params

func (*OptionCodeListParams) WithTimeout

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

WithTimeout adds the timeout to the option code list params

func (*OptionCodeListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OptionCodeListReader

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

OptionCodeListReader is a Reader for the OptionCodeList structure.

func (*OptionCodeListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionCodeReadOK

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

GET operation response

func NewOptionCodeReadOK

func NewOptionCodeReadOK() *OptionCodeReadOK

NewOptionCodeReadOK creates a OptionCodeReadOK with default headers values

func (*OptionCodeReadOK) Error

func (o *OptionCodeReadOK) Error() string

func (*OptionCodeReadOK) GetPayload

type OptionCodeReadParams

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

OptionCodeReadParams contains all the parameters to send to the API endpoint

for the option code read operation.

Typically these are written to a http.Request.

func NewOptionCodeReadParams

func NewOptionCodeReadParams() *OptionCodeReadParams

NewOptionCodeReadParams creates a new OptionCodeReadParams 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 NewOptionCodeReadParamsWithContext

func NewOptionCodeReadParamsWithContext(ctx context.Context) *OptionCodeReadParams

NewOptionCodeReadParamsWithContext creates a new OptionCodeReadParams object with the ability to set a context for a request.

func NewOptionCodeReadParamsWithHTTPClient

func NewOptionCodeReadParamsWithHTTPClient(client *http.Client) *OptionCodeReadParams

NewOptionCodeReadParamsWithHTTPClient creates a new OptionCodeReadParams object with the ability to set a custom HTTPClient for a request.

func NewOptionCodeReadParamsWithTimeout

func NewOptionCodeReadParamsWithTimeout(timeout time.Duration) *OptionCodeReadParams

NewOptionCodeReadParamsWithTimeout creates a new OptionCodeReadParams object with the ability to set a timeout on a request.

func (*OptionCodeReadParams) SetContext

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

SetContext adds the context to the option code read params

func (*OptionCodeReadParams) SetDefaults

func (o *OptionCodeReadParams) SetDefaults()

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

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

func (*OptionCodeReadParams) SetFields

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

SetFields adds the fields to the option code read params

func (*OptionCodeReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the option code read params

func (*OptionCodeReadParams) SetID

func (o *OptionCodeReadParams) SetID(id string)

SetID adds the id to the option code read params

func (*OptionCodeReadParams) SetTimeout

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

SetTimeout adds the timeout to the option code read params

func (*OptionCodeReadParams) WithContext

WithContext adds the context to the option code read params

func (*OptionCodeReadParams) WithDefaults

func (o *OptionCodeReadParams) WithDefaults() *OptionCodeReadParams

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

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

func (*OptionCodeReadParams) WithFields

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

WithFields adds the fields to the option code read params

func (*OptionCodeReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the option code read params

func (*OptionCodeReadParams) WithID

WithID adds the id to the option code read params

func (*OptionCodeReadParams) WithTimeout

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

WithTimeout adds the timeout to the option code read params

func (*OptionCodeReadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OptionCodeReadReader

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

OptionCodeReadReader is a Reader for the OptionCodeRead structure.

func (*OptionCodeReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionCodeUpdateCreated

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

PATCH operation response

func NewOptionCodeUpdateCreated

func NewOptionCodeUpdateCreated() *OptionCodeUpdateCreated

NewOptionCodeUpdateCreated creates a OptionCodeUpdateCreated with default headers values

func (*OptionCodeUpdateCreated) Error

func (o *OptionCodeUpdateCreated) Error() string

func (*OptionCodeUpdateCreated) GetPayload

type OptionCodeUpdateParams

type OptionCodeUpdateParams struct {

	// Body.
	Body *models.IpamsvcOptionCode

	/* ID.

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

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

OptionCodeUpdateParams contains all the parameters to send to the API endpoint

for the option code update operation.

Typically these are written to a http.Request.

func NewOptionCodeUpdateParams

func NewOptionCodeUpdateParams() *OptionCodeUpdateParams

NewOptionCodeUpdateParams creates a new OptionCodeUpdateParams 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 NewOptionCodeUpdateParamsWithContext

func NewOptionCodeUpdateParamsWithContext(ctx context.Context) *OptionCodeUpdateParams

NewOptionCodeUpdateParamsWithContext creates a new OptionCodeUpdateParams object with the ability to set a context for a request.

func NewOptionCodeUpdateParamsWithHTTPClient

func NewOptionCodeUpdateParamsWithHTTPClient(client *http.Client) *OptionCodeUpdateParams

NewOptionCodeUpdateParamsWithHTTPClient creates a new OptionCodeUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewOptionCodeUpdateParamsWithTimeout

func NewOptionCodeUpdateParamsWithTimeout(timeout time.Duration) *OptionCodeUpdateParams

NewOptionCodeUpdateParamsWithTimeout creates a new OptionCodeUpdateParams object with the ability to set a timeout on a request.

func (*OptionCodeUpdateParams) SetBody

SetBody adds the body to the option code update params

func (*OptionCodeUpdateParams) SetContext

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

SetContext adds the context to the option code update params

func (*OptionCodeUpdateParams) SetDefaults

func (o *OptionCodeUpdateParams) SetDefaults()

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

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

func (*OptionCodeUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the option code update params

func (*OptionCodeUpdateParams) SetID

func (o *OptionCodeUpdateParams) SetID(id string)

SetID adds the id to the option code update params

func (*OptionCodeUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the option code update params

func (*OptionCodeUpdateParams) WithBody

WithBody adds the body to the option code update params

func (*OptionCodeUpdateParams) WithContext

WithContext adds the context to the option code update params

func (*OptionCodeUpdateParams) WithDefaults

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

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

func (*OptionCodeUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the option code update params

func (*OptionCodeUpdateParams) WithID

WithID adds the id to the option code update params

func (*OptionCodeUpdateParams) WithTimeout

WithTimeout adds the timeout to the option code update params

func (*OptionCodeUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OptionCodeUpdateReader

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

OptionCodeUpdateReader is a Reader for the OptionCodeUpdate structure.

func (*OptionCodeUpdateReader) ReadResponse

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