Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateMetadata(params *CreateMetadataParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateMetadataNoContent, error)
- func (a *Client) DeleteMetadata(params *DeleteMetadataParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteMetadataOK, error)
- func (a *Client) GetMetadata(params *GetMetadataParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetMetadataOK, error)
- func (a *Client) ListMetadata(params *ListMetadataParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListMetadataOK, error)
- func (a *Client) ModifyMetadata(params *ModifyMetadataParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ModifyMetadataOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateMetadataNoContent
- type CreateMetadataParams
- func NewCreateMetadataParams() *CreateMetadataParams
- func NewCreateMetadataParamsWithContext(ctx context.Context) *CreateMetadataParams
- func NewCreateMetadataParamsWithHTTPClient(client *http.Client) *CreateMetadataParams
- func NewCreateMetadataParamsWithTimeout(timeout time.Duration) *CreateMetadataParams
- func (o *CreateMetadataParams) SetContext(ctx context.Context)
- func (o *CreateMetadataParams) SetDefaults()
- func (o *CreateMetadataParams) SetHTTPClient(client *http.Client)
- func (o *CreateMetadataParams) SetMetadata(metadata *models.Metadata)
- func (o *CreateMetadataParams) SetServerID(serverID string)
- func (o *CreateMetadataParams) SetTimeout(timeout time.Duration)
- func (o *CreateMetadataParams) SetZoneID(zoneID string)
- func (o *CreateMetadataParams) WithContext(ctx context.Context) *CreateMetadataParams
- func (o *CreateMetadataParams) WithDefaults() *CreateMetadataParams
- func (o *CreateMetadataParams) WithHTTPClient(client *http.Client) *CreateMetadataParams
- func (o *CreateMetadataParams) WithMetadata(metadata *models.Metadata) *CreateMetadataParams
- func (o *CreateMetadataParams) WithServerID(serverID string) *CreateMetadataParams
- func (o *CreateMetadataParams) WithTimeout(timeout time.Duration) *CreateMetadataParams
- func (o *CreateMetadataParams) WithZoneID(zoneID string) *CreateMetadataParams
- func (o *CreateMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMetadataReader
- type DeleteMetadataOK
- type DeleteMetadataParams
- func NewDeleteMetadataParams() *DeleteMetadataParams
- func NewDeleteMetadataParamsWithContext(ctx context.Context) *DeleteMetadataParams
- func NewDeleteMetadataParamsWithHTTPClient(client *http.Client) *DeleteMetadataParams
- func NewDeleteMetadataParamsWithTimeout(timeout time.Duration) *DeleteMetadataParams
- func (o *DeleteMetadataParams) SetContext(ctx context.Context)
- func (o *DeleteMetadataParams) SetDefaults()
- func (o *DeleteMetadataParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMetadataParams) SetMetadataKind(metadataKind string)
- func (o *DeleteMetadataParams) SetServerID(serverID string)
- func (o *DeleteMetadataParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMetadataParams) SetZoneID(zoneID string)
- func (o *DeleteMetadataParams) WithContext(ctx context.Context) *DeleteMetadataParams
- func (o *DeleteMetadataParams) WithDefaults() *DeleteMetadataParams
- func (o *DeleteMetadataParams) WithHTTPClient(client *http.Client) *DeleteMetadataParams
- func (o *DeleteMetadataParams) WithMetadataKind(metadataKind string) *DeleteMetadataParams
- func (o *DeleteMetadataParams) WithServerID(serverID string) *DeleteMetadataParams
- func (o *DeleteMetadataParams) WithTimeout(timeout time.Duration) *DeleteMetadataParams
- func (o *DeleteMetadataParams) WithZoneID(zoneID string) *DeleteMetadataParams
- func (o *DeleteMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMetadataReader
- type GetMetadataOK
- type GetMetadataParams
- func (o *GetMetadataParams) SetContext(ctx context.Context)
- func (o *GetMetadataParams) SetDefaults()
- func (o *GetMetadataParams) SetHTTPClient(client *http.Client)
- func (o *GetMetadataParams) SetMetadataKind(metadataKind string)
- func (o *GetMetadataParams) SetServerID(serverID string)
- func (o *GetMetadataParams) SetTimeout(timeout time.Duration)
- func (o *GetMetadataParams) SetZoneID(zoneID string)
- func (o *GetMetadataParams) WithContext(ctx context.Context) *GetMetadataParams
- func (o *GetMetadataParams) WithDefaults() *GetMetadataParams
- func (o *GetMetadataParams) WithHTTPClient(client *http.Client) *GetMetadataParams
- func (o *GetMetadataParams) WithMetadataKind(metadataKind string) *GetMetadataParams
- func (o *GetMetadataParams) WithServerID(serverID string) *GetMetadataParams
- func (o *GetMetadataParams) WithTimeout(timeout time.Duration) *GetMetadataParams
- func (o *GetMetadataParams) WithZoneID(zoneID string) *GetMetadataParams
- func (o *GetMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMetadataReader
- type ListMetadataOK
- type ListMetadataParams
- func (o *ListMetadataParams) SetContext(ctx context.Context)
- func (o *ListMetadataParams) SetDefaults()
- func (o *ListMetadataParams) SetHTTPClient(client *http.Client)
- func (o *ListMetadataParams) SetServerID(serverID string)
- func (o *ListMetadataParams) SetTimeout(timeout time.Duration)
- func (o *ListMetadataParams) SetZoneID(zoneID string)
- func (o *ListMetadataParams) WithContext(ctx context.Context) *ListMetadataParams
- func (o *ListMetadataParams) WithDefaults() *ListMetadataParams
- func (o *ListMetadataParams) WithHTTPClient(client *http.Client) *ListMetadataParams
- func (o *ListMetadataParams) WithServerID(serverID string) *ListMetadataParams
- func (o *ListMetadataParams) WithTimeout(timeout time.Duration) *ListMetadataParams
- func (o *ListMetadataParams) WithZoneID(zoneID string) *ListMetadataParams
- func (o *ListMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMetadataReader
- type ModifyMetadataOK
- type ModifyMetadataParams
- func NewModifyMetadataParams() *ModifyMetadataParams
- func NewModifyMetadataParamsWithContext(ctx context.Context) *ModifyMetadataParams
- func NewModifyMetadataParamsWithHTTPClient(client *http.Client) *ModifyMetadataParams
- func NewModifyMetadataParamsWithTimeout(timeout time.Duration) *ModifyMetadataParams
- func (o *ModifyMetadataParams) SetContext(ctx context.Context)
- func (o *ModifyMetadataParams) SetDefaults()
- func (o *ModifyMetadataParams) SetHTTPClient(client *http.Client)
- func (o *ModifyMetadataParams) SetMetadata(metadata *models.Metadata)
- func (o *ModifyMetadataParams) SetMetadataKind(metadataKind string)
- func (o *ModifyMetadataParams) SetServerID(serverID string)
- func (o *ModifyMetadataParams) SetTimeout(timeout time.Duration)
- func (o *ModifyMetadataParams) SetZoneID(zoneID string)
- func (o *ModifyMetadataParams) WithContext(ctx context.Context) *ModifyMetadataParams
- func (o *ModifyMetadataParams) WithDefaults() *ModifyMetadataParams
- func (o *ModifyMetadataParams) WithHTTPClient(client *http.Client) *ModifyMetadataParams
- func (o *ModifyMetadataParams) WithMetadata(metadata *models.Metadata) *ModifyMetadataParams
- func (o *ModifyMetadataParams) WithMetadataKind(metadataKind string) *ModifyMetadataParams
- func (o *ModifyMetadataParams) WithServerID(serverID string) *ModifyMetadataParams
- func (o *ModifyMetadataParams) WithTimeout(timeout time.Duration) *ModifyMetadataParams
- func (o *ModifyMetadataParams) WithZoneID(zoneID string) *ModifyMetadataParams
- func (o *ModifyMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyMetadataReader
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 zonemetadata API
func (*Client) CreateMetadata ¶
func (a *Client) CreateMetadata(params *CreateMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateMetadataNoContent, error)
CreateMetadata creates a set of metadata entries
Creates a set of metadata entries of given kind for the zone. Existing metadata entries for the zone with the same kind are not overwritten.
func (*Client) DeleteMetadata ¶
func (a *Client) DeleteMetadata(params *DeleteMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMetadataOK, error)
DeleteMetadata deletes all items of a single kind of domain metadata
func (*Client) GetMetadata ¶
func (a *Client) GetMetadata(params *GetMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMetadataOK, error)
GetMetadata gets the content of a single kind of domain metadata as a metadata object
func (*Client) ListMetadata ¶
func (a *Client) ListMetadata(params *ListMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListMetadataOK, error)
ListMetadata gets all the metadata associated with the zone
func (*Client) ModifyMetadata ¶
func (a *Client) ModifyMetadata(params *ModifyMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ModifyMetadataOK, error)
ModifyMetadata replaces the content of a single kind of domain metadata
Creates a set of metadata entries of given kind for the zone. Existing metadata entries for the zone with the same kind are removed.
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 { CreateMetadata(params *CreateMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateMetadataNoContent, error) DeleteMetadata(params *DeleteMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMetadataOK, error) GetMetadata(params *GetMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMetadataOK, error) ListMetadata(params *ListMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListMetadataOK, error) ModifyMetadata(params *ModifyMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ModifyMetadataOK, 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 zonemetadata API client.
type CreateMetadataNoContent ¶
type CreateMetadataNoContent struct { }
CreateMetadataNoContent describes a response with status code 204, with default header values.
OK
func NewCreateMetadataNoContent ¶
func NewCreateMetadataNoContent() *CreateMetadataNoContent
NewCreateMetadataNoContent creates a CreateMetadataNoContent with default headers values
func (*CreateMetadataNoContent) Error ¶
func (o *CreateMetadataNoContent) Error() string
type CreateMetadataParams ¶
type CreateMetadataParams struct { /* Metadata. Metadata object with list of values to create */ Metadata *models.Metadata /* ServerID. The id of the server to retrieve */ ServerID string // ZoneID. ZoneID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateMetadataParams contains all the parameters to send to the API endpoint
for the create metadata operation. Typically these are written to a http.Request.
func NewCreateMetadataParams ¶
func NewCreateMetadataParams() *CreateMetadataParams
NewCreateMetadataParams creates a new CreateMetadataParams 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 NewCreateMetadataParamsWithContext ¶
func NewCreateMetadataParamsWithContext(ctx context.Context) *CreateMetadataParams
NewCreateMetadataParamsWithContext creates a new CreateMetadataParams object with the ability to set a context for a request.
func NewCreateMetadataParamsWithHTTPClient ¶
func NewCreateMetadataParamsWithHTTPClient(client *http.Client) *CreateMetadataParams
NewCreateMetadataParamsWithHTTPClient creates a new CreateMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewCreateMetadataParamsWithTimeout ¶
func NewCreateMetadataParamsWithTimeout(timeout time.Duration) *CreateMetadataParams
NewCreateMetadataParamsWithTimeout creates a new CreateMetadataParams object with the ability to set a timeout on a request.
func (*CreateMetadataParams) SetContext ¶
func (o *CreateMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the create metadata params
func (*CreateMetadataParams) SetDefaults ¶
func (o *CreateMetadataParams) SetDefaults()
SetDefaults hydrates default values in the create metadata params (not the query body).
All values with no default are reset to their zero value.
func (*CreateMetadataParams) SetHTTPClient ¶
func (o *CreateMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create metadata params
func (*CreateMetadataParams) SetMetadata ¶
func (o *CreateMetadataParams) SetMetadata(metadata *models.Metadata)
SetMetadata adds the metadata to the create metadata params
func (*CreateMetadataParams) SetServerID ¶
func (o *CreateMetadataParams) SetServerID(serverID string)
SetServerID adds the serverId to the create metadata params
func (*CreateMetadataParams) SetTimeout ¶
func (o *CreateMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create metadata params
func (*CreateMetadataParams) SetZoneID ¶
func (o *CreateMetadataParams) SetZoneID(zoneID string)
SetZoneID adds the zoneId to the create metadata params
func (*CreateMetadataParams) WithContext ¶
func (o *CreateMetadataParams) WithContext(ctx context.Context) *CreateMetadataParams
WithContext adds the context to the create metadata params
func (*CreateMetadataParams) WithDefaults ¶
func (o *CreateMetadataParams) WithDefaults() *CreateMetadataParams
WithDefaults hydrates default values in the create metadata params (not the query body).
All values with no default are reset to their zero value.
func (*CreateMetadataParams) WithHTTPClient ¶
func (o *CreateMetadataParams) WithHTTPClient(client *http.Client) *CreateMetadataParams
WithHTTPClient adds the HTTPClient to the create metadata params
func (*CreateMetadataParams) WithMetadata ¶
func (o *CreateMetadataParams) WithMetadata(metadata *models.Metadata) *CreateMetadataParams
WithMetadata adds the metadata to the create metadata params
func (*CreateMetadataParams) WithServerID ¶
func (o *CreateMetadataParams) WithServerID(serverID string) *CreateMetadataParams
WithServerID adds the serverID to the create metadata params
func (*CreateMetadataParams) WithTimeout ¶
func (o *CreateMetadataParams) WithTimeout(timeout time.Duration) *CreateMetadataParams
WithTimeout adds the timeout to the create metadata params
func (*CreateMetadataParams) WithZoneID ¶
func (o *CreateMetadataParams) WithZoneID(zoneID string) *CreateMetadataParams
WithZoneID adds the zoneID to the create metadata params
func (*CreateMetadataParams) WriteToRequest ¶
func (o *CreateMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateMetadataReader ¶
type CreateMetadataReader struct {
// contains filtered or unexported fields
}
CreateMetadataReader is a Reader for the CreateMetadata structure.
func (*CreateMetadataReader) ReadResponse ¶
func (o *CreateMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteMetadataOK ¶
type DeleteMetadataOK struct { }
DeleteMetadataOK describes a response with status code 200, with default header values.
OK
func NewDeleteMetadataOK ¶
func NewDeleteMetadataOK() *DeleteMetadataOK
NewDeleteMetadataOK creates a DeleteMetadataOK with default headers values
func (*DeleteMetadataOK) Error ¶
func (o *DeleteMetadataOK) Error() string
type DeleteMetadataParams ¶
type DeleteMetadataParams struct { /* MetadataKind. The kind of metadata */ MetadataKind string /* ServerID. The id of the server to retrieve */ ServerID string /* ZoneID. The id of the zone to retrieve */ ZoneID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteMetadataParams contains all the parameters to send to the API endpoint
for the delete metadata operation. Typically these are written to a http.Request.
func NewDeleteMetadataParams ¶
func NewDeleteMetadataParams() *DeleteMetadataParams
NewDeleteMetadataParams creates a new DeleteMetadataParams 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 NewDeleteMetadataParamsWithContext ¶
func NewDeleteMetadataParamsWithContext(ctx context.Context) *DeleteMetadataParams
NewDeleteMetadataParamsWithContext creates a new DeleteMetadataParams object with the ability to set a context for a request.
func NewDeleteMetadataParamsWithHTTPClient ¶
func NewDeleteMetadataParamsWithHTTPClient(client *http.Client) *DeleteMetadataParams
NewDeleteMetadataParamsWithHTTPClient creates a new DeleteMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteMetadataParamsWithTimeout ¶
func NewDeleteMetadataParamsWithTimeout(timeout time.Duration) *DeleteMetadataParams
NewDeleteMetadataParamsWithTimeout creates a new DeleteMetadataParams object with the ability to set a timeout on a request.
func (*DeleteMetadataParams) SetContext ¶
func (o *DeleteMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the delete metadata params
func (*DeleteMetadataParams) SetDefaults ¶
func (o *DeleteMetadataParams) SetDefaults()
SetDefaults hydrates default values in the delete metadata params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteMetadataParams) SetHTTPClient ¶
func (o *DeleteMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete metadata params
func (*DeleteMetadataParams) SetMetadataKind ¶
func (o *DeleteMetadataParams) SetMetadataKind(metadataKind string)
SetMetadataKind adds the metadataKind to the delete metadata params
func (*DeleteMetadataParams) SetServerID ¶
func (o *DeleteMetadataParams) SetServerID(serverID string)
SetServerID adds the serverId to the delete metadata params
func (*DeleteMetadataParams) SetTimeout ¶
func (o *DeleteMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete metadata params
func (*DeleteMetadataParams) SetZoneID ¶
func (o *DeleteMetadataParams) SetZoneID(zoneID string)
SetZoneID adds the zoneId to the delete metadata params
func (*DeleteMetadataParams) WithContext ¶
func (o *DeleteMetadataParams) WithContext(ctx context.Context) *DeleteMetadataParams
WithContext adds the context to the delete metadata params
func (*DeleteMetadataParams) WithDefaults ¶
func (o *DeleteMetadataParams) WithDefaults() *DeleteMetadataParams
WithDefaults hydrates default values in the delete metadata params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteMetadataParams) WithHTTPClient ¶
func (o *DeleteMetadataParams) WithHTTPClient(client *http.Client) *DeleteMetadataParams
WithHTTPClient adds the HTTPClient to the delete metadata params
func (*DeleteMetadataParams) WithMetadataKind ¶
func (o *DeleteMetadataParams) WithMetadataKind(metadataKind string) *DeleteMetadataParams
WithMetadataKind adds the metadataKind to the delete metadata params
func (*DeleteMetadataParams) WithServerID ¶
func (o *DeleteMetadataParams) WithServerID(serverID string) *DeleteMetadataParams
WithServerID adds the serverID to the delete metadata params
func (*DeleteMetadataParams) WithTimeout ¶
func (o *DeleteMetadataParams) WithTimeout(timeout time.Duration) *DeleteMetadataParams
WithTimeout adds the timeout to the delete metadata params
func (*DeleteMetadataParams) WithZoneID ¶
func (o *DeleteMetadataParams) WithZoneID(zoneID string) *DeleteMetadataParams
WithZoneID adds the zoneID to the delete metadata params
func (*DeleteMetadataParams) WriteToRequest ¶
func (o *DeleteMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteMetadataReader ¶
type DeleteMetadataReader struct {
// contains filtered or unexported fields
}
DeleteMetadataReader is a Reader for the DeleteMetadata structure.
func (*DeleteMetadataReader) ReadResponse ¶
func (o *DeleteMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMetadataOK ¶
GetMetadataOK describes a response with status code 200, with default header values.
Metadata object with list of values
func NewGetMetadataOK ¶
func NewGetMetadataOK() *GetMetadataOK
NewGetMetadataOK creates a GetMetadataOK with default headers values
func (*GetMetadataOK) Error ¶
func (o *GetMetadataOK) Error() string
func (*GetMetadataOK) GetPayload ¶
func (o *GetMetadataOK) GetPayload() *models.Metadata
type GetMetadataParams ¶
type GetMetadataParams struct { /* MetadataKind. The kind of metadata */ MetadataKind string /* ServerID. The id of the server to retrieve */ ServerID string /* ZoneID. The id of the zone to retrieve */ ZoneID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMetadataParams contains all the parameters to send to the API endpoint
for the get metadata operation. Typically these are written to a http.Request.
func NewGetMetadataParams ¶
func NewGetMetadataParams() *GetMetadataParams
NewGetMetadataParams creates a new GetMetadataParams 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 NewGetMetadataParamsWithContext ¶
func NewGetMetadataParamsWithContext(ctx context.Context) *GetMetadataParams
NewGetMetadataParamsWithContext creates a new GetMetadataParams object with the ability to set a context for a request.
func NewGetMetadataParamsWithHTTPClient ¶
func NewGetMetadataParamsWithHTTPClient(client *http.Client) *GetMetadataParams
NewGetMetadataParamsWithHTTPClient creates a new GetMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewGetMetadataParamsWithTimeout ¶
func NewGetMetadataParamsWithTimeout(timeout time.Duration) *GetMetadataParams
NewGetMetadataParamsWithTimeout creates a new GetMetadataParams object with the ability to set a timeout on a request.
func (*GetMetadataParams) SetContext ¶
func (o *GetMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the get metadata params
func (*GetMetadataParams) SetDefaults ¶
func (o *GetMetadataParams) SetDefaults()
SetDefaults hydrates default values in the get metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetadataParams) SetHTTPClient ¶
func (o *GetMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get metadata params
func (*GetMetadataParams) SetMetadataKind ¶
func (o *GetMetadataParams) SetMetadataKind(metadataKind string)
SetMetadataKind adds the metadataKind to the get metadata params
func (*GetMetadataParams) SetServerID ¶
func (o *GetMetadataParams) SetServerID(serverID string)
SetServerID adds the serverId to the get metadata params
func (*GetMetadataParams) SetTimeout ¶
func (o *GetMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get metadata params
func (*GetMetadataParams) SetZoneID ¶
func (o *GetMetadataParams) SetZoneID(zoneID string)
SetZoneID adds the zoneId to the get metadata params
func (*GetMetadataParams) WithContext ¶
func (o *GetMetadataParams) WithContext(ctx context.Context) *GetMetadataParams
WithContext adds the context to the get metadata params
func (*GetMetadataParams) WithDefaults ¶
func (o *GetMetadataParams) WithDefaults() *GetMetadataParams
WithDefaults hydrates default values in the get metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetMetadataParams) WithHTTPClient ¶
func (o *GetMetadataParams) WithHTTPClient(client *http.Client) *GetMetadataParams
WithHTTPClient adds the HTTPClient to the get metadata params
func (*GetMetadataParams) WithMetadataKind ¶
func (o *GetMetadataParams) WithMetadataKind(metadataKind string) *GetMetadataParams
WithMetadataKind adds the metadataKind to the get metadata params
func (*GetMetadataParams) WithServerID ¶
func (o *GetMetadataParams) WithServerID(serverID string) *GetMetadataParams
WithServerID adds the serverID to the get metadata params
func (*GetMetadataParams) WithTimeout ¶
func (o *GetMetadataParams) WithTimeout(timeout time.Duration) *GetMetadataParams
WithTimeout adds the timeout to the get metadata params
func (*GetMetadataParams) WithZoneID ¶
func (o *GetMetadataParams) WithZoneID(zoneID string) *GetMetadataParams
WithZoneID adds the zoneID to the get metadata params
func (*GetMetadataParams) WriteToRequest ¶
func (o *GetMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMetadataReader ¶
type GetMetadataReader struct {
// contains filtered or unexported fields
}
GetMetadataReader is a Reader for the GetMetadata structure.
func (*GetMetadataReader) ReadResponse ¶
func (o *GetMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListMetadataOK ¶
ListMetadataOK describes a response with status code 200, with default header values.
List of Metadata objects
func NewListMetadataOK ¶
func NewListMetadataOK() *ListMetadataOK
NewListMetadataOK creates a ListMetadataOK with default headers values
func (*ListMetadataOK) Error ¶
func (o *ListMetadataOK) Error() string
func (*ListMetadataOK) GetPayload ¶
func (o *ListMetadataOK) GetPayload() []*models.Metadata
type ListMetadataParams ¶
type ListMetadataParams struct { /* ServerID. The id of the server to retrieve */ ServerID string /* ZoneID. The id of the zone to retrieve */ ZoneID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListMetadataParams contains all the parameters to send to the API endpoint
for the list metadata operation. Typically these are written to a http.Request.
func NewListMetadataParams ¶
func NewListMetadataParams() *ListMetadataParams
NewListMetadataParams creates a new ListMetadataParams 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 NewListMetadataParamsWithContext ¶
func NewListMetadataParamsWithContext(ctx context.Context) *ListMetadataParams
NewListMetadataParamsWithContext creates a new ListMetadataParams object with the ability to set a context for a request.
func NewListMetadataParamsWithHTTPClient ¶
func NewListMetadataParamsWithHTTPClient(client *http.Client) *ListMetadataParams
NewListMetadataParamsWithHTTPClient creates a new ListMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewListMetadataParamsWithTimeout ¶
func NewListMetadataParamsWithTimeout(timeout time.Duration) *ListMetadataParams
NewListMetadataParamsWithTimeout creates a new ListMetadataParams object with the ability to set a timeout on a request.
func (*ListMetadataParams) SetContext ¶
func (o *ListMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the list metadata params
func (*ListMetadataParams) SetDefaults ¶
func (o *ListMetadataParams) SetDefaults()
SetDefaults hydrates default values in the list metadata params (not the query body).
All values with no default are reset to their zero value.
func (*ListMetadataParams) SetHTTPClient ¶
func (o *ListMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list metadata params
func (*ListMetadataParams) SetServerID ¶
func (o *ListMetadataParams) SetServerID(serverID string)
SetServerID adds the serverId to the list metadata params
func (*ListMetadataParams) SetTimeout ¶
func (o *ListMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list metadata params
func (*ListMetadataParams) SetZoneID ¶
func (o *ListMetadataParams) SetZoneID(zoneID string)
SetZoneID adds the zoneId to the list metadata params
func (*ListMetadataParams) WithContext ¶
func (o *ListMetadataParams) WithContext(ctx context.Context) *ListMetadataParams
WithContext adds the context to the list metadata params
func (*ListMetadataParams) WithDefaults ¶
func (o *ListMetadataParams) WithDefaults() *ListMetadataParams
WithDefaults hydrates default values in the list metadata params (not the query body).
All values with no default are reset to their zero value.
func (*ListMetadataParams) WithHTTPClient ¶
func (o *ListMetadataParams) WithHTTPClient(client *http.Client) *ListMetadataParams
WithHTTPClient adds the HTTPClient to the list metadata params
func (*ListMetadataParams) WithServerID ¶
func (o *ListMetadataParams) WithServerID(serverID string) *ListMetadataParams
WithServerID adds the serverID to the list metadata params
func (*ListMetadataParams) WithTimeout ¶
func (o *ListMetadataParams) WithTimeout(timeout time.Duration) *ListMetadataParams
WithTimeout adds the timeout to the list metadata params
func (*ListMetadataParams) WithZoneID ¶
func (o *ListMetadataParams) WithZoneID(zoneID string) *ListMetadataParams
WithZoneID adds the zoneID to the list metadata params
func (*ListMetadataParams) WriteToRequest ¶
func (o *ListMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListMetadataReader ¶
type ListMetadataReader struct {
// contains filtered or unexported fields
}
ListMetadataReader is a Reader for the ListMetadata structure.
func (*ListMetadataReader) ReadResponse ¶
func (o *ListMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ModifyMetadataOK ¶
ModifyMetadataOK describes a response with status code 200, with default header values.
Metadata object with list of values
func NewModifyMetadataOK ¶
func NewModifyMetadataOK() *ModifyMetadataOK
NewModifyMetadataOK creates a ModifyMetadataOK with default headers values
func (*ModifyMetadataOK) Error ¶
func (o *ModifyMetadataOK) Error() string
func (*ModifyMetadataOK) GetPayload ¶
func (o *ModifyMetadataOK) GetPayload() *models.Metadata
type ModifyMetadataParams ¶
type ModifyMetadataParams struct { /* Metadata. metadata to add/create */ Metadata *models.Metadata /* MetadataKind. The kind of metadata */ MetadataKind string /* ServerID. The id of the server to retrieve */ ServerID string // ZoneID. ZoneID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ModifyMetadataParams contains all the parameters to send to the API endpoint
for the modify metadata operation. Typically these are written to a http.Request.
func NewModifyMetadataParams ¶
func NewModifyMetadataParams() *ModifyMetadataParams
NewModifyMetadataParams creates a new ModifyMetadataParams 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 NewModifyMetadataParamsWithContext ¶
func NewModifyMetadataParamsWithContext(ctx context.Context) *ModifyMetadataParams
NewModifyMetadataParamsWithContext creates a new ModifyMetadataParams object with the ability to set a context for a request.
func NewModifyMetadataParamsWithHTTPClient ¶
func NewModifyMetadataParamsWithHTTPClient(client *http.Client) *ModifyMetadataParams
NewModifyMetadataParamsWithHTTPClient creates a new ModifyMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewModifyMetadataParamsWithTimeout ¶
func NewModifyMetadataParamsWithTimeout(timeout time.Duration) *ModifyMetadataParams
NewModifyMetadataParamsWithTimeout creates a new ModifyMetadataParams object with the ability to set a timeout on a request.
func (*ModifyMetadataParams) SetContext ¶
func (o *ModifyMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the modify metadata params
func (*ModifyMetadataParams) SetDefaults ¶
func (o *ModifyMetadataParams) SetDefaults()
SetDefaults hydrates default values in the modify metadata params (not the query body).
All values with no default are reset to their zero value.
func (*ModifyMetadataParams) SetHTTPClient ¶
func (o *ModifyMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the modify metadata params
func (*ModifyMetadataParams) SetMetadata ¶
func (o *ModifyMetadataParams) SetMetadata(metadata *models.Metadata)
SetMetadata adds the metadata to the modify metadata params
func (*ModifyMetadataParams) SetMetadataKind ¶
func (o *ModifyMetadataParams) SetMetadataKind(metadataKind string)
SetMetadataKind adds the metadataKind to the modify metadata params
func (*ModifyMetadataParams) SetServerID ¶
func (o *ModifyMetadataParams) SetServerID(serverID string)
SetServerID adds the serverId to the modify metadata params
func (*ModifyMetadataParams) SetTimeout ¶
func (o *ModifyMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the modify metadata params
func (*ModifyMetadataParams) SetZoneID ¶
func (o *ModifyMetadataParams) SetZoneID(zoneID string)
SetZoneID adds the zoneId to the modify metadata params
func (*ModifyMetadataParams) WithContext ¶
func (o *ModifyMetadataParams) WithContext(ctx context.Context) *ModifyMetadataParams
WithContext adds the context to the modify metadata params
func (*ModifyMetadataParams) WithDefaults ¶
func (o *ModifyMetadataParams) WithDefaults() *ModifyMetadataParams
WithDefaults hydrates default values in the modify metadata params (not the query body).
All values with no default are reset to their zero value.
func (*ModifyMetadataParams) WithHTTPClient ¶
func (o *ModifyMetadataParams) WithHTTPClient(client *http.Client) *ModifyMetadataParams
WithHTTPClient adds the HTTPClient to the modify metadata params
func (*ModifyMetadataParams) WithMetadata ¶
func (o *ModifyMetadataParams) WithMetadata(metadata *models.Metadata) *ModifyMetadataParams
WithMetadata adds the metadata to the modify metadata params
func (*ModifyMetadataParams) WithMetadataKind ¶
func (o *ModifyMetadataParams) WithMetadataKind(metadataKind string) *ModifyMetadataParams
WithMetadataKind adds the metadataKind to the modify metadata params
func (*ModifyMetadataParams) WithServerID ¶
func (o *ModifyMetadataParams) WithServerID(serverID string) *ModifyMetadataParams
WithServerID adds the serverID to the modify metadata params
func (*ModifyMetadataParams) WithTimeout ¶
func (o *ModifyMetadataParams) WithTimeout(timeout time.Duration) *ModifyMetadataParams
WithTimeout adds the timeout to the modify metadata params
func (*ModifyMetadataParams) WithZoneID ¶
func (o *ModifyMetadataParams) WithZoneID(zoneID string) *ModifyMetadataParams
WithZoneID adds the zoneID to the modify metadata params
func (*ModifyMetadataParams) WriteToRequest ¶
func (o *ModifyMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ModifyMetadataReader ¶
type ModifyMetadataReader struct {
// contains filtered or unexported fields
}
ModifyMetadataReader is a Reader for the ModifyMetadata structure.
func (*ModifyMetadataReader) ReadResponse ¶
func (o *ModifyMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_metadata_parameters.go
- create_metadata_responses.go
- delete_metadata_parameters.go
- delete_metadata_responses.go
- get_metadata_parameters.go
- get_metadata_responses.go
- list_metadata_parameters.go
- list_metadata_responses.go
- modify_metadata_parameters.go
- modify_metadata_responses.go
- zonemetadata_client.go