Documentation
¶
Index ¶
- type Client
- type ClientService
- type GetAPI24DNSParams
- func (o *GetAPI24DNSParams) SetAuthorization(authorization *string)
- func (o *GetAPI24DNSParams) SetContext(ctx context.Context)
- func (o *GetAPI24DNSParams) SetFilter(filter *string)
- func (o *GetAPI24DNSParams) SetHTTPClient(client *http.Client)
- func (o *GetAPI24DNSParams) SetLimit(limit *int32)
- func (o *GetAPI24DNSParams) SetOffset(offset *int32)
- func (o *GetAPI24DNSParams) SetSort(sort []string)
- func (o *GetAPI24DNSParams) SetTimeout(timeout time.Duration)
- func (o *GetAPI24DNSParams) SetTotalItemCount(totalItemCount *bool)
- func (o *GetAPI24DNSParams) SetXRequestID(xRequestID *string)
- func (o *GetAPI24DNSParams) WithAuthorization(authorization *string) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithContext(ctx context.Context) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithFilter(filter *string) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithHTTPClient(client *http.Client) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithLimit(limit *int32) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithOffset(offset *int32) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithSort(sort []string) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithTimeout(timeout time.Duration) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithTotalItemCount(totalItemCount *bool) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WithXRequestID(xRequestID *string) *GetAPI24DNSParams
- func (o *GetAPI24DNSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPI24DNSReader
- type GetApi24DNSBadRequest
- type GetApi24DNSOK
- type PatchAPI24DNSParams
- func (o *PatchAPI24DNSParams) SetAuthorization(authorization *string)
- func (o *PatchAPI24DNSParams) SetContext(ctx context.Context)
- func (o *PatchAPI24DNSParams) SetDNS(dns *models.DNSPatch)
- func (o *PatchAPI24DNSParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPI24DNSParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPI24DNSParams) SetXRequestID(xRequestID *string)
- func (o *PatchAPI24DNSParams) WithAuthorization(authorization *string) *PatchAPI24DNSParams
- func (o *PatchAPI24DNSParams) WithContext(ctx context.Context) *PatchAPI24DNSParams
- func (o *PatchAPI24DNSParams) WithDNS(dns *models.DNSPatch) *PatchAPI24DNSParams
- func (o *PatchAPI24DNSParams) WithHTTPClient(client *http.Client) *PatchAPI24DNSParams
- func (o *PatchAPI24DNSParams) WithTimeout(timeout time.Duration) *PatchAPI24DNSParams
- func (o *PatchAPI24DNSParams) WithXRequestID(xRequestID *string) *PatchAPI24DNSParams
- func (o *PatchAPI24DNSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPI24DNSReader
- type PatchApi24DNSBadRequest
- type PatchApi24DNSOK
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 dns API
func (*Client) GetAPI24DNS ¶
func (a *Client) GetAPI24DNS(params *GetAPI24DNSParams) (*GetApi24DNSOK, error)
GetAPI24DNS lists DNS parameters
Displays the current DNS parameters of the array, including domain suffix and name servers.
func (*Client) PatchAPI24DNS ¶
func (a *Client) PatchAPI24DNS(params *PatchAPI24DNSParams) (*PatchApi24DNSOK, error)
PatchAPI24DNS modifies DNS parameters
Modifies the DNS parameters of an array, including the domain suffix and the list of DNS name server IP addresses.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetAPI24DNS(params *GetAPI24DNSParams) (*GetApi24DNSOK, error) PatchAPI24DNS(params *PatchAPI24DNSParams) (*PatchApi24DNSOK, 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 dns API client.
type GetAPI24DNSParams ¶
type GetAPI24DNSParams struct { /*Authorization Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`) */ Authorization *string /*XRequestID Supplied by client during request or generated by server. */ XRequestID *string /*Filter Narrows down the results to only the response objects that satisfy the filter criteria. */ Filter *string /*Limit Limits the size of the response to the specified number of objects on each page. To return the total number of resources, set `limit=0`. The total number of resources is returned as a `total_item_count` value. If the page size requested is larger than the system maximum limit, the server returns the maximum limit, disregarding the requested page size. */ Limit *int32 /*Offset The starting position based on the results of the query in relation to the full set of response objects returned. */ Offset *int32 /*Sort Returns the response objects in the order specified. Set `sort` to the name in the response by which to sort. Sorting can be performed on any of the names in the response, and the objects can be sorted in ascending or descending order. By default, the response objects are sorted in ascending order. To sort in descending order, append the minus sign (`-`) to the name. A single request can be sorted on multiple objects. For example, you can sort all volumes from largest to smallest volume size, and then sort volumes of the same size in ascending order by volume name. To sort on multiple names, list the names as comma-separated values. */ Sort []string /*TotalItemCount If set to `true`, the `total_item_count` matching the specified query parameters is calculated and returned in the response. If set to `false`, the `total_item_count` is `null` in the response. This may speed up queries where the `total_item_count` is large. If not specified, defaults to `false`. */ TotalItemCount *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPI24DNSParams contains all the parameters to send to the API endpoint for the get API 24 DNS operation typically these are written to a http.Request
func NewGetAPI24DNSParams ¶
func NewGetAPI24DNSParams() *GetAPI24DNSParams
NewGetAPI24DNSParams creates a new GetAPI24DNSParams object with the default values initialized.
func NewGetAPI24DNSParamsWithContext ¶
func NewGetAPI24DNSParamsWithContext(ctx context.Context) *GetAPI24DNSParams
NewGetAPI24DNSParamsWithContext creates a new GetAPI24DNSParams object with the default values initialized, and the ability to set a context for a request
func NewGetAPI24DNSParamsWithHTTPClient ¶
func NewGetAPI24DNSParamsWithHTTPClient(client *http.Client) *GetAPI24DNSParams
NewGetAPI24DNSParamsWithHTTPClient creates a new GetAPI24DNSParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetAPI24DNSParamsWithTimeout ¶
func NewGetAPI24DNSParamsWithTimeout(timeout time.Duration) *GetAPI24DNSParams
NewGetAPI24DNSParamsWithTimeout creates a new GetAPI24DNSParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetAPI24DNSParams) SetAuthorization ¶
func (o *GetAPI24DNSParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the get API 24 DNS params
func (*GetAPI24DNSParams) SetContext ¶
func (o *GetAPI24DNSParams) SetContext(ctx context.Context)
SetContext adds the context to the get API 24 DNS params
func (*GetAPI24DNSParams) SetFilter ¶
func (o *GetAPI24DNSParams) SetFilter(filter *string)
SetFilter adds the filter to the get API 24 DNS params
func (*GetAPI24DNSParams) SetHTTPClient ¶
func (o *GetAPI24DNSParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API 24 DNS params
func (*GetAPI24DNSParams) SetLimit ¶
func (o *GetAPI24DNSParams) SetLimit(limit *int32)
SetLimit adds the limit to the get API 24 DNS params
func (*GetAPI24DNSParams) SetOffset ¶
func (o *GetAPI24DNSParams) SetOffset(offset *int32)
SetOffset adds the offset to the get API 24 DNS params
func (*GetAPI24DNSParams) SetSort ¶
func (o *GetAPI24DNSParams) SetSort(sort []string)
SetSort adds the sort to the get API 24 DNS params
func (*GetAPI24DNSParams) SetTimeout ¶
func (o *GetAPI24DNSParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API 24 DNS params
func (*GetAPI24DNSParams) SetTotalItemCount ¶
func (o *GetAPI24DNSParams) SetTotalItemCount(totalItemCount *bool)
SetTotalItemCount adds the totalItemCount to the get API 24 DNS params
func (*GetAPI24DNSParams) SetXRequestID ¶
func (o *GetAPI24DNSParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get API 24 DNS params
func (*GetAPI24DNSParams) WithAuthorization ¶
func (o *GetAPI24DNSParams) WithAuthorization(authorization *string) *GetAPI24DNSParams
WithAuthorization adds the authorization to the get API 24 DNS params
func (*GetAPI24DNSParams) WithContext ¶
func (o *GetAPI24DNSParams) WithContext(ctx context.Context) *GetAPI24DNSParams
WithContext adds the context to the get API 24 DNS params
func (*GetAPI24DNSParams) WithFilter ¶
func (o *GetAPI24DNSParams) WithFilter(filter *string) *GetAPI24DNSParams
WithFilter adds the filter to the get API 24 DNS params
func (*GetAPI24DNSParams) WithHTTPClient ¶
func (o *GetAPI24DNSParams) WithHTTPClient(client *http.Client) *GetAPI24DNSParams
WithHTTPClient adds the HTTPClient to the get API 24 DNS params
func (*GetAPI24DNSParams) WithLimit ¶
func (o *GetAPI24DNSParams) WithLimit(limit *int32) *GetAPI24DNSParams
WithLimit adds the limit to the get API 24 DNS params
func (*GetAPI24DNSParams) WithOffset ¶
func (o *GetAPI24DNSParams) WithOffset(offset *int32) *GetAPI24DNSParams
WithOffset adds the offset to the get API 24 DNS params
func (*GetAPI24DNSParams) WithSort ¶
func (o *GetAPI24DNSParams) WithSort(sort []string) *GetAPI24DNSParams
WithSort adds the sort to the get API 24 DNS params
func (*GetAPI24DNSParams) WithTimeout ¶
func (o *GetAPI24DNSParams) WithTimeout(timeout time.Duration) *GetAPI24DNSParams
WithTimeout adds the timeout to the get API 24 DNS params
func (*GetAPI24DNSParams) WithTotalItemCount ¶
func (o *GetAPI24DNSParams) WithTotalItemCount(totalItemCount *bool) *GetAPI24DNSParams
WithTotalItemCount adds the totalItemCount to the get API 24 DNS params
func (*GetAPI24DNSParams) WithXRequestID ¶
func (o *GetAPI24DNSParams) WithXRequestID(xRequestID *string) *GetAPI24DNSParams
WithXRequestID adds the xRequestID to the get API 24 DNS params
func (*GetAPI24DNSParams) WriteToRequest ¶
func (o *GetAPI24DNSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPI24DNSReader ¶
type GetAPI24DNSReader struct {
// contains filtered or unexported fields
}
GetAPI24DNSReader is a Reader for the GetAPI24DNS structure.
func (*GetAPI24DNSReader) ReadResponse ¶
func (o *GetAPI24DNSReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetApi24DNSBadRequest ¶
GetApi24DNSBadRequest handles this case with default header values.
BadRequest
func NewGetApi24DNSBadRequest ¶
func NewGetApi24DNSBadRequest() *GetApi24DNSBadRequest
NewGetApi24DNSBadRequest creates a GetApi24DNSBadRequest with default headers values
func (*GetApi24DNSBadRequest) Error ¶
func (o *GetApi24DNSBadRequest) Error() string
func (*GetApi24DNSBadRequest) GetPayload ¶
func (o *GetApi24DNSBadRequest) GetPayload() *models.Error
type GetApi24DNSOK ¶
type GetApi24DNSOK struct {
Payload *models.DNSGetResponse
}
GetApi24DNSOK handles this case with default header values.
OK
func NewGetApi24DNSOK ¶
func NewGetApi24DNSOK() *GetApi24DNSOK
NewGetApi24DNSOK creates a GetApi24DNSOK with default headers values
func (*GetApi24DNSOK) Error ¶
func (o *GetApi24DNSOK) Error() string
func (*GetApi24DNSOK) GetPayload ¶
func (o *GetApi24DNSOK) GetPayload() *models.DNSGetResponse
type PatchAPI24DNSParams ¶
type PatchAPI24DNSParams struct { /*Authorization Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`) */ Authorization *string /*XRequestID Supplied by client during request or generated by server. */ XRequestID *string /*DNS*/ DNS *models.DNSPatch Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPI24DNSParams contains all the parameters to send to the API endpoint for the patch API 24 DNS operation typically these are written to a http.Request
func NewPatchAPI24DNSParams ¶
func NewPatchAPI24DNSParams() *PatchAPI24DNSParams
NewPatchAPI24DNSParams creates a new PatchAPI24DNSParams object with the default values initialized.
func NewPatchAPI24DNSParamsWithContext ¶
func NewPatchAPI24DNSParamsWithContext(ctx context.Context) *PatchAPI24DNSParams
NewPatchAPI24DNSParamsWithContext creates a new PatchAPI24DNSParams object with the default values initialized, and the ability to set a context for a request
func NewPatchAPI24DNSParamsWithHTTPClient ¶
func NewPatchAPI24DNSParamsWithHTTPClient(client *http.Client) *PatchAPI24DNSParams
NewPatchAPI24DNSParamsWithHTTPClient creates a new PatchAPI24DNSParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPatchAPI24DNSParamsWithTimeout ¶
func NewPatchAPI24DNSParamsWithTimeout(timeout time.Duration) *PatchAPI24DNSParams
NewPatchAPI24DNSParamsWithTimeout creates a new PatchAPI24DNSParams object with the default values initialized, and the ability to set a timeout on a request
func (*PatchAPI24DNSParams) SetAuthorization ¶
func (o *PatchAPI24DNSParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the patch API 24 DNS params
func (*PatchAPI24DNSParams) SetContext ¶
func (o *PatchAPI24DNSParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API 24 DNS params
func (*PatchAPI24DNSParams) SetDNS ¶
func (o *PatchAPI24DNSParams) SetDNS(dns *models.DNSPatch)
SetDNS adds the dns to the patch API 24 DNS params
func (*PatchAPI24DNSParams) SetHTTPClient ¶
func (o *PatchAPI24DNSParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API 24 DNS params
func (*PatchAPI24DNSParams) SetTimeout ¶
func (o *PatchAPI24DNSParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API 24 DNS params
func (*PatchAPI24DNSParams) SetXRequestID ¶
func (o *PatchAPI24DNSParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the patch API 24 DNS params
func (*PatchAPI24DNSParams) WithAuthorization ¶
func (o *PatchAPI24DNSParams) WithAuthorization(authorization *string) *PatchAPI24DNSParams
WithAuthorization adds the authorization to the patch API 24 DNS params
func (*PatchAPI24DNSParams) WithContext ¶
func (o *PatchAPI24DNSParams) WithContext(ctx context.Context) *PatchAPI24DNSParams
WithContext adds the context to the patch API 24 DNS params
func (*PatchAPI24DNSParams) WithDNS ¶
func (o *PatchAPI24DNSParams) WithDNS(dns *models.DNSPatch) *PatchAPI24DNSParams
WithDNS adds the dns to the patch API 24 DNS params
func (*PatchAPI24DNSParams) WithHTTPClient ¶
func (o *PatchAPI24DNSParams) WithHTTPClient(client *http.Client) *PatchAPI24DNSParams
WithHTTPClient adds the HTTPClient to the patch API 24 DNS params
func (*PatchAPI24DNSParams) WithTimeout ¶
func (o *PatchAPI24DNSParams) WithTimeout(timeout time.Duration) *PatchAPI24DNSParams
WithTimeout adds the timeout to the patch API 24 DNS params
func (*PatchAPI24DNSParams) WithXRequestID ¶
func (o *PatchAPI24DNSParams) WithXRequestID(xRequestID *string) *PatchAPI24DNSParams
WithXRequestID adds the xRequestID to the patch API 24 DNS params
func (*PatchAPI24DNSParams) WriteToRequest ¶
func (o *PatchAPI24DNSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPI24DNSReader ¶
type PatchAPI24DNSReader struct {
// contains filtered or unexported fields
}
PatchAPI24DNSReader is a Reader for the PatchAPI24DNS structure.
func (*PatchAPI24DNSReader) ReadResponse ¶
func (o *PatchAPI24DNSReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchApi24DNSBadRequest ¶
PatchApi24DNSBadRequest handles this case with default header values.
BadRequest
func NewPatchApi24DNSBadRequest ¶
func NewPatchApi24DNSBadRequest() *PatchApi24DNSBadRequest
NewPatchApi24DNSBadRequest creates a PatchApi24DNSBadRequest with default headers values
func (*PatchApi24DNSBadRequest) Error ¶
func (o *PatchApi24DNSBadRequest) Error() string
func (*PatchApi24DNSBadRequest) GetPayload ¶
func (o *PatchApi24DNSBadRequest) GetPayload() *models.Error
type PatchApi24DNSOK ¶
type PatchApi24DNSOK struct {
Payload *models.DNSResponse
}
PatchApi24DNSOK handles this case with default header values.
OK
func NewPatchApi24DNSOK ¶
func NewPatchApi24DNSOK() *PatchApi24DNSOK
NewPatchApi24DNSOK creates a PatchApi24DNSOK with default headers values
func (*PatchApi24DNSOK) Error ¶
func (o *PatchApi24DNSOK) Error() string
func (*PatchApi24DNSOK) GetPayload ¶
func (o *PatchApi24DNSOK) GetPayload() *models.DNSResponse