delegation

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 delegation API

func (*Client) DelegationCreate

func (a *Client) DelegationCreate(params *DelegationCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationCreateCreated, error)
DelegationCreate creates the delegation object

Use this method to create a Delegation object.

This object (_dns/delegation_) represents a zone delegation.

func (*Client) DelegationDelete

func (a *Client) DelegationDelete(params *DelegationDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationDeleteNoContent, error)
DelegationDelete moves the delegation object to recyclebin

Use this method to move a Delegation object to Recyclebin.

This object (_dns/delegation_) represents a zone delegation.

func (*Client) DelegationList

func (a *Client) DelegationList(params *DelegationListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationListOK, error)
DelegationList lists delegation objects

Use this method to list Delegation objects.

This object (_dns/delegation_) represents a zone delegation.

func (*Client) DelegationRead

func (a *Client) DelegationRead(params *DelegationReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationReadOK, error)
DelegationRead reads the delegation object

Use this method to read a Delegation object.

This object (_dns/delegation)_ represents a zone delegation.

func (*Client) DelegationUpdate

func (a *Client) DelegationUpdate(params *DelegationUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationUpdateCreated, error)
DelegationUpdate updates the delegation object

Use this method to update a Delegation object.

This object (_dns/delegation_) represents a zone delegation.

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 {
	DelegationCreate(params *DelegationCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationCreateCreated, error)

	DelegationDelete(params *DelegationDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationDeleteNoContent, error)

	DelegationList(params *DelegationListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationListOK, error)

	DelegationRead(params *DelegationReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationReadOK, error)

	DelegationUpdate(params *DelegationUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DelegationUpdateCreated, 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 delegation API client.

type DelegationCreateCreated

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

POST operation response

func NewDelegationCreateCreated

func NewDelegationCreateCreated() *DelegationCreateCreated

NewDelegationCreateCreated creates a DelegationCreateCreated with default headers values

func (*DelegationCreateCreated) Error

func (o *DelegationCreateCreated) Error() string

func (*DelegationCreateCreated) GetPayload

type DelegationCreateParams

type DelegationCreateParams struct {

	// Body.
	Body *models.ConfigDelegation

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

DelegationCreateParams contains all the parameters to send to the API endpoint

for the delegation create operation.

Typically these are written to a http.Request.

func NewDelegationCreateParams

func NewDelegationCreateParams() *DelegationCreateParams

NewDelegationCreateParams creates a new DelegationCreateParams 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 NewDelegationCreateParamsWithContext

func NewDelegationCreateParamsWithContext(ctx context.Context) *DelegationCreateParams

NewDelegationCreateParamsWithContext creates a new DelegationCreateParams object with the ability to set a context for a request.

func NewDelegationCreateParamsWithHTTPClient

func NewDelegationCreateParamsWithHTTPClient(client *http.Client) *DelegationCreateParams

NewDelegationCreateParamsWithHTTPClient creates a new DelegationCreateParams object with the ability to set a custom HTTPClient for a request.

func NewDelegationCreateParamsWithTimeout

func NewDelegationCreateParamsWithTimeout(timeout time.Duration) *DelegationCreateParams

NewDelegationCreateParamsWithTimeout creates a new DelegationCreateParams object with the ability to set a timeout on a request.

func (*DelegationCreateParams) SetBody

SetBody adds the body to the delegation create params

func (*DelegationCreateParams) SetContext

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

SetContext adds the context to the delegation create params

func (*DelegationCreateParams) SetDefaults

func (o *DelegationCreateParams) SetDefaults()

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

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

func (*DelegationCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delegation create params

func (*DelegationCreateParams) SetTimeout

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

SetTimeout adds the timeout to the delegation create params

func (*DelegationCreateParams) WithBody

WithBody adds the body to the delegation create params

func (*DelegationCreateParams) WithContext

WithContext adds the context to the delegation create params

func (*DelegationCreateParams) WithDefaults

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

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

func (*DelegationCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delegation create params

func (*DelegationCreateParams) WithTimeout

WithTimeout adds the timeout to the delegation create params

func (*DelegationCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DelegationCreateReader

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

DelegationCreateReader is a Reader for the DelegationCreate structure.

func (*DelegationCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DelegationDeleteNoContent

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

No Content

func NewDelegationDeleteNoContent

func NewDelegationDeleteNoContent() *DelegationDeleteNoContent

NewDelegationDeleteNoContent creates a DelegationDeleteNoContent with default headers values

func (*DelegationDeleteNoContent) Error

func (o *DelegationDeleteNoContent) Error() string

type DelegationDeleteParams

type DelegationDeleteParams struct {

	/* ID.

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

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

DelegationDeleteParams contains all the parameters to send to the API endpoint

for the delegation delete operation.

Typically these are written to a http.Request.

func NewDelegationDeleteParams

func NewDelegationDeleteParams() *DelegationDeleteParams

NewDelegationDeleteParams creates a new DelegationDeleteParams 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 NewDelegationDeleteParamsWithContext

func NewDelegationDeleteParamsWithContext(ctx context.Context) *DelegationDeleteParams

NewDelegationDeleteParamsWithContext creates a new DelegationDeleteParams object with the ability to set a context for a request.

func NewDelegationDeleteParamsWithHTTPClient

func NewDelegationDeleteParamsWithHTTPClient(client *http.Client) *DelegationDeleteParams

NewDelegationDeleteParamsWithHTTPClient creates a new DelegationDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewDelegationDeleteParamsWithTimeout

func NewDelegationDeleteParamsWithTimeout(timeout time.Duration) *DelegationDeleteParams

NewDelegationDeleteParamsWithTimeout creates a new DelegationDeleteParams object with the ability to set a timeout on a request.

func (*DelegationDeleteParams) SetContext

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

SetContext adds the context to the delegation delete params

func (*DelegationDeleteParams) SetDefaults

func (o *DelegationDeleteParams) SetDefaults()

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

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

func (*DelegationDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delegation delete params

func (*DelegationDeleteParams) SetID

func (o *DelegationDeleteParams) SetID(id string)

SetID adds the id to the delegation delete params

func (*DelegationDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the delegation delete params

func (*DelegationDeleteParams) WithContext

WithContext adds the context to the delegation delete params

func (*DelegationDeleteParams) WithDefaults

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

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

func (*DelegationDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delegation delete params

func (*DelegationDeleteParams) WithID

WithID adds the id to the delegation delete params

func (*DelegationDeleteParams) WithTimeout

WithTimeout adds the timeout to the delegation delete params

func (*DelegationDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DelegationDeleteReader

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

DelegationDeleteReader is a Reader for the DelegationDelete structure.

func (*DelegationDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DelegationListOK

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

GET operation response

func NewDelegationListOK

func NewDelegationListOK() *DelegationListOK

NewDelegationListOK creates a DelegationListOK with default headers values

func (*DelegationListOK) Error

func (o *DelegationListOK) Error() string

func (*DelegationListOK) GetPayload

type DelegationListParams

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

DelegationListParams contains all the parameters to send to the API endpoint

for the delegation list operation.

Typically these are written to a http.Request.

func NewDelegationListParams

func NewDelegationListParams() *DelegationListParams

NewDelegationListParams creates a new DelegationListParams 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 NewDelegationListParamsWithContext

func NewDelegationListParamsWithContext(ctx context.Context) *DelegationListParams

NewDelegationListParamsWithContext creates a new DelegationListParams object with the ability to set a context for a request.

func NewDelegationListParamsWithHTTPClient

func NewDelegationListParamsWithHTTPClient(client *http.Client) *DelegationListParams

NewDelegationListParamsWithHTTPClient creates a new DelegationListParams object with the ability to set a custom HTTPClient for a request.

func NewDelegationListParamsWithTimeout

func NewDelegationListParamsWithTimeout(timeout time.Duration) *DelegationListParams

NewDelegationListParamsWithTimeout creates a new DelegationListParams object with the ability to set a timeout on a request.

func (*DelegationListParams) SetContext

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

SetContext adds the context to the delegation list params

func (*DelegationListParams) SetDefaults

func (o *DelegationListParams) SetDefaults()

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

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

func (*DelegationListParams) SetFields

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

SetFields adds the fields to the delegation list params

func (*DelegationListParams) SetFilter

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

SetFilter adds the filter to the delegation list params

func (*DelegationListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delegation list params

func (*DelegationListParams) SetLimit

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

SetLimit adds the limit to the delegation list params

func (*DelegationListParams) SetOffset

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

SetOffset adds the offset to the delegation list params

func (*DelegationListParams) SetOrderBy

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

SetOrderBy adds the orderBy to the delegation list params

func (*DelegationListParams) SetPageToken

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

SetPageToken adds the pageToken to the delegation list params

func (*DelegationListParams) SetTfilter

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

SetTfilter adds the tfilter to the delegation list params

func (*DelegationListParams) SetTimeout

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

SetTimeout adds the timeout to the delegation list params

func (*DelegationListParams) SetTorderBy

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

SetTorderBy adds the torderBy to the delegation list params

func (*DelegationListParams) WithContext

WithContext adds the context to the delegation list params

func (*DelegationListParams) WithDefaults

func (o *DelegationListParams) WithDefaults() *DelegationListParams

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

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

func (*DelegationListParams) WithFields

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

WithFields adds the fields to the delegation list params

func (*DelegationListParams) WithFilter

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

WithFilter adds the filter to the delegation list params

func (*DelegationListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delegation list params

func (*DelegationListParams) WithLimit

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

WithLimit adds the limit to the delegation list params

func (*DelegationListParams) WithOffset

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

WithOffset adds the offset to the delegation list params

func (*DelegationListParams) WithOrderBy

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

WithOrderBy adds the orderBy to the delegation list params

func (*DelegationListParams) WithPageToken

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

WithPageToken adds the pageToken to the delegation list params

func (*DelegationListParams) WithTfilter

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

WithTfilter adds the tfilter to the delegation list params

func (*DelegationListParams) WithTimeout

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

WithTimeout adds the timeout to the delegation list params

func (*DelegationListParams) WithTorderBy

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

WithTorderBy adds the torderBy to the delegation list params

func (*DelegationListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DelegationListReader

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

DelegationListReader is a Reader for the DelegationList structure.

func (*DelegationListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DelegationReadOK

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

GET operation response

func NewDelegationReadOK

func NewDelegationReadOK() *DelegationReadOK

NewDelegationReadOK creates a DelegationReadOK with default headers values

func (*DelegationReadOK) Error

func (o *DelegationReadOK) Error() string

func (*DelegationReadOK) GetPayload

type DelegationReadParams

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

DelegationReadParams contains all the parameters to send to the API endpoint

for the delegation read operation.

Typically these are written to a http.Request.

func NewDelegationReadParams

func NewDelegationReadParams() *DelegationReadParams

NewDelegationReadParams creates a new DelegationReadParams 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 NewDelegationReadParamsWithContext

func NewDelegationReadParamsWithContext(ctx context.Context) *DelegationReadParams

NewDelegationReadParamsWithContext creates a new DelegationReadParams object with the ability to set a context for a request.

func NewDelegationReadParamsWithHTTPClient

func NewDelegationReadParamsWithHTTPClient(client *http.Client) *DelegationReadParams

NewDelegationReadParamsWithHTTPClient creates a new DelegationReadParams object with the ability to set a custom HTTPClient for a request.

func NewDelegationReadParamsWithTimeout

func NewDelegationReadParamsWithTimeout(timeout time.Duration) *DelegationReadParams

NewDelegationReadParamsWithTimeout creates a new DelegationReadParams object with the ability to set a timeout on a request.

func (*DelegationReadParams) SetContext

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

SetContext adds the context to the delegation read params

func (*DelegationReadParams) SetDefaults

func (o *DelegationReadParams) SetDefaults()

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

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

func (*DelegationReadParams) SetFields

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

SetFields adds the fields to the delegation read params

func (*DelegationReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delegation read params

func (*DelegationReadParams) SetID

func (o *DelegationReadParams) SetID(id string)

SetID adds the id to the delegation read params

func (*DelegationReadParams) SetTimeout

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

SetTimeout adds the timeout to the delegation read params

func (*DelegationReadParams) WithContext

WithContext adds the context to the delegation read params

func (*DelegationReadParams) WithDefaults

func (o *DelegationReadParams) WithDefaults() *DelegationReadParams

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

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

func (*DelegationReadParams) WithFields

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

WithFields adds the fields to the delegation read params

func (*DelegationReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delegation read params

func (*DelegationReadParams) WithID

WithID adds the id to the delegation read params

func (*DelegationReadParams) WithTimeout

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

WithTimeout adds the timeout to the delegation read params

func (*DelegationReadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DelegationReadReader

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

DelegationReadReader is a Reader for the DelegationRead structure.

func (*DelegationReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DelegationUpdateCreated

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

PATCH operation response

func NewDelegationUpdateCreated

func NewDelegationUpdateCreated() *DelegationUpdateCreated

NewDelegationUpdateCreated creates a DelegationUpdateCreated with default headers values

func (*DelegationUpdateCreated) Error

func (o *DelegationUpdateCreated) Error() string

func (*DelegationUpdateCreated) GetPayload

type DelegationUpdateParams

type DelegationUpdateParams struct {

	// Body.
	Body *models.ConfigDelegation

	/* ID.

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

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

DelegationUpdateParams contains all the parameters to send to the API endpoint

for the delegation update operation.

Typically these are written to a http.Request.

func NewDelegationUpdateParams

func NewDelegationUpdateParams() *DelegationUpdateParams

NewDelegationUpdateParams creates a new DelegationUpdateParams 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 NewDelegationUpdateParamsWithContext

func NewDelegationUpdateParamsWithContext(ctx context.Context) *DelegationUpdateParams

NewDelegationUpdateParamsWithContext creates a new DelegationUpdateParams object with the ability to set a context for a request.

func NewDelegationUpdateParamsWithHTTPClient

func NewDelegationUpdateParamsWithHTTPClient(client *http.Client) *DelegationUpdateParams

NewDelegationUpdateParamsWithHTTPClient creates a new DelegationUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewDelegationUpdateParamsWithTimeout

func NewDelegationUpdateParamsWithTimeout(timeout time.Duration) *DelegationUpdateParams

NewDelegationUpdateParamsWithTimeout creates a new DelegationUpdateParams object with the ability to set a timeout on a request.

func (*DelegationUpdateParams) SetBody

SetBody adds the body to the delegation update params

func (*DelegationUpdateParams) SetContext

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

SetContext adds the context to the delegation update params

func (*DelegationUpdateParams) SetDefaults

func (o *DelegationUpdateParams) SetDefaults()

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

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

func (*DelegationUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delegation update params

func (*DelegationUpdateParams) SetID

func (o *DelegationUpdateParams) SetID(id string)

SetID adds the id to the delegation update params

func (*DelegationUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the delegation update params

func (*DelegationUpdateParams) WithBody

WithBody adds the body to the delegation update params

func (*DelegationUpdateParams) WithContext

WithContext adds the context to the delegation update params

func (*DelegationUpdateParams) WithDefaults

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

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

func (*DelegationUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delegation update params

func (*DelegationUpdateParams) WithID

WithID adds the id to the delegation update params

func (*DelegationUpdateParams) WithTimeout

WithTimeout adds the timeout to the delegation update params

func (*DelegationUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DelegationUpdateReader

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

DelegationUpdateReader is a Reader for the DelegationUpdate structure.

func (*DelegationUpdateReader) ReadResponse

func (o *DelegationUpdateReader) 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
JackTT - Gopher 🇻🇳