repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewClusterCreateParams creates a new ClusterCreateParams 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 NewClusterCreateParams() *ClusterCreateParams { return &ClusterCreateParams{ timeout: cr.DefaultTimeout, } } // NewClusterCreateParamsWithTimeout creates a new ClusterCreateParams object // with the ability to set a timeout on a request. func NewClusterCreateParamsWithTimeout(timeout time.Duration) *ClusterCreateParams { return &ClusterCreateParams{ timeout: timeout, } } // NewClusterCreateParamsWithContext creates a new ClusterCreateParams object // with the ability to set a context for a request. func NewClusterCreateParamsWithContext(ctx context.Context) *ClusterCreateParams { return &ClusterCreateParams{ Context: ctx, } } // NewClusterCreateParamsWithHTTPClient creates a new ClusterCreateParams object // with the ability to set a custom HTTPClient for a request. func NewClusterCreateParamsWithHTTPClient(client *http.Client) *ClusterCreateParams { return &ClusterCreateParams{ HTTPClient: client, } } /* ClusterCreateParams contains all the parameters to send to the API endpoint for the cluster create operation. Typically these are written to a http.Request. */ type ClusterCreateParams struct { /* CreateRecommendedAggregates. Create aggregates based on an optimal layout recommended by the system. */ CreateRecommendedAggregates *bool /* Info. Cluster information */ Info *models.Cluster /* KeepPreclusterConfig. This is used to keep temporary configuration settings that allow initial setup including a node scoped certificate and possibly an automatically created node management interface. This is useful when creating a GUI that does not replace the node management interface using POST on /api/cluster, but instead creates the interface at another time. The certificate also relates to creating a web based GUI so that the certificate lasts through the entire workflow and is not replaced by the cluster scoped certificate during POST on /api/cluster. To remove the temporary configuration settings when a custom setup workflow is complete, set the remove_precluster_config query parameter in a PATCH on /api/cluster. */ KeepPreclusterConfig *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 /* SingleNodeCluster. Configures a single node cluster. All cluster ports are reassigned to the default network. The storage failover settings are configured to non-HA. The node reboots during this operation. */ SingleNodeCluster *bool timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster create params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterCreateParams) WithDefaults() *ClusterCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster create params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterCreateParams) SetDefaults() { var ( createRecommendedAggregatesDefault = bool(false) keepPreclusterConfigDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ClusterCreateParams{ CreateRecommendedAggregates: &createRecommendedAggregatesDefault, KeepPreclusterConfig: &keepPreclusterConfigDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cluster create params func (o *ClusterCreateParams) WithTimeout(timeout time.Duration) *ClusterCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster create params func (o *ClusterCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster create params func (o *ClusterCreateParams) WithContext(ctx context.Context) *ClusterCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster create params func (o *ClusterCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster create params func (o *ClusterCreateParams) WithHTTPClient(client *http.Client) *ClusterCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster create params func (o *ClusterCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCreateRecommendedAggregates adds the createRecommendedAggregates to the cluster create params func (o *ClusterCreateParams) WithCreateRecommendedAggregates(createRecommendedAggregates *bool) *ClusterCreateParams { o.SetCreateRecommendedAggregates(createRecommendedAggregates) return o } // SetCreateRecommendedAggregates adds the createRecommendedAggregates to the cluster create params func (o *ClusterCreateParams) SetCreateRecommendedAggregates(createRecommendedAggregates *bool) { o.CreateRecommendedAggregates = createRecommendedAggregates } // WithInfo adds the info to the cluster create params func (o *ClusterCreateParams) WithInfo(info *models.Cluster) *ClusterCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster create params func (o *ClusterCreateParams) SetInfo(info *models.Cluster) { o.Info = info } // WithKeepPreclusterConfig adds the keepPreclusterConfig to the cluster create params func (o *ClusterCreateParams) WithKeepPreclusterConfig(keepPreclusterConfig *bool) *ClusterCreateParams { o.SetKeepPreclusterConfig(keepPreclusterConfig) return o } // SetKeepPreclusterConfig adds the keepPreclusterConfig to the cluster create params func (o *ClusterCreateParams) SetKeepPreclusterConfig(keepPreclusterConfig *bool) { o.KeepPreclusterConfig = keepPreclusterConfig } // WithReturnTimeout adds the returnTimeout to the cluster create params func (o *ClusterCreateParams) WithReturnTimeout(returnTimeout *int64) *ClusterCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the cluster create params func (o *ClusterCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSingleNodeCluster adds the singleNodeCluster to the cluster create params func (o *ClusterCreateParams) WithSingleNodeCluster(singleNodeCluster *bool) *ClusterCreateParams { o.SetSingleNodeCluster(singleNodeCluster) return o } // SetSingleNodeCluster adds the singleNodeCluster to the cluster create params func (o *ClusterCreateParams) SetSingleNodeCluster(singleNodeCluster *bool) { o.SingleNodeCluster = singleNodeCluster } // WriteToRequest writes these params to a swagger request func (o *ClusterCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.CreateRecommendedAggregates != nil { // query param create_recommended_aggregates var qrCreateRecommendedAggregates bool if o.CreateRecommendedAggregates != nil { qrCreateRecommendedAggregates = *o.CreateRecommendedAggregates } qCreateRecommendedAggregates := swag.FormatBool(qrCreateRecommendedAggregates) if qCreateRecommendedAggregates != "" { if err := r.SetQueryParam("create_recommended_aggregates", qCreateRecommendedAggregates); err != nil { return err } } } if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.KeepPreclusterConfig != nil { // query param keep_precluster_config var qrKeepPreclusterConfig bool if o.KeepPreclusterConfig != nil { qrKeepPreclusterConfig = *o.KeepPreclusterConfig } qKeepPreclusterConfig := swag.FormatBool(qrKeepPreclusterConfig) if qKeepPreclusterConfig != "" { if err := r.SetQueryParam("keep_precluster_config", qKeepPreclusterConfig); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.SingleNodeCluster != nil { // query param single_node_cluster var qrSingleNodeCluster bool if o.SingleNodeCluster != nil { qrSingleNodeCluster = *o.SingleNodeCluster } qSingleNodeCluster := swag.FormatBool(qrSingleNodeCluster) if qSingleNodeCluster != "" { if err := r.SetQueryParam("single_node_cluster", qSingleNodeCluster); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/job_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/job_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) // NewJobModifyParams creates a new JobModifyParams 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 NewJobModifyParams() *JobModifyParams { return &JobModifyParams{ timeout: cr.DefaultTimeout, } } // NewJobModifyParamsWithTimeout creates a new JobModifyParams object // with the ability to set a timeout on a request. func NewJobModifyParamsWithTimeout(timeout time.Duration) *JobModifyParams { return &JobModifyParams{ timeout: timeout, } } // NewJobModifyParamsWithContext creates a new JobModifyParams object // with the ability to set a context for a request. func NewJobModifyParamsWithContext(ctx context.Context) *JobModifyParams { return &JobModifyParams{ Context: ctx, } } // NewJobModifyParamsWithHTTPClient creates a new JobModifyParams object // with the ability to set a custom HTTPClient for a request. func NewJobModifyParamsWithHTTPClient(client *http.Client) *JobModifyParams { return &JobModifyParams{ HTTPClient: client, } } /* JobModifyParams contains all the parameters to send to the API endpoint for the job modify operation. Typically these are written to a http.Request. */ type JobModifyParams struct { /* Action. Requests a job to pause, resume, or cancel. Note that not all jobs support these actions. A job can only be resumed if it is in a paused state. After you successfully request a job to be cancelled, the job state changes to either success or failure. */ Action *string /* UUID. Job UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the job modify params (not the query body). // // All values with no default are reset to their zero value. func (o *JobModifyParams) WithDefaults() *JobModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the job modify params (not the query body). // // All values with no default are reset to their zero value. func (o *JobModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the job modify params func (o *JobModifyParams) WithTimeout(timeout time.Duration) *JobModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the job modify params func (o *JobModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the job modify params func (o *JobModifyParams) WithContext(ctx context.Context) *JobModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the job modify params func (o *JobModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the job modify params func (o *JobModifyParams) WithHTTPClient(client *http.Client) *JobModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the job modify params func (o *JobModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAction adds the action to the job modify params func (o *JobModifyParams) WithAction(action *string) *JobModifyParams { o.SetAction(action) return o } // SetAction adds the action to the job modify params func (o *JobModifyParams) SetAction(action *string) { o.Action = action } // WithUUID adds the uuid to the job modify params func (o *JobModifyParams) WithUUID(uuid string) *JobModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the job modify params func (o *JobModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *JobModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Action != nil { // query param action var qrAction string if o.Action != nil { qrAction = *o.Action } qAction := qrAction if qAction != "" { if err := r.SetQueryParam("action", qAction); err != nil { return err } } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // LicenseManagerGetReader is a Reader for the LicenseManagerGet structure. type LicenseManagerGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LicenseManagerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLicenseManagerGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLicenseManagerGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewLicenseManagerGetOK creates a LicenseManagerGetOK with default headers values func NewLicenseManagerGetOK() *LicenseManagerGetOK { return &LicenseManagerGetOK{} } /* LicenseManagerGetOK describes a response with status code 200, with default header values. OK */ type LicenseManagerGetOK struct { Payload *models.LicenseManager } // IsSuccess returns true when this license manager get o k response has a 2xx status code func (o *LicenseManagerGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this license manager get o k response has a 3xx status code func (o *LicenseManagerGetOK) IsRedirect() bool { return false } // IsClientError returns true when this license manager get o k response has a 4xx status code func (o *LicenseManagerGetOK) IsClientError() bool { return false } // IsServerError returns true when this license manager get o k response has a 5xx status code func (o *LicenseManagerGetOK) IsServerError() bool { return false } // IsCode returns true when this license manager get o k response a status code equal to that given func (o *LicenseManagerGetOK) IsCode(code int) bool { return code == 200 } func (o *LicenseManagerGetOK) Error() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers/{uuid}][%d] licenseManagerGetOK %+v", 200, o.Payload) } func (o *LicenseManagerGetOK) String() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers/{uuid}][%d] licenseManagerGetOK %+v", 200, o.Payload) } func (o *LicenseManagerGetOK) GetPayload() *models.LicenseManager { return o.Payload } func (o *LicenseManagerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.LicenseManager) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLicenseManagerGetDefault creates a LicenseManagerGetDefault with default headers values func NewLicenseManagerGetDefault(code int) *LicenseManagerGetDefault { return &LicenseManagerGetDefault{ _statusCode: code, } } /* LicenseManagerGetDefault describes a response with status code -1, with default header values. Error */ type LicenseManagerGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the license manager get default response func (o *LicenseManagerGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this license manager get default response has a 2xx status code func (o *LicenseManagerGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this license manager get default response has a 3xx status code func (o *LicenseManagerGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this license manager get default response has a 4xx status code func (o *LicenseManagerGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this license manager get default response has a 5xx status code func (o *LicenseManagerGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this license manager get default response a status code equal to that given func (o *LicenseManagerGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LicenseManagerGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers/{uuid}][%d] license_manager_get default %+v", o._statusCode, o.Payload) } func (o *LicenseManagerGetDefault) String() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers/{uuid}][%d] license_manager_get default %+v", o._statusCode, o.Payload) } func (o *LicenseManagerGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LicenseManagerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMediatorGetParams creates a new MediatorGetParams 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 NewMediatorGetParams() *MediatorGetParams { return &MediatorGetParams{ timeout: cr.DefaultTimeout, } } // NewMediatorGetParamsWithTimeout creates a new MediatorGetParams object // with the ability to set a timeout on a request. func NewMediatorGetParamsWithTimeout(timeout time.Duration) *MediatorGetParams { return &MediatorGetParams{ timeout: timeout, } } // NewMediatorGetParamsWithContext creates a new MediatorGetParams object // with the ability to set a context for a request. func NewMediatorGetParamsWithContext(ctx context.Context) *MediatorGetParams { return &MediatorGetParams{ Context: ctx, } } // NewMediatorGetParamsWithHTTPClient creates a new MediatorGetParams object // with the ability to set a custom HTTPClient for a request. func NewMediatorGetParamsWithHTTPClient(client *http.Client) *MediatorGetParams { return &MediatorGetParams{ HTTPClient: client, } } /* MediatorGetParams contains all the parameters to send to the API endpoint for the mediator get operation. Typically these are written to a http.Request. */ type MediatorGetParams struct { /* Fields. Specify the fields to return. */ Fields []string // UUID. // // Format: uuid UUID strfmt.UUID timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the mediator get params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorGetParams) WithDefaults() *MediatorGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the mediator get params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the mediator get params func (o *MediatorGetParams) WithTimeout(timeout time.Duration) *MediatorGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the mediator get params func (o *MediatorGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the mediator get params func (o *MediatorGetParams) WithContext(ctx context.Context) *MediatorGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the mediator get params func (o *MediatorGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the mediator get params func (o *MediatorGetParams) WithHTTPClient(client *http.Client) *MediatorGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the mediator get params func (o *MediatorGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the mediator get params func (o *MediatorGetParams) WithFields(fields []string) *MediatorGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the mediator get params func (o *MediatorGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the mediator get params func (o *MediatorGetParams) WithUUID(uuid strfmt.UUID) *MediatorGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the mediator get params func (o *MediatorGetParams) SetUUID(uuid strfmt.UUID) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *MediatorGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID.String()); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMediatorGet binds the parameter fields func (o *MediatorGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewMetroclusterInterconnectModifyParams creates a new MetroclusterInterconnectModifyParams 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 NewMetroclusterInterconnectModifyParams() *MetroclusterInterconnectModifyParams { return &MetroclusterInterconnectModifyParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterInterconnectModifyParamsWithTimeout creates a new MetroclusterInterconnectModifyParams object // with the ability to set a timeout on a request. func NewMetroclusterInterconnectModifyParamsWithTimeout(timeout time.Duration) *MetroclusterInterconnectModifyParams { return &MetroclusterInterconnectModifyParams{ timeout: timeout, } } // NewMetroclusterInterconnectModifyParamsWithContext creates a new MetroclusterInterconnectModifyParams object // with the ability to set a context for a request. func NewMetroclusterInterconnectModifyParamsWithContext(ctx context.Context) *MetroclusterInterconnectModifyParams { return &MetroclusterInterconnectModifyParams{ Context: ctx, } } // NewMetroclusterInterconnectModifyParamsWithHTTPClient creates a new MetroclusterInterconnectModifyParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterInterconnectModifyParamsWithHTTPClient(client *http.Client) *MetroclusterInterconnectModifyParams { return &MetroclusterInterconnectModifyParams{ HTTPClient: client, } } /* MetroclusterInterconnectModifyParams contains all the parameters to send to the API endpoint for the metrocluster interconnect modify operation. Typically these are written to a http.Request. */ type MetroclusterInterconnectModifyParams struct { /* Adapter. Interconnect adapter */ Adapter string /* Info. MetroCluster interconnect interface information */ Info *models.MetroclusterInterconnect /* NodeUUID. Node UUID */ NodeUUID string /* PartnerType. DR Partner type */ PartnerType string /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster interconnect modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterInterconnectModifyParams) WithDefaults() *MetroclusterInterconnectModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster interconnect modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterInterconnectModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := MetroclusterInterconnectModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithTimeout(timeout time.Duration) *MetroclusterInterconnectModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithContext(ctx context.Context) *MetroclusterInterconnectModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithHTTPClient(client *http.Client) *MetroclusterInterconnectModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAdapter adds the adapter to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithAdapter(adapter string) *MetroclusterInterconnectModifyParams { o.SetAdapter(adapter) return o } // SetAdapter adds the adapter to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetAdapter(adapter string) { o.Adapter = adapter } // WithInfo adds the info to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithInfo(info *models.MetroclusterInterconnect) *MetroclusterInterconnectModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetInfo(info *models.MetroclusterInterconnect) { o.Info = info } // WithNodeUUID adds the nodeUUID to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithNodeUUID(nodeUUID string) *MetroclusterInterconnectModifyParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WithPartnerType adds the partnerType to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithPartnerType(partnerType string) *MetroclusterInterconnectModifyParams { o.SetPartnerType(partnerType) return o } // SetPartnerType adds the partnerType to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetPartnerType(partnerType string) { o.PartnerType = partnerType } // WithReturnTimeout adds the returnTimeout to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterInterconnectModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster interconnect modify params func (o *MetroclusterInterconnectModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *MetroclusterInterconnectModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param adapter if err := r.SetPathParam("adapter", o.Adapter); err != nil { return err } if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil { return err } // path param partner_type if err := r.SetPathParam("partner_type", o.PartnerType); err != nil { return err } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/node_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/node_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewNodeGetParams creates a new NodeGetParams 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 NewNodeGetParams() *NodeGetParams { return &NodeGetParams{ timeout: cr.DefaultTimeout, } } // NewNodeGetParamsWithTimeout creates a new NodeGetParams object // with the ability to set a timeout on a request. func NewNodeGetParamsWithTimeout(timeout time.Duration) *NodeGetParams { return &NodeGetParams{ timeout: timeout, } } // NewNodeGetParamsWithContext creates a new NodeGetParams object // with the ability to set a context for a request. func NewNodeGetParamsWithContext(ctx context.Context) *NodeGetParams { return &NodeGetParams{ Context: ctx, } } // NewNodeGetParamsWithHTTPClient creates a new NodeGetParams object // with the ability to set a custom HTTPClient for a request. func NewNodeGetParamsWithHTTPClient(client *http.Client) *NodeGetParams { return &NodeGetParams{ HTTPClient: client, } } /* NodeGetParams contains all the parameters to send to the API endpoint for the node get operation. Typically these are written to a http.Request. */ type NodeGetParams struct { /* Fields. Specify the fields to return. */ Fields []string // UUID. // // Format: uuid UUID strfmt.UUID timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the node get params (not the query body). // // All values with no default are reset to their zero value. func (o *NodeGetParams) WithDefaults() *NodeGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the node get params (not the query body). // // All values with no default are reset to their zero value. func (o *NodeGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the node get params func (o *NodeGetParams) WithTimeout(timeout time.Duration) *NodeGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the node get params func (o *NodeGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the node get params func (o *NodeGetParams) WithContext(ctx context.Context) *NodeGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the node get params func (o *NodeGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the node get params func (o *NodeGetParams) WithHTTPClient(client *http.Client) *NodeGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the node get params func (o *NodeGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the node get params func (o *NodeGetParams) WithFields(fields []string) *NodeGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the node get params func (o *NodeGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the node get params func (o *NodeGetParams) WithUUID(uuid strfmt.UUID) *NodeGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the node get params func (o *NodeGetParams) SetUUID(uuid strfmt.UUID) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *NodeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID.String()); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNodeGet binds the parameter fields func (o *NodeGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/firmware_history_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/firmware_history_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // FirmwareHistoryCollectionGetReader is a Reader for the FirmwareHistoryCollectionGet structure. type FirmwareHistoryCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FirmwareHistoryCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFirmwareHistoryCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFirmwareHistoryCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewFirmwareHistoryCollectionGetOK creates a FirmwareHistoryCollectionGetOK with default headers values func NewFirmwareHistoryCollectionGetOK() *FirmwareHistoryCollectionGetOK { return &FirmwareHistoryCollectionGetOK{} } /* FirmwareHistoryCollectionGetOK describes a response with status code 200, with default header values. OK */ type FirmwareHistoryCollectionGetOK struct { Payload *models.FirmwareHistoryResponse } // IsSuccess returns true when this firmware history collection get o k response has a 2xx status code func (o *FirmwareHistoryCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this firmware history collection get o k response has a 3xx status code func (o *FirmwareHistoryCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this firmware history collection get o k response has a 4xx status code func (o *FirmwareHistoryCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this firmware history collection get o k response has a 5xx status code func (o *FirmwareHistoryCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this firmware history collection get o k response a status code equal to that given func (o *FirmwareHistoryCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *FirmwareHistoryCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/firmware/history][%d] firmwareHistoryCollectionGetOK %+v", 200, o.Payload) } func (o *FirmwareHistoryCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/firmware/history][%d] firmwareHistoryCollectionGetOK %+v", 200, o.Payload) } func (o *FirmwareHistoryCollectionGetOK) GetPayload() *models.FirmwareHistoryResponse { return o.Payload } func (o *FirmwareHistoryCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FirmwareHistoryResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFirmwareHistoryCollectionGetDefault creates a FirmwareHistoryCollectionGetDefault with default headers values func NewFirmwareHistoryCollectionGetDefault(code int) *FirmwareHistoryCollectionGetDefault { return &FirmwareHistoryCollectionGetDefault{ _statusCode: code, } } /* FirmwareHistoryCollectionGetDefault describes a response with status code -1, with default header values. Error */ type FirmwareHistoryCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the firmware history collection get default response func (o *FirmwareHistoryCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this firmware history collection get default response has a 2xx status code func (o *FirmwareHistoryCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this firmware history collection get default response has a 3xx status code func (o *FirmwareHistoryCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this firmware history collection get default response has a 4xx status code func (o *FirmwareHistoryCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this firmware history collection get default response has a 5xx status code func (o *FirmwareHistoryCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this firmware history collection get default response a status code equal to that given func (o *FirmwareHistoryCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FirmwareHistoryCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/firmware/history][%d] firmware_history_collection_get default %+v", o._statusCode, o.Payload) } func (o *FirmwareHistoryCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/firmware/history][%d] firmware_history_collection_get default %+v", o._statusCode, o.Payload) } func (o *FirmwareHistoryCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FirmwareHistoryCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/chassis_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/chassis_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewChassisGetParams creates a new ChassisGetParams 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 NewChassisGetParams() *ChassisGetParams { return &ChassisGetParams{ timeout: cr.DefaultTimeout, } } // NewChassisGetParamsWithTimeout creates a new ChassisGetParams object // with the ability to set a timeout on a request. func NewChassisGetParamsWithTimeout(timeout time.Duration) *ChassisGetParams { return &ChassisGetParams{ timeout: timeout, } } // NewChassisGetParamsWithContext creates a new ChassisGetParams object // with the ability to set a context for a request. func NewChassisGetParamsWithContext(ctx context.Context) *ChassisGetParams { return &ChassisGetParams{ Context: ctx, } } // NewChassisGetParamsWithHTTPClient creates a new ChassisGetParams object // with the ability to set a custom HTTPClient for a request. func NewChassisGetParamsWithHTTPClient(client *http.Client) *ChassisGetParams { return &ChassisGetParams{ HTTPClient: client, } } /* ChassisGetParams contains all the parameters to send to the API endpoint for the chassis get operation. Typically these are written to a http.Request. */ type ChassisGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* ID. Chassis ID */ ID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the chassis get params (not the query body). // // All values with no default are reset to their zero value. func (o *ChassisGetParams) WithDefaults() *ChassisGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the chassis get params (not the query body). // // All values with no default are reset to their zero value. func (o *ChassisGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the chassis get params func (o *ChassisGetParams) WithTimeout(timeout time.Duration) *ChassisGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the chassis get params func (o *ChassisGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the chassis get params func (o *ChassisGetParams) WithContext(ctx context.Context) *ChassisGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the chassis get params func (o *ChassisGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the chassis get params func (o *ChassisGetParams) WithHTTPClient(client *http.Client) *ChassisGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the chassis get params func (o *ChassisGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the chassis get params func (o *ChassisGetParams) WithFields(fields []string) *ChassisGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the chassis get params func (o *ChassisGetParams) SetFields(fields []string) { o.Fields = fields } // WithID adds the id to the chassis get params func (o *ChassisGetParams) WithID(id string) *ChassisGetParams { o.SetID(id) return o } // SetID adds the id to the chassis get params func (o *ChassisGetParams) SetID(id string) { o.ID = id } // WriteToRequest writes these params to a swagger request func (o *ChassisGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamChassisGet binds the parameter fields func (o *ChassisGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_diagnostics_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_diagnostics_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterDiagnosticsCreateReader is a Reader for the MetroclusterDiagnosticsCreate structure. type MetroclusterDiagnosticsCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterDiagnosticsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewMetroclusterDiagnosticsCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterDiagnosticsCreateDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterDiagnosticsCreateAccepted creates a MetroclusterDiagnosticsCreateAccepted with default headers values func NewMetroclusterDiagnosticsCreateAccepted() *MetroclusterDiagnosticsCreateAccepted { return &MetroclusterDiagnosticsCreateAccepted{} } /* MetroclusterDiagnosticsCreateAccepted describes a response with status code 202, with default header values. Accepted */ type MetroclusterDiagnosticsCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this metrocluster diagnostics create accepted response has a 2xx status code func (o *MetroclusterDiagnosticsCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster diagnostics create accepted response has a 3xx status code func (o *MetroclusterDiagnosticsCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster diagnostics create accepted response has a 4xx status code func (o *MetroclusterDiagnosticsCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this metrocluster diagnostics create accepted response has a 5xx status code func (o *MetroclusterDiagnosticsCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this metrocluster diagnostics create accepted response a status code equal to that given func (o *MetroclusterDiagnosticsCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *MetroclusterDiagnosticsCreateAccepted) Error() string { return fmt.Sprintf("[POST /cluster/metrocluster/diagnostics][%d] metroclusterDiagnosticsCreateAccepted %+v", 202, o.Payload) } func (o *MetroclusterDiagnosticsCreateAccepted) String() string { return fmt.Sprintf("[POST /cluster/metrocluster/diagnostics][%d] metroclusterDiagnosticsCreateAccepted %+v", 202, o.Payload) } func (o *MetroclusterDiagnosticsCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *MetroclusterDiagnosticsCreateAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterDiagnosticsCreateDefault creates a MetroclusterDiagnosticsCreateDefault with default headers values func NewMetroclusterDiagnosticsCreateDefault(code int) *MetroclusterDiagnosticsCreateDefault { return &MetroclusterDiagnosticsCreateDefault{ _statusCode: code, } } /* MetroclusterDiagnosticsCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | | 2427132 | MetroCluster is not configured on this cluster. | | 2432833 | Operation is already running. | | 2432852 | MetroCluster diagnostics start | | 2432853 | MetroCluster diagnostics job scheduled | | 2432854 | MetroCluster diagnostics complete | | 2432855 | MetroCluster diagnostics operation failed. Use the REST API GET method on "/api/cluster/metrocluster/operations?type=check&fields=*" for more information. | */ type MetroclusterDiagnosticsCreateDefault struct { _statusCode int } // Code gets the status code for the metrocluster diagnostics create default response func (o *MetroclusterDiagnosticsCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster diagnostics create default response has a 2xx status code func (o *MetroclusterDiagnosticsCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster diagnostics create default response has a 3xx status code func (o *MetroclusterDiagnosticsCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster diagnostics create default response has a 4xx status code func (o *MetroclusterDiagnosticsCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster diagnostics create default response has a 5xx status code func (o *MetroclusterDiagnosticsCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster diagnostics create default response a status code equal to that given func (o *MetroclusterDiagnosticsCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterDiagnosticsCreateDefault) Error() string { return fmt.Sprintf("[POST /cluster/metrocluster/diagnostics][%d] metrocluster_diagnostics_create default ", o._statusCode) } func (o *MetroclusterDiagnosticsCreateDefault) String() string { return fmt.Sprintf("[POST /cluster/metrocluster/diagnostics][%d] metrocluster_diagnostics_create default ", o._statusCode) } func (o *MetroclusterDiagnosticsCreateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_packages_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_packages_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SoftwarePackagesCollectionGetReader is a Reader for the SoftwarePackagesCollectionGet structure. type SoftwarePackagesCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SoftwarePackagesCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSoftwarePackagesCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSoftwarePackagesCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewSoftwarePackagesCollectionGetOK creates a SoftwarePackagesCollectionGetOK with default headers values func NewSoftwarePackagesCollectionGetOK() *SoftwarePackagesCollectionGetOK { return &SoftwarePackagesCollectionGetOK{} } /* SoftwarePackagesCollectionGetOK describes a response with status code 200, with default header values. OK */ type SoftwarePackagesCollectionGetOK struct { Payload *models.SoftwarePackageResponse } // IsSuccess returns true when this software packages collection get o k response has a 2xx status code func (o *SoftwarePackagesCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this software packages collection get o k response has a 3xx status code func (o *SoftwarePackagesCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this software packages collection get o k response has a 4xx status code func (o *SoftwarePackagesCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this software packages collection get o k response has a 5xx status code func (o *SoftwarePackagesCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this software packages collection get o k response a status code equal to that given func (o *SoftwarePackagesCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *SoftwarePackagesCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/software/packages][%d] softwarePackagesCollectionGetOK %+v", 200, o.Payload) } func (o *SoftwarePackagesCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/software/packages][%d] softwarePackagesCollectionGetOK %+v", 200, o.Payload) } func (o *SoftwarePackagesCollectionGetOK) GetPayload() *models.SoftwarePackageResponse { return o.Payload } func (o *SoftwarePackagesCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SoftwarePackageResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSoftwarePackagesCollectionGetDefault creates a SoftwarePackagesCollectionGetDefault with default headers values func NewSoftwarePackagesCollectionGetDefault(code int) *SoftwarePackagesCollectionGetDefault { return &SoftwarePackagesCollectionGetDefault{ _statusCode: code, } } /* SoftwarePackagesCollectionGetDefault describes a response with status code -1, with default header values. Error */ type SoftwarePackagesCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the software packages collection get default response func (o *SoftwarePackagesCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this software packages collection get default response has a 2xx status code func (o *SoftwarePackagesCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this software packages collection get default response has a 3xx status code func (o *SoftwarePackagesCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this software packages collection get default response has a 4xx status code func (o *SoftwarePackagesCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this software packages collection get default response has a 5xx status code func (o *SoftwarePackagesCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this software packages collection get default response a status code equal to that given func (o *SoftwarePackagesCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SoftwarePackagesCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/software/packages][%d] software_packages_collection_get default %+v", o._statusCode, o.Payload) } func (o *SoftwarePackagesCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/software/packages][%d] software_packages_collection_get default %+v", o._statusCode, o.Payload) } func (o *SoftwarePackagesCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SoftwarePackagesCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // LicenseCreateReader is a Reader for the LicenseCreate structure. type LicenseCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LicenseCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewLicenseCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLicenseCreateDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewLicenseCreateCreated creates a LicenseCreateCreated with default headers values func NewLicenseCreateCreated() *LicenseCreateCreated { return &LicenseCreateCreated{} } /* LicenseCreateCreated describes a response with status code 201, with default header values. Created */ type LicenseCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.LicensePackageResponse } // IsSuccess returns true when this license create created response has a 2xx status code func (o *LicenseCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this license create created response has a 3xx status code func (o *LicenseCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this license create created response has a 4xx status code func (o *LicenseCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this license create created response has a 5xx status code func (o *LicenseCreateCreated) IsServerError() bool { return false } // IsCode returns true when this license create created response a status code equal to that given func (o *LicenseCreateCreated) IsCode(code int) bool { return code == 201 } func (o *LicenseCreateCreated) Error() string { return fmt.Sprintf("[POST /cluster/licensing/licenses][%d] licenseCreateCreated %+v", 201, o.Payload) } func (o *LicenseCreateCreated) String() string { return fmt.Sprintf("[POST /cluster/licensing/licenses][%d] licenseCreateCreated %+v", 201, o.Payload) } func (o *LicenseCreateCreated) GetPayload() *models.LicensePackageResponse { return o.Payload } func (o *LicenseCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } o.Payload = new(models.LicensePackageResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLicenseCreateDefault creates a LicenseCreateDefault with default headers values func NewLicenseCreateDefault(code int) *LicenseCreateDefault { return &LicenseCreateDefault{ _statusCode: code, } } /* LicenseCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1115117 | Generic licensing error | | 1115122 | No cluster serial number found | | 1115124 | No node serial number found | | 1115130 | No license code was provided | | 1115131 | Installation of the license failed | | 1115132 | License already exists on system | | 1115134 | Serial number does not belong to node | | 1115141 | License data is invalid | | 1115142 | License signature is invalid | | 1115143 | Internal error applying the requested license | | 1115152 | License does not apply to the platform | | 1115154 | Unable to retrieve cluster ID | | 1115155 | Invalid cluster ID found | | 1115159 | License is not in an acceptable format | | 1115160 | License has already expired | | 1115164 | Minimum ONTAP version requirements not met | | 1115165 | Minimum ONTAP version requirements are not met for license type enabled | | 1115166 | Minimum ONTAP version requirements are not met for license protocol SEC-COMP-BNDL-ENBLD | | 1115179 | FlexCache is not supported on this system | | 1115180 | FlexCache is not supported on cloud systems | | 1115407 | Capacity pool licenses cannot be installed directly | | 1115427 | License is incompatible with capacity pools licensing mode | | 1115562 | One or more errors occurred when installing a NLFv2 license | | 1115563 | Package details and serial number of license contained within the NLFv2 failure | | 1115564 | Package cannot be deleted individually as it is part of a bundle | | 1115565 | NLFv2 install failed as the license serial number is already in use | | 1115616 | Package details and serial number of license included in the install conflict | | 1115617 | NLFv2 license install failed with summary of conflicting licenses | | 1115618 | NLFv2 license install failed as a license with newer timestamp already exists | | 5375355 | The cluster has more nodes than are supported by All SAN Array. | | 5375366 | The cluster has one or more nodes that do not support All SAN Array. | | 66846818 | Failed to interpret FlexCache license information | | 66846821 | FlexCache is not supported on cloud systems | | 66846822 | Invalid FlexCache capacity information provided | | 655294464 | Failed to extract license contents | | 655294465 | License key is invalid | | 655294466 | Serial number is invalid | | 655294467 | Version number is invalid | | 655294468 | Expired license | | 655294469 | License does not apply to the platform | | 655294470 | License does not apply to the product | */ type LicenseCreateDefault struct { _statusCode int Payload *models.ErrorResponses } // Code gets the status code for the license create default response func (o *LicenseCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this license create default response has a 2xx status code func (o *LicenseCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this license create default response has a 3xx status code func (o *LicenseCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this license create default response has a 4xx status code func (o *LicenseCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this license create default response has a 5xx status code func (o *LicenseCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this license create default response a status code equal to that given func (o *LicenseCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LicenseCreateDefault) Error() string { return fmt.Sprintf("[POST /cluster/licensing/licenses][%d] license_create default %+v", o._statusCode, o.Payload) } func (o *LicenseCreateDefault) String() string { return fmt.Sprintf("[POST /cluster/licensing/licenses][%d] license_create default %+v", o._statusCode, o.Payload) } func (o *LicenseCreateDefault) GetPayload() *models.ErrorResponses { return o.Payload } func (o *LicenseCreateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponses) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_table_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_table_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // CounterTableCollectionGetReader is a Reader for the CounterTableCollectionGet structure. type CounterTableCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CounterTableCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCounterTableCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCounterTableCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewCounterTableCollectionGetOK creates a CounterTableCollectionGetOK with default headers values func NewCounterTableCollectionGetOK() *CounterTableCollectionGetOK { return &CounterTableCollectionGetOK{} } /* CounterTableCollectionGetOK describes a response with status code 200, with default header values. OK */ type CounterTableCollectionGetOK struct { Payload *models.CounterTableResponse } // IsSuccess returns true when this counter table collection get o k response has a 2xx status code func (o *CounterTableCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this counter table collection get o k response has a 3xx status code func (o *CounterTableCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this counter table collection get o k response has a 4xx status code func (o *CounterTableCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this counter table collection get o k response has a 5xx status code func (o *CounterTableCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this counter table collection get o k response a status code equal to that given func (o *CounterTableCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *CounterTableCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables][%d] counterTableCollectionGetOK %+v", 200, o.Payload) } func (o *CounterTableCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/counter/tables][%d] counterTableCollectionGetOK %+v", 200, o.Payload) } func (o *CounterTableCollectionGetOK) GetPayload() *models.CounterTableResponse { return o.Payload } func (o *CounterTableCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CounterTableResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCounterTableCollectionGetDefault creates a CounterTableCollectionGetDefault with default headers values func NewCounterTableCollectionGetDefault(code int) *CounterTableCollectionGetDefault { return &CounterTableCollectionGetDefault{ _statusCode: code, } } /* CounterTableCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 8585368 | The system has not completed it's initialization | */ type CounterTableCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the counter table collection get default response func (o *CounterTableCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this counter table collection get default response has a 2xx status code func (o *CounterTableCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this counter table collection get default response has a 3xx status code func (o *CounterTableCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this counter table collection get default response has a 4xx status code func (o *CounterTableCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this counter table collection get default response has a 5xx status code func (o *CounterTableCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this counter table collection get default response a status code equal to that given func (o *CounterTableCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CounterTableCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables][%d] counter_table_collection_get default %+v", o._statusCode, o.Payload) } func (o *CounterTableCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/counter/tables][%d] counter_table_collection_get default %+v", o._statusCode, o.Payload) } func (o *CounterTableCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CounterTableCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewScheduleGetParams creates a new ScheduleGetParams 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 NewScheduleGetParams() *ScheduleGetParams { return &ScheduleGetParams{ timeout: cr.DefaultTimeout, } } // NewScheduleGetParamsWithTimeout creates a new ScheduleGetParams object // with the ability to set a timeout on a request. func NewScheduleGetParamsWithTimeout(timeout time.Duration) *ScheduleGetParams { return &ScheduleGetParams{ timeout: timeout, } } // NewScheduleGetParamsWithContext creates a new ScheduleGetParams object // with the ability to set a context for a request. func NewScheduleGetParamsWithContext(ctx context.Context) *ScheduleGetParams { return &ScheduleGetParams{ Context: ctx, } } // NewScheduleGetParamsWithHTTPClient creates a new ScheduleGetParams object // with the ability to set a custom HTTPClient for a request. func NewScheduleGetParamsWithHTTPClient(client *http.Client) *ScheduleGetParams { return &ScheduleGetParams{ HTTPClient: client, } } /* ScheduleGetParams contains all the parameters to send to the API endpoint for the schedule get operation. Typically these are written to a http.Request. */ type ScheduleGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Schedule UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the schedule get params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleGetParams) WithDefaults() *ScheduleGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the schedule get params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the schedule get params func (o *ScheduleGetParams) WithTimeout(timeout time.Duration) *ScheduleGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the schedule get params func (o *ScheduleGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the schedule get params func (o *ScheduleGetParams) WithContext(ctx context.Context) *ScheduleGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the schedule get params func (o *ScheduleGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the schedule get params func (o *ScheduleGetParams) WithHTTPClient(client *http.Client) *ScheduleGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the schedule get params func (o *ScheduleGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the schedule get params func (o *ScheduleGetParams) WithFields(fields []string) *ScheduleGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the schedule get params func (o *ScheduleGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the schedule get params func (o *ScheduleGetParams) WithUUID(uuid string) *ScheduleGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the schedule get params func (o *ScheduleGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ScheduleGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamScheduleGet binds the parameter fields func (o *ScheduleGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewClusterNtpServersGetParams creates a new ClusterNtpServersGetParams 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 NewClusterNtpServersGetParams() *ClusterNtpServersGetParams { return &ClusterNtpServersGetParams{ timeout: cr.DefaultTimeout, } } // NewClusterNtpServersGetParamsWithTimeout creates a new ClusterNtpServersGetParams object // with the ability to set a timeout on a request. func NewClusterNtpServersGetParamsWithTimeout(timeout time.Duration) *ClusterNtpServersGetParams { return &ClusterNtpServersGetParams{ timeout: timeout, } } // NewClusterNtpServersGetParamsWithContext creates a new ClusterNtpServersGetParams object // with the ability to set a context for a request. func NewClusterNtpServersGetParamsWithContext(ctx context.Context) *ClusterNtpServersGetParams { return &ClusterNtpServersGetParams{ Context: ctx, } } // NewClusterNtpServersGetParamsWithHTTPClient creates a new ClusterNtpServersGetParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNtpServersGetParamsWithHTTPClient(client *http.Client) *ClusterNtpServersGetParams { return &ClusterNtpServersGetParams{ HTTPClient: client, } } /* ClusterNtpServersGetParams contains all the parameters to send to the API endpoint for the cluster ntp servers get operation. Typically these are written to a http.Request. */ type ClusterNtpServersGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* Server. NTP server host name, IPv4, or IPv6 address. */ Server string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ntp servers get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersGetParams) WithDefaults() *ClusterNtpServersGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ntp servers get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) WithTimeout(timeout time.Duration) *ClusterNtpServersGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) WithContext(ctx context.Context) *ClusterNtpServersGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) WithHTTPClient(client *http.Client) *ClusterNtpServersGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) WithFields(fields []string) *ClusterNtpServersGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) SetFields(fields []string) { o.Fields = fields } // WithServer adds the server to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) WithServer(server string) *ClusterNtpServersGetParams { o.SetServer(server) return o } // SetServer adds the server to the cluster ntp servers get params func (o *ClusterNtpServersGetParams) SetServer(server string) { o.Server = server } // WriteToRequest writes these params to a swagger request func (o *ClusterNtpServersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param server if err := r.SetPathParam("server", o.Server); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamClusterNtpServersGet binds the parameter fields func (o *ClusterNtpServersGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/web_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/web_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewWebGetParams creates a new WebGetParams 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 NewWebGetParams() *WebGetParams { return &WebGetParams{ timeout: cr.DefaultTimeout, } } // NewWebGetParamsWithTimeout creates a new WebGetParams object // with the ability to set a timeout on a request. func NewWebGetParamsWithTimeout(timeout time.Duration) *WebGetParams { return &WebGetParams{ timeout: timeout, } } // NewWebGetParamsWithContext creates a new WebGetParams object // with the ability to set a context for a request. func NewWebGetParamsWithContext(ctx context.Context) *WebGetParams { return &WebGetParams{ Context: ctx, } } // NewWebGetParamsWithHTTPClient creates a new WebGetParams object // with the ability to set a custom HTTPClient for a request. func NewWebGetParamsWithHTTPClient(client *http.Client) *WebGetParams { return &WebGetParams{ HTTPClient: client, } } /* WebGetParams contains all the parameters to send to the API endpoint for the web get operation. Typically these are written to a http.Request. */ type WebGetParams struct { /* Fields. Specify the fields to return. */ Fields []string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the web get params (not the query body). // // All values with no default are reset to their zero value. func (o *WebGetParams) WithDefaults() *WebGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the web get params (not the query body). // // All values with no default are reset to their zero value. func (o *WebGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the web get params func (o *WebGetParams) WithTimeout(timeout time.Duration) *WebGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the web get params func (o *WebGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the web get params func (o *WebGetParams) WithContext(ctx context.Context) *WebGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the web get params func (o *WebGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the web get params func (o *WebGetParams) WithHTTPClient(client *http.Client) *WebGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the web get params func (o *WebGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the web get params func (o *WebGetParams) WithFields(fields []string) *WebGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the web get params func (o *WebGetParams) SetFields(fields []string) { o.Fields = fields } // WriteToRequest writes these params to a swagger request func (o *WebGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamWebGet binds the parameter fields func (o *WebGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterInterconnectGetReader is a Reader for the MetroclusterInterconnectGet structure. type MetroclusterInterconnectGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterInterconnectGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMetroclusterInterconnectGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterInterconnectGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterInterconnectGetOK creates a MetroclusterInterconnectGetOK with default headers values func NewMetroclusterInterconnectGetOK() *MetroclusterInterconnectGetOK { return &MetroclusterInterconnectGetOK{} } /* MetroclusterInterconnectGetOK describes a response with status code 200, with default header values. OK */ type MetroclusterInterconnectGetOK struct { Payload *models.MetroclusterInterconnect } // IsSuccess returns true when this metrocluster interconnect get o k response has a 2xx status code func (o *MetroclusterInterconnectGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster interconnect get o k response has a 3xx status code func (o *MetroclusterInterconnectGetOK) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster interconnect get o k response has a 4xx status code func (o *MetroclusterInterconnectGetOK) IsClientError() bool { return false } // IsServerError returns true when this metrocluster interconnect get o k response has a 5xx status code func (o *MetroclusterInterconnectGetOK) IsServerError() bool { return false } // IsCode returns true when this metrocluster interconnect get o k response a status code equal to that given func (o *MetroclusterInterconnectGetOK) IsCode(code int) bool { return code == 200 } func (o *MetroclusterInterconnectGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metroclusterInterconnectGetOK %+v", 200, o.Payload) } func (o *MetroclusterInterconnectGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metroclusterInterconnectGetOK %+v", 200, o.Payload) } func (o *MetroclusterInterconnectGetOK) GetPayload() *models.MetroclusterInterconnect { return o.Payload } func (o *MetroclusterInterconnectGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MetroclusterInterconnect) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterInterconnectGetDefault creates a MetroclusterInterconnectGetDefault with default headers values func NewMetroclusterInterconnectGetDefault(code int) *MetroclusterInterconnectGetDefault { return &MetroclusterInterconnectGetDefault{ _statusCode: code, } } /* MetroclusterInterconnectGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | | 2427132 | MetroCluster is not configured on this cluster. | */ type MetroclusterInterconnectGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster interconnect get default response func (o *MetroclusterInterconnectGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster interconnect get default response has a 2xx status code func (o *MetroclusterInterconnectGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster interconnect get default response has a 3xx status code func (o *MetroclusterInterconnectGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster interconnect get default response has a 4xx status code func (o *MetroclusterInterconnectGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster interconnect get default response has a 5xx status code func (o *MetroclusterInterconnectGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster interconnect get default response a status code equal to that given func (o *MetroclusterInterconnectGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterInterconnectGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metrocluster_interconnect_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterInterconnectGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metrocluster_interconnect_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterInterconnectGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterInterconnectGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterNtpServersGetReader is a Reader for the ClusterNtpServersGet structure. type ClusterNtpServersGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNtpServersGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterNtpServersGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNtpServersGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterNtpServersGetOK creates a ClusterNtpServersGetOK with default headers values func NewClusterNtpServersGetOK() *ClusterNtpServersGetOK { return &ClusterNtpServersGetOK{} } /* ClusterNtpServersGetOK describes a response with status code 200, with default header values. OK */ type ClusterNtpServersGetOK struct { Payload *models.NtpServer } // IsSuccess returns true when this cluster ntp servers get o k response has a 2xx status code func (o *ClusterNtpServersGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ntp servers get o k response has a 3xx status code func (o *ClusterNtpServersGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster ntp servers get o k response has a 4xx status code func (o *ClusterNtpServersGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster ntp servers get o k response has a 5xx status code func (o *ClusterNtpServersGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster ntp servers get o k response a status code equal to that given func (o *ClusterNtpServersGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterNtpServersGetOK) Error() string { return fmt.Sprintf("[GET /cluster/ntp/servers/{server}][%d] clusterNtpServersGetOK %+v", 200, o.Payload) } func (o *ClusterNtpServersGetOK) String() string { return fmt.Sprintf("[GET /cluster/ntp/servers/{server}][%d] clusterNtpServersGetOK %+v", 200, o.Payload) } func (o *ClusterNtpServersGetOK) GetPayload() *models.NtpServer { return o.Payload } func (o *ClusterNtpServersGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NtpServer) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNtpServersGetDefault creates a ClusterNtpServersGetDefault with default headers values func NewClusterNtpServersGetDefault(code int) *ClusterNtpServersGetDefault { return &ClusterNtpServersGetDefault{ _statusCode: code, } } /* ClusterNtpServersGetDefault describes a response with status code -1, with default header values. Error */ type ClusterNtpServersGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ntp servers get default response func (o *ClusterNtpServersGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ntp servers get default response has a 2xx status code func (o *ClusterNtpServersGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ntp servers get default response has a 3xx status code func (o *ClusterNtpServersGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ntp servers get default response has a 4xx status code func (o *ClusterNtpServersGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ntp servers get default response has a 5xx status code func (o *ClusterNtpServersGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ntp servers get default response a status code equal to that given func (o *ClusterNtpServersGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNtpServersGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/ntp/servers/{server}][%d] cluster_ntp_servers_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpServersGetDefault) String() string { return fmt.Sprintf("[GET /cluster/ntp/servers/{server}][%d] cluster_ntp_servers_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpServersGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNtpServersGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewScheduleModifyParams creates a new ScheduleModifyParams 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 NewScheduleModifyParams() *ScheduleModifyParams { return &ScheduleModifyParams{ timeout: cr.DefaultTimeout, } } // NewScheduleModifyParamsWithTimeout creates a new ScheduleModifyParams object // with the ability to set a timeout on a request. func NewScheduleModifyParamsWithTimeout(timeout time.Duration) *ScheduleModifyParams { return &ScheduleModifyParams{ timeout: timeout, } } // NewScheduleModifyParamsWithContext creates a new ScheduleModifyParams object // with the ability to set a context for a request. func NewScheduleModifyParamsWithContext(ctx context.Context) *ScheduleModifyParams { return &ScheduleModifyParams{ Context: ctx, } } // NewScheduleModifyParamsWithHTTPClient creates a new ScheduleModifyParams object // with the ability to set a custom HTTPClient for a request. func NewScheduleModifyParamsWithHTTPClient(client *http.Client) *ScheduleModifyParams { return &ScheduleModifyParams{ HTTPClient: client, } } /* ScheduleModifyParams contains all the parameters to send to the API endpoint for the schedule modify operation. Typically these are written to a http.Request. */ type ScheduleModifyParams struct { /* Info. Info specification */ Info *models.Schedule /* UUID. Schedule UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the schedule modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleModifyParams) WithDefaults() *ScheduleModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the schedule modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the schedule modify params func (o *ScheduleModifyParams) WithTimeout(timeout time.Duration) *ScheduleModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the schedule modify params func (o *ScheduleModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the schedule modify params func (o *ScheduleModifyParams) WithContext(ctx context.Context) *ScheduleModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the schedule modify params func (o *ScheduleModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the schedule modify params func (o *ScheduleModifyParams) WithHTTPClient(client *http.Client) *ScheduleModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the schedule modify params func (o *ScheduleModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the schedule modify params func (o *ScheduleModifyParams) WithInfo(info *models.Schedule) *ScheduleModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the schedule modify params func (o *ScheduleModifyParams) SetInfo(info *models.Schedule) { o.Info = info } // WithUUID adds the uuid to the schedule modify params func (o *ScheduleModifyParams) WithUUID(uuid string) *ScheduleModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the schedule modify params func (o *ScheduleModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ScheduleModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/nodes_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/nodes_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NodesCreateReader is a Reader for the NodesCreate structure. type NodesCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NodesCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewNodesCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNodesCreateDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewNodesCreateAccepted creates a NodesCreateAccepted with default headers values func NewNodesCreateAccepted() *NodesCreateAccepted { return &NodesCreateAccepted{} } /* NodesCreateAccepted describes a response with status code 202, with default header values. Accepted */ type NodesCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this nodes create accepted response has a 2xx status code func (o *NodesCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this nodes create accepted response has a 3xx status code func (o *NodesCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this nodes create accepted response has a 4xx status code func (o *NodesCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this nodes create accepted response has a 5xx status code func (o *NodesCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this nodes create accepted response a status code equal to that given func (o *NodesCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *NodesCreateAccepted) Error() string { return fmt.Sprintf("[POST /cluster/nodes][%d] nodesCreateAccepted %+v", 202, o.Payload) } func (o *NodesCreateAccepted) String() string { return fmt.Sprintf("[POST /cluster/nodes][%d] nodesCreateAccepted %+v", 202, o.Payload) } func (o *NodesCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *NodesCreateAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNodesCreateDefault creates a NodesCreateDefault with default headers values func NewNodesCreateDefault(code int) *NodesCreateDefault { return &NodesCreateDefault{ _statusCode: code, } } /* NodesCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 262245 | The value provided was invalid. | | 1179795 | A node being added is already in the cluster. | | 1179813 | Fields set for one node must be set for all nodes. | | 1179817 | The IP address, subnet mask, and gateway must all be provided for cluster manangement interface. | | 1179818 | The IP address and gateway must be of the same family. | | 1179821 | An IP address and subnet mask conflicts with an existing entry. | | 131727360 | A node cannot be added to the cluster. This is a generic code, see response message for details. | */ type NodesCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the nodes create default response func (o *NodesCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this nodes create default response has a 2xx status code func (o *NodesCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this nodes create default response has a 3xx status code func (o *NodesCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this nodes create default response has a 4xx status code func (o *NodesCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this nodes create default response has a 5xx status code func (o *NodesCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this nodes create default response a status code equal to that given func (o *NodesCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NodesCreateDefault) Error() string { return fmt.Sprintf("[POST /cluster/nodes][%d] nodes_create default %+v", o._statusCode, o.Payload) } func (o *NodesCreateDefault) String() string { return fmt.Sprintf("[POST /cluster/nodes][%d] nodes_create default %+v", o._statusCode, o.Payload) } func (o *NodesCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NodesCreateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_dr_group_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_dr_group_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewMetroclusterDrGroupCreateParams creates a new MetroclusterDrGroupCreateParams 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 NewMetroclusterDrGroupCreateParams() *MetroclusterDrGroupCreateParams { return &MetroclusterDrGroupCreateParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterDrGroupCreateParamsWithTimeout creates a new MetroclusterDrGroupCreateParams object // with the ability to set a timeout on a request. func NewMetroclusterDrGroupCreateParamsWithTimeout(timeout time.Duration) *MetroclusterDrGroupCreateParams { return &MetroclusterDrGroupCreateParams{ timeout: timeout, } } // NewMetroclusterDrGroupCreateParamsWithContext creates a new MetroclusterDrGroupCreateParams object // with the ability to set a context for a request. func NewMetroclusterDrGroupCreateParamsWithContext(ctx context.Context) *MetroclusterDrGroupCreateParams { return &MetroclusterDrGroupCreateParams{ Context: ctx, } } // NewMetroclusterDrGroupCreateParamsWithHTTPClient creates a new MetroclusterDrGroupCreateParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterDrGroupCreateParamsWithHTTPClient(client *http.Client) *MetroclusterDrGroupCreateParams { return &MetroclusterDrGroupCreateParams{ HTTPClient: client, } } /* MetroclusterDrGroupCreateParams contains all the parameters to send to the API endpoint for the metrocluster dr group create operation. Typically these are written to a http.Request. */ type MetroclusterDrGroupCreateParams struct { /* Info. MetroCluster DR Group information */ Info *models.MetroclusterDrGroup /* ReturnRecords. The default is false. If set to true, the records are returned. */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster dr group create params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterDrGroupCreateParams) WithDefaults() *MetroclusterDrGroupCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster dr group create params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterDrGroupCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := MetroclusterDrGroupCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) WithTimeout(timeout time.Duration) *MetroclusterDrGroupCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) WithContext(ctx context.Context) *MetroclusterDrGroupCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) WithHTTPClient(client *http.Client) *MetroclusterDrGroupCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) WithInfo(info *models.MetroclusterDrGroup) *MetroclusterDrGroupCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) SetInfo(info *models.MetroclusterDrGroup) { o.Info = info } // WithReturnRecords adds the returnRecords to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) WithReturnRecords(returnRecords *bool) *MetroclusterDrGroupCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterDrGroupCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster dr group create params func (o *MetroclusterDrGroupCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *MetroclusterDrGroupCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewCounterRowCollectionGetParams creates a new CounterRowCollectionGetParams 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 NewCounterRowCollectionGetParams() *CounterRowCollectionGetParams { return &CounterRowCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewCounterRowCollectionGetParamsWithTimeout creates a new CounterRowCollectionGetParams object // with the ability to set a timeout on a request. func NewCounterRowCollectionGetParamsWithTimeout(timeout time.Duration) *CounterRowCollectionGetParams { return &CounterRowCollectionGetParams{ timeout: timeout, } } // NewCounterRowCollectionGetParamsWithContext creates a new CounterRowCollectionGetParams object // with the ability to set a context for a request. func NewCounterRowCollectionGetParamsWithContext(ctx context.Context) *CounterRowCollectionGetParams { return &CounterRowCollectionGetParams{ Context: ctx, } } // NewCounterRowCollectionGetParamsWithHTTPClient creates a new CounterRowCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewCounterRowCollectionGetParamsWithHTTPClient(client *http.Client) *CounterRowCollectionGetParams { return &CounterRowCollectionGetParams{ HTTPClient: client, } } /* CounterRowCollectionGetParams contains all the parameters to send to the API endpoint for the counter row collection get operation. Typically these are written to a http.Request. */ type CounterRowCollectionGetParams struct { /* AggregationComplete. Filter by aggregation.complete */ AggregationComplete *bool /* AggregationCount. Filter by aggregation.count */ AggregationCount *int64 /* CounterTableName. Counter table name. */ CounterTableName string /* CountersCountersLabel. Filter by counters.counters.label */ CountersCountersLabel *string /* CountersCountersValues. Filter by counters.counters.values */ CountersCountersValues *int64 /* CountersLabels. Filter by counters.labels */ CountersLabels *string /* CountersName. Filter by counters.name */ CountersName *string /* CountersValue. Filter by counters.value */ CountersValue *int64 /* CountersValues. Filter by counters.values */ CountersValues *int64 /* Fields. Specify the fields to return. */ Fields []string /* ID. Filter by id */ ID *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* PropertiesName. Filter by properties.name */ PropertiesName *string /* PropertiesValue. Filter by properties.value */ PropertiesValue *string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the counter row collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *CounterRowCollectionGetParams) WithDefaults() *CounterRowCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the counter row collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *CounterRowCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := CounterRowCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the counter row collection get params func (o *CounterRowCollectionGetParams) WithTimeout(timeout time.Duration) *CounterRowCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the counter row collection get params func (o *CounterRowCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the counter row collection get params func (o *CounterRowCollectionGetParams) WithContext(ctx context.Context) *CounterRowCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the counter row collection get params func (o *CounterRowCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the counter row collection get params func (o *CounterRowCollectionGetParams) WithHTTPClient(client *http.Client) *CounterRowCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the counter row collection get params func (o *CounterRowCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAggregationComplete adds the aggregationComplete to the counter row collection get params func (o *CounterRowCollectionGetParams) WithAggregationComplete(aggregationComplete *bool) *CounterRowCollectionGetParams { o.SetAggregationComplete(aggregationComplete) return o } // SetAggregationComplete adds the aggregationComplete to the counter row collection get params func (o *CounterRowCollectionGetParams) SetAggregationComplete(aggregationComplete *bool) { o.AggregationComplete = aggregationComplete } // WithAggregationCount adds the aggregationCount to the counter row collection get params func (o *CounterRowCollectionGetParams) WithAggregationCount(aggregationCount *int64) *CounterRowCollectionGetParams { o.SetAggregationCount(aggregationCount) return o } // SetAggregationCount adds the aggregationCount to the counter row collection get params func (o *CounterRowCollectionGetParams) SetAggregationCount(aggregationCount *int64) { o.AggregationCount = aggregationCount } // WithCounterTableName adds the counterTableName to the counter row collection get params func (o *CounterRowCollectionGetParams) WithCounterTableName(counterTableName string) *CounterRowCollectionGetParams { o.SetCounterTableName(counterTableName) return o } // SetCounterTableName adds the counterTableName to the counter row collection get params func (o *CounterRowCollectionGetParams) SetCounterTableName(counterTableName string) { o.CounterTableName = counterTableName } // WithCountersCountersLabel adds the countersCountersLabel to the counter row collection get params func (o *CounterRowCollectionGetParams) WithCountersCountersLabel(countersCountersLabel *string) *CounterRowCollectionGetParams { o.SetCountersCountersLabel(countersCountersLabel) return o } // SetCountersCountersLabel adds the countersCountersLabel to the counter row collection get params func (o *CounterRowCollectionGetParams) SetCountersCountersLabel(countersCountersLabel *string) { o.CountersCountersLabel = countersCountersLabel } // WithCountersCountersValues adds the countersCountersValues to the counter row collection get params func (o *CounterRowCollectionGetParams) WithCountersCountersValues(countersCountersValues *int64) *CounterRowCollectionGetParams { o.SetCountersCountersValues(countersCountersValues) return o } // SetCountersCountersValues adds the countersCountersValues to the counter row collection get params func (o *CounterRowCollectionGetParams) SetCountersCountersValues(countersCountersValues *int64) { o.CountersCountersValues = countersCountersValues } // WithCountersLabels adds the countersLabels to the counter row collection get params func (o *CounterRowCollectionGetParams) WithCountersLabels(countersLabels *string) *CounterRowCollectionGetParams { o.SetCountersLabels(countersLabels) return o } // SetCountersLabels adds the countersLabels to the counter row collection get params func (o *CounterRowCollectionGetParams) SetCountersLabels(countersLabels *string) { o.CountersLabels = countersLabels } // WithCountersName adds the countersName to the counter row collection get params func (o *CounterRowCollectionGetParams) WithCountersName(countersName *string) *CounterRowCollectionGetParams { o.SetCountersName(countersName) return o } // SetCountersName adds the countersName to the counter row collection get params func (o *CounterRowCollectionGetParams) SetCountersName(countersName *string) { o.CountersName = countersName } // WithCountersValue adds the countersValue to the counter row collection get params func (o *CounterRowCollectionGetParams) WithCountersValue(countersValue *int64) *CounterRowCollectionGetParams { o.SetCountersValue(countersValue) return o } // SetCountersValue adds the countersValue to the counter row collection get params func (o *CounterRowCollectionGetParams) SetCountersValue(countersValue *int64) { o.CountersValue = countersValue } // WithCountersValues adds the countersValues to the counter row collection get params func (o *CounterRowCollectionGetParams) WithCountersValues(countersValues *int64) *CounterRowCollectionGetParams { o.SetCountersValues(countersValues) return o } // SetCountersValues adds the countersValues to the counter row collection get params func (o *CounterRowCollectionGetParams) SetCountersValues(countersValues *int64) { o.CountersValues = countersValues } // WithFields adds the fields to the counter row collection get params func (o *CounterRowCollectionGetParams) WithFields(fields []string) *CounterRowCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the counter row collection get params func (o *CounterRowCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithID adds the id to the counter row collection get params func (o *CounterRowCollectionGetParams) WithID(id *string) *CounterRowCollectionGetParams { o.SetID(id) return o } // SetID adds the id to the counter row collection get params func (o *CounterRowCollectionGetParams) SetID(id *string) { o.ID = id } // WithMaxRecords adds the maxRecords to the counter row collection get params func (o *CounterRowCollectionGetParams) WithMaxRecords(maxRecords *int64) *CounterRowCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the counter row collection get params func (o *CounterRowCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the counter row collection get params func (o *CounterRowCollectionGetParams) WithOrderBy(orderBy []string) *CounterRowCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the counter row collection get params func (o *CounterRowCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPropertiesName adds the propertiesName to the counter row collection get params func (o *CounterRowCollectionGetParams) WithPropertiesName(propertiesName *string) *CounterRowCollectionGetParams { o.SetPropertiesName(propertiesName) return o } // SetPropertiesName adds the propertiesName to the counter row collection get params func (o *CounterRowCollectionGetParams) SetPropertiesName(propertiesName *string) { o.PropertiesName = propertiesName } // WithPropertiesValue adds the propertiesValue to the counter row collection get params func (o *CounterRowCollectionGetParams) WithPropertiesValue(propertiesValue *string) *CounterRowCollectionGetParams { o.SetPropertiesValue(propertiesValue) return o } // SetPropertiesValue adds the propertiesValue to the counter row collection get params func (o *CounterRowCollectionGetParams) SetPropertiesValue(propertiesValue *string) { o.PropertiesValue = propertiesValue } // WithReturnRecords adds the returnRecords to the counter row collection get params func (o *CounterRowCollectionGetParams) WithReturnRecords(returnRecords *bool) *CounterRowCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the counter row collection get params func (o *CounterRowCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the counter row collection get params func (o *CounterRowCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *CounterRowCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the counter row collection get params func (o *CounterRowCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *CounterRowCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AggregationComplete != nil { // query param aggregation.complete var qrAggregationComplete bool if o.AggregationComplete != nil { qrAggregationComplete = *o.AggregationComplete } qAggregationComplete := swag.FormatBool(qrAggregationComplete) if qAggregationComplete != "" { if err := r.SetQueryParam("aggregation.complete", qAggregationComplete); err != nil { return err } } } if o.AggregationCount != nil { // query param aggregation.count var qrAggregationCount int64 if o.AggregationCount != nil { qrAggregationCount = *o.AggregationCount } qAggregationCount := swag.FormatInt64(qrAggregationCount) if qAggregationCount != "" { if err := r.SetQueryParam("aggregation.count", qAggregationCount); err != nil { return err } } } // path param counter_table.name if err := r.SetPathParam("counter_table.name", o.CounterTableName); err != nil { return err } if o.CountersCountersLabel != nil { // query param counters.counters.label var qrCountersCountersLabel string if o.CountersCountersLabel != nil { qrCountersCountersLabel = *o.CountersCountersLabel } qCountersCountersLabel := qrCountersCountersLabel if qCountersCountersLabel != "" { if err := r.SetQueryParam("counters.counters.label", qCountersCountersLabel); err != nil { return err } } } if o.CountersCountersValues != nil { // query param counters.counters.values var qrCountersCountersValues int64 if o.CountersCountersValues != nil { qrCountersCountersValues = *o.CountersCountersValues } qCountersCountersValues := swag.FormatInt64(qrCountersCountersValues) if qCountersCountersValues != "" { if err := r.SetQueryParam("counters.counters.values", qCountersCountersValues); err != nil { return err } } } if o.CountersLabels != nil { // query param counters.labels var qrCountersLabels string if o.CountersLabels != nil { qrCountersLabels = *o.CountersLabels } qCountersLabels := qrCountersLabels if qCountersLabels != "" { if err := r.SetQueryParam("counters.labels", qCountersLabels); err != nil { return err } } } if o.CountersName != nil { // query param counters.name var qrCountersName string if o.CountersName != nil { qrCountersName = *o.CountersName } qCountersName := qrCountersName if qCountersName != "" { if err := r.SetQueryParam("counters.name", qCountersName); err != nil { return err } } } if o.CountersValue != nil { // query param counters.value var qrCountersValue int64 if o.CountersValue != nil { qrCountersValue = *o.CountersValue } qCountersValue := swag.FormatInt64(qrCountersValue) if qCountersValue != "" { if err := r.SetQueryParam("counters.value", qCountersValue); err != nil { return err } } } if o.CountersValues != nil { // query param counters.values var qrCountersValues int64 if o.CountersValues != nil { qrCountersValues = *o.CountersValues } qCountersValues := swag.FormatInt64(qrCountersValues) if qCountersValues != "" { if err := r.SetQueryParam("counters.values", qCountersValues); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.ID != nil { // query param id var qrID string if o.ID != nil { qrID = *o.ID } qID := qrID if qID != "" { if err := r.SetQueryParam("id", qID); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.PropertiesName != nil { // query param properties.name var qrPropertiesName string if o.PropertiesName != nil { qrPropertiesName = *o.PropertiesName } qPropertiesName := qrPropertiesName if qPropertiesName != "" { if err := r.SetQueryParam("properties.name", qPropertiesName); err != nil { return err } } } if o.PropertiesValue != nil { // query param properties.value var qrPropertiesValue string if o.PropertiesValue != nil { qrPropertiesValue = *o.PropertiesValue } qPropertiesValue := qrPropertiesValue if qPropertiesValue != "" { if err := r.SetQueryParam("properties.value", qPropertiesValue); err != nil { return err } } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamCounterRowCollectionGet binds the parameter fields func (o *CounterRowCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamCounterRowCollectionGet binds the parameter order_by func (o *CounterRowCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_operation_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_operation_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterOperationGetReader is a Reader for the MetroclusterOperationGet structure. type MetroclusterOperationGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterOperationGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMetroclusterOperationGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterOperationGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterOperationGetOK creates a MetroclusterOperationGetOK with default headers values func NewMetroclusterOperationGetOK() *MetroclusterOperationGetOK { return &MetroclusterOperationGetOK{} } /* MetroclusterOperationGetOK describes a response with status code 200, with default header values. OK */ type MetroclusterOperationGetOK struct { Payload *models.MetroclusterOperation } // IsSuccess returns true when this metrocluster operation get o k response has a 2xx status code func (o *MetroclusterOperationGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster operation get o k response has a 3xx status code func (o *MetroclusterOperationGetOK) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster operation get o k response has a 4xx status code func (o *MetroclusterOperationGetOK) IsClientError() bool { return false } // IsServerError returns true when this metrocluster operation get o k response has a 5xx status code func (o *MetroclusterOperationGetOK) IsServerError() bool { return false } // IsCode returns true when this metrocluster operation get o k response a status code equal to that given func (o *MetroclusterOperationGetOK) IsCode(code int) bool { return code == 200 } func (o *MetroclusterOperationGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations/{uuid}][%d] metroclusterOperationGetOK %+v", 200, o.Payload) } func (o *MetroclusterOperationGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations/{uuid}][%d] metroclusterOperationGetOK %+v", 200, o.Payload) } func (o *MetroclusterOperationGetOK) GetPayload() *models.MetroclusterOperation { return o.Payload } func (o *MetroclusterOperationGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MetroclusterOperation) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterOperationGetDefault creates a MetroclusterOperationGetDefault with default headers values func NewMetroclusterOperationGetDefault(code int) *MetroclusterOperationGetDefault { return &MetroclusterOperationGetDefault{ _statusCode: code, } } /* MetroclusterOperationGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | */ type MetroclusterOperationGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster operation get default response func (o *MetroclusterOperationGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster operation get default response has a 2xx status code func (o *MetroclusterOperationGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster operation get default response has a 3xx status code func (o *MetroclusterOperationGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster operation get default response has a 4xx status code func (o *MetroclusterOperationGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster operation get default response has a 5xx status code func (o *MetroclusterOperationGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster operation get default response a status code equal to that given func (o *MetroclusterOperationGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterOperationGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations/{uuid}][%d] metrocluster_operation_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterOperationGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations/{uuid}][%d] metrocluster_operation_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterOperationGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterOperationGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewSoftwareGetParams creates a new SoftwareGetParams 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 NewSoftwareGetParams() *SoftwareGetParams { return &SoftwareGetParams{ timeout: cr.DefaultTimeout, } } // NewSoftwareGetParamsWithTimeout creates a new SoftwareGetParams object // with the ability to set a timeout on a request. func NewSoftwareGetParamsWithTimeout(timeout time.Duration) *SoftwareGetParams { return &SoftwareGetParams{ timeout: timeout, } } // NewSoftwareGetParamsWithContext creates a new SoftwareGetParams object // with the ability to set a context for a request. func NewSoftwareGetParamsWithContext(ctx context.Context) *SoftwareGetParams { return &SoftwareGetParams{ Context: ctx, } } // NewSoftwareGetParamsWithHTTPClient creates a new SoftwareGetParams object // with the ability to set a custom HTTPClient for a request. func NewSoftwareGetParamsWithHTTPClient(client *http.Client) *SoftwareGetParams { return &SoftwareGetParams{ HTTPClient: client, } } /* SoftwareGetParams contains all the parameters to send to the API endpoint for the software get operation. Typically these are written to a http.Request. */ type SoftwareGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the software get params (not the query body). // // All values with no default are reset to their zero value. func (o *SoftwareGetParams) WithDefaults() *SoftwareGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the software get params (not the query body). // // All values with no default are reset to their zero value. func (o *SoftwareGetParams) SetDefaults() { var ( returnTimeoutDefault = int64(15) ) val := SoftwareGetParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the software get params func (o *SoftwareGetParams) WithTimeout(timeout time.Duration) *SoftwareGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the software get params func (o *SoftwareGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the software get params func (o *SoftwareGetParams) WithContext(ctx context.Context) *SoftwareGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the software get params func (o *SoftwareGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the software get params func (o *SoftwareGetParams) WithHTTPClient(client *http.Client) *SoftwareGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the software get params func (o *SoftwareGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the software get params func (o *SoftwareGetParams) WithFields(fields []string) *SoftwareGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the software get params func (o *SoftwareGetParams) SetFields(fields []string) { o.Fields = fields } // WithReturnTimeout adds the returnTimeout to the software get params func (o *SoftwareGetParams) WithReturnTimeout(returnTimeout *int64) *SoftwareGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the software get params func (o *SoftwareGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *SoftwareGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSoftwareGet binds the parameter fields func (o *SoftwareGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewClusterNtpKeysModifyParams creates a new ClusterNtpKeysModifyParams 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 NewClusterNtpKeysModifyParams() *ClusterNtpKeysModifyParams { return &ClusterNtpKeysModifyParams{ timeout: cr.DefaultTimeout, } } // NewClusterNtpKeysModifyParamsWithTimeout creates a new ClusterNtpKeysModifyParams object // with the ability to set a timeout on a request. func NewClusterNtpKeysModifyParamsWithTimeout(timeout time.Duration) *ClusterNtpKeysModifyParams { return &ClusterNtpKeysModifyParams{ timeout: timeout, } } // NewClusterNtpKeysModifyParamsWithContext creates a new ClusterNtpKeysModifyParams object // with the ability to set a context for a request. func NewClusterNtpKeysModifyParamsWithContext(ctx context.Context) *ClusterNtpKeysModifyParams { return &ClusterNtpKeysModifyParams{ Context: ctx, } } // NewClusterNtpKeysModifyParamsWithHTTPClient creates a new ClusterNtpKeysModifyParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNtpKeysModifyParamsWithHTTPClient(client *http.Client) *ClusterNtpKeysModifyParams { return &ClusterNtpKeysModifyParams{ HTTPClient: client, } } /* ClusterNtpKeysModifyParams contains all the parameters to send to the API endpoint for the cluster ntp keys modify operation. Typically these are written to a http.Request. */ type ClusterNtpKeysModifyParams struct { /* ID. Key identifier */ ID int64 /* Info. Information specification */ Info *models.NtpKey timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ntp keys modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpKeysModifyParams) WithDefaults() *ClusterNtpKeysModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ntp keys modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpKeysModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) WithTimeout(timeout time.Duration) *ClusterNtpKeysModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) WithContext(ctx context.Context) *ClusterNtpKeysModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) WithHTTPClient(client *http.Client) *ClusterNtpKeysModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithID adds the id to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) WithID(id int64) *ClusterNtpKeysModifyParams { o.SetID(id) return o } // SetID adds the id to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) SetID(id int64) { o.ID = id } // WithInfo adds the info to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) WithInfo(info *models.NtpKey) *ClusterNtpKeysModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster ntp keys modify params func (o *ClusterNtpKeysModifyParams) SetInfo(info *models.NtpKey) { o.Info = info } // WriteToRequest writes these params to a swagger request func (o *ClusterNtpKeysModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param id if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil { return err } if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // LicenseManagerModifyReader is a Reader for the LicenseManagerModify structure. type LicenseManagerModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LicenseManagerModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewLicenseManagerModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLicenseManagerModifyDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewLicenseManagerModifyAccepted creates a LicenseManagerModifyAccepted with default headers values func NewLicenseManagerModifyAccepted() *LicenseManagerModifyAccepted { return &LicenseManagerModifyAccepted{} } /* LicenseManagerModifyAccepted describes a response with status code 202, with default header values. Accepted */ type LicenseManagerModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this license manager modify accepted response has a 2xx status code func (o *LicenseManagerModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this license manager modify accepted response has a 3xx status code func (o *LicenseManagerModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this license manager modify accepted response has a 4xx status code func (o *LicenseManagerModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this license manager modify accepted response has a 5xx status code func (o *LicenseManagerModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this license manager modify accepted response a status code equal to that given func (o *LicenseManagerModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *LicenseManagerModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /cluster/licensing/license-managers/{uuid}][%d] licenseManagerModifyAccepted %+v", 202, o.Payload) } func (o *LicenseManagerModifyAccepted) String() string { return fmt.Sprintf("[PATCH /cluster/licensing/license-managers/{uuid}][%d] licenseManagerModifyAccepted %+v", 202, o.Payload) } func (o *LicenseManagerModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *LicenseManagerModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLicenseManagerModifyDefault creates a LicenseManagerModifyDefault with default headers values func NewLicenseManagerModifyDefault(code int) *LicenseManagerModifyDefault { return &LicenseManagerModifyDefault{ _statusCode: code, } } /* LicenseManagerModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1115532 | The requested update to the license manager information failed. | */ type LicenseManagerModifyDefault struct { _statusCode int Payload *models.ErrorResponses } // Code gets the status code for the license manager modify default response func (o *LicenseManagerModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this license manager modify default response has a 2xx status code func (o *LicenseManagerModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this license manager modify default response has a 3xx status code func (o *LicenseManagerModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this license manager modify default response has a 4xx status code func (o *LicenseManagerModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this license manager modify default response has a 5xx status code func (o *LicenseManagerModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this license manager modify default response a status code equal to that given func (o *LicenseManagerModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LicenseManagerModifyDefault) Error() string { return fmt.Sprintf("[PATCH /cluster/licensing/license-managers/{uuid}][%d] license_manager_modify default %+v", o._statusCode, o.Payload) } func (o *LicenseManagerModifyDefault) String() string { return fmt.Sprintf("[PATCH /cluster/licensing/license-managers/{uuid}][%d] license_manager_modify default %+v", o._statusCode, o.Payload) } func (o *LicenseManagerModifyDefault) GetPayload() *models.ErrorResponses { return o.Payload } func (o *LicenseManagerModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponses) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/sensors_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/sensors_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SensorsCollectionGetReader is a Reader for the SensorsCollectionGet structure. type SensorsCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SensorsCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSensorsCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSensorsCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewSensorsCollectionGetOK creates a SensorsCollectionGetOK with default headers values func NewSensorsCollectionGetOK() *SensorsCollectionGetOK { return &SensorsCollectionGetOK{} } /* SensorsCollectionGetOK describes a response with status code 200, with default header values. OK */ type SensorsCollectionGetOK struct { Payload *models.SensorsResponse } // IsSuccess returns true when this sensors collection get o k response has a 2xx status code func (o *SensorsCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this sensors collection get o k response has a 3xx status code func (o *SensorsCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this sensors collection get o k response has a 4xx status code func (o *SensorsCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this sensors collection get o k response has a 5xx status code func (o *SensorsCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this sensors collection get o k response a status code equal to that given func (o *SensorsCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *SensorsCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/sensors][%d] sensorsCollectionGetOK %+v", 200, o.Payload) } func (o *SensorsCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/sensors][%d] sensorsCollectionGetOK %+v", 200, o.Payload) } func (o *SensorsCollectionGetOK) GetPayload() *models.SensorsResponse { return o.Payload } func (o *SensorsCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SensorsResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSensorsCollectionGetDefault creates a SensorsCollectionGetDefault with default headers values func NewSensorsCollectionGetDefault(code int) *SensorsCollectionGetDefault { return &SensorsCollectionGetDefault{ _statusCode: code, } } /* SensorsCollectionGetDefault describes a response with status code -1, with default header values. Error */ type SensorsCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the sensors collection get default response func (o *SensorsCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this sensors collection get default response has a 2xx status code func (o *SensorsCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this sensors collection get default response has a 3xx status code func (o *SensorsCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this sensors collection get default response has a 4xx status code func (o *SensorsCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this sensors collection get default response has a 5xx status code func (o *SensorsCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this sensors collection get default response a status code equal to that given func (o *SensorsCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SensorsCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/sensors][%d] sensors_collection_get default %+v", o._statusCode, o.Payload) } func (o *SensorsCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/sensors][%d] sensors_collection_get default %+v", o._statusCode, o.Payload) } func (o *SensorsCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SensorsCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_svm_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_svm_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterSvmGetReader is a Reader for the MetroclusterSvmGet structure. type MetroclusterSvmGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterSvmGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMetroclusterSvmGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterSvmGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterSvmGetOK creates a MetroclusterSvmGetOK with default headers values func NewMetroclusterSvmGetOK() *MetroclusterSvmGetOK { return &MetroclusterSvmGetOK{} } /* MetroclusterSvmGetOK describes a response with status code 200, with default header values. OK */ type MetroclusterSvmGetOK struct { Payload *models.MetroclusterSvm } // IsSuccess returns true when this metrocluster svm get o k response has a 2xx status code func (o *MetroclusterSvmGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster svm get o k response has a 3xx status code func (o *MetroclusterSvmGetOK) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster svm get o k response has a 4xx status code func (o *MetroclusterSvmGetOK) IsClientError() bool { return false } // IsServerError returns true when this metrocluster svm get o k response has a 5xx status code func (o *MetroclusterSvmGetOK) IsServerError() bool { return false } // IsCode returns true when this metrocluster svm get o k response a status code equal to that given func (o *MetroclusterSvmGetOK) IsCode(code int) bool { return code == 200 } func (o *MetroclusterSvmGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/svms/{cluster.uuid}/{svm.uuid}][%d] metroclusterSvmGetOK %+v", 200, o.Payload) } func (o *MetroclusterSvmGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/svms/{cluster.uuid}/{svm.uuid}][%d] metroclusterSvmGetOK %+v", 200, o.Payload) } func (o *MetroclusterSvmGetOK) GetPayload() *models.MetroclusterSvm { return o.Payload } func (o *MetroclusterSvmGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MetroclusterSvm) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterSvmGetDefault creates a MetroclusterSvmGetDefault with default headers values func NewMetroclusterSvmGetDefault(code int) *MetroclusterSvmGetDefault { return &MetroclusterSvmGetDefault{ _statusCode: code, } } /* MetroclusterSvmGetDefault describes a response with status code -1, with default header values. Error */ type MetroclusterSvmGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster svm get default response func (o *MetroclusterSvmGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster svm get default response has a 2xx status code func (o *MetroclusterSvmGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster svm get default response has a 3xx status code func (o *MetroclusterSvmGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster svm get default response has a 4xx status code func (o *MetroclusterSvmGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster svm get default response has a 5xx status code func (o *MetroclusterSvmGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster svm get default response a status code equal to that given func (o *MetroclusterSvmGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterSvmGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/svms/{cluster.uuid}/{svm.uuid}][%d] metrocluster_svm_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterSvmGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/svms/{cluster.uuid}/{svm.uuid}][%d] metrocluster_svm_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterSvmGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterSvmGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // LicenseManagerCollectionGetReader is a Reader for the LicenseManagerCollectionGet structure. type LicenseManagerCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LicenseManagerCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLicenseManagerCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLicenseManagerCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewLicenseManagerCollectionGetOK creates a LicenseManagerCollectionGetOK with default headers values func NewLicenseManagerCollectionGetOK() *LicenseManagerCollectionGetOK { return &LicenseManagerCollectionGetOK{} } /* LicenseManagerCollectionGetOK describes a response with status code 200, with default header values. OK */ type LicenseManagerCollectionGetOK struct { Payload *models.LicenseManagerResponse } // IsSuccess returns true when this license manager collection get o k response has a 2xx status code func (o *LicenseManagerCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this license manager collection get o k response has a 3xx status code func (o *LicenseManagerCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this license manager collection get o k response has a 4xx status code func (o *LicenseManagerCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this license manager collection get o k response has a 5xx status code func (o *LicenseManagerCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this license manager collection get o k response a status code equal to that given func (o *LicenseManagerCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *LicenseManagerCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers][%d] licenseManagerCollectionGetOK %+v", 200, o.Payload) } func (o *LicenseManagerCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers][%d] licenseManagerCollectionGetOK %+v", 200, o.Payload) } func (o *LicenseManagerCollectionGetOK) GetPayload() *models.LicenseManagerResponse { return o.Payload } func (o *LicenseManagerCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.LicenseManagerResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLicenseManagerCollectionGetDefault creates a LicenseManagerCollectionGetDefault with default headers values func NewLicenseManagerCollectionGetDefault(code int) *LicenseManagerCollectionGetDefault { return &LicenseManagerCollectionGetDefault{ _statusCode: code, } } /* LicenseManagerCollectionGetDefault describes a response with status code -1, with default header values. Error */ type LicenseManagerCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the license manager collection get default response func (o *LicenseManagerCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this license manager collection get default response has a 2xx status code func (o *LicenseManagerCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this license manager collection get default response has a 3xx status code func (o *LicenseManagerCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this license manager collection get default response has a 4xx status code func (o *LicenseManagerCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this license manager collection get default response has a 5xx status code func (o *LicenseManagerCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this license manager collection get default response a status code equal to that given func (o *LicenseManagerCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LicenseManagerCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers][%d] license_manager_collection_get default %+v", o._statusCode, o.Payload) } func (o *LicenseManagerCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/licensing/license-managers][%d] license_manager_collection_get default %+v", o._statusCode, o.Payload) } func (o *LicenseManagerCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LicenseManagerCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/job_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/job_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewJobCollectionGetParams creates a new JobCollectionGetParams 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 NewJobCollectionGetParams() *JobCollectionGetParams { return &JobCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewJobCollectionGetParamsWithTimeout creates a new JobCollectionGetParams object // with the ability to set a timeout on a request. func NewJobCollectionGetParamsWithTimeout(timeout time.Duration) *JobCollectionGetParams { return &JobCollectionGetParams{ timeout: timeout, } } // NewJobCollectionGetParamsWithContext creates a new JobCollectionGetParams object // with the ability to set a context for a request. func NewJobCollectionGetParamsWithContext(ctx context.Context) *JobCollectionGetParams { return &JobCollectionGetParams{ Context: ctx, } } // NewJobCollectionGetParamsWithHTTPClient creates a new JobCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewJobCollectionGetParamsWithHTTPClient(client *http.Client) *JobCollectionGetParams { return &JobCollectionGetParams{ HTTPClient: client, } } /* JobCollectionGetParams contains all the parameters to send to the API endpoint for the job collection get operation. Typically these are written to a http.Request. */ type JobCollectionGetParams struct { /* Code. Filter by code */ Code *int64 /* Description. Filter by description */ Description *string /* EndTime. Filter by end_time */ EndTime *string /* ErrorArgumentsCode. Filter by error.arguments.code */ ErrorArgumentsCode *string /* ErrorArgumentsMessage. Filter by error.arguments.message */ ErrorArgumentsMessage *string /* ErrorCode. Filter by error.code */ ErrorCode *string /* ErrorMessage. Filter by error.message */ ErrorMessage *string /* ErrorTarget. Filter by error.target */ ErrorTarget *string /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Message. Filter by message */ Message *string /* NodeName. Filter by node.name */ NodeName *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* StartTime. Filter by start_time */ StartTime *string /* State. Filter by state */ State *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the job collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *JobCollectionGetParams) WithDefaults() *JobCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the job collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *JobCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := JobCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the job collection get params func (o *JobCollectionGetParams) WithTimeout(timeout time.Duration) *JobCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the job collection get params func (o *JobCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the job collection get params func (o *JobCollectionGetParams) WithContext(ctx context.Context) *JobCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the job collection get params func (o *JobCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the job collection get params func (o *JobCollectionGetParams) WithHTTPClient(client *http.Client) *JobCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the job collection get params func (o *JobCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCode adds the code to the job collection get params func (o *JobCollectionGetParams) WithCode(code *int64) *JobCollectionGetParams { o.SetCode(code) return o } // SetCode adds the code to the job collection get params func (o *JobCollectionGetParams) SetCode(code *int64) { o.Code = code } // WithDescription adds the description to the job collection get params func (o *JobCollectionGetParams) WithDescription(description *string) *JobCollectionGetParams { o.SetDescription(description) return o } // SetDescription adds the description to the job collection get params func (o *JobCollectionGetParams) SetDescription(description *string) { o.Description = description } // WithEndTime adds the endTime to the job collection get params func (o *JobCollectionGetParams) WithEndTime(endTime *string) *JobCollectionGetParams { o.SetEndTime(endTime) return o } // SetEndTime adds the endTime to the job collection get params func (o *JobCollectionGetParams) SetEndTime(endTime *string) { o.EndTime = endTime } // WithErrorArgumentsCode adds the errorArgumentsCode to the job collection get params func (o *JobCollectionGetParams) WithErrorArgumentsCode(errorArgumentsCode *string) *JobCollectionGetParams { o.SetErrorArgumentsCode(errorArgumentsCode) return o } // SetErrorArgumentsCode adds the errorArgumentsCode to the job collection get params func (o *JobCollectionGetParams) SetErrorArgumentsCode(errorArgumentsCode *string) { o.ErrorArgumentsCode = errorArgumentsCode } // WithErrorArgumentsMessage adds the errorArgumentsMessage to the job collection get params func (o *JobCollectionGetParams) WithErrorArgumentsMessage(errorArgumentsMessage *string) *JobCollectionGetParams { o.SetErrorArgumentsMessage(errorArgumentsMessage) return o } // SetErrorArgumentsMessage adds the errorArgumentsMessage to the job collection get params func (o *JobCollectionGetParams) SetErrorArgumentsMessage(errorArgumentsMessage *string) { o.ErrorArgumentsMessage = errorArgumentsMessage } // WithErrorCode adds the errorCode to the job collection get params func (o *JobCollectionGetParams) WithErrorCode(errorCode *string) *JobCollectionGetParams { o.SetErrorCode(errorCode) return o } // SetErrorCode adds the errorCode to the job collection get params func (o *JobCollectionGetParams) SetErrorCode(errorCode *string) { o.ErrorCode = errorCode } // WithErrorMessage adds the errorMessage to the job collection get params func (o *JobCollectionGetParams) WithErrorMessage(errorMessage *string) *JobCollectionGetParams { o.SetErrorMessage(errorMessage) return o } // SetErrorMessage adds the errorMessage to the job collection get params func (o *JobCollectionGetParams) SetErrorMessage(errorMessage *string) { o.ErrorMessage = errorMessage } // WithErrorTarget adds the errorTarget to the job collection get params func (o *JobCollectionGetParams) WithErrorTarget(errorTarget *string) *JobCollectionGetParams { o.SetErrorTarget(errorTarget) return o } // SetErrorTarget adds the errorTarget to the job collection get params func (o *JobCollectionGetParams) SetErrorTarget(errorTarget *string) { o.ErrorTarget = errorTarget } // WithFields adds the fields to the job collection get params func (o *JobCollectionGetParams) WithFields(fields []string) *JobCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the job collection get params func (o *JobCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the job collection get params func (o *JobCollectionGetParams) WithMaxRecords(maxRecords *int64) *JobCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the job collection get params func (o *JobCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMessage adds the message to the job collection get params func (o *JobCollectionGetParams) WithMessage(message *string) *JobCollectionGetParams { o.SetMessage(message) return o } // SetMessage adds the message to the job collection get params func (o *JobCollectionGetParams) SetMessage(message *string) { o.Message = message } // WithNodeName adds the nodeName to the job collection get params func (o *JobCollectionGetParams) WithNodeName(nodeName *string) *JobCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the job collection get params func (o *JobCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithOrderBy adds the orderBy to the job collection get params func (o *JobCollectionGetParams) WithOrderBy(orderBy []string) *JobCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the job collection get params func (o *JobCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the job collection get params func (o *JobCollectionGetParams) WithReturnRecords(returnRecords *bool) *JobCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the job collection get params func (o *JobCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the job collection get params func (o *JobCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *JobCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the job collection get params func (o *JobCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithStartTime adds the startTime to the job collection get params func (o *JobCollectionGetParams) WithStartTime(startTime *string) *JobCollectionGetParams { o.SetStartTime(startTime) return o } // SetStartTime adds the startTime to the job collection get params func (o *JobCollectionGetParams) SetStartTime(startTime *string) { o.StartTime = startTime } // WithState adds the state to the job collection get params func (o *JobCollectionGetParams) WithState(state *string) *JobCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the job collection get params func (o *JobCollectionGetParams) SetState(state *string) { o.State = state } // WithSvmName adds the svmName to the job collection get params func (o *JobCollectionGetParams) WithSvmName(svmName *string) *JobCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the job collection get params func (o *JobCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the job collection get params func (o *JobCollectionGetParams) WithSvmUUID(svmUUID *string) *JobCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the job collection get params func (o *JobCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithUUID adds the uuid to the job collection get params func (o *JobCollectionGetParams) WithUUID(uuid *string) *JobCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the job collection get params func (o *JobCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *JobCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Code != nil { // query param code var qrCode int64 if o.Code != nil { qrCode = *o.Code } qCode := swag.FormatInt64(qrCode) if qCode != "" { if err := r.SetQueryParam("code", qCode); err != nil { return err } } } if o.Description != nil { // query param description var qrDescription string if o.Description != nil { qrDescription = *o.Description } qDescription := qrDescription if qDescription != "" { if err := r.SetQueryParam("description", qDescription); err != nil { return err } } } if o.EndTime != nil { // query param end_time var qrEndTime string if o.EndTime != nil { qrEndTime = *o.EndTime } qEndTime := qrEndTime if qEndTime != "" { if err := r.SetQueryParam("end_time", qEndTime); err != nil { return err } } } if o.ErrorArgumentsCode != nil { // query param error.arguments.code var qrErrorArgumentsCode string if o.ErrorArgumentsCode != nil { qrErrorArgumentsCode = *o.ErrorArgumentsCode } qErrorArgumentsCode := qrErrorArgumentsCode if qErrorArgumentsCode != "" { if err := r.SetQueryParam("error.arguments.code", qErrorArgumentsCode); err != nil { return err } } } if o.ErrorArgumentsMessage != nil { // query param error.arguments.message var qrErrorArgumentsMessage string if o.ErrorArgumentsMessage != nil { qrErrorArgumentsMessage = *o.ErrorArgumentsMessage } qErrorArgumentsMessage := qrErrorArgumentsMessage if qErrorArgumentsMessage != "" { if err := r.SetQueryParam("error.arguments.message", qErrorArgumentsMessage); err != nil { return err } } } if o.ErrorCode != nil { // query param error.code var qrErrorCode string if o.ErrorCode != nil { qrErrorCode = *o.ErrorCode } qErrorCode := qrErrorCode if qErrorCode != "" { if err := r.SetQueryParam("error.code", qErrorCode); err != nil { return err } } } if o.ErrorMessage != nil { // query param error.message var qrErrorMessage string if o.ErrorMessage != nil { qrErrorMessage = *o.ErrorMessage } qErrorMessage := qrErrorMessage if qErrorMessage != "" { if err := r.SetQueryParam("error.message", qErrorMessage); err != nil { return err } } } if o.ErrorTarget != nil { // query param error.target var qrErrorTarget string if o.ErrorTarget != nil { qrErrorTarget = *o.ErrorTarget } qErrorTarget := qrErrorTarget if qErrorTarget != "" { if err := r.SetQueryParam("error.target", qErrorTarget); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.Message != nil { // query param message var qrMessage string if o.Message != nil { qrMessage = *o.Message } qMessage := qrMessage if qMessage != "" { if err := r.SetQueryParam("message", qMessage); err != nil { return err } } } if o.NodeName != nil { // query param node.name var qrNodeName string if o.NodeName != nil { qrNodeName = *o.NodeName } qNodeName := qrNodeName if qNodeName != "" { if err := r.SetQueryParam("node.name", qNodeName); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.StartTime != nil { // query param start_time var qrStartTime string if o.StartTime != nil { qrStartTime = *o.StartTime } qStartTime := qrStartTime if qStartTime != "" { if err := r.SetQueryParam("start_time", qStartTime); err != nil { return err } } } if o.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if o.SvmName != nil { // query param svm.name var qrSvmName string if o.SvmName != nil { qrSvmName = *o.SvmName } qSvmName := qrSvmName if qSvmName != "" { if err := r.SetQueryParam("svm.name", qSvmName); err != nil { return err } } } if o.SvmUUID != nil { // query param svm.uuid var qrSvmUUID string if o.SvmUUID != nil { qrSvmUUID = *o.SvmUUID } qSvmUUID := qrSvmUUID if qSvmUUID != "" { if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamJobCollectionGet binds the parameter fields func (o *JobCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamJobCollectionGet binds the parameter order_by func (o *JobCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/nodes_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/nodes_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NodesGetReader is a Reader for the NodesGet structure. type NodesGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NodesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNodesGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNodesGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewNodesGetOK creates a NodesGetOK with default headers values func NewNodesGetOK() *NodesGetOK { return &NodesGetOK{} } /* NodesGetOK describes a response with status code 200, with default header values. OK */ type NodesGetOK struct { Payload *models.NodeResponse } // IsSuccess returns true when this nodes get o k response has a 2xx status code func (o *NodesGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this nodes get o k response has a 3xx status code func (o *NodesGetOK) IsRedirect() bool { return false } // IsClientError returns true when this nodes get o k response has a 4xx status code func (o *NodesGetOK) IsClientError() bool { return false } // IsServerError returns true when this nodes get o k response has a 5xx status code func (o *NodesGetOK) IsServerError() bool { return false } // IsCode returns true when this nodes get o k response a status code equal to that given func (o *NodesGetOK) IsCode(code int) bool { return code == 200 } func (o *NodesGetOK) Error() string { return fmt.Sprintf("[GET /cluster/nodes][%d] nodesGetOK %+v", 200, o.Payload) } func (o *NodesGetOK) String() string { return fmt.Sprintf("[GET /cluster/nodes][%d] nodesGetOK %+v", 200, o.Payload) } func (o *NodesGetOK) GetPayload() *models.NodeResponse { return o.Payload } func (o *NodesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NodeResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNodesGetDefault creates a NodesGetDefault with default headers values func NewNodesGetDefault(code int) *NodesGetDefault { return &NodesGetDefault{ _statusCode: code, } } /* NodesGetDefault describes a response with status code -1, with default header values. Error */ type NodesGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the nodes get default response func (o *NodesGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this nodes get default response has a 2xx status code func (o *NodesGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this nodes get default response has a 3xx status code func (o *NodesGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this nodes get default response has a 4xx status code func (o *NodesGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this nodes get default response has a 5xx status code func (o *NodesGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this nodes get default response a status code equal to that given func (o *NodesGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NodesGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/nodes][%d] nodes_get default %+v", o._statusCode, o.Payload) } func (o *NodesGetDefault) String() string { return fmt.Sprintf("[GET /cluster/nodes][%d] nodes_get default %+v", o._statusCode, o.Payload) } func (o *NodesGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NodesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // LicenseDeleteReader is a Reader for the LicenseDelete structure. type LicenseDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LicenseDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLicenseDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLicenseDeleteDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewLicenseDeleteOK creates a LicenseDeleteOK with default headers values func NewLicenseDeleteOK() *LicenseDeleteOK { return &LicenseDeleteOK{} } /* LicenseDeleteOK describes a response with status code 200, with default header values. OK */ type LicenseDeleteOK struct { } // IsSuccess returns true when this license delete o k response has a 2xx status code func (o *LicenseDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this license delete o k response has a 3xx status code func (o *LicenseDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this license delete o k response has a 4xx status code func (o *LicenseDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this license delete o k response has a 5xx status code func (o *LicenseDeleteOK) IsServerError() bool { return false } // IsCode returns true when this license delete o k response a status code equal to that given func (o *LicenseDeleteOK) IsCode(code int) bool { return code == 200 } func (o *LicenseDeleteOK) Error() string { return fmt.Sprintf("[DELETE /cluster/licensing/licenses/{name}][%d] licenseDeleteOK ", 200) } func (o *LicenseDeleteOK) String() string { return fmt.Sprintf("[DELETE /cluster/licensing/licenses/{name}][%d] licenseDeleteOK ", 200) } func (o *LicenseDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewLicenseDeleteDefault creates a LicenseDeleteDefault with default headers values func NewLicenseDeleteDefault(code int) *LicenseDeleteDefault { return &LicenseDeleteDefault{ _statusCode: code, } } /* LicenseDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 525028 | Error during volume limit check, cannot remove license | | 525029 | Current volume use will exceed limits if license is removed | | 1115137 | Cluster license requires a base license to be installed | | 1115144 | Cloud licenses cannot be deleted | | 1115178 | A tier license that is still in use cannot be deleted | | 1115213 | License is still in use and cannot be removed | | 1115406 | Capacity pool licenses cannot be deleted | | 1115564 | Package is part of a NLFv2 license and cannot be removed individually | | 66846823 | A FlexCache license that is still in use cannot be deleted | */ type LicenseDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the license delete default response func (o *LicenseDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this license delete default response has a 2xx status code func (o *LicenseDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this license delete default response has a 3xx status code func (o *LicenseDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this license delete default response has a 4xx status code func (o *LicenseDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this license delete default response has a 5xx status code func (o *LicenseDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this license delete default response a status code equal to that given func (o *LicenseDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LicenseDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /cluster/licensing/licenses/{name}][%d] license_delete default %+v", o._statusCode, o.Payload) } func (o *LicenseDeleteDefault) String() string { return fmt.Sprintf("[DELETE /cluster/licensing/licenses/{name}][%d] license_delete default %+v", o._statusCode, o.Payload) } func (o *LicenseDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LicenseDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_operation_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_operation_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterOperationCollectionGetReader is a Reader for the MetroclusterOperationCollectionGet structure. type MetroclusterOperationCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterOperationCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMetroclusterOperationCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterOperationCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterOperationCollectionGetOK creates a MetroclusterOperationCollectionGetOK with default headers values func NewMetroclusterOperationCollectionGetOK() *MetroclusterOperationCollectionGetOK { return &MetroclusterOperationCollectionGetOK{} } /* MetroclusterOperationCollectionGetOK describes a response with status code 200, with default header values. OK */ type MetroclusterOperationCollectionGetOK struct { Payload *models.MetroclusterOperationResponse } // IsSuccess returns true when this metrocluster operation collection get o k response has a 2xx status code func (o *MetroclusterOperationCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster operation collection get o k response has a 3xx status code func (o *MetroclusterOperationCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster operation collection get o k response has a 4xx status code func (o *MetroclusterOperationCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this metrocluster operation collection get o k response has a 5xx status code func (o *MetroclusterOperationCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this metrocluster operation collection get o k response a status code equal to that given func (o *MetroclusterOperationCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *MetroclusterOperationCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations][%d] metroclusterOperationCollectionGetOK %+v", 200, o.Payload) } func (o *MetroclusterOperationCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations][%d] metroclusterOperationCollectionGetOK %+v", 200, o.Payload) } func (o *MetroclusterOperationCollectionGetOK) GetPayload() *models.MetroclusterOperationResponse { return o.Payload } func (o *MetroclusterOperationCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MetroclusterOperationResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterOperationCollectionGetDefault creates a MetroclusterOperationCollectionGetDefault with default headers values func NewMetroclusterOperationCollectionGetDefault(code int) *MetroclusterOperationCollectionGetDefault { return &MetroclusterOperationCollectionGetDefault{ _statusCode: code, } } /* MetroclusterOperationCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | */ type MetroclusterOperationCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster operation collection get default response func (o *MetroclusterOperationCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster operation collection get default response has a 2xx status code func (o *MetroclusterOperationCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster operation collection get default response has a 3xx status code func (o *MetroclusterOperationCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster operation collection get default response has a 4xx status code func (o *MetroclusterOperationCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster operation collection get default response has a 5xx status code func (o *MetroclusterOperationCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster operation collection get default response a status code equal to that given func (o *MetroclusterOperationCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterOperationCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations][%d] metrocluster_operation_collection_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterOperationCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/operations][%d] metrocluster_operation_collection_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterOperationCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterOperationCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewScheduleCollectionGetParams creates a new ScheduleCollectionGetParams 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 NewScheduleCollectionGetParams() *ScheduleCollectionGetParams { return &ScheduleCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewScheduleCollectionGetParamsWithTimeout creates a new ScheduleCollectionGetParams object // with the ability to set a timeout on a request. func NewScheduleCollectionGetParamsWithTimeout(timeout time.Duration) *ScheduleCollectionGetParams { return &ScheduleCollectionGetParams{ timeout: timeout, } } // NewScheduleCollectionGetParamsWithContext creates a new ScheduleCollectionGetParams object // with the ability to set a context for a request. func NewScheduleCollectionGetParamsWithContext(ctx context.Context) *ScheduleCollectionGetParams { return &ScheduleCollectionGetParams{ Context: ctx, } } // NewScheduleCollectionGetParamsWithHTTPClient creates a new ScheduleCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewScheduleCollectionGetParamsWithHTTPClient(client *http.Client) *ScheduleCollectionGetParams { return &ScheduleCollectionGetParams{ HTTPClient: client, } } /* ScheduleCollectionGetParams contains all the parameters to send to the API endpoint for the schedule collection get operation. Typically these are written to a http.Request. */ type ScheduleCollectionGetParams struct { /* ClusterName. Filter by cluster.name */ ClusterName *string /* ClusterUUID. Filter by cluster.uuid */ ClusterUUID *string /* CronDays. Filter by cron.days */ CronDays *int64 /* CronHours. Filter by cron.hours */ CronHours *int64 /* CronMinutes. Filter by cron.minutes */ CronMinutes *int64 /* CronMonths. Filter by cron.months */ CronMonths *int64 /* CronWeekdays. Filter by cron.weekdays */ CronWeekdays *int64 /* Fields. Specify the fields to return. */ Fields []string /* Interval. Filter by interval */ Interval *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Name. Filter by name */ Name *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* Scope. Filter by scope */ Scope *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* Type. Filter by type */ Type *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the schedule collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleCollectionGetParams) WithDefaults() *ScheduleCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the schedule collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ScheduleCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the schedule collection get params func (o *ScheduleCollectionGetParams) WithTimeout(timeout time.Duration) *ScheduleCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the schedule collection get params func (o *ScheduleCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the schedule collection get params func (o *ScheduleCollectionGetParams) WithContext(ctx context.Context) *ScheduleCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the schedule collection get params func (o *ScheduleCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the schedule collection get params func (o *ScheduleCollectionGetParams) WithHTTPClient(client *http.Client) *ScheduleCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the schedule collection get params func (o *ScheduleCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithClusterName adds the clusterName to the schedule collection get params func (o *ScheduleCollectionGetParams) WithClusterName(clusterName *string) *ScheduleCollectionGetParams { o.SetClusterName(clusterName) return o } // SetClusterName adds the clusterName to the schedule collection get params func (o *ScheduleCollectionGetParams) SetClusterName(clusterName *string) { o.ClusterName = clusterName } // WithClusterUUID adds the clusterUUID to the schedule collection get params func (o *ScheduleCollectionGetParams) WithClusterUUID(clusterUUID *string) *ScheduleCollectionGetParams { o.SetClusterUUID(clusterUUID) return o } // SetClusterUUID adds the clusterUuid to the schedule collection get params func (o *ScheduleCollectionGetParams) SetClusterUUID(clusterUUID *string) { o.ClusterUUID = clusterUUID } // WithCronDays adds the cronDays to the schedule collection get params func (o *ScheduleCollectionGetParams) WithCronDays(cronDays *int64) *ScheduleCollectionGetParams { o.SetCronDays(cronDays) return o } // SetCronDays adds the cronDays to the schedule collection get params func (o *ScheduleCollectionGetParams) SetCronDays(cronDays *int64) { o.CronDays = cronDays } // WithCronHours adds the cronHours to the schedule collection get params func (o *ScheduleCollectionGetParams) WithCronHours(cronHours *int64) *ScheduleCollectionGetParams { o.SetCronHours(cronHours) return o } // SetCronHours adds the cronHours to the schedule collection get params func (o *ScheduleCollectionGetParams) SetCronHours(cronHours *int64) { o.CronHours = cronHours } // WithCronMinutes adds the cronMinutes to the schedule collection get params func (o *ScheduleCollectionGetParams) WithCronMinutes(cronMinutes *int64) *ScheduleCollectionGetParams { o.SetCronMinutes(cronMinutes) return o } // SetCronMinutes adds the cronMinutes to the schedule collection get params func (o *ScheduleCollectionGetParams) SetCronMinutes(cronMinutes *int64) { o.CronMinutes = cronMinutes } // WithCronMonths adds the cronMonths to the schedule collection get params func (o *ScheduleCollectionGetParams) WithCronMonths(cronMonths *int64) *ScheduleCollectionGetParams { o.SetCronMonths(cronMonths) return o } // SetCronMonths adds the cronMonths to the schedule collection get params func (o *ScheduleCollectionGetParams) SetCronMonths(cronMonths *int64) { o.CronMonths = cronMonths } // WithCronWeekdays adds the cronWeekdays to the schedule collection get params func (o *ScheduleCollectionGetParams) WithCronWeekdays(cronWeekdays *int64) *ScheduleCollectionGetParams { o.SetCronWeekdays(cronWeekdays) return o } // SetCronWeekdays adds the cronWeekdays to the schedule collection get params func (o *ScheduleCollectionGetParams) SetCronWeekdays(cronWeekdays *int64) { o.CronWeekdays = cronWeekdays } // WithFields adds the fields to the schedule collection get params func (o *ScheduleCollectionGetParams) WithFields(fields []string) *ScheduleCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the schedule collection get params func (o *ScheduleCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithInterval adds the interval to the schedule collection get params func (o *ScheduleCollectionGetParams) WithInterval(interval *string) *ScheduleCollectionGetParams { o.SetInterval(interval) return o } // SetInterval adds the interval to the schedule collection get params func (o *ScheduleCollectionGetParams) SetInterval(interval *string) { o.Interval = interval } // WithMaxRecords adds the maxRecords to the schedule collection get params func (o *ScheduleCollectionGetParams) WithMaxRecords(maxRecords *int64) *ScheduleCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the schedule collection get params func (o *ScheduleCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the schedule collection get params func (o *ScheduleCollectionGetParams) WithName(name *string) *ScheduleCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the schedule collection get params func (o *ScheduleCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the schedule collection get params func (o *ScheduleCollectionGetParams) WithOrderBy(orderBy []string) *ScheduleCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the schedule collection get params func (o *ScheduleCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the schedule collection get params func (o *ScheduleCollectionGetParams) WithReturnRecords(returnRecords *bool) *ScheduleCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the schedule collection get params func (o *ScheduleCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the schedule collection get params func (o *ScheduleCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ScheduleCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the schedule collection get params func (o *ScheduleCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the schedule collection get params func (o *ScheduleCollectionGetParams) WithScope(scope *string) *ScheduleCollectionGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the schedule collection get params func (o *ScheduleCollectionGetParams) SetScope(scope *string) { o.Scope = scope } // WithSvmName adds the svmName to the schedule collection get params func (o *ScheduleCollectionGetParams) WithSvmName(svmName *string) *ScheduleCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the schedule collection get params func (o *ScheduleCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the schedule collection get params func (o *ScheduleCollectionGetParams) WithSvmUUID(svmUUID *string) *ScheduleCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the schedule collection get params func (o *ScheduleCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithType adds the typeVar to the schedule collection get params func (o *ScheduleCollectionGetParams) WithType(typeVar *string) *ScheduleCollectionGetParams { o.SetType(typeVar) return o } // SetType adds the type to the schedule collection get params func (o *ScheduleCollectionGetParams) SetType(typeVar *string) { o.Type = typeVar } // WithUUID adds the uuid to the schedule collection get params func (o *ScheduleCollectionGetParams) WithUUID(uuid *string) *ScheduleCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the schedule collection get params func (o *ScheduleCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ScheduleCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.ClusterName != nil { // query param cluster.name var qrClusterName string if o.ClusterName != nil { qrClusterName = *o.ClusterName } qClusterName := qrClusterName if qClusterName != "" { if err := r.SetQueryParam("cluster.name", qClusterName); err != nil { return err } } } if o.ClusterUUID != nil { // query param cluster.uuid var qrClusterUUID string if o.ClusterUUID != nil { qrClusterUUID = *o.ClusterUUID } qClusterUUID := qrClusterUUID if qClusterUUID != "" { if err := r.SetQueryParam("cluster.uuid", qClusterUUID); err != nil { return err } } } if o.CronDays != nil { // query param cron.days var qrCronDays int64 if o.CronDays != nil { qrCronDays = *o.CronDays } qCronDays := swag.FormatInt64(qrCronDays) if qCronDays != "" { if err := r.SetQueryParam("cron.days", qCronDays); err != nil { return err } } } if o.CronHours != nil { // query param cron.hours var qrCronHours int64 if o.CronHours != nil { qrCronHours = *o.CronHours } qCronHours := swag.FormatInt64(qrCronHours) if qCronHours != "" { if err := r.SetQueryParam("cron.hours", qCronHours); err != nil { return err } } } if o.CronMinutes != nil { // query param cron.minutes var qrCronMinutes int64 if o.CronMinutes != nil { qrCronMinutes = *o.CronMinutes } qCronMinutes := swag.FormatInt64(qrCronMinutes) if qCronMinutes != "" { if err := r.SetQueryParam("cron.minutes", qCronMinutes); err != nil { return err } } } if o.CronMonths != nil { // query param cron.months var qrCronMonths int64 if o.CronMonths != nil { qrCronMonths = *o.CronMonths } qCronMonths := swag.FormatInt64(qrCronMonths) if qCronMonths != "" { if err := r.SetQueryParam("cron.months", qCronMonths); err != nil { return err } } } if o.CronWeekdays != nil { // query param cron.weekdays var qrCronWeekdays int64 if o.CronWeekdays != nil { qrCronWeekdays = *o.CronWeekdays } qCronWeekdays := swag.FormatInt64(qrCronWeekdays) if qCronWeekdays != "" { if err := r.SetQueryParam("cron.weekdays", qCronWeekdays); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.Interval != nil { // query param interval var qrInterval string if o.Interval != nil { qrInterval = *o.Interval } qInterval := qrInterval if qInterval != "" { if err := r.SetQueryParam("interval", qInterval); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.Name != nil { // query param name var qrName string if o.Name != nil { qrName = *o.Name } qName := qrName if qName != "" { if err := r.SetQueryParam("name", qName); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.Scope != nil { // query param scope var qrScope string if o.Scope != nil { qrScope = *o.Scope } qScope := qrScope if qScope != "" { if err := r.SetQueryParam("scope", qScope); err != nil { return err } } } if o.SvmName != nil { // query param svm.name var qrSvmName string if o.SvmName != nil { qrSvmName = *o.SvmName } qSvmName := qrSvmName if qSvmName != "" { if err := r.SetQueryParam("svm.name", qSvmName); err != nil { return err } } } if o.SvmUUID != nil { // query param svm.uuid var qrSvmUUID string if o.SvmUUID != nil { qrSvmUUID = *o.SvmUUID } qSvmUUID := qrSvmUUID if qSvmUUID != "" { if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil { return err } } } if o.Type != nil { // query param type var qrType string if o.Type != nil { qrType = *o.Type } qType := qrType if qType != "" { if err := r.SetQueryParam("type", qType); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamScheduleCollectionGet binds the parameter fields func (o *ScheduleCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamScheduleCollectionGet binds the parameter order_by func (o *ScheduleCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // CounterRowGetReader is a Reader for the CounterRowGet structure. type CounterRowGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CounterRowGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCounterRowGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCounterRowGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewCounterRowGetOK creates a CounterRowGetOK with default headers values func NewCounterRowGetOK() *CounterRowGetOK { return &CounterRowGetOK{} } /* CounterRowGetOK describes a response with status code 200, with default header values. OK */ type CounterRowGetOK struct { Payload *models.CounterRow } // IsSuccess returns true when this counter row get o k response has a 2xx status code func (o *CounterRowGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this counter row get o k response has a 3xx status code func (o *CounterRowGetOK) IsRedirect() bool { return false } // IsClientError returns true when this counter row get o k response has a 4xx status code func (o *CounterRowGetOK) IsClientError() bool { return false } // IsServerError returns true when this counter row get o k response has a 5xx status code func (o *CounterRowGetOK) IsServerError() bool { return false } // IsCode returns true when this counter row get o k response a status code equal to that given func (o *CounterRowGetOK) IsCode(code int) bool { return code == 200 } func (o *CounterRowGetOK) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows/{id}][%d] counterRowGetOK %+v", 200, o.Payload) } func (o *CounterRowGetOK) String() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows/{id}][%d] counterRowGetOK %+v", 200, o.Payload) } func (o *CounterRowGetOK) GetPayload() *models.CounterRow { return o.Payload } func (o *CounterRowGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CounterRow) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCounterRowGetDefault creates a CounterRowGetDefault with default headers values func NewCounterRowGetDefault(code int) *CounterRowGetDefault { return &CounterRowGetDefault{ _statusCode: code, } } /* CounterRowGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 8585320 | Table requested is not found | | 8586228 | Invalid counter name request. | | 8586229 | Invalid counter property request. | */ type CounterRowGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the counter row get default response func (o *CounterRowGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this counter row get default response has a 2xx status code func (o *CounterRowGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this counter row get default response has a 3xx status code func (o *CounterRowGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this counter row get default response has a 4xx status code func (o *CounterRowGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this counter row get default response has a 5xx status code func (o *CounterRowGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this counter row get default response a status code equal to that given func (o *CounterRowGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CounterRowGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows/{id}][%d] counter_row_get default %+v", o._statusCode, o.Payload) } func (o *CounterRowGetDefault) String() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows/{id}][%d] counter_row_get default %+v", o._statusCode, o.Payload) } func (o *CounterRowGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CounterRowGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/node_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/node_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NodeModifyReader is a Reader for the NodeModify structure. type NodeModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NodeModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewNodeModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNodeModifyDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewNodeModifyAccepted creates a NodeModifyAccepted with default headers values func NewNodeModifyAccepted() *NodeModifyAccepted { return &NodeModifyAccepted{} } /* NodeModifyAccepted describes a response with status code 202, with default header values. Accepted */ type NodeModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this node modify accepted response has a 2xx status code func (o *NodeModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this node modify accepted response has a 3xx status code func (o *NodeModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this node modify accepted response has a 4xx status code func (o *NodeModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this node modify accepted response has a 5xx status code func (o *NodeModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this node modify accepted response a status code equal to that given func (o *NodeModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *NodeModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /cluster/nodes/{uuid}][%d] nodeModifyAccepted %+v", 202, o.Payload) } func (o *NodeModifyAccepted) String() string { return fmt.Sprintf("[PATCH /cluster/nodes/{uuid}][%d] nodeModifyAccepted %+v", 202, o.Payload) } func (o *NodeModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *NodeModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNodeModifyDefault creates a NodeModifyDefault with default headers values func NewNodeModifyDefault(code int) *NodeModifyDefault { return &NodeModifyDefault{ _statusCode: code, } } /* NodeModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 852046 | HA partner node | | 852115 | The reboot/shutdown is prevented because LIFs cannot be moved away from the node | | 3604514 | A reboot or shutdown request is already in progress. | | 3604515 | Reboot or shutdown of all nodes results in data service failure and client disruption for the entire cluster. Use "allow-data-outage=true" to bypass this check. | | 9240606 | The reboot/shutdown is prevented due to quorum warnings. | */ type NodeModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the node modify default response func (o *NodeModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this node modify default response has a 2xx status code func (o *NodeModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this node modify default response has a 3xx status code func (o *NodeModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this node modify default response has a 4xx status code func (o *NodeModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this node modify default response has a 5xx status code func (o *NodeModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this node modify default response a status code equal to that given func (o *NodeModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NodeModifyDefault) Error() string { return fmt.Sprintf("[PATCH /cluster/nodes/{uuid}][%d] node_modify default %+v", o._statusCode, o.Payload) } func (o *NodeModifyDefault) String() string { return fmt.Sprintf("[PATCH /cluster/nodes/{uuid}][%d] node_modify default %+v", o._statusCode, o.Payload) } func (o *NodeModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NodeModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterPeerCreateReader is a Reader for the ClusterPeerCreate structure. type ClusterPeerCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterPeerCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewClusterPeerCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterPeerCreateDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterPeerCreateCreated creates a ClusterPeerCreateCreated with default headers values func NewClusterPeerCreateCreated() *ClusterPeerCreateCreated { return &ClusterPeerCreateCreated{} } /* ClusterPeerCreateCreated describes a response with status code 201, with default header values. Created */ type ClusterPeerCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.ClusterPeerSetupResponse } // IsSuccess returns true when this cluster peer create created response has a 2xx status code func (o *ClusterPeerCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this cluster peer create created response has a 3xx status code func (o *ClusterPeerCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this cluster peer create created response has a 4xx status code func (o *ClusterPeerCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this cluster peer create created response has a 5xx status code func (o *ClusterPeerCreateCreated) IsServerError() bool { return false } // IsCode returns true when this cluster peer create created response a status code equal to that given func (o *ClusterPeerCreateCreated) IsCode(code int) bool { return code == 201 } func (o *ClusterPeerCreateCreated) Error() string { return fmt.Sprintf("[POST /cluster/peers][%d] clusterPeerCreateCreated %+v", 201, o.Payload) } func (o *ClusterPeerCreateCreated) String() string { return fmt.Sprintf("[POST /cluster/peers][%d] clusterPeerCreateCreated %+v", 201, o.Payload) } func (o *ClusterPeerCreateCreated) GetPayload() *models.ClusterPeerSetupResponse { return o.Payload } func (o *ClusterPeerCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } o.Payload = new(models.ClusterPeerSetupResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterPeerCreateDefault creates a ClusterPeerCreateDefault with default headers values func NewClusterPeerCreateDefault(code int) *ClusterPeerCreateDefault { return &ClusterPeerCreateDefault{ _statusCode: code, } } /* ClusterPeerCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1966366 | The system SVM of the cluster IPspace hosts cluster LIFs only. | | 4653365 | IPspaces are unavailable with cluster peering: {ipspace}. | | 4656069 | Specifying a passphrase without remote IP addresses is not supported. | | 4656070 | The encryption protocol is meaningful only with authenticated cluster peer relationships. | | 4656071 | Cannot peer with a cluster bearing the same name as the local cluster. | | 4656072 | The name must conform to the same rules as a cluster name. | | 4656074 | Cannot check whether all nodes of this cluster support encryption. | | 4656075 | Cannot specify encryption: this operation requires an ECV of 9.6.0 or later. | | 4656077 | Specify either remote IP addresses or generate_passphrase. | | 4656079 | No cluster nodes were found. Check your cluster configuration. | | 4656081 | Creating an intercluster LIF requires a list of local IP addresses. | | 4656085 | Cannot create an intercluster LIF with an empty list of local IP addresses. | | 4656086 | Creating an intercluster LIF requires a broadcast domain that is in use within the IPspace. | | 4656087 | The number of local intercluster IP addresses must be less than or equal to the number of available nodes. | | 4656088 | Found no ports matching the IPspace and the broadcast domain. | | 4656089 | Found no matching entry for IPspace. | | 4656090 | The given IPspace differs from the IPspace entry found. | | 4656091 | Creating an intercluster LIF requires a subnet mask or a subnet mask length. | | 4656096 | Creating an intercluster LIF requires an IPv4 or IPv6 address of the default router. | */ type ClusterPeerCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster peer create default response func (o *ClusterPeerCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster peer create default response has a 2xx status code func (o *ClusterPeerCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster peer create default response has a 3xx status code func (o *ClusterPeerCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster peer create default response has a 4xx status code func (o *ClusterPeerCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster peer create default response has a 5xx status code func (o *ClusterPeerCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster peer create default response a status code equal to that given func (o *ClusterPeerCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterPeerCreateDefault) Error() string { return fmt.Sprintf("[POST /cluster/peers][%d] cluster_peer_create default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerCreateDefault) String() string { return fmt.Sprintf("[POST /cluster/peers][%d] cluster_peer_create default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterPeerCreateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_table_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_table_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewCounterTableGetParams creates a new CounterTableGetParams 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 NewCounterTableGetParams() *CounterTableGetParams { return &CounterTableGetParams{ timeout: cr.DefaultTimeout, } } // NewCounterTableGetParamsWithTimeout creates a new CounterTableGetParams object // with the ability to set a timeout on a request. func NewCounterTableGetParamsWithTimeout(timeout time.Duration) *CounterTableGetParams { return &CounterTableGetParams{ timeout: timeout, } } // NewCounterTableGetParamsWithContext creates a new CounterTableGetParams object // with the ability to set a context for a request. func NewCounterTableGetParamsWithContext(ctx context.Context) *CounterTableGetParams { return &CounterTableGetParams{ Context: ctx, } } // NewCounterTableGetParamsWithHTTPClient creates a new CounterTableGetParams object // with the ability to set a custom HTTPClient for a request. func NewCounterTableGetParamsWithHTTPClient(client *http.Client) *CounterTableGetParams { return &CounterTableGetParams{ HTTPClient: client, } } /* CounterTableGetParams contains all the parameters to send to the API endpoint for the counter table get operation. Typically these are written to a http.Request. */ type CounterTableGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* Name. Counter table name. */ Name string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the counter table get params (not the query body). // // All values with no default are reset to their zero value. func (o *CounterTableGetParams) WithDefaults() *CounterTableGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the counter table get params (not the query body). // // All values with no default are reset to their zero value. func (o *CounterTableGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the counter table get params func (o *CounterTableGetParams) WithTimeout(timeout time.Duration) *CounterTableGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the counter table get params func (o *CounterTableGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the counter table get params func (o *CounterTableGetParams) WithContext(ctx context.Context) *CounterTableGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the counter table get params func (o *CounterTableGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the counter table get params func (o *CounterTableGetParams) WithHTTPClient(client *http.Client) *CounterTableGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the counter table get params func (o *CounterTableGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the counter table get params func (o *CounterTableGetParams) WithFields(fields []string) *CounterTableGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the counter table get params func (o *CounterTableGetParams) SetFields(fields []string) { o.Fields = fields } // WithName adds the name to the counter table get params func (o *CounterTableGetParams) WithName(name string) *CounterTableGetParams { o.SetName(name) return o } // SetName adds the name to the counter table get params func (o *CounterTableGetParams) SetName(name string) { o.Name = name } // WriteToRequest writes these params to a swagger request func (o *CounterTableGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param name if err := r.SetPathParam("name", o.Name); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamCounterTableGet binds the parameter fields func (o *CounterTableGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterInterconnectModifyReader is a Reader for the MetroclusterInterconnectModify structure. type MetroclusterInterconnectModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterInterconnectModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewMetroclusterInterconnectModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterInterconnectModifyDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterInterconnectModifyAccepted creates a MetroclusterInterconnectModifyAccepted with default headers values func NewMetroclusterInterconnectModifyAccepted() *MetroclusterInterconnectModifyAccepted { return &MetroclusterInterconnectModifyAccepted{} } /* MetroclusterInterconnectModifyAccepted describes a response with status code 202, with default header values. Accepted */ type MetroclusterInterconnectModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this metrocluster interconnect modify accepted response has a 2xx status code func (o *MetroclusterInterconnectModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster interconnect modify accepted response has a 3xx status code func (o *MetroclusterInterconnectModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster interconnect modify accepted response has a 4xx status code func (o *MetroclusterInterconnectModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this metrocluster interconnect modify accepted response has a 5xx status code func (o *MetroclusterInterconnectModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this metrocluster interconnect modify accepted response a status code equal to that given func (o *MetroclusterInterconnectModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *MetroclusterInterconnectModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metroclusterInterconnectModifyAccepted %+v", 202, o.Payload) } func (o *MetroclusterInterconnectModifyAccepted) String() string { return fmt.Sprintf("[PATCH /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metroclusterInterconnectModifyAccepted %+v", 202, o.Payload) } func (o *MetroclusterInterconnectModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *MetroclusterInterconnectModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterInterconnectModifyDefault creates a MetroclusterInterconnectModifyDefault with default headers values func NewMetroclusterInterconnectModifyDefault(code int) *MetroclusterInterconnectModifyDefault { return &MetroclusterInterconnectModifyDefault{ _statusCode: code, } } /* MetroclusterInterconnectModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error has occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | */ type MetroclusterInterconnectModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster interconnect modify default response func (o *MetroclusterInterconnectModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster interconnect modify default response has a 2xx status code func (o *MetroclusterInterconnectModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster interconnect modify default response has a 3xx status code func (o *MetroclusterInterconnectModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster interconnect modify default response has a 4xx status code func (o *MetroclusterInterconnectModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster interconnect modify default response has a 5xx status code func (o *MetroclusterInterconnectModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster interconnect modify default response a status code equal to that given func (o *MetroclusterInterconnectModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterInterconnectModifyDefault) Error() string { return fmt.Sprintf("[PATCH /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metrocluster_interconnect_modify default %+v", o._statusCode, o.Payload) } func (o *MetroclusterInterconnectModifyDefault) String() string { return fmt.Sprintf("[PATCH /cluster/metrocluster/interconnects/{node.uuid}/{partner_type}/{adapter}][%d] metrocluster_interconnect_modify default %+v", o._statusCode, o.Payload) } func (o *MetroclusterInterconnectModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterInterconnectModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MediatorDeleteReader is a Reader for the MediatorDelete structure. type MediatorDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MediatorDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewMediatorDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMediatorDeleteDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMediatorDeleteAccepted creates a MediatorDeleteAccepted with default headers values func NewMediatorDeleteAccepted() *MediatorDeleteAccepted { return &MediatorDeleteAccepted{} } /* MediatorDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type MediatorDeleteAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this mediator delete accepted response has a 2xx status code func (o *MediatorDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this mediator delete accepted response has a 3xx status code func (o *MediatorDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this mediator delete accepted response has a 4xx status code func (o *MediatorDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this mediator delete accepted response has a 5xx status code func (o *MediatorDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this mediator delete accepted response a status code equal to that given func (o *MediatorDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *MediatorDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /cluster/mediators/{uuid}][%d] mediatorDeleteAccepted %+v", 202, o.Payload) } func (o *MediatorDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /cluster/mediators/{uuid}][%d] mediatorDeleteAccepted %+v", 202, o.Payload) } func (o *MediatorDeleteAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *MediatorDeleteAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMediatorDeleteDefault creates a MediatorDeleteDefault with default headers values func NewMediatorDeleteDefault(code int) *MediatorDeleteDefault { return &MediatorDeleteDefault{ _statusCode: code, } } /* MediatorDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error code | Description | |-------------|--------------| | 13369377 | Mediator field "mediator.id" does not exist.| */ type MediatorDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the mediator delete default response func (o *MediatorDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this mediator delete default response has a 2xx status code func (o *MediatorDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this mediator delete default response has a 3xx status code func (o *MediatorDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this mediator delete default response has a 4xx status code func (o *MediatorDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this mediator delete default response has a 5xx status code func (o *MediatorDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this mediator delete default response a status code equal to that given func (o *MediatorDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MediatorDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /cluster/mediators/{uuid}][%d] mediator_delete default %+v", o._statusCode, o.Payload) } func (o *MediatorDeleteDefault) String() string { return fmt.Sprintf("[DELETE /cluster/mediators/{uuid}][%d] mediator_delete default %+v", o._statusCode, o.Payload) } func (o *MediatorDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MediatorDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterGetReader is a Reader for the ClusterGet structure. type ClusterGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterGetOK creates a ClusterGetOK with default headers values func NewClusterGetOK() *ClusterGetOK { return &ClusterGetOK{} } /* ClusterGetOK describes a response with status code 200, with default header values. OK */ type ClusterGetOK struct { Payload *models.Cluster } // IsSuccess returns true when this cluster get o k response has a 2xx status code func (o *ClusterGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster get o k response has a 3xx status code func (o *ClusterGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster get o k response has a 4xx status code func (o *ClusterGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster get o k response has a 5xx status code func (o *ClusterGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster get o k response a status code equal to that given func (o *ClusterGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterGetOK) Error() string { return fmt.Sprintf("[GET /cluster][%d] clusterGetOK %+v", 200, o.Payload) } func (o *ClusterGetOK) String() string { return fmt.Sprintf("[GET /cluster][%d] clusterGetOK %+v", 200, o.Payload) } func (o *ClusterGetOK) GetPayload() *models.Cluster { return o.Payload } func (o *ClusterGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Cluster) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterGetDefault creates a ClusterGetDefault with default headers values func NewClusterGetDefault(code int) *ClusterGetDefault { return &ClusterGetDefault{ _statusCode: code, } } /* ClusterGetDefault describes a response with status code -1, with default header values. Error */ type ClusterGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster get default response func (o *ClusterGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster get default response has a 2xx status code func (o *ClusterGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster get default response has a 3xx status code func (o *ClusterGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster get default response has a 4xx status code func (o *ClusterGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster get default response has a 5xx status code func (o *ClusterGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster get default response a status code equal to that given func (o *ClusterGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterGetDefault) Error() string { return fmt.Sprintf("[GET /cluster][%d] cluster_get default %+v", o._statusCode, o.Payload) } func (o *ClusterGetDefault) String() string { return fmt.Sprintf("[GET /cluster][%d] cluster_get default %+v", o._statusCode, o.Payload) } func (o *ClusterGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/chassis_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/chassis_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ChassisGetReader is a Reader for the ChassisGet structure. type ChassisGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ChassisGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewChassisGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewChassisGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewChassisGetOK creates a ChassisGetOK with default headers values func NewChassisGetOK() *ChassisGetOK { return &ChassisGetOK{} } /* ChassisGetOK describes a response with status code 200, with default header values. OK */ type ChassisGetOK struct { Payload *models.Chassis } // IsSuccess returns true when this chassis get o k response has a 2xx status code func (o *ChassisGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this chassis get o k response has a 3xx status code func (o *ChassisGetOK) IsRedirect() bool { return false } // IsClientError returns true when this chassis get o k response has a 4xx status code func (o *ChassisGetOK) IsClientError() bool { return false } // IsServerError returns true when this chassis get o k response has a 5xx status code func (o *ChassisGetOK) IsServerError() bool { return false } // IsCode returns true when this chassis get o k response a status code equal to that given func (o *ChassisGetOK) IsCode(code int) bool { return code == 200 } func (o *ChassisGetOK) Error() string { return fmt.Sprintf("[GET /cluster/chassis/{id}][%d] chassisGetOK %+v", 200, o.Payload) } func (o *ChassisGetOK) String() string { return fmt.Sprintf("[GET /cluster/chassis/{id}][%d] chassisGetOK %+v", 200, o.Payload) } func (o *ChassisGetOK) GetPayload() *models.Chassis { return o.Payload } func (o *ChassisGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Chassis) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewChassisGetDefault creates a ChassisGetDefault with default headers values func NewChassisGetDefault(code int) *ChassisGetDefault { return &ChassisGetDefault{ _statusCode: code, } } /* ChassisGetDefault describes a response with status code -1, with default header values. Error */ type ChassisGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the chassis get default response func (o *ChassisGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this chassis get default response has a 2xx status code func (o *ChassisGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this chassis get default response has a 3xx status code func (o *ChassisGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this chassis get default response has a 4xx status code func (o *ChassisGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this chassis get default response has a 5xx status code func (o *ChassisGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this chassis get default response a status code equal to that given func (o *ChassisGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ChassisGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/chassis/{id}][%d] chassis_get default %+v", o._statusCode, o.Payload) } func (o *ChassisGetDefault) String() string { return fmt.Sprintf("[GET /cluster/chassis/{id}][%d] chassis_get default %+v", o._statusCode, o.Payload) } func (o *ChassisGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ChassisGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterGetParams creates a new MetroclusterGetParams 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 NewMetroclusterGetParams() *MetroclusterGetParams { return &MetroclusterGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterGetParamsWithTimeout creates a new MetroclusterGetParams object // with the ability to set a timeout on a request. func NewMetroclusterGetParamsWithTimeout(timeout time.Duration) *MetroclusterGetParams { return &MetroclusterGetParams{ timeout: timeout, } } // NewMetroclusterGetParamsWithContext creates a new MetroclusterGetParams object // with the ability to set a context for a request. func NewMetroclusterGetParamsWithContext(ctx context.Context) *MetroclusterGetParams { return &MetroclusterGetParams{ Context: ctx, } } // NewMetroclusterGetParamsWithHTTPClient creates a new MetroclusterGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterGetParamsWithHTTPClient(client *http.Client) *MetroclusterGetParams { return &MetroclusterGetParams{ HTTPClient: client, } } /* MetroclusterGetParams contains all the parameters to send to the API endpoint for the metrocluster get operation. Typically these are written to a http.Request. */ type MetroclusterGetParams struct { /* Fields. Specify the fields to return. */ Fields []string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterGetParams) WithDefaults() *MetroclusterGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the metrocluster get params func (o *MetroclusterGetParams) WithTimeout(timeout time.Duration) *MetroclusterGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster get params func (o *MetroclusterGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster get params func (o *MetroclusterGetParams) WithContext(ctx context.Context) *MetroclusterGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster get params func (o *MetroclusterGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster get params func (o *MetroclusterGetParams) WithHTTPClient(client *http.Client) *MetroclusterGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster get params func (o *MetroclusterGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the metrocluster get params func (o *MetroclusterGetParams) WithFields(fields []string) *MetroclusterGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster get params func (o *MetroclusterGetParams) SetFields(fields []string) { o.Fields = fields } // WriteToRequest writes these params to a swagger request func (o *MetroclusterGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMetroclusterGet binds the parameter fields func (o *MetroclusterGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/chassis_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/chassis_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewChassisCollectionGetParams creates a new ChassisCollectionGetParams 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 NewChassisCollectionGetParams() *ChassisCollectionGetParams { return &ChassisCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewChassisCollectionGetParamsWithTimeout creates a new ChassisCollectionGetParams object // with the ability to set a timeout on a request. func NewChassisCollectionGetParamsWithTimeout(timeout time.Duration) *ChassisCollectionGetParams { return &ChassisCollectionGetParams{ timeout: timeout, } } // NewChassisCollectionGetParamsWithContext creates a new ChassisCollectionGetParams object // with the ability to set a context for a request. func NewChassisCollectionGetParamsWithContext(ctx context.Context) *ChassisCollectionGetParams { return &ChassisCollectionGetParams{ Context: ctx, } } // NewChassisCollectionGetParamsWithHTTPClient creates a new ChassisCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewChassisCollectionGetParamsWithHTTPClient(client *http.Client) *ChassisCollectionGetParams { return &ChassisCollectionGetParams{ HTTPClient: client, } } /* ChassisCollectionGetParams contains all the parameters to send to the API endpoint for the chassis collection get operation. Typically these are written to a http.Request. */ type ChassisCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* FrusID. Filter by frus.id */ FrusID *string /* FrusState. Filter by frus.state */ FrusState *string /* FrusType. Filter by frus.type */ FrusType *string /* ID. Filter by id */ ID *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* NodesName. Filter by nodes.name */ NodesName *string /* NodesPcisCardsDevice. Filter by nodes.pcis.cards.device */ NodesPcisCardsDevice *string /* NodesPcisCardsInfo. Filter by nodes.pcis.cards.info */ NodesPcisCardsInfo *string /* NodesPcisCardsSlot. Filter by nodes.pcis.cards.slot */ NodesPcisCardsSlot *string /* NodesPosition. Filter by nodes.position */ NodesPosition *string /* NodesUsbsEnabled. Filter by nodes.usbs.enabled */ NodesUsbsEnabled *bool /* NodesUsbsPortsConnected. Filter by nodes.usbs.ports.connected */ NodesUsbsPortsConnected *bool /* NodesUsbsSupported. Filter by nodes.usbs.supported */ NodesUsbsSupported *bool /* NodesUUID. Filter by nodes.uuid */ NodesUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* ShelvesUID. Filter by shelves.uid */ ShelvesUID *string /* State. Filter by state */ State *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the chassis collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ChassisCollectionGetParams) WithDefaults() *ChassisCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the chassis collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ChassisCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ChassisCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the chassis collection get params func (o *ChassisCollectionGetParams) WithTimeout(timeout time.Duration) *ChassisCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the chassis collection get params func (o *ChassisCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the chassis collection get params func (o *ChassisCollectionGetParams) WithContext(ctx context.Context) *ChassisCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the chassis collection get params func (o *ChassisCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the chassis collection get params func (o *ChassisCollectionGetParams) WithHTTPClient(client *http.Client) *ChassisCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the chassis collection get params func (o *ChassisCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the chassis collection get params func (o *ChassisCollectionGetParams) WithFields(fields []string) *ChassisCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the chassis collection get params func (o *ChassisCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithFrusID adds the frusID to the chassis collection get params func (o *ChassisCollectionGetParams) WithFrusID(frusID *string) *ChassisCollectionGetParams { o.SetFrusID(frusID) return o } // SetFrusID adds the frusId to the chassis collection get params func (o *ChassisCollectionGetParams) SetFrusID(frusID *string) { o.FrusID = frusID } // WithFrusState adds the frusState to the chassis collection get params func (o *ChassisCollectionGetParams) WithFrusState(frusState *string) *ChassisCollectionGetParams { o.SetFrusState(frusState) return o } // SetFrusState adds the frusState to the chassis collection get params func (o *ChassisCollectionGetParams) SetFrusState(frusState *string) { o.FrusState = frusState } // WithFrusType adds the frusType to the chassis collection get params func (o *ChassisCollectionGetParams) WithFrusType(frusType *string) *ChassisCollectionGetParams { o.SetFrusType(frusType) return o } // SetFrusType adds the frusType to the chassis collection get params func (o *ChassisCollectionGetParams) SetFrusType(frusType *string) { o.FrusType = frusType } // WithID adds the id to the chassis collection get params func (o *ChassisCollectionGetParams) WithID(id *string) *ChassisCollectionGetParams { o.SetID(id) return o } // SetID adds the id to the chassis collection get params func (o *ChassisCollectionGetParams) SetID(id *string) { o.ID = id } // WithMaxRecords adds the maxRecords to the chassis collection get params func (o *ChassisCollectionGetParams) WithMaxRecords(maxRecords *int64) *ChassisCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the chassis collection get params func (o *ChassisCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithNodesName adds the nodesName to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesName(nodesName *string) *ChassisCollectionGetParams { o.SetNodesName(nodesName) return o } // SetNodesName adds the nodesName to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesName(nodesName *string) { o.NodesName = nodesName } // WithNodesPcisCardsDevice adds the nodesPcisCardsDevice to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesPcisCardsDevice(nodesPcisCardsDevice *string) *ChassisCollectionGetParams { o.SetNodesPcisCardsDevice(nodesPcisCardsDevice) return o } // SetNodesPcisCardsDevice adds the nodesPcisCardsDevice to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesPcisCardsDevice(nodesPcisCardsDevice *string) { o.NodesPcisCardsDevice = nodesPcisCardsDevice } // WithNodesPcisCardsInfo adds the nodesPcisCardsInfo to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesPcisCardsInfo(nodesPcisCardsInfo *string) *ChassisCollectionGetParams { o.SetNodesPcisCardsInfo(nodesPcisCardsInfo) return o } // SetNodesPcisCardsInfo adds the nodesPcisCardsInfo to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesPcisCardsInfo(nodesPcisCardsInfo *string) { o.NodesPcisCardsInfo = nodesPcisCardsInfo } // WithNodesPcisCardsSlot adds the nodesPcisCardsSlot to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesPcisCardsSlot(nodesPcisCardsSlot *string) *ChassisCollectionGetParams { o.SetNodesPcisCardsSlot(nodesPcisCardsSlot) return o } // SetNodesPcisCardsSlot adds the nodesPcisCardsSlot to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesPcisCardsSlot(nodesPcisCardsSlot *string) { o.NodesPcisCardsSlot = nodesPcisCardsSlot } // WithNodesPosition adds the nodesPosition to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesPosition(nodesPosition *string) *ChassisCollectionGetParams { o.SetNodesPosition(nodesPosition) return o } // SetNodesPosition adds the nodesPosition to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesPosition(nodesPosition *string) { o.NodesPosition = nodesPosition } // WithNodesUsbsEnabled adds the nodesUsbsEnabled to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesUsbsEnabled(nodesUsbsEnabled *bool) *ChassisCollectionGetParams { o.SetNodesUsbsEnabled(nodesUsbsEnabled) return o } // SetNodesUsbsEnabled adds the nodesUsbsEnabled to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesUsbsEnabled(nodesUsbsEnabled *bool) { o.NodesUsbsEnabled = nodesUsbsEnabled } // WithNodesUsbsPortsConnected adds the nodesUsbsPortsConnected to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesUsbsPortsConnected(nodesUsbsPortsConnected *bool) *ChassisCollectionGetParams { o.SetNodesUsbsPortsConnected(nodesUsbsPortsConnected) return o } // SetNodesUsbsPortsConnected adds the nodesUsbsPortsConnected to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesUsbsPortsConnected(nodesUsbsPortsConnected *bool) { o.NodesUsbsPortsConnected = nodesUsbsPortsConnected } // WithNodesUsbsSupported adds the nodesUsbsSupported to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesUsbsSupported(nodesUsbsSupported *bool) *ChassisCollectionGetParams { o.SetNodesUsbsSupported(nodesUsbsSupported) return o } // SetNodesUsbsSupported adds the nodesUsbsSupported to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesUsbsSupported(nodesUsbsSupported *bool) { o.NodesUsbsSupported = nodesUsbsSupported } // WithNodesUUID adds the nodesUUID to the chassis collection get params func (o *ChassisCollectionGetParams) WithNodesUUID(nodesUUID *string) *ChassisCollectionGetParams { o.SetNodesUUID(nodesUUID) return o } // SetNodesUUID adds the nodesUuid to the chassis collection get params func (o *ChassisCollectionGetParams) SetNodesUUID(nodesUUID *string) { o.NodesUUID = nodesUUID } // WithOrderBy adds the orderBy to the chassis collection get params func (o *ChassisCollectionGetParams) WithOrderBy(orderBy []string) *ChassisCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the chassis collection get params func (o *ChassisCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the chassis collection get params func (o *ChassisCollectionGetParams) WithReturnRecords(returnRecords *bool) *ChassisCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the chassis collection get params func (o *ChassisCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the chassis collection get params func (o *ChassisCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ChassisCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the chassis collection get params func (o *ChassisCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithShelvesUID adds the shelvesUID to the chassis collection get params func (o *ChassisCollectionGetParams) WithShelvesUID(shelvesUID *string) *ChassisCollectionGetParams { o.SetShelvesUID(shelvesUID) return o } // SetShelvesUID adds the shelvesUid to the chassis collection get params func (o *ChassisCollectionGetParams) SetShelvesUID(shelvesUID *string) { o.ShelvesUID = shelvesUID } // WithState adds the state to the chassis collection get params func (o *ChassisCollectionGetParams) WithState(state *string) *ChassisCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the chassis collection get params func (o *ChassisCollectionGetParams) SetState(state *string) { o.State = state } // WriteToRequest writes these params to a swagger request func (o *ChassisCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.FrusID != nil { // query param frus.id var qrFrusID string if o.FrusID != nil { qrFrusID = *o.FrusID } qFrusID := qrFrusID if qFrusID != "" { if err := r.SetQueryParam("frus.id", qFrusID); err != nil { return err } } } if o.FrusState != nil { // query param frus.state var qrFrusState string if o.FrusState != nil { qrFrusState = *o.FrusState } qFrusState := qrFrusState if qFrusState != "" { if err := r.SetQueryParam("frus.state", qFrusState); err != nil { return err } } } if o.FrusType != nil { // query param frus.type var qrFrusType string if o.FrusType != nil { qrFrusType = *o.FrusType } qFrusType := qrFrusType if qFrusType != "" { if err := r.SetQueryParam("frus.type", qFrusType); err != nil { return err } } } if o.ID != nil { // query param id var qrID string if o.ID != nil { qrID = *o.ID } qID := qrID if qID != "" { if err := r.SetQueryParam("id", qID); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.NodesName != nil { // query param nodes.name var qrNodesName string if o.NodesName != nil { qrNodesName = *o.NodesName } qNodesName := qrNodesName if qNodesName != "" { if err := r.SetQueryParam("nodes.name", qNodesName); err != nil { return err } } } if o.NodesPcisCardsDevice != nil { // query param nodes.pcis.cards.device var qrNodesPcisCardsDevice string if o.NodesPcisCardsDevice != nil { qrNodesPcisCardsDevice = *o.NodesPcisCardsDevice } qNodesPcisCardsDevice := qrNodesPcisCardsDevice if qNodesPcisCardsDevice != "" { if err := r.SetQueryParam("nodes.pcis.cards.device", qNodesPcisCardsDevice); err != nil { return err } } } if o.NodesPcisCardsInfo != nil { // query param nodes.pcis.cards.info var qrNodesPcisCardsInfo string if o.NodesPcisCardsInfo != nil { qrNodesPcisCardsInfo = *o.NodesPcisCardsInfo } qNodesPcisCardsInfo := qrNodesPcisCardsInfo if qNodesPcisCardsInfo != "" { if err := r.SetQueryParam("nodes.pcis.cards.info", qNodesPcisCardsInfo); err != nil { return err } } } if o.NodesPcisCardsSlot != nil { // query param nodes.pcis.cards.slot var qrNodesPcisCardsSlot string if o.NodesPcisCardsSlot != nil { qrNodesPcisCardsSlot = *o.NodesPcisCardsSlot } qNodesPcisCardsSlot := qrNodesPcisCardsSlot if qNodesPcisCardsSlot != "" { if err := r.SetQueryParam("nodes.pcis.cards.slot", qNodesPcisCardsSlot); err != nil { return err } } } if o.NodesPosition != nil { // query param nodes.position var qrNodesPosition string if o.NodesPosition != nil { qrNodesPosition = *o.NodesPosition } qNodesPosition := qrNodesPosition if qNodesPosition != "" { if err := r.SetQueryParam("nodes.position", qNodesPosition); err != nil { return err } } } if o.NodesUsbsEnabled != nil { // query param nodes.usbs.enabled var qrNodesUsbsEnabled bool if o.NodesUsbsEnabled != nil { qrNodesUsbsEnabled = *o.NodesUsbsEnabled } qNodesUsbsEnabled := swag.FormatBool(qrNodesUsbsEnabled) if qNodesUsbsEnabled != "" { if err := r.SetQueryParam("nodes.usbs.enabled", qNodesUsbsEnabled); err != nil { return err } } } if o.NodesUsbsPortsConnected != nil { // query param nodes.usbs.ports.connected var qrNodesUsbsPortsConnected bool if o.NodesUsbsPortsConnected != nil { qrNodesUsbsPortsConnected = *o.NodesUsbsPortsConnected } qNodesUsbsPortsConnected := swag.FormatBool(qrNodesUsbsPortsConnected) if qNodesUsbsPortsConnected != "" { if err := r.SetQueryParam("nodes.usbs.ports.connected", qNodesUsbsPortsConnected); err != nil { return err } } } if o.NodesUsbsSupported != nil { // query param nodes.usbs.supported var qrNodesUsbsSupported bool if o.NodesUsbsSupported != nil { qrNodesUsbsSupported = *o.NodesUsbsSupported } qNodesUsbsSupported := swag.FormatBool(qrNodesUsbsSupported) if qNodesUsbsSupported != "" { if err := r.SetQueryParam("nodes.usbs.supported", qNodesUsbsSupported); err != nil { return err } } } if o.NodesUUID != nil { // query param nodes.uuid var qrNodesUUID string if o.NodesUUID != nil { qrNodesUUID = *o.NodesUUID } qNodesUUID := qrNodesUUID if qNodesUUID != "" { if err := r.SetQueryParam("nodes.uuid", qNodesUUID); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.ShelvesUID != nil { // query param shelves.uid var qrShelvesUID string if o.ShelvesUID != nil { qrShelvesUID = *o.ShelvesUID } qShelvesUID := qrShelvesUID if qShelvesUID != "" { if err := r.SetQueryParam("shelves.uid", qShelvesUID); err != nil { return err } } } if o.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamChassisCollectionGet binds the parameter fields func (o *ChassisCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamChassisCollectionGet binds the parameter order_by func (o *ChassisCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterNtpServersModifyReader is a Reader for the ClusterNtpServersModify structure. type ClusterNtpServersModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNtpServersModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewClusterNtpServersModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNtpServersModifyDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterNtpServersModifyAccepted creates a ClusterNtpServersModifyAccepted with default headers values func NewClusterNtpServersModifyAccepted() *ClusterNtpServersModifyAccepted { return &ClusterNtpServersModifyAccepted{} } /* ClusterNtpServersModifyAccepted describes a response with status code 202, with default header values. Accepted */ type ClusterNtpServersModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this cluster ntp servers modify accepted response has a 2xx status code func (o *ClusterNtpServersModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ntp servers modify accepted response has a 3xx status code func (o *ClusterNtpServersModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this cluster ntp servers modify accepted response has a 4xx status code func (o *ClusterNtpServersModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this cluster ntp servers modify accepted response has a 5xx status code func (o *ClusterNtpServersModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this cluster ntp servers modify accepted response a status code equal to that given func (o *ClusterNtpServersModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *ClusterNtpServersModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /cluster/ntp/servers/{server}][%d] clusterNtpServersModifyAccepted %+v", 202, o.Payload) } func (o *ClusterNtpServersModifyAccepted) String() string { return fmt.Sprintf("[PATCH /cluster/ntp/servers/{server}][%d] clusterNtpServersModifyAccepted %+v", 202, o.Payload) } func (o *ClusterNtpServersModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ClusterNtpServersModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNtpServersModifyDefault creates a ClusterNtpServersModifyDefault with default headers values func NewClusterNtpServersModifyDefault(code int) *ClusterNtpServersModifyDefault { return &ClusterNtpServersModifyDefault{ _statusCode: code, } } /* ClusterNtpServersModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2097163 | NTP server address was invalid. | | 2097164 | NTP server address was invalid. | | 2097165 | Could not resolve NTP server hostname. | | 2097166 | NTP server address query returned no valid IP addresses. | | 2097167 | Failed to connect to NTP server. | | 2097169 | NTP server provided was not synchronized. | | 2097174 | NTP server provided had too high of root distance. | | 2097177 | NTP server provided had an invalid stratum. | | 2097181 | NTP server address was invalid. | | 2097182 | NTP server address was invalid. | | 2097183 | NTP symmetric key authentication cannot be used for a node not in a cluster. | | 2097185 | NTP key authentication failed for the provided key. | | 2097188 | An invalid key identifier was provided. Identifiers must be in the range from 1 to 65535. | | 2097193 | An unknown key was provided. | | 2097194 | The field \"authentication_enabled\" cannot be false when the field NTP key is given. | */ type ClusterNtpServersModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ntp servers modify default response func (o *ClusterNtpServersModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ntp servers modify default response has a 2xx status code func (o *ClusterNtpServersModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ntp servers modify default response has a 3xx status code func (o *ClusterNtpServersModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ntp servers modify default response has a 4xx status code func (o *ClusterNtpServersModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ntp servers modify default response has a 5xx status code func (o *ClusterNtpServersModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ntp servers modify default response a status code equal to that given func (o *ClusterNtpServersModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNtpServersModifyDefault) Error() string { return fmt.Sprintf("[PATCH /cluster/ntp/servers/{server}][%d] cluster_ntp_servers_modify default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpServersModifyDefault) String() string { return fmt.Sprintf("[PATCH /cluster/ntp/servers/{server}][%d] cluster_ntp_servers_modify default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpServersModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNtpServersModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewClusterNtpServersCreateParams creates a new ClusterNtpServersCreateParams 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 NewClusterNtpServersCreateParams() *ClusterNtpServersCreateParams { return &ClusterNtpServersCreateParams{ timeout: cr.DefaultTimeout, } } // NewClusterNtpServersCreateParamsWithTimeout creates a new ClusterNtpServersCreateParams object // with the ability to set a timeout on a request. func NewClusterNtpServersCreateParamsWithTimeout(timeout time.Duration) *ClusterNtpServersCreateParams { return &ClusterNtpServersCreateParams{ timeout: timeout, } } // NewClusterNtpServersCreateParamsWithContext creates a new ClusterNtpServersCreateParams object // with the ability to set a context for a request. func NewClusterNtpServersCreateParamsWithContext(ctx context.Context) *ClusterNtpServersCreateParams { return &ClusterNtpServersCreateParams{ Context: ctx, } } // NewClusterNtpServersCreateParamsWithHTTPClient creates a new ClusterNtpServersCreateParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNtpServersCreateParamsWithHTTPClient(client *http.Client) *ClusterNtpServersCreateParams { return &ClusterNtpServersCreateParams{ HTTPClient: client, } } /* ClusterNtpServersCreateParams contains all the parameters to send to the API endpoint for the cluster ntp servers create operation. Typically these are written to a http.Request. */ type ClusterNtpServersCreateParams struct { /* Info. Information specification */ Info *models.NtpServer /* ReturnRecords. The default is false. If set to true, the records are returned. */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ntp servers create params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersCreateParams) WithDefaults() *ClusterNtpServersCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ntp servers create params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ClusterNtpServersCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) WithTimeout(timeout time.Duration) *ClusterNtpServersCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) WithContext(ctx context.Context) *ClusterNtpServersCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) WithHTTPClient(client *http.Client) *ClusterNtpServersCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) WithInfo(info *models.NtpServer) *ClusterNtpServersCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) SetInfo(info *models.NtpServer) { o.Info = info } // WithReturnRecords adds the returnRecords to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) WithReturnRecords(returnRecords *bool) *ClusterNtpServersCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) WithReturnTimeout(returnTimeout *int64) *ClusterNtpServersCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the cluster ntp servers create params func (o *ClusterNtpServersCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ClusterNtpServersCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_table_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_table_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // CounterTableGetReader is a Reader for the CounterTableGet structure. type CounterTableGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CounterTableGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCounterTableGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCounterTableGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewCounterTableGetOK creates a CounterTableGetOK with default headers values func NewCounterTableGetOK() *CounterTableGetOK { return &CounterTableGetOK{} } /* CounterTableGetOK describes a response with status code 200, with default header values. OK */ type CounterTableGetOK struct { Payload *models.CounterTable } // IsSuccess returns true when this counter table get o k response has a 2xx status code func (o *CounterTableGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this counter table get o k response has a 3xx status code func (o *CounterTableGetOK) IsRedirect() bool { return false } // IsClientError returns true when this counter table get o k response has a 4xx status code func (o *CounterTableGetOK) IsClientError() bool { return false } // IsServerError returns true when this counter table get o k response has a 5xx status code func (o *CounterTableGetOK) IsServerError() bool { return false } // IsCode returns true when this counter table get o k response a status code equal to that given func (o *CounterTableGetOK) IsCode(code int) bool { return code == 200 } func (o *CounterTableGetOK) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables/{name}][%d] counterTableGetOK %+v", 200, o.Payload) } func (o *CounterTableGetOK) String() string { return fmt.Sprintf("[GET /cluster/counter/tables/{name}][%d] counterTableGetOK %+v", 200, o.Payload) } func (o *CounterTableGetOK) GetPayload() *models.CounterTable { return o.Payload } func (o *CounterTableGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CounterTable) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCounterTableGetDefault creates a CounterTableGetDefault with default headers values func NewCounterTableGetDefault(code int) *CounterTableGetDefault { return &CounterTableGetDefault{ _statusCode: code, } } /* CounterTableGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 8585320 | Table requested is not found | | 8585368 | The system has not completed it's initialization | */ type CounterTableGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the counter table get default response func (o *CounterTableGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this counter table get default response has a 2xx status code func (o *CounterTableGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this counter table get default response has a 3xx status code func (o *CounterTableGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this counter table get default response has a 4xx status code func (o *CounterTableGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this counter table get default response has a 5xx status code func (o *CounterTableGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this counter table get default response a status code equal to that given func (o *CounterTableGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CounterTableGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables/{name}][%d] counter_table_get default %+v", o._statusCode, o.Payload) } func (o *CounterTableGetDefault) String() string { return fmt.Sprintf("[GET /cluster/counter/tables/{name}][%d] counter_table_get default %+v", o._statusCode, o.Payload) } func (o *CounterTableGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CounterTableGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_diagnostics_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_diagnostics_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterDiagnosticsGetParams creates a new MetroclusterDiagnosticsGetParams 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 NewMetroclusterDiagnosticsGetParams() *MetroclusterDiagnosticsGetParams { return &MetroclusterDiagnosticsGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterDiagnosticsGetParamsWithTimeout creates a new MetroclusterDiagnosticsGetParams object // with the ability to set a timeout on a request. func NewMetroclusterDiagnosticsGetParamsWithTimeout(timeout time.Duration) *MetroclusterDiagnosticsGetParams { return &MetroclusterDiagnosticsGetParams{ timeout: timeout, } } // NewMetroclusterDiagnosticsGetParamsWithContext creates a new MetroclusterDiagnosticsGetParams object // with the ability to set a context for a request. func NewMetroclusterDiagnosticsGetParamsWithContext(ctx context.Context) *MetroclusterDiagnosticsGetParams { return &MetroclusterDiagnosticsGetParams{ Context: ctx, } } // NewMetroclusterDiagnosticsGetParamsWithHTTPClient creates a new MetroclusterDiagnosticsGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterDiagnosticsGetParamsWithHTTPClient(client *http.Client) *MetroclusterDiagnosticsGetParams { return &MetroclusterDiagnosticsGetParams{ HTTPClient: client, } } /* MetroclusterDiagnosticsGetParams contains all the parameters to send to the API endpoint for the metrocluster diagnostics get operation. Typically these are written to a http.Request. */ type MetroclusterDiagnosticsGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster diagnostics get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterDiagnosticsGetParams) WithDefaults() *MetroclusterDiagnosticsGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster diagnostics get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterDiagnosticsGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) WithTimeout(timeout time.Duration) *MetroclusterDiagnosticsGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) WithContext(ctx context.Context) *MetroclusterDiagnosticsGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) WithHTTPClient(client *http.Client) *MetroclusterDiagnosticsGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) WithFields(fields []string) *MetroclusterDiagnosticsGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) WithMaxRecords(maxRecords *int64) *MetroclusterDiagnosticsGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the metrocluster diagnostics get params func (o *MetroclusterDiagnosticsGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WriteToRequest writes these params to a swagger request func (o *MetroclusterDiagnosticsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMetroclusterDiagnosticsGet binds the parameter fields func (o *MetroclusterDiagnosticsGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/web_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/web_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewWebModifyParams creates a new WebModifyParams 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 NewWebModifyParams() *WebModifyParams { return &WebModifyParams{ timeout: cr.DefaultTimeout, } } // NewWebModifyParamsWithTimeout creates a new WebModifyParams object // with the ability to set a timeout on a request. func NewWebModifyParamsWithTimeout(timeout time.Duration) *WebModifyParams { return &WebModifyParams{ timeout: timeout, } } // NewWebModifyParamsWithContext creates a new WebModifyParams object // with the ability to set a context for a request. func NewWebModifyParamsWithContext(ctx context.Context) *WebModifyParams { return &WebModifyParams{ Context: ctx, } } // NewWebModifyParamsWithHTTPClient creates a new WebModifyParams object // with the ability to set a custom HTTPClient for a request. func NewWebModifyParamsWithHTTPClient(client *http.Client) *WebModifyParams { return &WebModifyParams{ HTTPClient: client, } } /* WebModifyParams contains all the parameters to send to the API endpoint for the web modify operation. Typically these are written to a http.Request. */ type WebModifyParams struct { /* Info. Web services information */ Info *models.Web /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the web modify params (not the query body). // // All values with no default are reset to their zero value. func (o *WebModifyParams) WithDefaults() *WebModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the web modify params (not the query body). // // All values with no default are reset to their zero value. func (o *WebModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := WebModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the web modify params func (o *WebModifyParams) WithTimeout(timeout time.Duration) *WebModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the web modify params func (o *WebModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the web modify params func (o *WebModifyParams) WithContext(ctx context.Context) *WebModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the web modify params func (o *WebModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the web modify params func (o *WebModifyParams) WithHTTPClient(client *http.Client) *WebModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the web modify params func (o *WebModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the web modify params func (o *WebModifyParams) WithInfo(info *models.Web) *WebModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the web modify params func (o *WebModifyParams) SetInfo(info *models.Web) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the web modify params func (o *WebModifyParams) WithReturnTimeout(returnTimeout *int64) *WebModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the web modify params func (o *WebModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *WebModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_package_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_package_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SoftwarePackageGetReader is a Reader for the SoftwarePackageGet structure. type SoftwarePackageGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SoftwarePackageGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSoftwarePackageGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSoftwarePackageGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewSoftwarePackageGetOK creates a SoftwarePackageGetOK with default headers values func NewSoftwarePackageGetOK() *SoftwarePackageGetOK { return &SoftwarePackageGetOK{} } /* SoftwarePackageGetOK describes a response with status code 200, with default header values. OK */ type SoftwarePackageGetOK struct { Payload *models.SoftwarePackage } // IsSuccess returns true when this software package get o k response has a 2xx status code func (o *SoftwarePackageGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this software package get o k response has a 3xx status code func (o *SoftwarePackageGetOK) IsRedirect() bool { return false } // IsClientError returns true when this software package get o k response has a 4xx status code func (o *SoftwarePackageGetOK) IsClientError() bool { return false } // IsServerError returns true when this software package get o k response has a 5xx status code func (o *SoftwarePackageGetOK) IsServerError() bool { return false } // IsCode returns true when this software package get o k response a status code equal to that given func (o *SoftwarePackageGetOK) IsCode(code int) bool { return code == 200 } func (o *SoftwarePackageGetOK) Error() string { return fmt.Sprintf("[GET /cluster/software/packages/{version}][%d] softwarePackageGetOK %+v", 200, o.Payload) } func (o *SoftwarePackageGetOK) String() string { return fmt.Sprintf("[GET /cluster/software/packages/{version}][%d] softwarePackageGetOK %+v", 200, o.Payload) } func (o *SoftwarePackageGetOK) GetPayload() *models.SoftwarePackage { return o.Payload } func (o *SoftwarePackageGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SoftwarePackage) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSoftwarePackageGetDefault creates a SoftwarePackageGetDefault with default headers values func NewSoftwarePackageGetDefault(code int) *SoftwarePackageGetDefault { return &SoftwarePackageGetDefault{ _statusCode: code, } } /* SoftwarePackageGetDefault describes a response with status code -1, with default header values. Error */ type SoftwarePackageGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the software package get default response func (o *SoftwarePackageGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this software package get default response has a 2xx status code func (o *SoftwarePackageGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this software package get default response has a 3xx status code func (o *SoftwarePackageGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this software package get default response has a 4xx status code func (o *SoftwarePackageGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this software package get default response has a 5xx status code func (o *SoftwarePackageGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this software package get default response a status code equal to that given func (o *SoftwarePackageGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SoftwarePackageGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/software/packages/{version}][%d] software_package_get default %+v", o._statusCode, o.Payload) } func (o *SoftwarePackageGetDefault) String() string { return fmt.Sprintf("[GET /cluster/software/packages/{version}][%d] software_package_get default %+v", o._statusCode, o.Payload) } func (o *SoftwarePackageGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SoftwarePackageGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_collection_performance_metrics_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_collection_performance_metrics_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterCollectionPerformanceMetricsGetReader is a Reader for the ClusterCollectionPerformanceMetricsGet structure. type ClusterCollectionPerformanceMetricsGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterCollectionPerformanceMetricsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterCollectionPerformanceMetricsGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterCollectionPerformanceMetricsGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterCollectionPerformanceMetricsGetOK creates a ClusterCollectionPerformanceMetricsGetOK with default headers values func NewClusterCollectionPerformanceMetricsGetOK() *ClusterCollectionPerformanceMetricsGetOK { return &ClusterCollectionPerformanceMetricsGetOK{} } /* ClusterCollectionPerformanceMetricsGetOK describes a response with status code 200, with default header values. OK */ type ClusterCollectionPerformanceMetricsGetOK struct { Payload *models.ClusterMetricsResponse } // IsSuccess returns true when this cluster collection performance metrics get o k response has a 2xx status code func (o *ClusterCollectionPerformanceMetricsGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster collection performance metrics get o k response has a 3xx status code func (o *ClusterCollectionPerformanceMetricsGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster collection performance metrics get o k response has a 4xx status code func (o *ClusterCollectionPerformanceMetricsGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster collection performance metrics get o k response has a 5xx status code func (o *ClusterCollectionPerformanceMetricsGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster collection performance metrics get o k response a status code equal to that given func (o *ClusterCollectionPerformanceMetricsGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterCollectionPerformanceMetricsGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrics][%d] clusterCollectionPerformanceMetricsGetOK %+v", 200, o.Payload) } func (o *ClusterCollectionPerformanceMetricsGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrics][%d] clusterCollectionPerformanceMetricsGetOK %+v", 200, o.Payload) } func (o *ClusterCollectionPerformanceMetricsGetOK) GetPayload() *models.ClusterMetricsResponse { return o.Payload } func (o *ClusterCollectionPerformanceMetricsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ClusterMetricsResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterCollectionPerformanceMetricsGetDefault creates a ClusterCollectionPerformanceMetricsGetDefault with default headers values func NewClusterCollectionPerformanceMetricsGetDefault(code int) *ClusterCollectionPerformanceMetricsGetDefault { return &ClusterCollectionPerformanceMetricsGetDefault{ _statusCode: code, } } /* ClusterCollectionPerformanceMetricsGetDefault describes a response with status code -1, with default header values. Error */ type ClusterCollectionPerformanceMetricsGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster collection performance metrics get default response func (o *ClusterCollectionPerformanceMetricsGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster collection performance metrics get default response has a 2xx status code func (o *ClusterCollectionPerformanceMetricsGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster collection performance metrics get default response has a 3xx status code func (o *ClusterCollectionPerformanceMetricsGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster collection performance metrics get default response has a 4xx status code func (o *ClusterCollectionPerformanceMetricsGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster collection performance metrics get default response has a 5xx status code func (o *ClusterCollectionPerformanceMetricsGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster collection performance metrics get default response a status code equal to that given func (o *ClusterCollectionPerformanceMetricsGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterCollectionPerformanceMetricsGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrics][%d] cluster_collection_performance_metrics_get default %+v", o._statusCode, o.Payload) } func (o *ClusterCollectionPerformanceMetricsGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrics][%d] cluster_collection_performance_metrics_get default %+v", o._statusCode, o.Payload) } func (o *ClusterCollectionPerformanceMetricsGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterCollectionPerformanceMetricsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_node_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_node_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterNodeGetReader is a Reader for the MetroclusterNodeGet structure. type MetroclusterNodeGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterNodeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMetroclusterNodeGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterNodeGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterNodeGetOK creates a MetroclusterNodeGetOK with default headers values func NewMetroclusterNodeGetOK() *MetroclusterNodeGetOK { return &MetroclusterNodeGetOK{} } /* MetroclusterNodeGetOK describes a response with status code 200, with default header values. OK */ type MetroclusterNodeGetOK struct { Payload *models.MetroclusterNode } // IsSuccess returns true when this metrocluster node get o k response has a 2xx status code func (o *MetroclusterNodeGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster node get o k response has a 3xx status code func (o *MetroclusterNodeGetOK) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster node get o k response has a 4xx status code func (o *MetroclusterNodeGetOK) IsClientError() bool { return false } // IsServerError returns true when this metrocluster node get o k response has a 5xx status code func (o *MetroclusterNodeGetOK) IsServerError() bool { return false } // IsCode returns true when this metrocluster node get o k response a status code equal to that given func (o *MetroclusterNodeGetOK) IsCode(code int) bool { return code == 200 } func (o *MetroclusterNodeGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/nodes/{node.uuid}][%d] metroclusterNodeGetOK %+v", 200, o.Payload) } func (o *MetroclusterNodeGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/nodes/{node.uuid}][%d] metroclusterNodeGetOK %+v", 200, o.Payload) } func (o *MetroclusterNodeGetOK) GetPayload() *models.MetroclusterNode { return o.Payload } func (o *MetroclusterNodeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MetroclusterNode) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterNodeGetDefault creates a MetroclusterNodeGetDefault with default headers values func NewMetroclusterNodeGetDefault(code int) *MetroclusterNodeGetDefault { return &MetroclusterNodeGetDefault{ _statusCode: code, } } /* MetroclusterNodeGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | */ type MetroclusterNodeGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster node get default response func (o *MetroclusterNodeGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster node get default response has a 2xx status code func (o *MetroclusterNodeGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster node get default response has a 3xx status code func (o *MetroclusterNodeGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster node get default response has a 4xx status code func (o *MetroclusterNodeGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster node get default response has a 5xx status code func (o *MetroclusterNodeGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster node get default response a status code equal to that given func (o *MetroclusterNodeGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterNodeGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster/nodes/{node.uuid}][%d] metrocluster_node_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterNodeGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrocluster/nodes/{node.uuid}][%d] metrocluster_node_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterNodeGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterNodeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // LicenseGetReader is a Reader for the LicenseGet structure. type LicenseGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LicenseGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLicenseGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLicenseGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewLicenseGetOK creates a LicenseGetOK with default headers values func NewLicenseGetOK() *LicenseGetOK { return &LicenseGetOK{} } /* LicenseGetOK describes a response with status code 200, with default header values. OK */ type LicenseGetOK struct { Payload *models.LicensePackage } // IsSuccess returns true when this license get o k response has a 2xx status code func (o *LicenseGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this license get o k response has a 3xx status code func (o *LicenseGetOK) IsRedirect() bool { return false } // IsClientError returns true when this license get o k response has a 4xx status code func (o *LicenseGetOK) IsClientError() bool { return false } // IsServerError returns true when this license get o k response has a 5xx status code func (o *LicenseGetOK) IsServerError() bool { return false } // IsCode returns true when this license get o k response a status code equal to that given func (o *LicenseGetOK) IsCode(code int) bool { return code == 200 } func (o *LicenseGetOK) Error() string { return fmt.Sprintf("[GET /cluster/licensing/licenses/{name}][%d] licenseGetOK %+v", 200, o.Payload) } func (o *LicenseGetOK) String() string { return fmt.Sprintf("[GET /cluster/licensing/licenses/{name}][%d] licenseGetOK %+v", 200, o.Payload) } func (o *LicenseGetOK) GetPayload() *models.LicensePackage { return o.Payload } func (o *LicenseGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.LicensePackage) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLicenseGetDefault creates a LicenseGetDefault with default headers values func NewLicenseGetDefault(code int) *LicenseGetDefault { return &LicenseGetDefault{ _statusCode: code, } } /* LicenseGetDefault describes a response with status code -1, with default header values. Error */ type LicenseGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the license get default response func (o *LicenseGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this license get default response has a 2xx status code func (o *LicenseGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this license get default response has a 3xx status code func (o *LicenseGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this license get default response has a 4xx status code func (o *LicenseGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this license get default response has a 5xx status code func (o *LicenseGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this license get default response a status code equal to that given func (o *LicenseGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LicenseGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/licensing/licenses/{name}][%d] license_get default %+v", o._statusCode, o.Payload) } func (o *LicenseGetDefault) String() string { return fmt.Sprintf("[GET /cluster/licensing/licenses/{name}][%d] license_get default %+v", o._statusCode, o.Payload) } func (o *LicenseGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LicenseGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ScheduleGetReader is a Reader for the ScheduleGet structure. type ScheduleGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ScheduleGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewScheduleGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewScheduleGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewScheduleGetOK creates a ScheduleGetOK with default headers values func NewScheduleGetOK() *ScheduleGetOK { return &ScheduleGetOK{} } /* ScheduleGetOK describes a response with status code 200, with default header values. OK */ type ScheduleGetOK struct { Payload *models.Schedule } // IsSuccess returns true when this schedule get o k response has a 2xx status code func (o *ScheduleGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this schedule get o k response has a 3xx status code func (o *ScheduleGetOK) IsRedirect() bool { return false } // IsClientError returns true when this schedule get o k response has a 4xx status code func (o *ScheduleGetOK) IsClientError() bool { return false } // IsServerError returns true when this schedule get o k response has a 5xx status code func (o *ScheduleGetOK) IsServerError() bool { return false } // IsCode returns true when this schedule get o k response a status code equal to that given func (o *ScheduleGetOK) IsCode(code int) bool { return code == 200 } func (o *ScheduleGetOK) Error() string { return fmt.Sprintf("[GET /cluster/schedules/{uuid}][%d] scheduleGetOK %+v", 200, o.Payload) } func (o *ScheduleGetOK) String() string { return fmt.Sprintf("[GET /cluster/schedules/{uuid}][%d] scheduleGetOK %+v", 200, o.Payload) } func (o *ScheduleGetOK) GetPayload() *models.Schedule { return o.Payload } func (o *ScheduleGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Schedule) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewScheduleGetDefault creates a ScheduleGetDefault with default headers values func NewScheduleGetDefault(code int) *ScheduleGetDefault { return &ScheduleGetDefault{ _statusCode: code, } } /* ScheduleGetDefault describes a response with status code -1, with default header values. Error */ type ScheduleGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the schedule get default response func (o *ScheduleGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this schedule get default response has a 2xx status code func (o *ScheduleGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this schedule get default response has a 3xx status code func (o *ScheduleGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this schedule get default response has a 4xx status code func (o *ScheduleGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this schedule get default response has a 5xx status code func (o *ScheduleGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this schedule get default response a status code equal to that given func (o *ScheduleGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ScheduleGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/schedules/{uuid}][%d] schedule_get default %+v", o._statusCode, o.Payload) } func (o *ScheduleGetDefault) String() string { return fmt.Sprintf("[GET /cluster/schedules/{uuid}][%d] schedule_get default %+v", o._statusCode, o.Payload) } func (o *ScheduleGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ScheduleGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/licenses_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/licenses_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // LicensesGetReader is a Reader for the LicensesGet structure. type LicensesGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LicensesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLicensesGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLicensesGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewLicensesGetOK creates a LicensesGetOK with default headers values func NewLicensesGetOK() *LicensesGetOK { return &LicensesGetOK{} } /* LicensesGetOK describes a response with status code 200, with default header values. OK */ type LicensesGetOK struct { Payload *models.LicensePackageResponse } // IsSuccess returns true when this licenses get o k response has a 2xx status code func (o *LicensesGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this licenses get o k response has a 3xx status code func (o *LicensesGetOK) IsRedirect() bool { return false } // IsClientError returns true when this licenses get o k response has a 4xx status code func (o *LicensesGetOK) IsClientError() bool { return false } // IsServerError returns true when this licenses get o k response has a 5xx status code func (o *LicensesGetOK) IsServerError() bool { return false } // IsCode returns true when this licenses get o k response a status code equal to that given func (o *LicensesGetOK) IsCode(code int) bool { return code == 200 } func (o *LicensesGetOK) Error() string { return fmt.Sprintf("[GET /cluster/licensing/licenses][%d] licensesGetOK %+v", 200, o.Payload) } func (o *LicensesGetOK) String() string { return fmt.Sprintf("[GET /cluster/licensing/licenses][%d] licensesGetOK %+v", 200, o.Payload) } func (o *LicensesGetOK) GetPayload() *models.LicensePackageResponse { return o.Payload } func (o *LicensesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.LicensePackageResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLicensesGetDefault creates a LicensesGetDefault with default headers values func NewLicensesGetDefault(code int) *LicensesGetDefault { return &LicensesGetDefault{ _statusCode: code, } } /* LicensesGetDefault describes a response with status code -1, with default header values. Error */ type LicensesGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the licenses get default response func (o *LicensesGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this licenses get default response has a 2xx status code func (o *LicensesGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this licenses get default response has a 3xx status code func (o *LicensesGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this licenses get default response has a 4xx status code func (o *LicensesGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this licenses get default response has a 5xx status code func (o *LicensesGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this licenses get default response a status code equal to that given func (o *LicensesGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LicensesGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/licensing/licenses][%d] licenses_get default %+v", o._statusCode, o.Payload) } func (o *LicensesGetDefault) String() string { return fmt.Sprintf("[GET /cluster/licensing/licenses][%d] licenses_get default %+v", o._statusCode, o.Payload) } func (o *LicensesGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LicensesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewClusterNtpServersCollectionGetParams creates a new ClusterNtpServersCollectionGetParams 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 NewClusterNtpServersCollectionGetParams() *ClusterNtpServersCollectionGetParams { return &ClusterNtpServersCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewClusterNtpServersCollectionGetParamsWithTimeout creates a new ClusterNtpServersCollectionGetParams object // with the ability to set a timeout on a request. func NewClusterNtpServersCollectionGetParamsWithTimeout(timeout time.Duration) *ClusterNtpServersCollectionGetParams { return &ClusterNtpServersCollectionGetParams{ timeout: timeout, } } // NewClusterNtpServersCollectionGetParamsWithContext creates a new ClusterNtpServersCollectionGetParams object // with the ability to set a context for a request. func NewClusterNtpServersCollectionGetParamsWithContext(ctx context.Context) *ClusterNtpServersCollectionGetParams { return &ClusterNtpServersCollectionGetParams{ Context: ctx, } } // NewClusterNtpServersCollectionGetParamsWithHTTPClient creates a new ClusterNtpServersCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNtpServersCollectionGetParamsWithHTTPClient(client *http.Client) *ClusterNtpServersCollectionGetParams { return &ClusterNtpServersCollectionGetParams{ HTTPClient: client, } } /* ClusterNtpServersCollectionGetParams contains all the parameters to send to the API endpoint for the cluster ntp servers collection get operation. Typically these are written to a http.Request. */ type ClusterNtpServersCollectionGetParams struct { /* AuthenticationEnabled. Filter by authentication_enabled */ AuthenticationEnabled *bool /* Fields. Specify the fields to return. */ Fields []string /* KeyID. Filter by key.id */ KeyID *int64 /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* Server. Filter by server */ Server *string /* Version. Filter by version */ Version *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ntp servers collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersCollectionGetParams) WithDefaults() *ClusterNtpServersCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ntp servers collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ClusterNtpServersCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithTimeout(timeout time.Duration) *ClusterNtpServersCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithContext(ctx context.Context) *ClusterNtpServersCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithHTTPClient(client *http.Client) *ClusterNtpServersCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAuthenticationEnabled adds the authenticationEnabled to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithAuthenticationEnabled(authenticationEnabled *bool) *ClusterNtpServersCollectionGetParams { o.SetAuthenticationEnabled(authenticationEnabled) return o } // SetAuthenticationEnabled adds the authenticationEnabled to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetAuthenticationEnabled(authenticationEnabled *bool) { o.AuthenticationEnabled = authenticationEnabled } // WithFields adds the fields to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithFields(fields []string) *ClusterNtpServersCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithKeyID adds the keyID to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithKeyID(keyID *int64) *ClusterNtpServersCollectionGetParams { o.SetKeyID(keyID) return o } // SetKeyID adds the keyId to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetKeyID(keyID *int64) { o.KeyID = keyID } // WithMaxRecords adds the maxRecords to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithMaxRecords(maxRecords *int64) *ClusterNtpServersCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithOrderBy(orderBy []string) *ClusterNtpServersCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithReturnRecords(returnRecords *bool) *ClusterNtpServersCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ClusterNtpServersCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithServer adds the server to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithServer(server *string) *ClusterNtpServersCollectionGetParams { o.SetServer(server) return o } // SetServer adds the server to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetServer(server *string) { o.Server = server } // WithVersion adds the version to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) WithVersion(version *string) *ClusterNtpServersCollectionGetParams { o.SetVersion(version) return o } // SetVersion adds the version to the cluster ntp servers collection get params func (o *ClusterNtpServersCollectionGetParams) SetVersion(version *string) { o.Version = version } // WriteToRequest writes these params to a swagger request func (o *ClusterNtpServersCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AuthenticationEnabled != nil { // query param authentication_enabled var qrAuthenticationEnabled bool if o.AuthenticationEnabled != nil { qrAuthenticationEnabled = *o.AuthenticationEnabled } qAuthenticationEnabled := swag.FormatBool(qrAuthenticationEnabled) if qAuthenticationEnabled != "" { if err := r.SetQueryParam("authentication_enabled", qAuthenticationEnabled); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.KeyID != nil { // query param key.id var qrKeyID int64 if o.KeyID != nil { qrKeyID = *o.KeyID } qKeyID := swag.FormatInt64(qrKeyID) if qKeyID != "" { if err := r.SetQueryParam("key.id", qKeyID); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.Server != nil { // query param server var qrServer string if o.Server != nil { qrServer = *o.Server } qServer := qrServer if qServer != "" { if err := r.SetQueryParam("server", qServer); err != nil { return err } } } if o.Version != nil { // query param version var qrVersion string if o.Version != nil { qrVersion = *o.Version } qVersion := qrVersion if qVersion != "" { if err := r.SetQueryParam("version", qVersion); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamClusterNtpServersCollectionGet binds the parameter fields func (o *ClusterNtpServersCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamClusterNtpServersCollectionGet binds the parameter order_by func (o *ClusterNtpServersCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewMetroclusterCreateParams creates a new MetroclusterCreateParams 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 NewMetroclusterCreateParams() *MetroclusterCreateParams { return &MetroclusterCreateParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterCreateParamsWithTimeout creates a new MetroclusterCreateParams object // with the ability to set a timeout on a request. func NewMetroclusterCreateParamsWithTimeout(timeout time.Duration) *MetroclusterCreateParams { return &MetroclusterCreateParams{ timeout: timeout, } } // NewMetroclusterCreateParamsWithContext creates a new MetroclusterCreateParams object // with the ability to set a context for a request. func NewMetroclusterCreateParamsWithContext(ctx context.Context) *MetroclusterCreateParams { return &MetroclusterCreateParams{ Context: ctx, } } // NewMetroclusterCreateParamsWithHTTPClient creates a new MetroclusterCreateParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterCreateParamsWithHTTPClient(client *http.Client) *MetroclusterCreateParams { return &MetroclusterCreateParams{ HTTPClient: client, } } /* MetroclusterCreateParams contains all the parameters to send to the API endpoint for the metrocluster create operation. Typically these are written to a http.Request. */ type MetroclusterCreateParams struct { /* Info. MetroCluster information */ Info *models.Metrocluster /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster create params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterCreateParams) WithDefaults() *MetroclusterCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster create params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterCreateParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := MetroclusterCreateParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster create params func (o *MetroclusterCreateParams) WithTimeout(timeout time.Duration) *MetroclusterCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster create params func (o *MetroclusterCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster create params func (o *MetroclusterCreateParams) WithContext(ctx context.Context) *MetroclusterCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster create params func (o *MetroclusterCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster create params func (o *MetroclusterCreateParams) WithHTTPClient(client *http.Client) *MetroclusterCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster create params func (o *MetroclusterCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the metrocluster create params func (o *MetroclusterCreateParams) WithInfo(info *models.Metrocluster) *MetroclusterCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the metrocluster create params func (o *MetroclusterCreateParams) SetInfo(info *models.Metrocluster) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the metrocluster create params func (o *MetroclusterCreateParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster create params func (o *MetroclusterCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *MetroclusterCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/job_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/job_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewJobGetParams creates a new JobGetParams 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 NewJobGetParams() *JobGetParams { return &JobGetParams{ timeout: cr.DefaultTimeout, } } // NewJobGetParamsWithTimeout creates a new JobGetParams object // with the ability to set a timeout on a request. func NewJobGetParamsWithTimeout(timeout time.Duration) *JobGetParams { return &JobGetParams{ timeout: timeout, } } // NewJobGetParamsWithContext creates a new JobGetParams object // with the ability to set a context for a request. func NewJobGetParamsWithContext(ctx context.Context) *JobGetParams { return &JobGetParams{ Context: ctx, } } // NewJobGetParamsWithHTTPClient creates a new JobGetParams object // with the ability to set a custom HTTPClient for a request. func NewJobGetParamsWithHTTPClient(client *http.Client) *JobGetParams { return &JobGetParams{ HTTPClient: client, } } /* JobGetParams contains all the parameters to send to the API endpoint for the job get operation. Typically these are written to a http.Request. */ type JobGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Job UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the job get params (not the query body). // // All values with no default are reset to their zero value. func (o *JobGetParams) WithDefaults() *JobGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the job get params (not the query body). // // All values with no default are reset to their zero value. func (o *JobGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the job get params func (o *JobGetParams) WithTimeout(timeout time.Duration) *JobGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the job get params func (o *JobGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the job get params func (o *JobGetParams) WithContext(ctx context.Context) *JobGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the job get params func (o *JobGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the job get params func (o *JobGetParams) WithHTTPClient(client *http.Client) *JobGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the job get params func (o *JobGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the job get params func (o *JobGetParams) WithFields(fields []string) *JobGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the job get params func (o *JobGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the job get params func (o *JobGetParams) WithUUID(uuid string) *JobGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the job get params func (o *JobGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *JobGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamJobGet binds the parameter fields func (o *JobGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterNtpKeysGetReader is a Reader for the ClusterNtpKeysGet structure. type ClusterNtpKeysGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNtpKeysGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterNtpKeysGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNtpKeysGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterNtpKeysGetOK creates a ClusterNtpKeysGetOK with default headers values func NewClusterNtpKeysGetOK() *ClusterNtpKeysGetOK { return &ClusterNtpKeysGetOK{} } /* ClusterNtpKeysGetOK describes a response with status code 200, with default header values. OK */ type ClusterNtpKeysGetOK struct { Payload *models.NtpKey } // IsSuccess returns true when this cluster ntp keys get o k response has a 2xx status code func (o *ClusterNtpKeysGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ntp keys get o k response has a 3xx status code func (o *ClusterNtpKeysGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster ntp keys get o k response has a 4xx status code func (o *ClusterNtpKeysGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster ntp keys get o k response has a 5xx status code func (o *ClusterNtpKeysGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster ntp keys get o k response a status code equal to that given func (o *ClusterNtpKeysGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterNtpKeysGetOK) Error() string { return fmt.Sprintf("[GET /cluster/ntp/keys/{id}][%d] clusterNtpKeysGetOK %+v", 200, o.Payload) } func (o *ClusterNtpKeysGetOK) String() string { return fmt.Sprintf("[GET /cluster/ntp/keys/{id}][%d] clusterNtpKeysGetOK %+v", 200, o.Payload) } func (o *ClusterNtpKeysGetOK) GetPayload() *models.NtpKey { return o.Payload } func (o *ClusterNtpKeysGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NtpKey) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNtpKeysGetDefault creates a ClusterNtpKeysGetDefault with default headers values func NewClusterNtpKeysGetDefault(code int) *ClusterNtpKeysGetDefault { return &ClusterNtpKeysGetDefault{ _statusCode: code, } } /* ClusterNtpKeysGetDefault describes a response with status code -1, with default header values. Error */ type ClusterNtpKeysGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ntp keys get default response func (o *ClusterNtpKeysGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ntp keys get default response has a 2xx status code func (o *ClusterNtpKeysGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ntp keys get default response has a 3xx status code func (o *ClusterNtpKeysGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ntp keys get default response has a 4xx status code func (o *ClusterNtpKeysGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ntp keys get default response has a 5xx status code func (o *ClusterNtpKeysGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ntp keys get default response a status code equal to that given func (o *ClusterNtpKeysGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNtpKeysGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/ntp/keys/{id}][%d] cluster_ntp_keys_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpKeysGetDefault) String() string { return fmt.Sprintf("[GET /cluster/ntp/keys/{id}][%d] cluster_ntp_keys_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpKeysGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNtpKeysGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewLicenseGetParams creates a new LicenseGetParams 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 NewLicenseGetParams() *LicenseGetParams { return &LicenseGetParams{ timeout: cr.DefaultTimeout, } } // NewLicenseGetParamsWithTimeout creates a new LicenseGetParams object // with the ability to set a timeout on a request. func NewLicenseGetParamsWithTimeout(timeout time.Duration) *LicenseGetParams { return &LicenseGetParams{ timeout: timeout, } } // NewLicenseGetParamsWithContext creates a new LicenseGetParams object // with the ability to set a context for a request. func NewLicenseGetParamsWithContext(ctx context.Context) *LicenseGetParams { return &LicenseGetParams{ Context: ctx, } } // NewLicenseGetParamsWithHTTPClient creates a new LicenseGetParams object // with the ability to set a custom HTTPClient for a request. func NewLicenseGetParamsWithHTTPClient(client *http.Client) *LicenseGetParams { return &LicenseGetParams{ HTTPClient: client, } } /* LicenseGetParams contains all the parameters to send to the API endpoint for the license get operation. Typically these are written to a http.Request. */ type LicenseGetParams struct { /* Description. Filter by description */ Description *string /* EntitlementAction. Filter by entitlement.action */ EntitlementAction *string /* EntitlementRisk. Filter by entitlement.risk */ EntitlementRisk *string /* Fields. Specify the fields to return. */ Fields []string /* LicensesActive. Filter by licenses.active */ LicensesActive *bool /* LicensesCapacityMaximumSize. Filter by licenses.capacity.maximum_size */ LicensesCapacityMaximumSize *int64 /* LicensesCapacityUsedSize. Filter by licenses.capacity.used_size */ LicensesCapacityUsedSize *int64 /* LicensesComplianceState. Filter by licenses.compliance.state */ LicensesComplianceState *string /* LicensesEvaluation. Filter by licenses.evaluation */ LicensesEvaluation *bool /* LicensesExpiryTime. Filter by licenses.expiry_time */ LicensesExpiryTime *string /* LicensesHostID. Filter by licenses.host_id */ LicensesHostID *string /* LicensesInstalledLicense. Filter by licenses.installed_license */ LicensesInstalledLicense *string /* LicensesOwner. Filter by licenses.owner */ LicensesOwner *string /* LicensesSerialNumber. Filter by licenses.serial_number */ LicensesSerialNumber *string /* LicensesShutdownImminent. Filter by licenses.shutdown_imminent */ LicensesShutdownImminent *bool /* LicensesStartTime. Filter by licenses.start_time */ LicensesStartTime *string /* Name. Name of the license package. */ Name string /* Scope. Filter by scope */ Scope *string /* State. Filter by state */ State *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the license get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseGetParams) WithDefaults() *LicenseGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the license get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the license get params func (o *LicenseGetParams) WithTimeout(timeout time.Duration) *LicenseGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the license get params func (o *LicenseGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the license get params func (o *LicenseGetParams) WithContext(ctx context.Context) *LicenseGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the license get params func (o *LicenseGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the license get params func (o *LicenseGetParams) WithHTTPClient(client *http.Client) *LicenseGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the license get params func (o *LicenseGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDescription adds the description to the license get params func (o *LicenseGetParams) WithDescription(description *string) *LicenseGetParams { o.SetDescription(description) return o } // SetDescription adds the description to the license get params func (o *LicenseGetParams) SetDescription(description *string) { o.Description = description } // WithEntitlementAction adds the entitlementAction to the license get params func (o *LicenseGetParams) WithEntitlementAction(entitlementAction *string) *LicenseGetParams { o.SetEntitlementAction(entitlementAction) return o } // SetEntitlementAction adds the entitlementAction to the license get params func (o *LicenseGetParams) SetEntitlementAction(entitlementAction *string) { o.EntitlementAction = entitlementAction } // WithEntitlementRisk adds the entitlementRisk to the license get params func (o *LicenseGetParams) WithEntitlementRisk(entitlementRisk *string) *LicenseGetParams { o.SetEntitlementRisk(entitlementRisk) return o } // SetEntitlementRisk adds the entitlementRisk to the license get params func (o *LicenseGetParams) SetEntitlementRisk(entitlementRisk *string) { o.EntitlementRisk = entitlementRisk } // WithFields adds the fields to the license get params func (o *LicenseGetParams) WithFields(fields []string) *LicenseGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the license get params func (o *LicenseGetParams) SetFields(fields []string) { o.Fields = fields } // WithLicensesActive adds the licensesActive to the license get params func (o *LicenseGetParams) WithLicensesActive(licensesActive *bool) *LicenseGetParams { o.SetLicensesActive(licensesActive) return o } // SetLicensesActive adds the licensesActive to the license get params func (o *LicenseGetParams) SetLicensesActive(licensesActive *bool) { o.LicensesActive = licensesActive } // WithLicensesCapacityMaximumSize adds the licensesCapacityMaximumSize to the license get params func (o *LicenseGetParams) WithLicensesCapacityMaximumSize(licensesCapacityMaximumSize *int64) *LicenseGetParams { o.SetLicensesCapacityMaximumSize(licensesCapacityMaximumSize) return o } // SetLicensesCapacityMaximumSize adds the licensesCapacityMaximumSize to the license get params func (o *LicenseGetParams) SetLicensesCapacityMaximumSize(licensesCapacityMaximumSize *int64) { o.LicensesCapacityMaximumSize = licensesCapacityMaximumSize } // WithLicensesCapacityUsedSize adds the licensesCapacityUsedSize to the license get params func (o *LicenseGetParams) WithLicensesCapacityUsedSize(licensesCapacityUsedSize *int64) *LicenseGetParams { o.SetLicensesCapacityUsedSize(licensesCapacityUsedSize) return o } // SetLicensesCapacityUsedSize adds the licensesCapacityUsedSize to the license get params func (o *LicenseGetParams) SetLicensesCapacityUsedSize(licensesCapacityUsedSize *int64) { o.LicensesCapacityUsedSize = licensesCapacityUsedSize } // WithLicensesComplianceState adds the licensesComplianceState to the license get params func (o *LicenseGetParams) WithLicensesComplianceState(licensesComplianceState *string) *LicenseGetParams { o.SetLicensesComplianceState(licensesComplianceState) return o } // SetLicensesComplianceState adds the licensesComplianceState to the license get params func (o *LicenseGetParams) SetLicensesComplianceState(licensesComplianceState *string) { o.LicensesComplianceState = licensesComplianceState } // WithLicensesEvaluation adds the licensesEvaluation to the license get params func (o *LicenseGetParams) WithLicensesEvaluation(licensesEvaluation *bool) *LicenseGetParams { o.SetLicensesEvaluation(licensesEvaluation) return o } // SetLicensesEvaluation adds the licensesEvaluation to the license get params func (o *LicenseGetParams) SetLicensesEvaluation(licensesEvaluation *bool) { o.LicensesEvaluation = licensesEvaluation } // WithLicensesExpiryTime adds the licensesExpiryTime to the license get params func (o *LicenseGetParams) WithLicensesExpiryTime(licensesExpiryTime *string) *LicenseGetParams { o.SetLicensesExpiryTime(licensesExpiryTime) return o } // SetLicensesExpiryTime adds the licensesExpiryTime to the license get params func (o *LicenseGetParams) SetLicensesExpiryTime(licensesExpiryTime *string) { o.LicensesExpiryTime = licensesExpiryTime } // WithLicensesHostID adds the licensesHostID to the license get params func (o *LicenseGetParams) WithLicensesHostID(licensesHostID *string) *LicenseGetParams { o.SetLicensesHostID(licensesHostID) return o } // SetLicensesHostID adds the licensesHostId to the license get params func (o *LicenseGetParams) SetLicensesHostID(licensesHostID *string) { o.LicensesHostID = licensesHostID } // WithLicensesInstalledLicense adds the licensesInstalledLicense to the license get params func (o *LicenseGetParams) WithLicensesInstalledLicense(licensesInstalledLicense *string) *LicenseGetParams { o.SetLicensesInstalledLicense(licensesInstalledLicense) return o } // SetLicensesInstalledLicense adds the licensesInstalledLicense to the license get params func (o *LicenseGetParams) SetLicensesInstalledLicense(licensesInstalledLicense *string) { o.LicensesInstalledLicense = licensesInstalledLicense } // WithLicensesOwner adds the licensesOwner to the license get params func (o *LicenseGetParams) WithLicensesOwner(licensesOwner *string) *LicenseGetParams { o.SetLicensesOwner(licensesOwner) return o } // SetLicensesOwner adds the licensesOwner to the license get params func (o *LicenseGetParams) SetLicensesOwner(licensesOwner *string) { o.LicensesOwner = licensesOwner } // WithLicensesSerialNumber adds the licensesSerialNumber to the license get params func (o *LicenseGetParams) WithLicensesSerialNumber(licensesSerialNumber *string) *LicenseGetParams { o.SetLicensesSerialNumber(licensesSerialNumber) return o } // SetLicensesSerialNumber adds the licensesSerialNumber to the license get params func (o *LicenseGetParams) SetLicensesSerialNumber(licensesSerialNumber *string) { o.LicensesSerialNumber = licensesSerialNumber } // WithLicensesShutdownImminent adds the licensesShutdownImminent to the license get params func (o *LicenseGetParams) WithLicensesShutdownImminent(licensesShutdownImminent *bool) *LicenseGetParams { o.SetLicensesShutdownImminent(licensesShutdownImminent) return o } // SetLicensesShutdownImminent adds the licensesShutdownImminent to the license get params func (o *LicenseGetParams) SetLicensesShutdownImminent(licensesShutdownImminent *bool) { o.LicensesShutdownImminent = licensesShutdownImminent } // WithLicensesStartTime adds the licensesStartTime to the license get params func (o *LicenseGetParams) WithLicensesStartTime(licensesStartTime *string) *LicenseGetParams { o.SetLicensesStartTime(licensesStartTime) return o } // SetLicensesStartTime adds the licensesStartTime to the license get params func (o *LicenseGetParams) SetLicensesStartTime(licensesStartTime *string) { o.LicensesStartTime = licensesStartTime } // WithName adds the name to the license get params func (o *LicenseGetParams) WithName(name string) *LicenseGetParams { o.SetName(name) return o } // SetName adds the name to the license get params func (o *LicenseGetParams) SetName(name string) { o.Name = name } // WithScope adds the scope to the license get params func (o *LicenseGetParams) WithScope(scope *string) *LicenseGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the license get params func (o *LicenseGetParams) SetScope(scope *string) { o.Scope = scope } // WithState adds the state to the license get params func (o *LicenseGetParams) WithState(state *string) *LicenseGetParams { o.SetState(state) return o } // SetState adds the state to the license get params func (o *LicenseGetParams) SetState(state *string) { o.State = state } // WriteToRequest writes these params to a swagger request func (o *LicenseGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Description != nil { // query param description var qrDescription string if o.Description != nil { qrDescription = *o.Description } qDescription := qrDescription if qDescription != "" { if err := r.SetQueryParam("description", qDescription); err != nil { return err } } } if o.EntitlementAction != nil { // query param entitlement.action var qrEntitlementAction string if o.EntitlementAction != nil { qrEntitlementAction = *o.EntitlementAction } qEntitlementAction := qrEntitlementAction if qEntitlementAction != "" { if err := r.SetQueryParam("entitlement.action", qEntitlementAction); err != nil { return err } } } if o.EntitlementRisk != nil { // query param entitlement.risk var qrEntitlementRisk string if o.EntitlementRisk != nil { qrEntitlementRisk = *o.EntitlementRisk } qEntitlementRisk := qrEntitlementRisk if qEntitlementRisk != "" { if err := r.SetQueryParam("entitlement.risk", qEntitlementRisk); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.LicensesActive != nil { // query param licenses.active var qrLicensesActive bool if o.LicensesActive != nil { qrLicensesActive = *o.LicensesActive } qLicensesActive := swag.FormatBool(qrLicensesActive) if qLicensesActive != "" { if err := r.SetQueryParam("licenses.active", qLicensesActive); err != nil { return err } } } if o.LicensesCapacityMaximumSize != nil { // query param licenses.capacity.maximum_size var qrLicensesCapacityMaximumSize int64 if o.LicensesCapacityMaximumSize != nil { qrLicensesCapacityMaximumSize = *o.LicensesCapacityMaximumSize } qLicensesCapacityMaximumSize := swag.FormatInt64(qrLicensesCapacityMaximumSize) if qLicensesCapacityMaximumSize != "" { if err := r.SetQueryParam("licenses.capacity.maximum_size", qLicensesCapacityMaximumSize); err != nil { return err } } } if o.LicensesCapacityUsedSize != nil { // query param licenses.capacity.used_size var qrLicensesCapacityUsedSize int64 if o.LicensesCapacityUsedSize != nil { qrLicensesCapacityUsedSize = *o.LicensesCapacityUsedSize } qLicensesCapacityUsedSize := swag.FormatInt64(qrLicensesCapacityUsedSize) if qLicensesCapacityUsedSize != "" { if err := r.SetQueryParam("licenses.capacity.used_size", qLicensesCapacityUsedSize); err != nil { return err } } } if o.LicensesComplianceState != nil { // query param licenses.compliance.state var qrLicensesComplianceState string if o.LicensesComplianceState != nil { qrLicensesComplianceState = *o.LicensesComplianceState } qLicensesComplianceState := qrLicensesComplianceState if qLicensesComplianceState != "" { if err := r.SetQueryParam("licenses.compliance.state", qLicensesComplianceState); err != nil { return err } } } if o.LicensesEvaluation != nil { // query param licenses.evaluation var qrLicensesEvaluation bool if o.LicensesEvaluation != nil { qrLicensesEvaluation = *o.LicensesEvaluation } qLicensesEvaluation := swag.FormatBool(qrLicensesEvaluation) if qLicensesEvaluation != "" { if err := r.SetQueryParam("licenses.evaluation", qLicensesEvaluation); err != nil { return err } } } if o.LicensesExpiryTime != nil { // query param licenses.expiry_time var qrLicensesExpiryTime string if o.LicensesExpiryTime != nil { qrLicensesExpiryTime = *o.LicensesExpiryTime } qLicensesExpiryTime := qrLicensesExpiryTime if qLicensesExpiryTime != "" { if err := r.SetQueryParam("licenses.expiry_time", qLicensesExpiryTime); err != nil { return err } } } if o.LicensesHostID != nil { // query param licenses.host_id var qrLicensesHostID string if o.LicensesHostID != nil { qrLicensesHostID = *o.LicensesHostID } qLicensesHostID := qrLicensesHostID if qLicensesHostID != "" { if err := r.SetQueryParam("licenses.host_id", qLicensesHostID); err != nil { return err } } } if o.LicensesInstalledLicense != nil { // query param licenses.installed_license var qrLicensesInstalledLicense string if o.LicensesInstalledLicense != nil { qrLicensesInstalledLicense = *o.LicensesInstalledLicense } qLicensesInstalledLicense := qrLicensesInstalledLicense if qLicensesInstalledLicense != "" { if err := r.SetQueryParam("licenses.installed_license", qLicensesInstalledLicense); err != nil { return err } } } if o.LicensesOwner != nil { // query param licenses.owner var qrLicensesOwner string if o.LicensesOwner != nil { qrLicensesOwner = *o.LicensesOwner } qLicensesOwner := qrLicensesOwner if qLicensesOwner != "" { if err := r.SetQueryParam("licenses.owner", qLicensesOwner); err != nil { return err } } } if o.LicensesSerialNumber != nil { // query param licenses.serial_number var qrLicensesSerialNumber string if o.LicensesSerialNumber != nil { qrLicensesSerialNumber = *o.LicensesSerialNumber } qLicensesSerialNumber := qrLicensesSerialNumber if qLicensesSerialNumber != "" { if err := r.SetQueryParam("licenses.serial_number", qLicensesSerialNumber); err != nil { return err } } } if o.LicensesShutdownImminent != nil { // query param licenses.shutdown_imminent var qrLicensesShutdownImminent bool if o.LicensesShutdownImminent != nil { qrLicensesShutdownImminent = *o.LicensesShutdownImminent } qLicensesShutdownImminent := swag.FormatBool(qrLicensesShutdownImminent) if qLicensesShutdownImminent != "" { if err := r.SetQueryParam("licenses.shutdown_imminent", qLicensesShutdownImminent); err != nil { return err } } } if o.LicensesStartTime != nil { // query param licenses.start_time var qrLicensesStartTime string if o.LicensesStartTime != nil { qrLicensesStartTime = *o.LicensesStartTime } qLicensesStartTime := qrLicensesStartTime if qLicensesStartTime != "" { if err := r.SetQueryParam("licenses.start_time", qLicensesStartTime); err != nil { return err } } } // path param name if err := r.SetPathParam("name", o.Name); err != nil { return err } if o.Scope != nil { // query param scope var qrScope string if o.Scope != nil { qrScope = *o.Scope } qScope := qrScope if qScope != "" { if err := r.SetQueryParam("scope", qScope); err != nil { return err } } } if o.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamLicenseGet binds the parameter fields func (o *LicenseGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewMediatorCreateParams creates a new MediatorCreateParams 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 NewMediatorCreateParams() *MediatorCreateParams { return &MediatorCreateParams{ timeout: cr.DefaultTimeout, } } // NewMediatorCreateParamsWithTimeout creates a new MediatorCreateParams object // with the ability to set a timeout on a request. func NewMediatorCreateParamsWithTimeout(timeout time.Duration) *MediatorCreateParams { return &MediatorCreateParams{ timeout: timeout, } } // NewMediatorCreateParamsWithContext creates a new MediatorCreateParams object // with the ability to set a context for a request. func NewMediatorCreateParamsWithContext(ctx context.Context) *MediatorCreateParams { return &MediatorCreateParams{ Context: ctx, } } // NewMediatorCreateParamsWithHTTPClient creates a new MediatorCreateParams object // with the ability to set a custom HTTPClient for a request. func NewMediatorCreateParamsWithHTTPClient(client *http.Client) *MediatorCreateParams { return &MediatorCreateParams{ HTTPClient: client, } } /* MediatorCreateParams contains all the parameters to send to the API endpoint for the mediator create operation. Typically these are written to a http.Request. */ type MediatorCreateParams struct { /* Info. Mediator information for the create operation. */ Info *models.Mediator /* ReturnRecords. The default is false. If set to true, the records are returned. */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the mediator create params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorCreateParams) WithDefaults() *MediatorCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the mediator create params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := MediatorCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the mediator create params func (o *MediatorCreateParams) WithTimeout(timeout time.Duration) *MediatorCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the mediator create params func (o *MediatorCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the mediator create params func (o *MediatorCreateParams) WithContext(ctx context.Context) *MediatorCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the mediator create params func (o *MediatorCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the mediator create params func (o *MediatorCreateParams) WithHTTPClient(client *http.Client) *MediatorCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the mediator create params func (o *MediatorCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the mediator create params func (o *MediatorCreateParams) WithInfo(info *models.Mediator) *MediatorCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the mediator create params func (o *MediatorCreateParams) SetInfo(info *models.Mediator) { o.Info = info } // WithReturnRecords adds the returnRecords to the mediator create params func (o *MediatorCreateParams) WithReturnRecords(returnRecords *bool) *MediatorCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the mediator create params func (o *MediatorCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the mediator create params func (o *MediatorCreateParams) WithReturnTimeout(returnTimeout *int64) *MediatorCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the mediator create params func (o *MediatorCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *MediatorCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_upload_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_upload_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SoftwareUploadReader is a Reader for the SoftwareUpload structure. type SoftwareUploadReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SoftwareUploadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewSoftwareUploadAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSoftwareUploadDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewSoftwareUploadAccepted creates a SoftwareUploadAccepted with default headers values func NewSoftwareUploadAccepted() *SoftwareUploadAccepted { return &SoftwareUploadAccepted{} } /* SoftwareUploadAccepted describes a response with status code 202, with default header values. Accepted */ type SoftwareUploadAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this software upload accepted response has a 2xx status code func (o *SoftwareUploadAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this software upload accepted response has a 3xx status code func (o *SoftwareUploadAccepted) IsRedirect() bool { return false } // IsClientError returns true when this software upload accepted response has a 4xx status code func (o *SoftwareUploadAccepted) IsClientError() bool { return false } // IsServerError returns true when this software upload accepted response has a 5xx status code func (o *SoftwareUploadAccepted) IsServerError() bool { return false } // IsCode returns true when this software upload accepted response a status code equal to that given func (o *SoftwareUploadAccepted) IsCode(code int) bool { return code == 202 } func (o *SoftwareUploadAccepted) Error() string { return fmt.Sprintf("[POST /cluster/software/upload][%d] softwareUploadAccepted %+v", 202, o.Payload) } func (o *SoftwareUploadAccepted) String() string { return fmt.Sprintf("[POST /cluster/software/upload][%d] softwareUploadAccepted %+v", 202, o.Payload) } func (o *SoftwareUploadAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *SoftwareUploadAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSoftwareUploadDefault creates a SoftwareUploadDefault with default headers values func NewSoftwareUploadDefault(code int) *SoftwareUploadDefault { return &SoftwareUploadDefault{ _statusCode: code, } } /* SoftwareUploadDefault describes a response with status code -1, with default header values. Error */ type SoftwareUploadDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the software upload default response func (o *SoftwareUploadDefault) Code() int { return o._statusCode } // IsSuccess returns true when this software upload default response has a 2xx status code func (o *SoftwareUploadDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this software upload default response has a 3xx status code func (o *SoftwareUploadDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this software upload default response has a 4xx status code func (o *SoftwareUploadDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this software upload default response has a 5xx status code func (o *SoftwareUploadDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this software upload default response a status code equal to that given func (o *SoftwareUploadDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SoftwareUploadDefault) Error() string { return fmt.Sprintf("[POST /cluster/software/upload][%d] software_upload default %+v", o._statusCode, o.Payload) } func (o *SoftwareUploadDefault) String() string { return fmt.Sprintf("[POST /cluster/software/upload][%d] software_upload default %+v", o._statusCode, o.Payload) } func (o *SoftwareUploadDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SoftwareUploadDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/capacity_pool_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/capacity_pool_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // CapacityPoolCollectionGetReader is a Reader for the CapacityPoolCollectionGet structure. type CapacityPoolCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CapacityPoolCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCapacityPoolCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCapacityPoolCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewCapacityPoolCollectionGetOK creates a CapacityPoolCollectionGetOK with default headers values func NewCapacityPoolCollectionGetOK() *CapacityPoolCollectionGetOK { return &CapacityPoolCollectionGetOK{} } /* CapacityPoolCollectionGetOK describes a response with status code 200, with default header values. OK */ type CapacityPoolCollectionGetOK struct { Payload *models.CapacityPoolResponse } // IsSuccess returns true when this capacity pool collection get o k response has a 2xx status code func (o *CapacityPoolCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this capacity pool collection get o k response has a 3xx status code func (o *CapacityPoolCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this capacity pool collection get o k response has a 4xx status code func (o *CapacityPoolCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this capacity pool collection get o k response has a 5xx status code func (o *CapacityPoolCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this capacity pool collection get o k response a status code equal to that given func (o *CapacityPoolCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *CapacityPoolCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/licensing/capacity-pools][%d] capacityPoolCollectionGetOK %+v", 200, o.Payload) } func (o *CapacityPoolCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/licensing/capacity-pools][%d] capacityPoolCollectionGetOK %+v", 200, o.Payload) } func (o *CapacityPoolCollectionGetOK) GetPayload() *models.CapacityPoolResponse { return o.Payload } func (o *CapacityPoolCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CapacityPoolResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCapacityPoolCollectionGetDefault creates a CapacityPoolCollectionGetDefault with default headers values func NewCapacityPoolCollectionGetDefault(code int) *CapacityPoolCollectionGetDefault { return &CapacityPoolCollectionGetDefault{ _statusCode: code, } } /* CapacityPoolCollectionGetDefault describes a response with status code -1, with default header values. Error */ type CapacityPoolCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the capacity pool collection get default response func (o *CapacityPoolCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this capacity pool collection get default response has a 2xx status code func (o *CapacityPoolCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this capacity pool collection get default response has a 3xx status code func (o *CapacityPoolCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this capacity pool collection get default response has a 4xx status code func (o *CapacityPoolCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this capacity pool collection get default response has a 5xx status code func (o *CapacityPoolCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this capacity pool collection get default response a status code equal to that given func (o *CapacityPoolCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CapacityPoolCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/licensing/capacity-pools][%d] capacity_pool_collection_get default %+v", o._statusCode, o.Payload) } func (o *CapacityPoolCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/licensing/capacity-pools][%d] capacity_pool_collection_get default %+v", o._statusCode, o.Payload) } func (o *CapacityPoolCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CapacityPoolCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewClusterNtpServersModifyParams creates a new ClusterNtpServersModifyParams 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 NewClusterNtpServersModifyParams() *ClusterNtpServersModifyParams { return &ClusterNtpServersModifyParams{ timeout: cr.DefaultTimeout, } } // NewClusterNtpServersModifyParamsWithTimeout creates a new ClusterNtpServersModifyParams object // with the ability to set a timeout on a request. func NewClusterNtpServersModifyParamsWithTimeout(timeout time.Duration) *ClusterNtpServersModifyParams { return &ClusterNtpServersModifyParams{ timeout: timeout, } } // NewClusterNtpServersModifyParamsWithContext creates a new ClusterNtpServersModifyParams object // with the ability to set a context for a request. func NewClusterNtpServersModifyParamsWithContext(ctx context.Context) *ClusterNtpServersModifyParams { return &ClusterNtpServersModifyParams{ Context: ctx, } } // NewClusterNtpServersModifyParamsWithHTTPClient creates a new ClusterNtpServersModifyParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNtpServersModifyParamsWithHTTPClient(client *http.Client) *ClusterNtpServersModifyParams { return &ClusterNtpServersModifyParams{ HTTPClient: client, } } /* ClusterNtpServersModifyParams contains all the parameters to send to the API endpoint for the cluster ntp servers modify operation. Typically these are written to a http.Request. */ type ClusterNtpServersModifyParams struct { /* Info. Information specification */ Info *models.NtpServer /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 /* Server. Server address or host name */ Server string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ntp servers modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersModifyParams) WithDefaults() *ClusterNtpServersModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ntp servers modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ClusterNtpServersModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) WithTimeout(timeout time.Duration) *ClusterNtpServersModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) WithContext(ctx context.Context) *ClusterNtpServersModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) WithHTTPClient(client *http.Client) *ClusterNtpServersModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) WithInfo(info *models.NtpServer) *ClusterNtpServersModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) SetInfo(info *models.NtpServer) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) WithReturnTimeout(returnTimeout *int64) *ClusterNtpServersModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithServer adds the server to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) WithServer(server string) *ClusterNtpServersModifyParams { o.SetServer(server) return o } // SetServer adds the server to the cluster ntp servers modify params func (o *ClusterNtpServersModifyParams) SetServer(server string) { o.Server = server } // WriteToRequest writes these params to a swagger request func (o *ClusterNtpServersModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } // path param server if err := r.SetPathParam("server", o.Server); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/capacity_pool_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/capacity_pool_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewCapacityPoolCollectionGetParams creates a new CapacityPoolCollectionGetParams 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 NewCapacityPoolCollectionGetParams() *CapacityPoolCollectionGetParams { return &CapacityPoolCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewCapacityPoolCollectionGetParamsWithTimeout creates a new CapacityPoolCollectionGetParams object // with the ability to set a timeout on a request. func NewCapacityPoolCollectionGetParamsWithTimeout(timeout time.Duration) *CapacityPoolCollectionGetParams { return &CapacityPoolCollectionGetParams{ timeout: timeout, } } // NewCapacityPoolCollectionGetParamsWithContext creates a new CapacityPoolCollectionGetParams object // with the ability to set a context for a request. func NewCapacityPoolCollectionGetParamsWithContext(ctx context.Context) *CapacityPoolCollectionGetParams { return &CapacityPoolCollectionGetParams{ Context: ctx, } } // NewCapacityPoolCollectionGetParamsWithHTTPClient creates a new CapacityPoolCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewCapacityPoolCollectionGetParamsWithHTTPClient(client *http.Client) *CapacityPoolCollectionGetParams { return &CapacityPoolCollectionGetParams{ HTTPClient: client, } } /* CapacityPoolCollectionGetParams contains all the parameters to send to the API endpoint for the capacity pool collection get operation. Typically these are written to a http.Request. */ type CapacityPoolCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* LicenseManagerUUID. Filter by license_manager.uuid */ LicenseManagerUUID *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* NodesNodeName. Filter by nodes.node.name */ NodesNodeName *string /* NodesNodeUUID. Filter by nodes.node.uuid */ NodesNodeUUID *string /* NodesUsedSize. Filter by nodes.used_size */ NodesUsedSize *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* SerialNumber. Filter by serial_number */ SerialNumber *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the capacity pool collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *CapacityPoolCollectionGetParams) WithDefaults() *CapacityPoolCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the capacity pool collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *CapacityPoolCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := CapacityPoolCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithTimeout(timeout time.Duration) *CapacityPoolCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithContext(ctx context.Context) *CapacityPoolCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithHTTPClient(client *http.Client) *CapacityPoolCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithFields(fields []string) *CapacityPoolCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithLicenseManagerUUID adds the licenseManagerUUID to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithLicenseManagerUUID(licenseManagerUUID *string) *CapacityPoolCollectionGetParams { o.SetLicenseManagerUUID(licenseManagerUUID) return o } // SetLicenseManagerUUID adds the licenseManagerUuid to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetLicenseManagerUUID(licenseManagerUUID *string) { o.LicenseManagerUUID = licenseManagerUUID } // WithMaxRecords adds the maxRecords to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithMaxRecords(maxRecords *int64) *CapacityPoolCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithNodesNodeName adds the nodesNodeName to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithNodesNodeName(nodesNodeName *string) *CapacityPoolCollectionGetParams { o.SetNodesNodeName(nodesNodeName) return o } // SetNodesNodeName adds the nodesNodeName to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetNodesNodeName(nodesNodeName *string) { o.NodesNodeName = nodesNodeName } // WithNodesNodeUUID adds the nodesNodeUUID to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithNodesNodeUUID(nodesNodeUUID *string) *CapacityPoolCollectionGetParams { o.SetNodesNodeUUID(nodesNodeUUID) return o } // SetNodesNodeUUID adds the nodesNodeUuid to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetNodesNodeUUID(nodesNodeUUID *string) { o.NodesNodeUUID = nodesNodeUUID } // WithNodesUsedSize adds the nodesUsedSize to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithNodesUsedSize(nodesUsedSize *int64) *CapacityPoolCollectionGetParams { o.SetNodesUsedSize(nodesUsedSize) return o } // SetNodesUsedSize adds the nodesUsedSize to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetNodesUsedSize(nodesUsedSize *int64) { o.NodesUsedSize = nodesUsedSize } // WithOrderBy adds the orderBy to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithOrderBy(orderBy []string) *CapacityPoolCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithReturnRecords(returnRecords *bool) *CapacityPoolCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *CapacityPoolCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSerialNumber adds the serialNumber to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) WithSerialNumber(serialNumber *string) *CapacityPoolCollectionGetParams { o.SetSerialNumber(serialNumber) return o } // SetSerialNumber adds the serialNumber to the capacity pool collection get params func (o *CapacityPoolCollectionGetParams) SetSerialNumber(serialNumber *string) { o.SerialNumber = serialNumber } // WriteToRequest writes these params to a swagger request func (o *CapacityPoolCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.LicenseManagerUUID != nil { // query param license_manager.uuid var qrLicenseManagerUUID string if o.LicenseManagerUUID != nil { qrLicenseManagerUUID = *o.LicenseManagerUUID } qLicenseManagerUUID := qrLicenseManagerUUID if qLicenseManagerUUID != "" { if err := r.SetQueryParam("license_manager.uuid", qLicenseManagerUUID); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.NodesNodeName != nil { // query param nodes.node.name var qrNodesNodeName string if o.NodesNodeName != nil { qrNodesNodeName = *o.NodesNodeName } qNodesNodeName := qrNodesNodeName if qNodesNodeName != "" { if err := r.SetQueryParam("nodes.node.name", qNodesNodeName); err != nil { return err } } } if o.NodesNodeUUID != nil { // query param nodes.node.uuid var qrNodesNodeUUID string if o.NodesNodeUUID != nil { qrNodesNodeUUID = *o.NodesNodeUUID } qNodesNodeUUID := qrNodesNodeUUID if qNodesNodeUUID != "" { if err := r.SetQueryParam("nodes.node.uuid", qNodesNodeUUID); err != nil { return err } } } if o.NodesUsedSize != nil { // query param nodes.used_size var qrNodesUsedSize int64 if o.NodesUsedSize != nil { qrNodesUsedSize = *o.NodesUsedSize } qNodesUsedSize := swag.FormatInt64(qrNodesUsedSize) if qNodesUsedSize != "" { if err := r.SetQueryParam("nodes.used_size", qNodesUsedSize); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.SerialNumber != nil { // query param serial_number var qrSerialNumber string if o.SerialNumber != nil { qrSerialNumber = *o.SerialNumber } qSerialNumber := qrSerialNumber if qSerialNumber != "" { if err := r.SetQueryParam("serial_number", qSerialNumber); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamCapacityPoolCollectionGet binds the parameter fields func (o *CapacityPoolCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamCapacityPoolCollectionGet binds the parameter order_by func (o *CapacityPoolCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_download_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_download_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SoftwareDownloadGetReader is a Reader for the SoftwareDownloadGet structure. type SoftwareDownloadGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SoftwareDownloadGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSoftwareDownloadGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSoftwareDownloadGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewSoftwareDownloadGetOK creates a SoftwareDownloadGetOK with default headers values func NewSoftwareDownloadGetOK() *SoftwareDownloadGetOK { return &SoftwareDownloadGetOK{} } /* SoftwareDownloadGetOK describes a response with status code 200, with default header values. OK */ type SoftwareDownloadGetOK struct { Payload *models.SoftwarePackageDownloadGet } // IsSuccess returns true when this software download get o k response has a 2xx status code func (o *SoftwareDownloadGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this software download get o k response has a 3xx status code func (o *SoftwareDownloadGetOK) IsRedirect() bool { return false } // IsClientError returns true when this software download get o k response has a 4xx status code func (o *SoftwareDownloadGetOK) IsClientError() bool { return false } // IsServerError returns true when this software download get o k response has a 5xx status code func (o *SoftwareDownloadGetOK) IsServerError() bool { return false } // IsCode returns true when this software download get o k response a status code equal to that given func (o *SoftwareDownloadGetOK) IsCode(code int) bool { return code == 200 } func (o *SoftwareDownloadGetOK) Error() string { return fmt.Sprintf("[GET /cluster/software/download][%d] softwareDownloadGetOK %+v", 200, o.Payload) } func (o *SoftwareDownloadGetOK) String() string { return fmt.Sprintf("[GET /cluster/software/download][%d] softwareDownloadGetOK %+v", 200, o.Payload) } func (o *SoftwareDownloadGetOK) GetPayload() *models.SoftwarePackageDownloadGet { return o.Payload } func (o *SoftwareDownloadGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SoftwarePackageDownloadGet) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSoftwareDownloadGetDefault creates a SoftwareDownloadGetDefault with default headers values func NewSoftwareDownloadGetDefault(code int) *SoftwareDownloadGetDefault { return &SoftwareDownloadGetDefault{ _statusCode: code, } } /* SoftwareDownloadGetDefault describes a response with status code -1, with default header values. Error */ type SoftwareDownloadGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the software download get default response func (o *SoftwareDownloadGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this software download get default response has a 2xx status code func (o *SoftwareDownloadGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this software download get default response has a 3xx status code func (o *SoftwareDownloadGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this software download get default response has a 4xx status code func (o *SoftwareDownloadGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this software download get default response has a 5xx status code func (o *SoftwareDownloadGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this software download get default response a status code equal to that given func (o *SoftwareDownloadGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SoftwareDownloadGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/software/download][%d] software_download_get default %+v", o._statusCode, o.Payload) } func (o *SoftwareDownloadGetDefault) String() string { return fmt.Sprintf("[GET /cluster/software/download][%d] software_download_get default %+v", o._statusCode, o.Payload) } func (o *SoftwareDownloadGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SoftwareDownloadGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/node_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/node_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NodeGetReader is a Reader for the NodeGet structure. type NodeGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NodeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNodeGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNodeGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewNodeGetOK creates a NodeGetOK with default headers values func NewNodeGetOK() *NodeGetOK { return &NodeGetOK{} } /* NodeGetOK describes a response with status code 200, with default header values. OK */ type NodeGetOK struct { Payload *models.Node } // IsSuccess returns true when this node get o k response has a 2xx status code func (o *NodeGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this node get o k response has a 3xx status code func (o *NodeGetOK) IsRedirect() bool { return false } // IsClientError returns true when this node get o k response has a 4xx status code func (o *NodeGetOK) IsClientError() bool { return false } // IsServerError returns true when this node get o k response has a 5xx status code func (o *NodeGetOK) IsServerError() bool { return false } // IsCode returns true when this node get o k response a status code equal to that given func (o *NodeGetOK) IsCode(code int) bool { return code == 200 } func (o *NodeGetOK) Error() string { return fmt.Sprintf("[GET /cluster/nodes/{uuid}][%d] nodeGetOK %+v", 200, o.Payload) } func (o *NodeGetOK) String() string { return fmt.Sprintf("[GET /cluster/nodes/{uuid}][%d] nodeGetOK %+v", 200, o.Payload) } func (o *NodeGetOK) GetPayload() *models.Node { return o.Payload } func (o *NodeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Node) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNodeGetDefault creates a NodeGetDefault with default headers values func NewNodeGetDefault(code int) *NodeGetDefault { return &NodeGetDefault{ _statusCode: code, } } /* NodeGetDefault describes a response with status code -1, with default header values. Error */ type NodeGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the node get default response func (o *NodeGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this node get default response has a 2xx status code func (o *NodeGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this node get default response has a 3xx status code func (o *NodeGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this node get default response has a 4xx status code func (o *NodeGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this node get default response has a 5xx status code func (o *NodeGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this node get default response a status code equal to that given func (o *NodeGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NodeGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/nodes/{uuid}][%d] node_get default %+v", o._statusCode, o.Payload) } func (o *NodeGetDefault) String() string { return fmt.Sprintf("[GET /cluster/nodes/{uuid}][%d] node_get default %+v", o._statusCode, o.Payload) } func (o *NodeGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NodeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterModifyReader is a Reader for the MetroclusterModify structure. type MetroclusterModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewMetroclusterModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterModifyDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterModifyAccepted creates a MetroclusterModifyAccepted with default headers values func NewMetroclusterModifyAccepted() *MetroclusterModifyAccepted { return &MetroclusterModifyAccepted{} } /* MetroclusterModifyAccepted describes a response with status code 202, with default header values. Accepted */ type MetroclusterModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this metrocluster modify accepted response has a 2xx status code func (o *MetroclusterModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster modify accepted response has a 3xx status code func (o *MetroclusterModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster modify accepted response has a 4xx status code func (o *MetroclusterModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this metrocluster modify accepted response has a 5xx status code func (o *MetroclusterModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this metrocluster modify accepted response a status code equal to that given func (o *MetroclusterModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *MetroclusterModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /cluster/metrocluster][%d] metroclusterModifyAccepted %+v", 202, o.Payload) } func (o *MetroclusterModifyAccepted) String() string { return fmt.Sprintf("[PATCH /cluster/metrocluster][%d] metroclusterModifyAccepted %+v", 202, o.Payload) } func (o *MetroclusterModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *MetroclusterModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterModifyDefault creates a MetroclusterModifyDefault with default headers values func NewMetroclusterModifyDefault(code int) *MetroclusterModifyDefault { return &MetroclusterModifyDefault{ _statusCode: code, } } /* MetroclusterModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | */ type MetroclusterModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster modify default response func (o *MetroclusterModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster modify default response has a 2xx status code func (o *MetroclusterModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster modify default response has a 3xx status code func (o *MetroclusterModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster modify default response has a 4xx status code func (o *MetroclusterModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster modify default response has a 5xx status code func (o *MetroclusterModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster modify default response a status code equal to that given func (o *MetroclusterModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterModifyDefault) Error() string { return fmt.Sprintf("[PATCH /cluster/metrocluster][%d] metrocluster_modify default %+v", o._statusCode, o.Payload) } func (o *MetroclusterModifyDefault) String() string { return fmt.Sprintf("[PATCH /cluster/metrocluster][%d] metrocluster_modify default %+v", o._statusCode, o.Payload) } func (o *MetroclusterModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterPeerCollectionGetReader is a Reader for the ClusterPeerCollectionGet structure. type ClusterPeerCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterPeerCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterPeerCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterPeerCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterPeerCollectionGetOK creates a ClusterPeerCollectionGetOK with default headers values func NewClusterPeerCollectionGetOK() *ClusterPeerCollectionGetOK { return &ClusterPeerCollectionGetOK{} } /* ClusterPeerCollectionGetOK describes a response with status code 200, with default header values. OK */ type ClusterPeerCollectionGetOK struct { Payload *models.ClusterPeerResponse } // IsSuccess returns true when this cluster peer collection get o k response has a 2xx status code func (o *ClusterPeerCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster peer collection get o k response has a 3xx status code func (o *ClusterPeerCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster peer collection get o k response has a 4xx status code func (o *ClusterPeerCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster peer collection get o k response has a 5xx status code func (o *ClusterPeerCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster peer collection get o k response a status code equal to that given func (o *ClusterPeerCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterPeerCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/peers][%d] clusterPeerCollectionGetOK %+v", 200, o.Payload) } func (o *ClusterPeerCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/peers][%d] clusterPeerCollectionGetOK %+v", 200, o.Payload) } func (o *ClusterPeerCollectionGetOK) GetPayload() *models.ClusterPeerResponse { return o.Payload } func (o *ClusterPeerCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ClusterPeerResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterPeerCollectionGetDefault creates a ClusterPeerCollectionGetDefault with default headers values func NewClusterPeerCollectionGetDefault(code int) *ClusterPeerCollectionGetDefault { return &ClusterPeerCollectionGetDefault{ _statusCode: code, } } /* ClusterPeerCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ClusterPeerCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster peer collection get default response func (o *ClusterPeerCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster peer collection get default response has a 2xx status code func (o *ClusterPeerCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster peer collection get default response has a 3xx status code func (o *ClusterPeerCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster peer collection get default response has a 4xx status code func (o *ClusterPeerCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster peer collection get default response has a 5xx status code func (o *ClusterPeerCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster peer collection get default response a status code equal to that given func (o *ClusterPeerCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterPeerCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/peers][%d] cluster_peer_collection_get default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/peers][%d] cluster_peer_collection_get default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterPeerCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // CounterRowCollectionGetReader is a Reader for the CounterRowCollectionGet structure. type CounterRowCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CounterRowCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCounterRowCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCounterRowCollectionGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewCounterRowCollectionGetOK creates a CounterRowCollectionGetOK with default headers values func NewCounterRowCollectionGetOK() *CounterRowCollectionGetOK { return &CounterRowCollectionGetOK{} } /* CounterRowCollectionGetOK describes a response with status code 200, with default header values. OK */ type CounterRowCollectionGetOK struct { Payload *models.CounterRowResponse } // IsSuccess returns true when this counter row collection get o k response has a 2xx status code func (o *CounterRowCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this counter row collection get o k response has a 3xx status code func (o *CounterRowCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this counter row collection get o k response has a 4xx status code func (o *CounterRowCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this counter row collection get o k response has a 5xx status code func (o *CounterRowCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this counter row collection get o k response a status code equal to that given func (o *CounterRowCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *CounterRowCollectionGetOK) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows][%d] counterRowCollectionGetOK %+v", 200, o.Payload) } func (o *CounterRowCollectionGetOK) String() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows][%d] counterRowCollectionGetOK %+v", 200, o.Payload) } func (o *CounterRowCollectionGetOK) GetPayload() *models.CounterRowResponse { return o.Payload } func (o *CounterRowCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CounterRowResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCounterRowCollectionGetDefault creates a CounterRowCollectionGetDefault with default headers values func NewCounterRowCollectionGetDefault(code int) *CounterRowCollectionGetDefault { return &CounterRowCollectionGetDefault{ _statusCode: code, } } /* CounterRowCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 8585320 | Table requested is not found | | 8586228 | Invalid counter name request. | | 8586229 | Invalid counter property request. | */ type CounterRowCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the counter row collection get default response func (o *CounterRowCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this counter row collection get default response has a 2xx status code func (o *CounterRowCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this counter row collection get default response has a 3xx status code func (o *CounterRowCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this counter row collection get default response has a 4xx status code func (o *CounterRowCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this counter row collection get default response has a 5xx status code func (o *CounterRowCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this counter row collection get default response a status code equal to that given func (o *CounterRowCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CounterRowCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows][%d] counter_row_collection_get default %+v", o._statusCode, o.Payload) } func (o *CounterRowCollectionGetDefault) String() string { return fmt.Sprintf("[GET /cluster/counter/tables/{counter_table.name}/rows][%d] counter_row_collection_get default %+v", o._statusCode, o.Payload) } func (o *CounterRowCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CounterRowCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_download_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_download_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewSoftwareDownloadGetParams creates a new SoftwareDownloadGetParams 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 NewSoftwareDownloadGetParams() *SoftwareDownloadGetParams { return &SoftwareDownloadGetParams{ timeout: cr.DefaultTimeout, } } // NewSoftwareDownloadGetParamsWithTimeout creates a new SoftwareDownloadGetParams object // with the ability to set a timeout on a request. func NewSoftwareDownloadGetParamsWithTimeout(timeout time.Duration) *SoftwareDownloadGetParams { return &SoftwareDownloadGetParams{ timeout: timeout, } } // NewSoftwareDownloadGetParamsWithContext creates a new SoftwareDownloadGetParams object // with the ability to set a context for a request. func NewSoftwareDownloadGetParamsWithContext(ctx context.Context) *SoftwareDownloadGetParams { return &SoftwareDownloadGetParams{ Context: ctx, } } // NewSoftwareDownloadGetParamsWithHTTPClient creates a new SoftwareDownloadGetParams object // with the ability to set a custom HTTPClient for a request. func NewSoftwareDownloadGetParamsWithHTTPClient(client *http.Client) *SoftwareDownloadGetParams { return &SoftwareDownloadGetParams{ HTTPClient: client, } } /* SoftwareDownloadGetParams contains all the parameters to send to the API endpoint for the software download get operation. Typically these are written to a http.Request. */ type SoftwareDownloadGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the software download get params (not the query body). // // All values with no default are reset to their zero value. func (o *SoftwareDownloadGetParams) WithDefaults() *SoftwareDownloadGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the software download get params (not the query body). // // All values with no default are reset to their zero value. func (o *SoftwareDownloadGetParams) SetDefaults() { var ( returnTimeoutDefault = int64(15) ) val := SoftwareDownloadGetParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the software download get params func (o *SoftwareDownloadGetParams) WithTimeout(timeout time.Duration) *SoftwareDownloadGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the software download get params func (o *SoftwareDownloadGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the software download get params func (o *SoftwareDownloadGetParams) WithContext(ctx context.Context) *SoftwareDownloadGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the software download get params func (o *SoftwareDownloadGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the software download get params func (o *SoftwareDownloadGetParams) WithHTTPClient(client *http.Client) *SoftwareDownloadGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the software download get params func (o *SoftwareDownloadGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the software download get params func (o *SoftwareDownloadGetParams) WithFields(fields []string) *SoftwareDownloadGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the software download get params func (o *SoftwareDownloadGetParams) SetFields(fields []string) { o.Fields = fields } // WithReturnTimeout adds the returnTimeout to the software download get params func (o *SoftwareDownloadGetParams) WithReturnTimeout(returnTimeout *int64) *SoftwareDownloadGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the software download get params func (o *SoftwareDownloadGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *SoftwareDownloadGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSoftwareDownloadGet binds the parameter fields func (o *SoftwareDownloadGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterNtpKeysCreateReader is a Reader for the ClusterNtpKeysCreate structure. type ClusterNtpKeysCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNtpKeysCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewClusterNtpKeysCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNtpKeysCreateDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterNtpKeysCreateCreated creates a ClusterNtpKeysCreateCreated with default headers values func NewClusterNtpKeysCreateCreated() *ClusterNtpKeysCreateCreated { return &ClusterNtpKeysCreateCreated{} } /* ClusterNtpKeysCreateCreated describes a response with status code 201, with default header values. Created */ type ClusterNtpKeysCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this cluster ntp keys create created response has a 2xx status code func (o *ClusterNtpKeysCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ntp keys create created response has a 3xx status code func (o *ClusterNtpKeysCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this cluster ntp keys create created response has a 4xx status code func (o *ClusterNtpKeysCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this cluster ntp keys create created response has a 5xx status code func (o *ClusterNtpKeysCreateCreated) IsServerError() bool { return false } // IsCode returns true when this cluster ntp keys create created response a status code equal to that given func (o *ClusterNtpKeysCreateCreated) IsCode(code int) bool { return code == 201 } func (o *ClusterNtpKeysCreateCreated) Error() string { return fmt.Sprintf("[POST /cluster/ntp/keys][%d] clusterNtpKeysCreateCreated ", 201) } func (o *ClusterNtpKeysCreateCreated) String() string { return fmt.Sprintf("[POST /cluster/ntp/keys][%d] clusterNtpKeysCreateCreated ", 201) } func (o *ClusterNtpKeysCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } return nil } // NewClusterNtpKeysCreateDefault creates a ClusterNtpKeysCreateDefault with default headers values func NewClusterNtpKeysCreateDefault(code int) *ClusterNtpKeysCreateDefault { return &ClusterNtpKeysCreateDefault{ _statusCode: code, } } /* ClusterNtpKeysCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2097187 | Invalid value for an NTP symmetric authentication key. A SHA1 key must be exactly 40 hexadecimal digits. | | 2097189 | Too many NTP keys have been configured. | */ type ClusterNtpKeysCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ntp keys create default response func (o *ClusterNtpKeysCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ntp keys create default response has a 2xx status code func (o *ClusterNtpKeysCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ntp keys create default response has a 3xx status code func (o *ClusterNtpKeysCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ntp keys create default response has a 4xx status code func (o *ClusterNtpKeysCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ntp keys create default response has a 5xx status code func (o *ClusterNtpKeysCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ntp keys create default response a status code equal to that given func (o *ClusterNtpKeysCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNtpKeysCreateDefault) Error() string { return fmt.Sprintf("[POST /cluster/ntp/keys][%d] cluster_ntp_keys_create default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpKeysCreateDefault) String() string { return fmt.Sprintf("[POST /cluster/ntp/keys][%d] cluster_ntp_keys_create default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpKeysCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNtpKeysCreateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewScheduleCreateParams creates a new ScheduleCreateParams 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 NewScheduleCreateParams() *ScheduleCreateParams { return &ScheduleCreateParams{ timeout: cr.DefaultTimeout, } } // NewScheduleCreateParamsWithTimeout creates a new ScheduleCreateParams object // with the ability to set a timeout on a request. func NewScheduleCreateParamsWithTimeout(timeout time.Duration) *ScheduleCreateParams { return &ScheduleCreateParams{ timeout: timeout, } } // NewScheduleCreateParamsWithContext creates a new ScheduleCreateParams object // with the ability to set a context for a request. func NewScheduleCreateParamsWithContext(ctx context.Context) *ScheduleCreateParams { return &ScheduleCreateParams{ Context: ctx, } } // NewScheduleCreateParamsWithHTTPClient creates a new ScheduleCreateParams object // with the ability to set a custom HTTPClient for a request. func NewScheduleCreateParamsWithHTTPClient(client *http.Client) *ScheduleCreateParams { return &ScheduleCreateParams{ HTTPClient: client, } } /* ScheduleCreateParams contains all the parameters to send to the API endpoint for the schedule create operation. Typically these are written to a http.Request. */ type ScheduleCreateParams struct { /* Info. Info specification */ Info *models.Schedule /* ReturnRecords. The default is false. If set to true, the records are returned. */ ReturnRecords *bool timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the schedule create params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleCreateParams) WithDefaults() *ScheduleCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the schedule create params (not the query body). // // All values with no default are reset to their zero value. func (o *ScheduleCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := ScheduleCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the schedule create params func (o *ScheduleCreateParams) WithTimeout(timeout time.Duration) *ScheduleCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the schedule create params func (o *ScheduleCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the schedule create params func (o *ScheduleCreateParams) WithContext(ctx context.Context) *ScheduleCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the schedule create params func (o *ScheduleCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the schedule create params func (o *ScheduleCreateParams) WithHTTPClient(client *http.Client) *ScheduleCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the schedule create params func (o *ScheduleCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the schedule create params func (o *ScheduleCreateParams) WithInfo(info *models.Schedule) *ScheduleCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the schedule create params func (o *ScheduleCreateParams) SetInfo(info *models.Schedule) { o.Info = info } // WithReturnRecords adds the returnRecords to the schedule create params func (o *ScheduleCreateParams) WithReturnRecords(returnRecords *bool) *ScheduleCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the schedule create params func (o *ScheduleCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *ScheduleCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/sensors_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/sensors_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewSensorsGetParams creates a new SensorsGetParams 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 NewSensorsGetParams() *SensorsGetParams { return &SensorsGetParams{ timeout: cr.DefaultTimeout, } } // NewSensorsGetParamsWithTimeout creates a new SensorsGetParams object // with the ability to set a timeout on a request. func NewSensorsGetParamsWithTimeout(timeout time.Duration) *SensorsGetParams { return &SensorsGetParams{ timeout: timeout, } } // NewSensorsGetParamsWithContext creates a new SensorsGetParams object // with the ability to set a context for a request. func NewSensorsGetParamsWithContext(ctx context.Context) *SensorsGetParams { return &SensorsGetParams{ Context: ctx, } } // NewSensorsGetParamsWithHTTPClient creates a new SensorsGetParams object // with the ability to set a custom HTTPClient for a request. func NewSensorsGetParamsWithHTTPClient(client *http.Client) *SensorsGetParams { return &SensorsGetParams{ HTTPClient: client, } } /* SensorsGetParams contains all the parameters to send to the API endpoint for the sensors get operation. Typically these are written to a http.Request. */ type SensorsGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* Index. Filter by index */ Index string /* NodeUUID. Filter by node.uuid */ NodeUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the sensors get params (not the query body). // // All values with no default are reset to their zero value. func (o *SensorsGetParams) WithDefaults() *SensorsGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the sensors get params (not the query body). // // All values with no default are reset to their zero value. func (o *SensorsGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the sensors get params func (o *SensorsGetParams) WithTimeout(timeout time.Duration) *SensorsGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the sensors get params func (o *SensorsGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the sensors get params func (o *SensorsGetParams) WithContext(ctx context.Context) *SensorsGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the sensors get params func (o *SensorsGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the sensors get params func (o *SensorsGetParams) WithHTTPClient(client *http.Client) *SensorsGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the sensors get params func (o *SensorsGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the sensors get params func (o *SensorsGetParams) WithFields(fields []string) *SensorsGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the sensors get params func (o *SensorsGetParams) SetFields(fields []string) { o.Fields = fields } // WithIndex adds the index to the sensors get params func (o *SensorsGetParams) WithIndex(index string) *SensorsGetParams { o.SetIndex(index) return o } // SetIndex adds the index to the sensors get params func (o *SensorsGetParams) SetIndex(index string) { o.Index = index } // WithNodeUUID adds the nodeUUID to the sensors get params func (o *SensorsGetParams) WithNodeUUID(nodeUUID string) *SensorsGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the sensors get params func (o *SensorsGetParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WriteToRequest writes these params to a swagger request func (o *SensorsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param index if err := r.SetPathParam("index", o.Index); err != nil { return err } // path param node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSensorsGet binds the parameter fields func (o *SensorsGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) // NewClusterPeerDeleteParams creates a new ClusterPeerDeleteParams 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 NewClusterPeerDeleteParams() *ClusterPeerDeleteParams { return &ClusterPeerDeleteParams{ timeout: cr.DefaultTimeout, } } // NewClusterPeerDeleteParamsWithTimeout creates a new ClusterPeerDeleteParams object // with the ability to set a timeout on a request. func NewClusterPeerDeleteParamsWithTimeout(timeout time.Duration) *ClusterPeerDeleteParams { return &ClusterPeerDeleteParams{ timeout: timeout, } } // NewClusterPeerDeleteParamsWithContext creates a new ClusterPeerDeleteParams object // with the ability to set a context for a request. func NewClusterPeerDeleteParamsWithContext(ctx context.Context) *ClusterPeerDeleteParams { return &ClusterPeerDeleteParams{ Context: ctx, } } // NewClusterPeerDeleteParamsWithHTTPClient creates a new ClusterPeerDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewClusterPeerDeleteParamsWithHTTPClient(client *http.Client) *ClusterPeerDeleteParams { return &ClusterPeerDeleteParams{ HTTPClient: client, } } /* ClusterPeerDeleteParams contains all the parameters to send to the API endpoint for the cluster peer delete operation. Typically these are written to a http.Request. */ type ClusterPeerDeleteParams struct { /* UUID. Cluster peer relationship UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster peer delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterPeerDeleteParams) WithDefaults() *ClusterPeerDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster peer delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterPeerDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster peer delete params func (o *ClusterPeerDeleteParams) WithTimeout(timeout time.Duration) *ClusterPeerDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster peer delete params func (o *ClusterPeerDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster peer delete params func (o *ClusterPeerDeleteParams) WithContext(ctx context.Context) *ClusterPeerDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster peer delete params func (o *ClusterPeerDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster peer delete params func (o *ClusterPeerDeleteParams) WithHTTPClient(client *http.Client) *ClusterPeerDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster peer delete params func (o *ClusterPeerDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the cluster peer delete params func (o *ClusterPeerDeleteParams) WithUUID(uuid string) *ClusterPeerDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the cluster peer delete params func (o *ClusterPeerDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ClusterPeerDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterCreateReader is a Reader for the MetroclusterCreate structure. type MetroclusterCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewMetroclusterCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterCreateDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterCreateAccepted creates a MetroclusterCreateAccepted with default headers values func NewMetroclusterCreateAccepted() *MetroclusterCreateAccepted { return &MetroclusterCreateAccepted{} } /* MetroclusterCreateAccepted describes a response with status code 202, with default header values. Accepted */ type MetroclusterCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this metrocluster create accepted response has a 2xx status code func (o *MetroclusterCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster create accepted response has a 3xx status code func (o *MetroclusterCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster create accepted response has a 4xx status code func (o *MetroclusterCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this metrocluster create accepted response has a 5xx status code func (o *MetroclusterCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this metrocluster create accepted response a status code equal to that given func (o *MetroclusterCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *MetroclusterCreateAccepted) Error() string { return fmt.Sprintf("[POST /cluster/metrocluster][%d] metroclusterCreateAccepted %+v", 202, o.Payload) } func (o *MetroclusterCreateAccepted) String() string { return fmt.Sprintf("[POST /cluster/metrocluster][%d] metroclusterCreateAccepted %+v", 202, o.Payload) } func (o *MetroclusterCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *MetroclusterCreateAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Location hdrLocation := response.GetHeader("Location") if hdrLocation != "" { o.Location = hdrLocation } o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterCreateDefault creates a MetroclusterCreateDefault with default headers values func NewMetroclusterCreateDefault(code int) *MetroclusterCreateDefault { return &MetroclusterCreateDefault{ _statusCode: code, } } /* MetroclusterCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | | 2432832 | Required environment variables are not set. | | 2432833 | Operation is already running. | | 2432834 | MetroCluster is already configured. | | 2432835 | Operation not supported. | | 2432836 | There are not enough disks in Pool1. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | | 2432839 | Required parameters not set. | | 2432840 | Configuring DR Groups | | 2432841 | Generating IP addresses | | 2432843 | Running Aggregate Recommender | | 2432844 | Checking remote storage pool | | 2432845 | Mirroring aggregates | | 2432846 | Configuring MetroCluster and DR mirroring | | 2432848 | Setting up MetroCluster | | 2432849 | MetroCluster setup is complete | | 2432851 | Minimum number of required data aggregates for MetroCluster configuration are still not mirrored. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | */ type MetroclusterCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster create default response func (o *MetroclusterCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster create default response has a 2xx status code func (o *MetroclusterCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster create default response has a 3xx status code func (o *MetroclusterCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster create default response has a 4xx status code func (o *MetroclusterCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster create default response has a 5xx status code func (o *MetroclusterCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster create default response a status code equal to that given func (o *MetroclusterCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterCreateDefault) Error() string { return fmt.Sprintf("[POST /cluster/metrocluster][%d] metrocluster_create default %+v", o._statusCode, o.Payload) } func (o *MetroclusterCreateDefault) String() string { return fmt.Sprintf("[POST /cluster/metrocluster][%d] metrocluster_create default %+v", o._statusCode, o.Payload) } func (o *MetroclusterCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterCreateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MediatorGetReader is a Reader for the MediatorGet structure. type MediatorGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MediatorGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMediatorGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMediatorGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMediatorGetOK creates a MediatorGetOK with default headers values func NewMediatorGetOK() *MediatorGetOK { return &MediatorGetOK{} } /* MediatorGetOK describes a response with status code 200, with default header values. OK */ type MediatorGetOK struct { Payload *models.Mediator } // IsSuccess returns true when this mediator get o k response has a 2xx status code func (o *MediatorGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this mediator get o k response has a 3xx status code func (o *MediatorGetOK) IsRedirect() bool { return false } // IsClientError returns true when this mediator get o k response has a 4xx status code func (o *MediatorGetOK) IsClientError() bool { return false } // IsServerError returns true when this mediator get o k response has a 5xx status code func (o *MediatorGetOK) IsServerError() bool { return false } // IsCode returns true when this mediator get o k response a status code equal to that given func (o *MediatorGetOK) IsCode(code int) bool { return code == 200 } func (o *MediatorGetOK) Error() string { return fmt.Sprintf("[GET /cluster/mediators/{uuid}][%d] mediatorGetOK %+v", 200, o.Payload) } func (o *MediatorGetOK) String() string { return fmt.Sprintf("[GET /cluster/mediators/{uuid}][%d] mediatorGetOK %+v", 200, o.Payload) } func (o *MediatorGetOK) GetPayload() *models.Mediator { return o.Payload } func (o *MediatorGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Mediator) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMediatorGetDefault creates a MediatorGetDefault with default headers values func NewMediatorGetDefault(code int) *MediatorGetDefault { return &MediatorGetDefault{ _statusCode: code, } } /* MediatorGetDefault describes a response with status code -1, with default header values. Error */ type MediatorGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the mediator get default response func (o *MediatorGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this mediator get default response has a 2xx status code func (o *MediatorGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this mediator get default response has a 3xx status code func (o *MediatorGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this mediator get default response has a 4xx status code func (o *MediatorGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this mediator get default response has a 5xx status code func (o *MediatorGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this mediator get default response a status code equal to that given func (o *MediatorGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MediatorGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/mediators/{uuid}][%d] mediator_get default %+v", o._statusCode, o.Payload) } func (o *MediatorGetDefault) String() string { return fmt.Sprintf("[GET /cluster/mediators/{uuid}][%d] mediator_get default %+v", o._statusCode, o.Payload) } func (o *MediatorGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MediatorGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_node_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_node_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterNodeCollectionGetParams creates a new MetroclusterNodeCollectionGetParams 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 NewMetroclusterNodeCollectionGetParams() *MetroclusterNodeCollectionGetParams { return &MetroclusterNodeCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterNodeCollectionGetParamsWithTimeout creates a new MetroclusterNodeCollectionGetParams object // with the ability to set a timeout on a request. func NewMetroclusterNodeCollectionGetParamsWithTimeout(timeout time.Duration) *MetroclusterNodeCollectionGetParams { return &MetroclusterNodeCollectionGetParams{ timeout: timeout, } } // NewMetroclusterNodeCollectionGetParamsWithContext creates a new MetroclusterNodeCollectionGetParams object // with the ability to set a context for a request. func NewMetroclusterNodeCollectionGetParamsWithContext(ctx context.Context) *MetroclusterNodeCollectionGetParams { return &MetroclusterNodeCollectionGetParams{ Context: ctx, } } // NewMetroclusterNodeCollectionGetParamsWithHTTPClient creates a new MetroclusterNodeCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterNodeCollectionGetParamsWithHTTPClient(client *http.Client) *MetroclusterNodeCollectionGetParams { return &MetroclusterNodeCollectionGetParams{ HTTPClient: client, } } /* MetroclusterNodeCollectionGetParams contains all the parameters to send to the API endpoint for the metrocluster node collection get operation. Typically these are written to a http.Request. */ type MetroclusterNodeCollectionGetParams struct { /* AutomaticUso. Filter by automatic_uso */ AutomaticUso *bool /* ClusterName. Filter by cluster.name */ ClusterName *string /* ClusterUUID. Filter by cluster.uuid */ ClusterUUID *string /* ConfigurationState. Filter by configuration_state */ ConfigurationState *string /* DrAuxiliaryClusterName. Filter by dr_auxiliary_cluster.name */ DrAuxiliaryClusterName *string /* DrAuxiliaryClusterUUID. Filter by dr_auxiliary_cluster.uuid */ DrAuxiliaryClusterUUID *string /* DrAuxiliaryPartnerName. Filter by dr_auxiliary_partner.name */ DrAuxiliaryPartnerName *string /* DrAuxiliaryPartnerSystemID. Filter by dr_auxiliary_partner.system_id */ DrAuxiliaryPartnerSystemID *string /* DrAuxiliaryPartnerUUID. Filter by dr_auxiliary_partner.uuid */ DrAuxiliaryPartnerUUID *string /* DrGroupID. Filter by dr_group_id */ DrGroupID *int64 /* DrMirroringState. Filter by dr_mirroring_state */ DrMirroringState *string /* DrOperationState. Filter by dr_operation_state */ DrOperationState *string /* DrPartnerName. Filter by dr_partner.name */ DrPartnerName *string /* DrPartnerSystemID. Filter by dr_partner.system_id */ DrPartnerSystemID *string /* DrPartnerUUID. Filter by dr_partner.uuid */ DrPartnerUUID *string /* DrPartnerClusterName. Filter by dr_partner_cluster.name */ DrPartnerClusterName *string /* DrPartnerClusterUUID. Filter by dr_partner_cluster.uuid */ DrPartnerClusterUUID *string /* Fields. Specify the fields to return. */ Fields []string /* HaPartnerName. Filter by ha_partner.name */ HaPartnerName *string /* HaPartnerSystemID. Filter by ha_partner.system_id */ HaPartnerSystemID *string /* HaPartnerUUID. Filter by ha_partner.uuid */ HaPartnerUUID *string /* HaPartnerClusterName. Filter by ha_partner_cluster.name */ HaPartnerClusterName *string /* HaPartnerClusterUUID. Filter by ha_partner_cluster.uuid */ HaPartnerClusterUUID *string /* IsMccip. Filter by is_mccip */ IsMccip *bool /* LimitEnforcement. Filter by limit_enforcement */ LimitEnforcement *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* NodeName. Filter by node.name */ NodeName *string /* NodeSystemID. Filter by node.system_id */ NodeSystemID *string /* NodeUUID. Filter by node.uuid */ NodeUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster node collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterNodeCollectionGetParams) WithDefaults() *MetroclusterNodeCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster node collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterNodeCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := MetroclusterNodeCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithTimeout(timeout time.Duration) *MetroclusterNodeCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithContext(ctx context.Context) *MetroclusterNodeCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithHTTPClient(client *http.Client) *MetroclusterNodeCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAutomaticUso adds the automaticUso to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithAutomaticUso(automaticUso *bool) *MetroclusterNodeCollectionGetParams { o.SetAutomaticUso(automaticUso) return o } // SetAutomaticUso adds the automaticUso to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetAutomaticUso(automaticUso *bool) { o.AutomaticUso = automaticUso } // WithClusterName adds the clusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithClusterName(clusterName *string) *MetroclusterNodeCollectionGetParams { o.SetClusterName(clusterName) return o } // SetClusterName adds the clusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetClusterName(clusterName *string) { o.ClusterName = clusterName } // WithClusterUUID adds the clusterUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithClusterUUID(clusterUUID *string) *MetroclusterNodeCollectionGetParams { o.SetClusterUUID(clusterUUID) return o } // SetClusterUUID adds the clusterUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetClusterUUID(clusterUUID *string) { o.ClusterUUID = clusterUUID } // WithConfigurationState adds the configurationState to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithConfigurationState(configurationState *string) *MetroclusterNodeCollectionGetParams { o.SetConfigurationState(configurationState) return o } // SetConfigurationState adds the configurationState to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetConfigurationState(configurationState *string) { o.ConfigurationState = configurationState } // WithDrAuxiliaryClusterName adds the drAuxiliaryClusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrAuxiliaryClusterName(drAuxiliaryClusterName *string) *MetroclusterNodeCollectionGetParams { o.SetDrAuxiliaryClusterName(drAuxiliaryClusterName) return o } // SetDrAuxiliaryClusterName adds the drAuxiliaryClusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrAuxiliaryClusterName(drAuxiliaryClusterName *string) { o.DrAuxiliaryClusterName = drAuxiliaryClusterName } // WithDrAuxiliaryClusterUUID adds the drAuxiliaryClusterUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrAuxiliaryClusterUUID(drAuxiliaryClusterUUID *string) *MetroclusterNodeCollectionGetParams { o.SetDrAuxiliaryClusterUUID(drAuxiliaryClusterUUID) return o } // SetDrAuxiliaryClusterUUID adds the drAuxiliaryClusterUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrAuxiliaryClusterUUID(drAuxiliaryClusterUUID *string) { o.DrAuxiliaryClusterUUID = drAuxiliaryClusterUUID } // WithDrAuxiliaryPartnerName adds the drAuxiliaryPartnerName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrAuxiliaryPartnerName(drAuxiliaryPartnerName *string) *MetroclusterNodeCollectionGetParams { o.SetDrAuxiliaryPartnerName(drAuxiliaryPartnerName) return o } // SetDrAuxiliaryPartnerName adds the drAuxiliaryPartnerName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrAuxiliaryPartnerName(drAuxiliaryPartnerName *string) { o.DrAuxiliaryPartnerName = drAuxiliaryPartnerName } // WithDrAuxiliaryPartnerSystemID adds the drAuxiliaryPartnerSystemID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrAuxiliaryPartnerSystemID(drAuxiliaryPartnerSystemID *string) *MetroclusterNodeCollectionGetParams { o.SetDrAuxiliaryPartnerSystemID(drAuxiliaryPartnerSystemID) return o } // SetDrAuxiliaryPartnerSystemID adds the drAuxiliaryPartnerSystemId to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrAuxiliaryPartnerSystemID(drAuxiliaryPartnerSystemID *string) { o.DrAuxiliaryPartnerSystemID = drAuxiliaryPartnerSystemID } // WithDrAuxiliaryPartnerUUID adds the drAuxiliaryPartnerUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrAuxiliaryPartnerUUID(drAuxiliaryPartnerUUID *string) *MetroclusterNodeCollectionGetParams { o.SetDrAuxiliaryPartnerUUID(drAuxiliaryPartnerUUID) return o } // SetDrAuxiliaryPartnerUUID adds the drAuxiliaryPartnerUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrAuxiliaryPartnerUUID(drAuxiliaryPartnerUUID *string) { o.DrAuxiliaryPartnerUUID = drAuxiliaryPartnerUUID } // WithDrGroupID adds the drGroupID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrGroupID(drGroupID *int64) *MetroclusterNodeCollectionGetParams { o.SetDrGroupID(drGroupID) return o } // SetDrGroupID adds the drGroupId to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrGroupID(drGroupID *int64) { o.DrGroupID = drGroupID } // WithDrMirroringState adds the drMirroringState to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrMirroringState(drMirroringState *string) *MetroclusterNodeCollectionGetParams { o.SetDrMirroringState(drMirroringState) return o } // SetDrMirroringState adds the drMirroringState to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrMirroringState(drMirroringState *string) { o.DrMirroringState = drMirroringState } // WithDrOperationState adds the drOperationState to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrOperationState(drOperationState *string) *MetroclusterNodeCollectionGetParams { o.SetDrOperationState(drOperationState) return o } // SetDrOperationState adds the drOperationState to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrOperationState(drOperationState *string) { o.DrOperationState = drOperationState } // WithDrPartnerName adds the drPartnerName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrPartnerName(drPartnerName *string) *MetroclusterNodeCollectionGetParams { o.SetDrPartnerName(drPartnerName) return o } // SetDrPartnerName adds the drPartnerName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrPartnerName(drPartnerName *string) { o.DrPartnerName = drPartnerName } // WithDrPartnerSystemID adds the drPartnerSystemID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrPartnerSystemID(drPartnerSystemID *string) *MetroclusterNodeCollectionGetParams { o.SetDrPartnerSystemID(drPartnerSystemID) return o } // SetDrPartnerSystemID adds the drPartnerSystemId to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrPartnerSystemID(drPartnerSystemID *string) { o.DrPartnerSystemID = drPartnerSystemID } // WithDrPartnerUUID adds the drPartnerUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrPartnerUUID(drPartnerUUID *string) *MetroclusterNodeCollectionGetParams { o.SetDrPartnerUUID(drPartnerUUID) return o } // SetDrPartnerUUID adds the drPartnerUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrPartnerUUID(drPartnerUUID *string) { o.DrPartnerUUID = drPartnerUUID } // WithDrPartnerClusterName adds the drPartnerClusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrPartnerClusterName(drPartnerClusterName *string) *MetroclusterNodeCollectionGetParams { o.SetDrPartnerClusterName(drPartnerClusterName) return o } // SetDrPartnerClusterName adds the drPartnerClusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrPartnerClusterName(drPartnerClusterName *string) { o.DrPartnerClusterName = drPartnerClusterName } // WithDrPartnerClusterUUID adds the drPartnerClusterUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithDrPartnerClusterUUID(drPartnerClusterUUID *string) *MetroclusterNodeCollectionGetParams { o.SetDrPartnerClusterUUID(drPartnerClusterUUID) return o } // SetDrPartnerClusterUUID adds the drPartnerClusterUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetDrPartnerClusterUUID(drPartnerClusterUUID *string) { o.DrPartnerClusterUUID = drPartnerClusterUUID } // WithFields adds the fields to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithFields(fields []string) *MetroclusterNodeCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithHaPartnerName adds the haPartnerName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithHaPartnerName(haPartnerName *string) *MetroclusterNodeCollectionGetParams { o.SetHaPartnerName(haPartnerName) return o } // SetHaPartnerName adds the haPartnerName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetHaPartnerName(haPartnerName *string) { o.HaPartnerName = haPartnerName } // WithHaPartnerSystemID adds the haPartnerSystemID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithHaPartnerSystemID(haPartnerSystemID *string) *MetroclusterNodeCollectionGetParams { o.SetHaPartnerSystemID(haPartnerSystemID) return o } // SetHaPartnerSystemID adds the haPartnerSystemId to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetHaPartnerSystemID(haPartnerSystemID *string) { o.HaPartnerSystemID = haPartnerSystemID } // WithHaPartnerUUID adds the haPartnerUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithHaPartnerUUID(haPartnerUUID *string) *MetroclusterNodeCollectionGetParams { o.SetHaPartnerUUID(haPartnerUUID) return o } // SetHaPartnerUUID adds the haPartnerUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetHaPartnerUUID(haPartnerUUID *string) { o.HaPartnerUUID = haPartnerUUID } // WithHaPartnerClusterName adds the haPartnerClusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithHaPartnerClusterName(haPartnerClusterName *string) *MetroclusterNodeCollectionGetParams { o.SetHaPartnerClusterName(haPartnerClusterName) return o } // SetHaPartnerClusterName adds the haPartnerClusterName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetHaPartnerClusterName(haPartnerClusterName *string) { o.HaPartnerClusterName = haPartnerClusterName } // WithHaPartnerClusterUUID adds the haPartnerClusterUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithHaPartnerClusterUUID(haPartnerClusterUUID *string) *MetroclusterNodeCollectionGetParams { o.SetHaPartnerClusterUUID(haPartnerClusterUUID) return o } // SetHaPartnerClusterUUID adds the haPartnerClusterUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetHaPartnerClusterUUID(haPartnerClusterUUID *string) { o.HaPartnerClusterUUID = haPartnerClusterUUID } // WithIsMccip adds the isMccip to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithIsMccip(isMccip *bool) *MetroclusterNodeCollectionGetParams { o.SetIsMccip(isMccip) return o } // SetIsMccip adds the isMccip to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetIsMccip(isMccip *bool) { o.IsMccip = isMccip } // WithLimitEnforcement adds the limitEnforcement to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithLimitEnforcement(limitEnforcement *string) *MetroclusterNodeCollectionGetParams { o.SetLimitEnforcement(limitEnforcement) return o } // SetLimitEnforcement adds the limitEnforcement to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetLimitEnforcement(limitEnforcement *string) { o.LimitEnforcement = limitEnforcement } // WithMaxRecords adds the maxRecords to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithMaxRecords(maxRecords *int64) *MetroclusterNodeCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithNodeName adds the nodeName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithNodeName(nodeName *string) *MetroclusterNodeCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeSystemID adds the nodeSystemID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithNodeSystemID(nodeSystemID *string) *MetroclusterNodeCollectionGetParams { o.SetNodeSystemID(nodeSystemID) return o } // SetNodeSystemID adds the nodeSystemId to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetNodeSystemID(nodeSystemID *string) { o.NodeSystemID = nodeSystemID } // WithNodeUUID adds the nodeUUID to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithNodeUUID(nodeUUID *string) *MetroclusterNodeCollectionGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithOrderBy(orderBy []string) *MetroclusterNodeCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithReturnRecords(returnRecords *bool) *MetroclusterNodeCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterNodeCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster node collection get params func (o *MetroclusterNodeCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *MetroclusterNodeCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AutomaticUso != nil { // query param automatic_uso var qrAutomaticUso bool if o.AutomaticUso != nil { qrAutomaticUso = *o.AutomaticUso } qAutomaticUso := swag.FormatBool(qrAutomaticUso) if qAutomaticUso != "" { if err := r.SetQueryParam("automatic_uso", qAutomaticUso); err != nil { return err } } } if o.ClusterName != nil { // query param cluster.name var qrClusterName string if o.ClusterName != nil { qrClusterName = *o.ClusterName } qClusterName := qrClusterName if qClusterName != "" { if err := r.SetQueryParam("cluster.name", qClusterName); err != nil { return err } } } if o.ClusterUUID != nil { // query param cluster.uuid var qrClusterUUID string if o.ClusterUUID != nil { qrClusterUUID = *o.ClusterUUID } qClusterUUID := qrClusterUUID if qClusterUUID != "" { if err := r.SetQueryParam("cluster.uuid", qClusterUUID); err != nil { return err } } } if o.ConfigurationState != nil { // query param configuration_state var qrConfigurationState string if o.ConfigurationState != nil { qrConfigurationState = *o.ConfigurationState } qConfigurationState := qrConfigurationState if qConfigurationState != "" { if err := r.SetQueryParam("configuration_state", qConfigurationState); err != nil { return err } } } if o.DrAuxiliaryClusterName != nil { // query param dr_auxiliary_cluster.name var qrDrAuxiliaryClusterName string if o.DrAuxiliaryClusterName != nil { qrDrAuxiliaryClusterName = *o.DrAuxiliaryClusterName } qDrAuxiliaryClusterName := qrDrAuxiliaryClusterName if qDrAuxiliaryClusterName != "" { if err := r.SetQueryParam("dr_auxiliary_cluster.name", qDrAuxiliaryClusterName); err != nil { return err } } } if o.DrAuxiliaryClusterUUID != nil { // query param dr_auxiliary_cluster.uuid var qrDrAuxiliaryClusterUUID string if o.DrAuxiliaryClusterUUID != nil { qrDrAuxiliaryClusterUUID = *o.DrAuxiliaryClusterUUID } qDrAuxiliaryClusterUUID := qrDrAuxiliaryClusterUUID if qDrAuxiliaryClusterUUID != "" { if err := r.SetQueryParam("dr_auxiliary_cluster.uuid", qDrAuxiliaryClusterUUID); err != nil { return err } } } if o.DrAuxiliaryPartnerName != nil { // query param dr_auxiliary_partner.name var qrDrAuxiliaryPartnerName string if o.DrAuxiliaryPartnerName != nil { qrDrAuxiliaryPartnerName = *o.DrAuxiliaryPartnerName } qDrAuxiliaryPartnerName := qrDrAuxiliaryPartnerName if qDrAuxiliaryPartnerName != "" { if err := r.SetQueryParam("dr_auxiliary_partner.name", qDrAuxiliaryPartnerName); err != nil { return err } } } if o.DrAuxiliaryPartnerSystemID != nil { // query param dr_auxiliary_partner.system_id var qrDrAuxiliaryPartnerSystemID string if o.DrAuxiliaryPartnerSystemID != nil { qrDrAuxiliaryPartnerSystemID = *o.DrAuxiliaryPartnerSystemID } qDrAuxiliaryPartnerSystemID := qrDrAuxiliaryPartnerSystemID if qDrAuxiliaryPartnerSystemID != "" { if err := r.SetQueryParam("dr_auxiliary_partner.system_id", qDrAuxiliaryPartnerSystemID); err != nil { return err } } } if o.DrAuxiliaryPartnerUUID != nil { // query param dr_auxiliary_partner.uuid var qrDrAuxiliaryPartnerUUID string if o.DrAuxiliaryPartnerUUID != nil { qrDrAuxiliaryPartnerUUID = *o.DrAuxiliaryPartnerUUID } qDrAuxiliaryPartnerUUID := qrDrAuxiliaryPartnerUUID if qDrAuxiliaryPartnerUUID != "" { if err := r.SetQueryParam("dr_auxiliary_partner.uuid", qDrAuxiliaryPartnerUUID); err != nil { return err } } } if o.DrGroupID != nil { // query param dr_group_id var qrDrGroupID int64 if o.DrGroupID != nil { qrDrGroupID = *o.DrGroupID } qDrGroupID := swag.FormatInt64(qrDrGroupID) if qDrGroupID != "" { if err := r.SetQueryParam("dr_group_id", qDrGroupID); err != nil { return err } } } if o.DrMirroringState != nil { // query param dr_mirroring_state var qrDrMirroringState string if o.DrMirroringState != nil { qrDrMirroringState = *o.DrMirroringState } qDrMirroringState := qrDrMirroringState if qDrMirroringState != "" { if err := r.SetQueryParam("dr_mirroring_state", qDrMirroringState); err != nil { return err } } } if o.DrOperationState != nil { // query param dr_operation_state var qrDrOperationState string if o.DrOperationState != nil { qrDrOperationState = *o.DrOperationState } qDrOperationState := qrDrOperationState if qDrOperationState != "" { if err := r.SetQueryParam("dr_operation_state", qDrOperationState); err != nil { return err } } } if o.DrPartnerName != nil { // query param dr_partner.name var qrDrPartnerName string if o.DrPartnerName != nil { qrDrPartnerName = *o.DrPartnerName } qDrPartnerName := qrDrPartnerName if qDrPartnerName != "" { if err := r.SetQueryParam("dr_partner.name", qDrPartnerName); err != nil { return err } } } if o.DrPartnerSystemID != nil { // query param dr_partner.system_id var qrDrPartnerSystemID string if o.DrPartnerSystemID != nil { qrDrPartnerSystemID = *o.DrPartnerSystemID } qDrPartnerSystemID := qrDrPartnerSystemID if qDrPartnerSystemID != "" { if err := r.SetQueryParam("dr_partner.system_id", qDrPartnerSystemID); err != nil { return err } } } if o.DrPartnerUUID != nil { // query param dr_partner.uuid var qrDrPartnerUUID string if o.DrPartnerUUID != nil { qrDrPartnerUUID = *o.DrPartnerUUID } qDrPartnerUUID := qrDrPartnerUUID if qDrPartnerUUID != "" { if err := r.SetQueryParam("dr_partner.uuid", qDrPartnerUUID); err != nil { return err } } } if o.DrPartnerClusterName != nil { // query param dr_partner_cluster.name var qrDrPartnerClusterName string if o.DrPartnerClusterName != nil { qrDrPartnerClusterName = *o.DrPartnerClusterName } qDrPartnerClusterName := qrDrPartnerClusterName if qDrPartnerClusterName != "" { if err := r.SetQueryParam("dr_partner_cluster.name", qDrPartnerClusterName); err != nil { return err } } } if o.DrPartnerClusterUUID != nil { // query param dr_partner_cluster.uuid var qrDrPartnerClusterUUID string if o.DrPartnerClusterUUID != nil { qrDrPartnerClusterUUID = *o.DrPartnerClusterUUID } qDrPartnerClusterUUID := qrDrPartnerClusterUUID if qDrPartnerClusterUUID != "" { if err := r.SetQueryParam("dr_partner_cluster.uuid", qDrPartnerClusterUUID); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.HaPartnerName != nil { // query param ha_partner.name var qrHaPartnerName string if o.HaPartnerName != nil { qrHaPartnerName = *o.HaPartnerName } qHaPartnerName := qrHaPartnerName if qHaPartnerName != "" { if err := r.SetQueryParam("ha_partner.name", qHaPartnerName); err != nil { return err } } } if o.HaPartnerSystemID != nil { // query param ha_partner.system_id var qrHaPartnerSystemID string if o.HaPartnerSystemID != nil { qrHaPartnerSystemID = *o.HaPartnerSystemID } qHaPartnerSystemID := qrHaPartnerSystemID if qHaPartnerSystemID != "" { if err := r.SetQueryParam("ha_partner.system_id", qHaPartnerSystemID); err != nil { return err } } } if o.HaPartnerUUID != nil { // query param ha_partner.uuid var qrHaPartnerUUID string if o.HaPartnerUUID != nil { qrHaPartnerUUID = *o.HaPartnerUUID } qHaPartnerUUID := qrHaPartnerUUID if qHaPartnerUUID != "" { if err := r.SetQueryParam("ha_partner.uuid", qHaPartnerUUID); err != nil { return err } } } if o.HaPartnerClusterName != nil { // query param ha_partner_cluster.name var qrHaPartnerClusterName string if o.HaPartnerClusterName != nil { qrHaPartnerClusterName = *o.HaPartnerClusterName } qHaPartnerClusterName := qrHaPartnerClusterName if qHaPartnerClusterName != "" { if err := r.SetQueryParam("ha_partner_cluster.name", qHaPartnerClusterName); err != nil { return err } } } if o.HaPartnerClusterUUID != nil { // query param ha_partner_cluster.uuid var qrHaPartnerClusterUUID string if o.HaPartnerClusterUUID != nil { qrHaPartnerClusterUUID = *o.HaPartnerClusterUUID } qHaPartnerClusterUUID := qrHaPartnerClusterUUID if qHaPartnerClusterUUID != "" { if err := r.SetQueryParam("ha_partner_cluster.uuid", qHaPartnerClusterUUID); err != nil { return err } } } if o.IsMccip != nil { // query param is_mccip var qrIsMccip bool if o.IsMccip != nil { qrIsMccip = *o.IsMccip } qIsMccip := swag.FormatBool(qrIsMccip) if qIsMccip != "" { if err := r.SetQueryParam("is_mccip", qIsMccip); err != nil { return err } } } if o.LimitEnforcement != nil { // query param limit_enforcement var qrLimitEnforcement string if o.LimitEnforcement != nil {
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMediatorCollectionGetParams creates a new MediatorCollectionGetParams 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 NewMediatorCollectionGetParams() *MediatorCollectionGetParams { return &MediatorCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewMediatorCollectionGetParamsWithTimeout creates a new MediatorCollectionGetParams object // with the ability to set a timeout on a request. func NewMediatorCollectionGetParamsWithTimeout(timeout time.Duration) *MediatorCollectionGetParams { return &MediatorCollectionGetParams{ timeout: timeout, } } // NewMediatorCollectionGetParamsWithContext creates a new MediatorCollectionGetParams object // with the ability to set a context for a request. func NewMediatorCollectionGetParamsWithContext(ctx context.Context) *MediatorCollectionGetParams { return &MediatorCollectionGetParams{ Context: ctx, } } // NewMediatorCollectionGetParamsWithHTTPClient creates a new MediatorCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewMediatorCollectionGetParamsWithHTTPClient(client *http.Client) *MediatorCollectionGetParams { return &MediatorCollectionGetParams{ HTTPClient: client, } } /* MediatorCollectionGetParams contains all the parameters to send to the API endpoint for the mediator collection get operation. Typically these are written to a http.Request. */ type MediatorCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* IPAddress. Filter by ip_address */ IPAddress *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* PeerClusterName. Filter by peer_cluster.name */ PeerClusterName *string /* PeerClusterUUID. Filter by peer_cluster.uuid */ PeerClusterUUID *string /* PeerMediatorConnectivity. Filter by peer_mediator_connectivity */ PeerMediatorConnectivity *string /* Port. Filter by port */ Port *int64 /* Reachable. Filter by reachable */ Reachable *bool /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the mediator collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorCollectionGetParams) WithDefaults() *MediatorCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the mediator collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := MediatorCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the mediator collection get params func (o *MediatorCollectionGetParams) WithTimeout(timeout time.Duration) *MediatorCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the mediator collection get params func (o *MediatorCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the mediator collection get params func (o *MediatorCollectionGetParams) WithContext(ctx context.Context) *MediatorCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the mediator collection get params func (o *MediatorCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the mediator collection get params func (o *MediatorCollectionGetParams) WithHTTPClient(client *http.Client) *MediatorCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the mediator collection get params func (o *MediatorCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the mediator collection get params func (o *MediatorCollectionGetParams) WithFields(fields []string) *MediatorCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the mediator collection get params func (o *MediatorCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithIPAddress adds the iPAddress to the mediator collection get params func (o *MediatorCollectionGetParams) WithIPAddress(iPAddress *string) *MediatorCollectionGetParams { o.SetIPAddress(iPAddress) return o } // SetIPAddress adds the ipAddress to the mediator collection get params func (o *MediatorCollectionGetParams) SetIPAddress(iPAddress *string) { o.IPAddress = iPAddress } // WithMaxRecords adds the maxRecords to the mediator collection get params func (o *MediatorCollectionGetParams) WithMaxRecords(maxRecords *int64) *MediatorCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the mediator collection get params func (o *MediatorCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the mediator collection get params func (o *MediatorCollectionGetParams) WithOrderBy(orderBy []string) *MediatorCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the mediator collection get params func (o *MediatorCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPeerClusterName adds the peerClusterName to the mediator collection get params func (o *MediatorCollectionGetParams) WithPeerClusterName(peerClusterName *string) *MediatorCollectionGetParams { o.SetPeerClusterName(peerClusterName) return o } // SetPeerClusterName adds the peerClusterName to the mediator collection get params func (o *MediatorCollectionGetParams) SetPeerClusterName(peerClusterName *string) { o.PeerClusterName = peerClusterName } // WithPeerClusterUUID adds the peerClusterUUID to the mediator collection get params func (o *MediatorCollectionGetParams) WithPeerClusterUUID(peerClusterUUID *string) *MediatorCollectionGetParams { o.SetPeerClusterUUID(peerClusterUUID) return o } // SetPeerClusterUUID adds the peerClusterUuid to the mediator collection get params func (o *MediatorCollectionGetParams) SetPeerClusterUUID(peerClusterUUID *string) { o.PeerClusterUUID = peerClusterUUID } // WithPeerMediatorConnectivity adds the peerMediatorConnectivity to the mediator collection get params func (o *MediatorCollectionGetParams) WithPeerMediatorConnectivity(peerMediatorConnectivity *string) *MediatorCollectionGetParams { o.SetPeerMediatorConnectivity(peerMediatorConnectivity) return o } // SetPeerMediatorConnectivity adds the peerMediatorConnectivity to the mediator collection get params func (o *MediatorCollectionGetParams) SetPeerMediatorConnectivity(peerMediatorConnectivity *string) { o.PeerMediatorConnectivity = peerMediatorConnectivity } // WithPort adds the port to the mediator collection get params func (o *MediatorCollectionGetParams) WithPort(port *int64) *MediatorCollectionGetParams { o.SetPort(port) return o } // SetPort adds the port to the mediator collection get params func (o *MediatorCollectionGetParams) SetPort(port *int64) { o.Port = port } // WithReachable adds the reachable to the mediator collection get params func (o *MediatorCollectionGetParams) WithReachable(reachable *bool) *MediatorCollectionGetParams { o.SetReachable(reachable) return o } // SetReachable adds the reachable to the mediator collection get params func (o *MediatorCollectionGetParams) SetReachable(reachable *bool) { o.Reachable = reachable } // WithReturnRecords adds the returnRecords to the mediator collection get params func (o *MediatorCollectionGetParams) WithReturnRecords(returnRecords *bool) *MediatorCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the mediator collection get params func (o *MediatorCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the mediator collection get params func (o *MediatorCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *MediatorCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the mediator collection get params func (o *MediatorCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the mediator collection get params func (o *MediatorCollectionGetParams) WithUUID(uuid *string) *MediatorCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the mediator collection get params func (o *MediatorCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *MediatorCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.IPAddress != nil { // query param ip_address var qrIPAddress string if o.IPAddress != nil { qrIPAddress = *o.IPAddress } qIPAddress := qrIPAddress if qIPAddress != "" { if err := r.SetQueryParam("ip_address", qIPAddress); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.PeerClusterName != nil { // query param peer_cluster.name var qrPeerClusterName string if o.PeerClusterName != nil { qrPeerClusterName = *o.PeerClusterName } qPeerClusterName := qrPeerClusterName if qPeerClusterName != "" { if err := r.SetQueryParam("peer_cluster.name", qPeerClusterName); err != nil { return err } } } if o.PeerClusterUUID != nil { // query param peer_cluster.uuid var qrPeerClusterUUID string if o.PeerClusterUUID != nil { qrPeerClusterUUID = *o.PeerClusterUUID } qPeerClusterUUID := qrPeerClusterUUID if qPeerClusterUUID != "" { if err := r.SetQueryParam("peer_cluster.uuid", qPeerClusterUUID); err != nil { return err } } } if o.PeerMediatorConnectivity != nil { // query param peer_mediator_connectivity var qrPeerMediatorConnectivity string if o.PeerMediatorConnectivity != nil { qrPeerMediatorConnectivity = *o.PeerMediatorConnectivity } qPeerMediatorConnectivity := qrPeerMediatorConnectivity if qPeerMediatorConnectivity != "" { if err := r.SetQueryParam("peer_mediator_connectivity", qPeerMediatorConnectivity); err != nil { return err } } } if o.Port != nil { // query param port var qrPort int64 if o.Port != nil { qrPort = *o.Port } qPort := swag.FormatInt64(qrPort) if qPort != "" { if err := r.SetQueryParam("port", qPort); err != nil { return err } } } if o.Reachable != nil { // query param reachable var qrReachable bool if o.Reachable != nil { qrReachable = *o.Reachable } qReachable := swag.FormatBool(qrReachable) if qReachable != "" { if err := r.SetQueryParam("reachable", qReachable); err != nil { return err } } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMediatorCollectionGet binds the parameter fields func (o *MediatorCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamMediatorCollectionGet binds the parameter order_by func (o *MediatorCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/counter_row_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewCounterRowGetParams creates a new CounterRowGetParams 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 NewCounterRowGetParams() *CounterRowGetParams { return &CounterRowGetParams{ timeout: cr.DefaultTimeout, } } // NewCounterRowGetParamsWithTimeout creates a new CounterRowGetParams object // with the ability to set a timeout on a request. func NewCounterRowGetParamsWithTimeout(timeout time.Duration) *CounterRowGetParams { return &CounterRowGetParams{ timeout: timeout, } } // NewCounterRowGetParamsWithContext creates a new CounterRowGetParams object // with the ability to set a context for a request. func NewCounterRowGetParamsWithContext(ctx context.Context) *CounterRowGetParams { return &CounterRowGetParams{ Context: ctx, } } // NewCounterRowGetParamsWithHTTPClient creates a new CounterRowGetParams object // with the ability to set a custom HTTPClient for a request. func NewCounterRowGetParamsWithHTTPClient(client *http.Client) *CounterRowGetParams { return &CounterRowGetParams{ HTTPClient: client, } } /* CounterRowGetParams contains all the parameters to send to the API endpoint for the counter row get operation. Typically these are written to a http.Request. */ type CounterRowGetParams struct { /* CounterTableName. Counter table name. */ CounterTableName string /* Fields. Specify the fields to return. */ Fields []string /* ID. Unique row identifier. */ ID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the counter row get params (not the query body). // // All values with no default are reset to their zero value. func (o *CounterRowGetParams) WithDefaults() *CounterRowGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the counter row get params (not the query body). // // All values with no default are reset to their zero value. func (o *CounterRowGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the counter row get params func (o *CounterRowGetParams) WithTimeout(timeout time.Duration) *CounterRowGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the counter row get params func (o *CounterRowGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the counter row get params func (o *CounterRowGetParams) WithContext(ctx context.Context) *CounterRowGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the counter row get params func (o *CounterRowGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the counter row get params func (o *CounterRowGetParams) WithHTTPClient(client *http.Client) *CounterRowGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the counter row get params func (o *CounterRowGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCounterTableName adds the counterTableName to the counter row get params func (o *CounterRowGetParams) WithCounterTableName(counterTableName string) *CounterRowGetParams { o.SetCounterTableName(counterTableName) return o } // SetCounterTableName adds the counterTableName to the counter row get params func (o *CounterRowGetParams) SetCounterTableName(counterTableName string) { o.CounterTableName = counterTableName } // WithFields adds the fields to the counter row get params func (o *CounterRowGetParams) WithFields(fields []string) *CounterRowGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the counter row get params func (o *CounterRowGetParams) SetFields(fields []string) { o.Fields = fields } // WithID adds the id to the counter row get params func (o *CounterRowGetParams) WithID(id string) *CounterRowGetParams { o.SetID(id) return o } // SetID adds the id to the counter row get params func (o *CounterRowGetParams) SetID(id string) { o.ID = id } // WriteToRequest writes these params to a swagger request func (o *CounterRowGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param counter_table.name if err := r.SetPathParam("counter_table.name", o.CounterTableName); err != nil { return err } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamCounterRowGet binds the parameter fields func (o *CounterRowGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SoftwareGetReader is a Reader for the SoftwareGet structure. type SoftwareGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SoftwareGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSoftwareGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSoftwareGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewSoftwareGetOK creates a SoftwareGetOK with default headers values func NewSoftwareGetOK() *SoftwareGetOK { return &SoftwareGetOK{} } /* SoftwareGetOK describes a response with status code 200, with default header values. OK */ type SoftwareGetOK struct { Payload *models.SoftwareReference } // IsSuccess returns true when this software get o k response has a 2xx status code func (o *SoftwareGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this software get o k response has a 3xx status code func (o *SoftwareGetOK) IsRedirect() bool { return false } // IsClientError returns true when this software get o k response has a 4xx status code func (o *SoftwareGetOK) IsClientError() bool { return false } // IsServerError returns true when this software get o k response has a 5xx status code func (o *SoftwareGetOK) IsServerError() bool { return false } // IsCode returns true when this software get o k response a status code equal to that given func (o *SoftwareGetOK) IsCode(code int) bool { return code == 200 } func (o *SoftwareGetOK) Error() string { return fmt.Sprintf("[GET /cluster/software][%d] softwareGetOK %+v", 200, o.Payload) } func (o *SoftwareGetOK) String() string { return fmt.Sprintf("[GET /cluster/software][%d] softwareGetOK %+v", 200, o.Payload) } func (o *SoftwareGetOK) GetPayload() *models.SoftwareReference { return o.Payload } func (o *SoftwareGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SoftwareReference) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSoftwareGetDefault creates a SoftwareGetDefault with default headers values func NewSoftwareGetDefault(code int) *SoftwareGetDefault { return &SoftwareGetDefault{ _statusCode: code, } } /* SoftwareGetDefault describes a response with status code -1, with default header values. Error */ type SoftwareGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the software get default response func (o *SoftwareGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this software get default response has a 2xx status code func (o *SoftwareGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this software get default response has a 3xx status code func (o *SoftwareGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this software get default response has a 4xx status code func (o *SoftwareGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this software get default response has a 5xx status code func (o *SoftwareGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this software get default response a status code equal to that given func (o *SoftwareGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SoftwareGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/software][%d] software_get default %+v", o._statusCode, o.Payload) } func (o *SoftwareGetDefault) String() string { return fmt.Sprintf("[GET /cluster/software][%d] software_get default %+v", o._statusCode, o.Payload) } func (o *SoftwareGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SoftwareGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewClusterNtpKeysCollectionGetParams creates a new ClusterNtpKeysCollectionGetParams 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 NewClusterNtpKeysCollectionGetParams() *ClusterNtpKeysCollectionGetParams { return &ClusterNtpKeysCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewClusterNtpKeysCollectionGetParamsWithTimeout creates a new ClusterNtpKeysCollectionGetParams object // with the ability to set a timeout on a request. func NewClusterNtpKeysCollectionGetParamsWithTimeout(timeout time.Duration) *ClusterNtpKeysCollectionGetParams { return &ClusterNtpKeysCollectionGetParams{ timeout: timeout, } } // NewClusterNtpKeysCollectionGetParamsWithContext creates a new ClusterNtpKeysCollectionGetParams object // with the ability to set a context for a request. func NewClusterNtpKeysCollectionGetParamsWithContext(ctx context.Context) *ClusterNtpKeysCollectionGetParams { return &ClusterNtpKeysCollectionGetParams{ Context: ctx, } } // NewClusterNtpKeysCollectionGetParamsWithHTTPClient creates a new ClusterNtpKeysCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNtpKeysCollectionGetParamsWithHTTPClient(client *http.Client) *ClusterNtpKeysCollectionGetParams { return &ClusterNtpKeysCollectionGetParams{ HTTPClient: client, } } /* ClusterNtpKeysCollectionGetParams contains all the parameters to send to the API endpoint for the cluster ntp keys collection get operation. Typically these are written to a http.Request. */ type ClusterNtpKeysCollectionGetParams struct { /* DigestType. Filter by digest_type */ DigestType *string /* Fields. Specify the fields to return. */ Fields []string /* ID. Filter by id */ ID *int64 /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* Value. Filter by value */ Value *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ntp keys collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpKeysCollectionGetParams) WithDefaults() *ClusterNtpKeysCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ntp keys collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpKeysCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ClusterNtpKeysCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithTimeout(timeout time.Duration) *ClusterNtpKeysCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithContext(ctx context.Context) *ClusterNtpKeysCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithHTTPClient(client *http.Client) *ClusterNtpKeysCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDigestType adds the digestType to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithDigestType(digestType *string) *ClusterNtpKeysCollectionGetParams { o.SetDigestType(digestType) return o } // SetDigestType adds the digestType to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetDigestType(digestType *string) { o.DigestType = digestType } // WithFields adds the fields to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithFields(fields []string) *ClusterNtpKeysCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithID adds the id to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithID(id *int64) *ClusterNtpKeysCollectionGetParams { o.SetID(id) return o } // SetID adds the id to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetID(id *int64) { o.ID = id } // WithMaxRecords adds the maxRecords to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithMaxRecords(maxRecords *int64) *ClusterNtpKeysCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithOrderBy(orderBy []string) *ClusterNtpKeysCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithReturnRecords(returnRecords *bool) *ClusterNtpKeysCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ClusterNtpKeysCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithValue adds the value to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) WithValue(value *string) *ClusterNtpKeysCollectionGetParams { o.SetValue(value) return o } // SetValue adds the value to the cluster ntp keys collection get params func (o *ClusterNtpKeysCollectionGetParams) SetValue(value *string) { o.Value = value } // WriteToRequest writes these params to a swagger request func (o *ClusterNtpKeysCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.DigestType != nil { // query param digest_type var qrDigestType string if o.DigestType != nil { qrDigestType = *o.DigestType } qDigestType := qrDigestType if qDigestType != "" { if err := r.SetQueryParam("digest_type", qDigestType); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.ID != nil { // query param id var qrID int64 if o.ID != nil { qrID = *o.ID } qID := swag.FormatInt64(qrID) if qID != "" { if err := r.SetQueryParam("id", qID); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.Value != nil { // query param value var qrValue string if o.Value != nil { qrValue = *o.Value } qValue := qrValue if qValue != "" { if err := r.SetQueryParam("value", qValue); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamClusterNtpKeysCollectionGet binds the parameter fields func (o *ClusterNtpKeysCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamClusterNtpKeysCollectionGet binds the parameter order_by func (o *ClusterNtpKeysCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_client.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_client.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" ) // New creates a new cluster API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* Client for cluster API */ type Client struct { transport runtime.ClientTransport formats strfmt.Registry } // ClientOption is the option for Client methods type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { CapacityPoolCollectionGet(params *CapacityPoolCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CapacityPoolCollectionGetOK, error) CapacityPoolGet(params *CapacityPoolGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CapacityPoolGetOK, error) ChassisCollectionGet(params *ChassisCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChassisCollectionGetOK, error) ChassisGet(params *ChassisGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChassisGetOK, error) ClusterCollectionPerformanceMetricsGet(params *ClusterCollectionPerformanceMetricsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterCollectionPerformanceMetricsGetOK, error) ClusterCreate(params *ClusterCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterCreateAccepted, error) ClusterGet(params *ClusterGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterGetOK, error) ClusterModify(params *ClusterModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterModifyAccepted, error) ClusterNtpKeysCollectionGet(params *ClusterNtpKeysCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysCollectionGetOK, error) ClusterNtpKeysCreate(params *ClusterNtpKeysCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysCreateCreated, error) ClusterNtpKeysDelete(params *ClusterNtpKeysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysDeleteOK, error) ClusterNtpKeysGet(params *ClusterNtpKeysGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysGetOK, error) ClusterNtpKeysModify(params *ClusterNtpKeysModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysModifyOK, error) ClusterNtpServersCollectionGet(params *ClusterNtpServersCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpServersCollectionGetOK, error) ClusterNtpServersCreate(params *ClusterNtpServersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpServersCreateAccepted, error) ClusterNtpServersDelete(params *ClusterNtpServersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpServersDeleteAccepted, error) ClusterNtpServersGet(params *ClusterNtpServersGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpServersGetOK, error) ClusterNtpServersModify(params *ClusterNtpServersModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpServersModifyAccepted, error) ClusterPeerCollectionGet(params *ClusterPeerCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterPeerCollectionGetOK, error) ClusterPeerCreate(params *ClusterPeerCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterPeerCreateCreated, error) ClusterPeerDelete(params *ClusterPeerDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterPeerDeleteOK, error) ClusterPeerGet(params *ClusterPeerGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterPeerGetOK, error) ClusterPeerModify(params *ClusterPeerModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterPeerModifyOK, error) CounterRowCollectionGet(params *CounterRowCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CounterRowCollectionGetOK, error) CounterRowGet(params *CounterRowGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CounterRowGetOK, error) CounterTableCollectionGet(params *CounterTableCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CounterTableCollectionGetOK, error) CounterTableGet(params *CounterTableGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CounterTableGetOK, error) FirmwareHistoryCollectionGet(params *FirmwareHistoryCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FirmwareHistoryCollectionGetOK, error) JobCollectionGet(params *JobCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*JobCollectionGetOK, error) JobGet(params *JobGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*JobGetOK, error) JobModify(params *JobModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*JobModifyOK, error) LicenseCreate(params *LicenseCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LicenseCreateCreated, error) LicenseDelete(params *LicenseDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LicenseDeleteOK, error) LicenseGet(params *LicenseGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LicenseGetOK, error) LicenseManagerCollectionGet(params *LicenseManagerCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LicenseManagerCollectionGetOK, error) LicenseManagerGet(params *LicenseManagerGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LicenseManagerGetOK, error) LicenseManagerModify(params *LicenseManagerModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LicenseManagerModifyAccepted, error) LicensesGet(params *LicensesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LicensesGetOK, error) MediatorCollectionGet(params *MediatorCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediatorCollectionGetOK, error) MediatorCreate(params *MediatorCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediatorCreateAccepted, error) MediatorDelete(params *MediatorDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediatorDeleteAccepted, error) MediatorGet(params *MediatorGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MediatorGetOK, error) MetroclusterCreate(params *MetroclusterCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterCreateAccepted, error) MetroclusterDiagnosticsCreate(params *MetroclusterDiagnosticsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterDiagnosticsCreateAccepted, error) MetroclusterDiagnosticsGet(params *MetroclusterDiagnosticsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterDiagnosticsGetOK, error) MetroclusterDrGroupCollectionGet(params *MetroclusterDrGroupCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterDrGroupCollectionGetOK, error) MetroclusterDrGroupCreate(params *MetroclusterDrGroupCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterDrGroupCreateAccepted, error) MetroclusterDrGroupDelete(params *MetroclusterDrGroupDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterDrGroupDeleteAccepted, error) MetroclusterDrGroupGet(params *MetroclusterDrGroupGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterDrGroupGetOK, error) MetroclusterGet(params *MetroclusterGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterGetOK, error) MetroclusterInterconnectCollectionGet(params *MetroclusterInterconnectCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterInterconnectCollectionGetOK, error) MetroclusterInterconnectGet(params *MetroclusterInterconnectGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterInterconnectGetOK, error) MetroclusterInterconnectModify(params *MetroclusterInterconnectModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterInterconnectModifyAccepted, error) MetroclusterModify(params *MetroclusterModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterModifyAccepted, error) MetroclusterNodeCollectionGet(params *MetroclusterNodeCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterNodeCollectionGetOK, error) MetroclusterNodeGet(params *MetroclusterNodeGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterNodeGetOK, error) MetroclusterOperationCollectionGet(params *MetroclusterOperationCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterOperationCollectionGetOK, error) MetroclusterOperationGet(params *MetroclusterOperationGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterOperationGetOK, error) MetroclusterSvmCollectionGet(params *MetroclusterSvmCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterSvmCollectionGetOK, error) MetroclusterSvmGet(params *MetroclusterSvmGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetroclusterSvmGetOK, error) NodeDelete(params *NodeDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NodeDeleteAccepted, error) NodeGet(params *NodeGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NodeGetOK, error) NodeMetricsCollectionGet(params *NodeMetricsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NodeMetricsCollectionGetOK, error) NodeModify(params *NodeModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NodeModifyAccepted, error) NodesCreate(params *NodesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NodesCreateAccepted, error) NodesGet(params *NodesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NodesGetOK, error) ScheduleCollectionGet(params *ScheduleCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScheduleCollectionGetOK, error) ScheduleCreate(params *ScheduleCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScheduleCreateCreated, error) ScheduleDelete(params *ScheduleDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScheduleDeleteOK, error) ScheduleGet(params *ScheduleGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScheduleGetOK, error) ScheduleModify(params *ScheduleModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScheduleModifyOK, error) SensorsCollectionGet(params *SensorsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SensorsCollectionGetOK, error) SensorsGet(params *SensorsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SensorsGetOK, error) SoftwareDownloadGet(params *SoftwareDownloadGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwareDownloadGetOK, error) SoftwareGet(params *SoftwareGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwareGetOK, error) SoftwareHistoryCollectionGet(params *SoftwareHistoryCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwareHistoryCollectionGetOK, error) SoftwareModify(params *SoftwareModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwareModifyAccepted, error) SoftwarePackageCreate(params *SoftwarePackageCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwarePackageCreateAccepted, error) SoftwarePackageDelete(params *SoftwarePackageDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwarePackageDeleteAccepted, error) SoftwarePackageGet(params *SoftwarePackageGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwarePackageGetOK, error) SoftwarePackagesCollectionGet(params *SoftwarePackagesCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwarePackagesCollectionGetOK, error) SoftwareUpload(params *SoftwareUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SoftwareUploadAccepted, error) WebGet(params *WebGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebGetOK, error) WebModify(params *WebModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebModifyOK, *WebModifyAccepted, error) SetTransport(transport runtime.ClientTransport) } /* CapacityPoolCollectionGet Retrieves a collection of capacity pools. ### Learn more * [`DOC /cluster/licensing/capacity-pools`](#docs-cluster-cluster_licensing_capacity-pools) ### Related ONTAP commands * `system license show-status` * `system license show` */ func (a *Client) CapacityPoolCollectionGet(params *CapacityPoolCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CapacityPoolCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewCapacityPoolCollectionGetParams() } op := &runtime.ClientOperation{ ID: "capacity_pool_collection_get", Method: "GET", PathPattern: "/cluster/licensing/capacity-pools", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &CapacityPoolCollectionGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*CapacityPoolCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*CapacityPoolCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* CapacityPoolGet Retrieves information about the capacity pool. ### Learn more * [`DOC /cluster/licensing/capacity-pools`](#docs-cluster-cluster_licensing_capacity-pools) ### Related ONTAP commands * `system license show-status` * `system license show` */ func (a *Client) CapacityPoolGet(params *CapacityPoolGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CapacityPoolGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewCapacityPoolGetParams() } op := &runtime.ClientOperation{ ID: "capacity_pool_get", Method: "GET", PathPattern: "/cluster/licensing/capacity-pools/{serial_number}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &CapacityPoolGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*CapacityPoolGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*CapacityPoolGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ChassisCollectionGet Retrieves a collection of chassis. ### Related ONTAP commands * `system chassis show` * `system chassis fru show` ### Learn more * [`DOC /cluster/chassis`](#docs-cluster-cluster_chassis) */ func (a *Client) ChassisCollectionGet(params *ChassisCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChassisCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewChassisCollectionGetParams() } op := &runtime.ClientOperation{ ID: "chassis_collection_get", Method: "GET", PathPattern: "/cluster/chassis", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ChassisCollectionGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ChassisCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ChassisCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ChassisGet Retrieves a specific chassis. ### Related ONTAP commands * `system chassis show` * `system chassis fru show` ### Learn more * [`DOC /cluster/chassis`](#docs-cluster-cluster_chassis) */ func (a *Client) ChassisGet(params *ChassisGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChassisGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewChassisGetParams() } op := &runtime.ClientOperation{ ID: "chassis_get", Method: "GET", PathPattern: "/cluster/chassis/{id}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ChassisGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ChassisGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ChassisGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterCollectionPerformanceMetricsGet Retrieves historical performance metrics for the cluster. */ func (a *Client) ClusterCollectionPerformanceMetricsGet(params *ClusterCollectionPerformanceMetricsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterCollectionPerformanceMetricsGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterCollectionPerformanceMetricsGetParams() } op := &runtime.ClientOperation{ ID: "cluster_collection_performance_metrics_get", Method: "GET", PathPattern: "/cluster/metrics", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterCollectionPerformanceMetricsGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterCollectionPerformanceMetricsGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterCollectionPerformanceMetricsGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterCreate Creates a cluster. ### Required properties * `name` * `password` ### Recommended optional properties * `location` * `contact` * `dns_domains` * `name_servers` * `ntp_servers` * `license` * `configuration_backup` * `management_interface` * `nodes` * `timezone` ### Learn more * [`DOC /cluster`](#docs-cluster-cluster) */ func (a *Client) ClusterCreate(params *ClusterCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterCreateAccepted, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterCreateParams() } op := &runtime.ClientOperation{ ID: "cluster_create", Method: "POST", PathPattern: "/cluster", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterCreateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterCreateAccepted) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterCreateDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterGet Retrieves the cluster configuration. */ func (a *Client) ClusterGet(params *ClusterGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterGetParams() } op := &runtime.ClientOperation{ ID: "cluster_get", Method: "GET", PathPattern: "/cluster", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterModify Updates the cluster configuration after the cluster is created. ### Related ONTAP commands * `cluster identity modify` * `system node modify` * `vserver services dns modify` * `vserver services name-service dns modify` * `timezone` * `security ssl modify` */ func (a *Client) ClusterModify(params *ClusterModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterModifyAccepted, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterModifyParams() } op := &runtime.ClientOperation{ ID: "cluster_modify", Method: "PATCH", PathPattern: "/cluster", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterModifyReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterModifyAccepted) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterModifyDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterNtpKeysCollectionGet Retrieves the collection of NTP symmetric authentication keys known by ONTAP that are uniquely indexed by an identifier. ### Related ONTAP commands * `cluster time-service ntp key show` ### Learn more * [`DOC /cluster/ntp/keys`](#docs-cluster-cluster_ntp_keys) */ func (a *Client) ClusterNtpKeysCollectionGet(params *ClusterNtpKeysCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterNtpKeysCollectionGetParams() } op := &runtime.ClientOperation{ ID: "cluster_ntp_keys_collection_get", Method: "GET", PathPattern: "/cluster/ntp/keys", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterNtpKeysCollectionGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterNtpKeysCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterNtpKeysCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterNtpKeysCreate Creates an NTP symmetric authentication key entry including the type of key using an unused identifier or index number (ID). ### Required properties * `id` - Shared symmetric key number (ID). * `digest_type` - Shared private key cryptographic hash type. * `value` - Value of shared private key. ### Related ONTAP commands * `cluster time-service ntp key create` ### Learn more * [`DOC /cluster/ntp/keys`](#docs-cluster-cluster_ntp_keys) */ func (a *Client) ClusterNtpKeysCreate(params *ClusterNtpKeysCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysCreateCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterNtpKeysCreateParams() } op := &runtime.ClientOperation{ ID: "cluster_ntp_keys_create", Method: "POST", PathPattern: "/cluster/ntp/keys", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterNtpKeysCreateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterNtpKeysCreateCreated) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterNtpKeysCreateDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterNtpKeysDelete Deletes an NTP key. ### Related ONTAP commands * `cluster time-service ntp key delete` ### Learn more * [`DOC /cluster/ntp/keys`](#docs-cluster-cluster_ntp_keys) */ func (a *Client) ClusterNtpKeysDelete(params *ClusterNtpKeysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysDeleteOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterNtpKeysDeleteParams() } op := &runtime.ClientOperation{ ID: "cluster_ntp_keys_delete", Method: "DELETE", PathPattern: "/cluster/ntp/keys/{id}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterNtpKeysDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterNtpKeysDeleteOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterNtpKeysDeleteDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterNtpKeysGet Retrieves the details of a specific NTP symmetric authentication key by numeric identifier or index (ID). ### Related ONTAP commands * `cluster time-service ntp key show` ### Learn more * [`DOC /cluster/ntp/keys`](#docs-cluster-cluster_ntp_keys) */ func (a *Client) ClusterNtpKeysGet(params *ClusterNtpKeysGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterNtpKeysGetParams() } op := &runtime.ClientOperation{ ID: "cluster_ntp_keys_get", Method: "GET", PathPattern: "/cluster/ntp/keys/{id}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ClusterNtpKeysGetReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } for _, opt := range opts { opt(op) } result, err := a.transport.Submit(op) if err != nil { return nil, err } success, ok := result.(*ClusterNtpKeysGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ClusterNtpKeysGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ClusterNtpKeysModify Updates the details of a specific NTP symmetric authentication key by numeric identifier or index (ID). ### Required properties * `digest_type` - Shared private key cryptographic hash type. * `value` - Value of shared private key. ### Related ONTAP commands * `cluster time-service ntp key modify` ### Learn more * [`DOC /cluster/ntp/keys`](#docs-cluster-cluster_ntp_keys) */ func (a *Client) ClusterNtpKeysModify(params *ClusterNtpKeysModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNtpKeysModifyOK, error) { // TODO: Validate the params before sending if params == nil { params = NewClusterNtpKeysModifyParams() } op := &runtime.ClientOperation{
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
true
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewClusterPeerModifyParams creates a new ClusterPeerModifyParams 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 NewClusterPeerModifyParams() *ClusterPeerModifyParams { return &ClusterPeerModifyParams{ timeout: cr.DefaultTimeout, } } // NewClusterPeerModifyParamsWithTimeout creates a new ClusterPeerModifyParams object // with the ability to set a timeout on a request. func NewClusterPeerModifyParamsWithTimeout(timeout time.Duration) *ClusterPeerModifyParams { return &ClusterPeerModifyParams{ timeout: timeout, } } // NewClusterPeerModifyParamsWithContext creates a new ClusterPeerModifyParams object // with the ability to set a context for a request. func NewClusterPeerModifyParamsWithContext(ctx context.Context) *ClusterPeerModifyParams { return &ClusterPeerModifyParams{ Context: ctx, } } // NewClusterPeerModifyParamsWithHTTPClient creates a new ClusterPeerModifyParams object // with the ability to set a custom HTTPClient for a request. func NewClusterPeerModifyParamsWithHTTPClient(client *http.Client) *ClusterPeerModifyParams { return &ClusterPeerModifyParams{ HTTPClient: client, } } /* ClusterPeerModifyParams contains all the parameters to send to the API endpoint for the cluster peer modify operation. Typically these are written to a http.Request. */ type ClusterPeerModifyParams struct { /* Info. Info specification */ Info *models.ClusterPeer /* UUID. Cluster peer relationship UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster peer modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterPeerModifyParams) WithDefaults() *ClusterPeerModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster peer modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterPeerModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster peer modify params func (o *ClusterPeerModifyParams) WithTimeout(timeout time.Duration) *ClusterPeerModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster peer modify params func (o *ClusterPeerModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster peer modify params func (o *ClusterPeerModifyParams) WithContext(ctx context.Context) *ClusterPeerModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster peer modify params func (o *ClusterPeerModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster peer modify params func (o *ClusterPeerModifyParams) WithHTTPClient(client *http.Client) *ClusterPeerModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster peer modify params func (o *ClusterPeerModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cluster peer modify params func (o *ClusterPeerModifyParams) WithInfo(info *models.ClusterPeer) *ClusterPeerModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster peer modify params func (o *ClusterPeerModifyParams) SetInfo(info *models.ClusterPeer) { o.Info = info } // WithUUID adds the uuid to the cluster peer modify params func (o *ClusterPeerModifyParams) WithUUID(uuid string) *ClusterPeerModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the cluster peer modify params func (o *ClusterPeerModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ClusterPeerModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewClusterPeerCollectionGetParams creates a new ClusterPeerCollectionGetParams 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 NewClusterPeerCollectionGetParams() *ClusterPeerCollectionGetParams { return &ClusterPeerCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewClusterPeerCollectionGetParamsWithTimeout creates a new ClusterPeerCollectionGetParams object // with the ability to set a timeout on a request. func NewClusterPeerCollectionGetParamsWithTimeout(timeout time.Duration) *ClusterPeerCollectionGetParams { return &ClusterPeerCollectionGetParams{ timeout: timeout, } } // NewClusterPeerCollectionGetParamsWithContext creates a new ClusterPeerCollectionGetParams object // with the ability to set a context for a request. func NewClusterPeerCollectionGetParamsWithContext(ctx context.Context) *ClusterPeerCollectionGetParams { return &ClusterPeerCollectionGetParams{ Context: ctx, } } // NewClusterPeerCollectionGetParamsWithHTTPClient creates a new ClusterPeerCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewClusterPeerCollectionGetParamsWithHTTPClient(client *http.Client) *ClusterPeerCollectionGetParams { return &ClusterPeerCollectionGetParams{ HTTPClient: client, } } /* ClusterPeerCollectionGetParams contains all the parameters to send to the API endpoint for the cluster peer collection get operation. Typically these are written to a http.Request. */ type ClusterPeerCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster peer collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterPeerCollectionGetParams) WithDefaults() *ClusterPeerCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster peer collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterPeerCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ClusterPeerCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithTimeout(timeout time.Duration) *ClusterPeerCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithContext(ctx context.Context) *ClusterPeerCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithHTTPClient(client *http.Client) *ClusterPeerCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithFields(fields []string) *ClusterPeerCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithMaxRecords(maxRecords *int64) *ClusterPeerCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithOrderBy(orderBy []string) *ClusterPeerCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithReturnRecords(returnRecords *bool) *ClusterPeerCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ClusterPeerCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the cluster peer collection get params func (o *ClusterPeerCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ClusterPeerCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamClusterPeerCollectionGet binds the parameter fields func (o *ClusterPeerCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamClusterPeerCollectionGet binds the parameter order_by func (o *ClusterPeerCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterInterconnectCollectionGetParams creates a new MetroclusterInterconnectCollectionGetParams 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 NewMetroclusterInterconnectCollectionGetParams() *MetroclusterInterconnectCollectionGetParams { return &MetroclusterInterconnectCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterInterconnectCollectionGetParamsWithTimeout creates a new MetroclusterInterconnectCollectionGetParams object // with the ability to set a timeout on a request. func NewMetroclusterInterconnectCollectionGetParamsWithTimeout(timeout time.Duration) *MetroclusterInterconnectCollectionGetParams { return &MetroclusterInterconnectCollectionGetParams{ timeout: timeout, } } // NewMetroclusterInterconnectCollectionGetParamsWithContext creates a new MetroclusterInterconnectCollectionGetParams object // with the ability to set a context for a request. func NewMetroclusterInterconnectCollectionGetParamsWithContext(ctx context.Context) *MetroclusterInterconnectCollectionGetParams { return &MetroclusterInterconnectCollectionGetParams{ Context: ctx, } } // NewMetroclusterInterconnectCollectionGetParamsWithHTTPClient creates a new MetroclusterInterconnectCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterInterconnectCollectionGetParamsWithHTTPClient(client *http.Client) *MetroclusterInterconnectCollectionGetParams { return &MetroclusterInterconnectCollectionGetParams{ HTTPClient: client, } } /* MetroclusterInterconnectCollectionGetParams contains all the parameters to send to the API endpoint for the metrocluster interconnect collection get operation. Typically these are written to a http.Request. */ type MetroclusterInterconnectCollectionGetParams struct { /* Adapter. Filter by adapter */ Adapter *string /* Fields. Specify the fields to return. */ Fields []string /* InterfacesAddress. Filter by interfaces.address */ InterfacesAddress *string /* InterfacesGateway. Filter by interfaces.gateway */ InterfacesGateway *string /* InterfacesNetmask. Filter by interfaces.netmask */ InterfacesNetmask *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* MirrorEnabled. Filter by mirror.enabled */ MirrorEnabled *bool /* MirrorState. Filter by mirror.state */ MirrorState *string /* MultipathPolicy. Filter by multipath_policy */ MultipathPolicy *string /* NodeName. Filter by node.name */ NodeName *string /* NodeUUID. Filter by node.uuid */ NodeUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* PartnerType. Filter by partner_type */ PartnerType *string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* State. Filter by state */ State *string /* Type. Filter by type */ Type *string /* VlanID. Filter by vlan_id */ VlanID *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster interconnect collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterInterconnectCollectionGetParams) WithDefaults() *MetroclusterInterconnectCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster interconnect collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterInterconnectCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := MetroclusterInterconnectCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithTimeout(timeout time.Duration) *MetroclusterInterconnectCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithContext(ctx context.Context) *MetroclusterInterconnectCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithHTTPClient(client *http.Client) *MetroclusterInterconnectCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAdapter adds the adapter to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithAdapter(adapter *string) *MetroclusterInterconnectCollectionGetParams { o.SetAdapter(adapter) return o } // SetAdapter adds the adapter to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetAdapter(adapter *string) { o.Adapter = adapter } // WithFields adds the fields to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithFields(fields []string) *MetroclusterInterconnectCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithInterfacesAddress adds the interfacesAddress to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithInterfacesAddress(interfacesAddress *string) *MetroclusterInterconnectCollectionGetParams { o.SetInterfacesAddress(interfacesAddress) return o } // SetInterfacesAddress adds the interfacesAddress to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetInterfacesAddress(interfacesAddress *string) { o.InterfacesAddress = interfacesAddress } // WithInterfacesGateway adds the interfacesGateway to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithInterfacesGateway(interfacesGateway *string) *MetroclusterInterconnectCollectionGetParams { o.SetInterfacesGateway(interfacesGateway) return o } // SetInterfacesGateway adds the interfacesGateway to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetInterfacesGateway(interfacesGateway *string) { o.InterfacesGateway = interfacesGateway } // WithInterfacesNetmask adds the interfacesNetmask to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithInterfacesNetmask(interfacesNetmask *string) *MetroclusterInterconnectCollectionGetParams { o.SetInterfacesNetmask(interfacesNetmask) return o } // SetInterfacesNetmask adds the interfacesNetmask to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetInterfacesNetmask(interfacesNetmask *string) { o.InterfacesNetmask = interfacesNetmask } // WithMaxRecords adds the maxRecords to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithMaxRecords(maxRecords *int64) *MetroclusterInterconnectCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMirrorEnabled adds the mirrorEnabled to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithMirrorEnabled(mirrorEnabled *bool) *MetroclusterInterconnectCollectionGetParams { o.SetMirrorEnabled(mirrorEnabled) return o } // SetMirrorEnabled adds the mirrorEnabled to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetMirrorEnabled(mirrorEnabled *bool) { o.MirrorEnabled = mirrorEnabled } // WithMirrorState adds the mirrorState to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithMirrorState(mirrorState *string) *MetroclusterInterconnectCollectionGetParams { o.SetMirrorState(mirrorState) return o } // SetMirrorState adds the mirrorState to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetMirrorState(mirrorState *string) { o.MirrorState = mirrorState } // WithMultipathPolicy adds the multipathPolicy to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithMultipathPolicy(multipathPolicy *string) *MetroclusterInterconnectCollectionGetParams { o.SetMultipathPolicy(multipathPolicy) return o } // SetMultipathPolicy adds the multipathPolicy to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetMultipathPolicy(multipathPolicy *string) { o.MultipathPolicy = multipathPolicy } // WithNodeName adds the nodeName to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithNodeName(nodeName *string) *MetroclusterInterconnectCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithNodeUUID(nodeUUID *string) *MetroclusterInterconnectCollectionGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithOrderBy(orderBy []string) *MetroclusterInterconnectCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPartnerType adds the partnerType to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithPartnerType(partnerType *string) *MetroclusterInterconnectCollectionGetParams { o.SetPartnerType(partnerType) return o } // SetPartnerType adds the partnerType to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetPartnerType(partnerType *string) { o.PartnerType = partnerType } // WithReturnRecords adds the returnRecords to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithReturnRecords(returnRecords *bool) *MetroclusterInterconnectCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterInterconnectCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithState adds the state to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithState(state *string) *MetroclusterInterconnectCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetState(state *string) { o.State = state } // WithType adds the typeVar to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithType(typeVar *string) *MetroclusterInterconnectCollectionGetParams { o.SetType(typeVar) return o } // SetType adds the type to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetType(typeVar *string) { o.Type = typeVar } // WithVlanID adds the vlanID to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) WithVlanID(vlanID *int64) *MetroclusterInterconnectCollectionGetParams { o.SetVlanID(vlanID) return o } // SetVlanID adds the vlanId to the metrocluster interconnect collection get params func (o *MetroclusterInterconnectCollectionGetParams) SetVlanID(vlanID *int64) { o.VlanID = vlanID } // WriteToRequest writes these params to a swagger request func (o *MetroclusterInterconnectCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Adapter != nil { // query param adapter var qrAdapter string if o.Adapter != nil { qrAdapter = *o.Adapter } qAdapter := qrAdapter if qAdapter != "" { if err := r.SetQueryParam("adapter", qAdapter); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.InterfacesAddress != nil { // query param interfaces.address var qrInterfacesAddress string if o.InterfacesAddress != nil { qrInterfacesAddress = *o.InterfacesAddress } qInterfacesAddress := qrInterfacesAddress if qInterfacesAddress != "" { if err := r.SetQueryParam("interfaces.address", qInterfacesAddress); err != nil { return err } } } if o.InterfacesGateway != nil { // query param interfaces.gateway var qrInterfacesGateway string if o.InterfacesGateway != nil { qrInterfacesGateway = *o.InterfacesGateway } qInterfacesGateway := qrInterfacesGateway if qInterfacesGateway != "" { if err := r.SetQueryParam("interfaces.gateway", qInterfacesGateway); err != nil { return err } } } if o.InterfacesNetmask != nil { // query param interfaces.netmask var qrInterfacesNetmask string if o.InterfacesNetmask != nil { qrInterfacesNetmask = *o.InterfacesNetmask } qInterfacesNetmask := qrInterfacesNetmask if qInterfacesNetmask != "" { if err := r.SetQueryParam("interfaces.netmask", qInterfacesNetmask); err != nil { return err } } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.MirrorEnabled != nil { // query param mirror.enabled var qrMirrorEnabled bool if o.MirrorEnabled != nil { qrMirrorEnabled = *o.MirrorEnabled } qMirrorEnabled := swag.FormatBool(qrMirrorEnabled) if qMirrorEnabled != "" { if err := r.SetQueryParam("mirror.enabled", qMirrorEnabled); err != nil { return err } } } if o.MirrorState != nil { // query param mirror.state var qrMirrorState string if o.MirrorState != nil { qrMirrorState = *o.MirrorState } qMirrorState := qrMirrorState if qMirrorState != "" { if err := r.SetQueryParam("mirror.state", qMirrorState); err != nil { return err } } } if o.MultipathPolicy != nil { // query param multipath_policy var qrMultipathPolicy string if o.MultipathPolicy != nil { qrMultipathPolicy = *o.MultipathPolicy } qMultipathPolicy := qrMultipathPolicy if qMultipathPolicy != "" { if err := r.SetQueryParam("multipath_policy", qMultipathPolicy); err != nil { return err } } } if o.NodeName != nil { // query param node.name var qrNodeName string if o.NodeName != nil { qrNodeName = *o.NodeName } qNodeName := qrNodeName if qNodeName != "" { if err := r.SetQueryParam("node.name", qNodeName); err != nil { return err } } } if o.NodeUUID != nil { // query param node.uuid var qrNodeUUID string if o.NodeUUID != nil { qrNodeUUID = *o.NodeUUID } qNodeUUID := qrNodeUUID if qNodeUUID != "" { if err := r.SetQueryParam("node.uuid", qNodeUUID); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.PartnerType != nil { // query param partner_type var qrPartnerType string if o.PartnerType != nil { qrPartnerType = *o.PartnerType } qPartnerType := qrPartnerType if qPartnerType != "" { if err := r.SetQueryParam("partner_type", qPartnerType); err != nil { return err } } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if o.Type != nil { // query param type var qrType string if o.Type != nil { qrType = *o.Type } qType := qrType if qType != "" { if err := r.SetQueryParam("type", qType); err != nil { return err } } } if o.VlanID != nil { // query param vlan_id var qrVlanID int64 if o.VlanID != nil { qrVlanID = *o.VlanID } qVlanID := swag.FormatInt64(qrVlanID) if qVlanID != "" { if err := r.SetQueryParam("vlan_id", qVlanID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMetroclusterInterconnectCollectionGet binds the parameter fields func (o *MetroclusterInterconnectCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamMetroclusterInterconnectCollectionGet binds the parameter order_by func (o *MetroclusterInterconnectCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_node_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_node_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterNodeGetParams creates a new MetroclusterNodeGetParams 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 NewMetroclusterNodeGetParams() *MetroclusterNodeGetParams { return &MetroclusterNodeGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterNodeGetParamsWithTimeout creates a new MetroclusterNodeGetParams object // with the ability to set a timeout on a request. func NewMetroclusterNodeGetParamsWithTimeout(timeout time.Duration) *MetroclusterNodeGetParams { return &MetroclusterNodeGetParams{ timeout: timeout, } } // NewMetroclusterNodeGetParamsWithContext creates a new MetroclusterNodeGetParams object // with the ability to set a context for a request. func NewMetroclusterNodeGetParamsWithContext(ctx context.Context) *MetroclusterNodeGetParams { return &MetroclusterNodeGetParams{ Context: ctx, } } // NewMetroclusterNodeGetParamsWithHTTPClient creates a new MetroclusterNodeGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterNodeGetParamsWithHTTPClient(client *http.Client) *MetroclusterNodeGetParams { return &MetroclusterNodeGetParams{ HTTPClient: client, } } /* MetroclusterNodeGetParams contains all the parameters to send to the API endpoint for the metrocluster node get operation. Typically these are written to a http.Request. */ type MetroclusterNodeGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* NodeUUID. Node UUID */ NodeUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster node get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterNodeGetParams) WithDefaults() *MetroclusterNodeGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster node get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterNodeGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the metrocluster node get params func (o *MetroclusterNodeGetParams) WithTimeout(timeout time.Duration) *MetroclusterNodeGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster node get params func (o *MetroclusterNodeGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster node get params func (o *MetroclusterNodeGetParams) WithContext(ctx context.Context) *MetroclusterNodeGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster node get params func (o *MetroclusterNodeGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster node get params func (o *MetroclusterNodeGetParams) WithHTTPClient(client *http.Client) *MetroclusterNodeGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster node get params func (o *MetroclusterNodeGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the metrocluster node get params func (o *MetroclusterNodeGetParams) WithFields(fields []string) *MetroclusterNodeGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster node get params func (o *MetroclusterNodeGetParams) SetFields(fields []string) { o.Fields = fields } // WithNodeUUID adds the nodeUUID to the metrocluster node get params func (o *MetroclusterNodeGetParams) WithNodeUUID(nodeUUID string) *MetroclusterNodeGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the metrocluster node get params func (o *MetroclusterNodeGetParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WriteToRequest writes these params to a swagger request func (o *MetroclusterNodeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMetroclusterNodeGet binds the parameter fields func (o *MetroclusterNodeGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_manager_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewLicenseManagerCollectionGetParams creates a new LicenseManagerCollectionGetParams 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 NewLicenseManagerCollectionGetParams() *LicenseManagerCollectionGetParams { return &LicenseManagerCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewLicenseManagerCollectionGetParamsWithTimeout creates a new LicenseManagerCollectionGetParams object // with the ability to set a timeout on a request. func NewLicenseManagerCollectionGetParamsWithTimeout(timeout time.Duration) *LicenseManagerCollectionGetParams { return &LicenseManagerCollectionGetParams{ timeout: timeout, } } // NewLicenseManagerCollectionGetParamsWithContext creates a new LicenseManagerCollectionGetParams object // with the ability to set a context for a request. func NewLicenseManagerCollectionGetParamsWithContext(ctx context.Context) *LicenseManagerCollectionGetParams { return &LicenseManagerCollectionGetParams{ Context: ctx, } } // NewLicenseManagerCollectionGetParamsWithHTTPClient creates a new LicenseManagerCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewLicenseManagerCollectionGetParamsWithHTTPClient(client *http.Client) *LicenseManagerCollectionGetParams { return &LicenseManagerCollectionGetParams{ HTTPClient: client, } } /* LicenseManagerCollectionGetParams contains all the parameters to send to the API endpoint for the license manager collection get operation. Typically these are written to a http.Request. */ type LicenseManagerCollectionGetParams struct { /* Default. Filter by default */ Default *bool /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* URIHost. Filter by uri.host */ URIHost *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the license manager collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseManagerCollectionGetParams) WithDefaults() *LicenseManagerCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the license manager collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseManagerCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := LicenseManagerCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithTimeout(timeout time.Duration) *LicenseManagerCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithContext(ctx context.Context) *LicenseManagerCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithHTTPClient(client *http.Client) *LicenseManagerCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDefault adds the defaultVar to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithDefault(defaultVar *bool) *LicenseManagerCollectionGetParams { o.SetDefault(defaultVar) return o } // SetDefault adds the default to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetDefault(defaultVar *bool) { o.Default = defaultVar } // WithFields adds the fields to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithFields(fields []string) *LicenseManagerCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithMaxRecords(maxRecords *int64) *LicenseManagerCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithOrderBy(orderBy []string) *LicenseManagerCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithReturnRecords(returnRecords *bool) *LicenseManagerCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *LicenseManagerCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithURIHost adds the uRIHost to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithURIHost(uRIHost *string) *LicenseManagerCollectionGetParams { o.SetURIHost(uRIHost) return o } // SetURIHost adds the uriHost to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetURIHost(uRIHost *string) { o.URIHost = uRIHost } // WithUUID adds the uuid to the license manager collection get params func (o *LicenseManagerCollectionGetParams) WithUUID(uuid *string) *LicenseManagerCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the license manager collection get params func (o *LicenseManagerCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *LicenseManagerCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Default != nil { // query param default var qrDefault bool if o.Default != nil { qrDefault = *o.Default } qDefault := swag.FormatBool(qrDefault) if qDefault != "" { if err := r.SetQueryParam("default", qDefault); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.URIHost != nil { // query param uri.host var qrURIHost string if o.URIHost != nil { qrURIHost = *o.URIHost } qURIHost := qrURIHost if qURIHost != "" { if err := r.SetQueryParam("uri.host", qURIHost); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamLicenseManagerCollectionGet binds the parameter fields func (o *LicenseManagerCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamLicenseManagerCollectionGet binds the parameter order_by func (o *LicenseManagerCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterModifyParams creates a new MetroclusterModifyParams 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 NewMetroclusterModifyParams() *MetroclusterModifyParams { return &MetroclusterModifyParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterModifyParamsWithTimeout creates a new MetroclusterModifyParams object // with the ability to set a timeout on a request. func NewMetroclusterModifyParamsWithTimeout(timeout time.Duration) *MetroclusterModifyParams { return &MetroclusterModifyParams{ timeout: timeout, } } // NewMetroclusterModifyParamsWithContext creates a new MetroclusterModifyParams object // with the ability to set a context for a request. func NewMetroclusterModifyParamsWithContext(ctx context.Context) *MetroclusterModifyParams { return &MetroclusterModifyParams{ Context: ctx, } } // NewMetroclusterModifyParamsWithHTTPClient creates a new MetroclusterModifyParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterModifyParamsWithHTTPClient(client *http.Client) *MetroclusterModifyParams { return &MetroclusterModifyParams{ HTTPClient: client, } } /* MetroclusterModifyParams contains all the parameters to send to the API endpoint for the metrocluster modify operation. Typically these are written to a http.Request. */ type MetroclusterModifyParams struct { /* Action. Action to perform on the MetroCluster. */ Action *string /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterModifyParams) WithDefaults() *MetroclusterModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := MetroclusterModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster modify params func (o *MetroclusterModifyParams) WithTimeout(timeout time.Duration) *MetroclusterModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster modify params func (o *MetroclusterModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster modify params func (o *MetroclusterModifyParams) WithContext(ctx context.Context) *MetroclusterModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster modify params func (o *MetroclusterModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster modify params func (o *MetroclusterModifyParams) WithHTTPClient(client *http.Client) *MetroclusterModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster modify params func (o *MetroclusterModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAction adds the action to the metrocluster modify params func (o *MetroclusterModifyParams) WithAction(action *string) *MetroclusterModifyParams { o.SetAction(action) return o } // SetAction adds the action to the metrocluster modify params func (o *MetroclusterModifyParams) SetAction(action *string) { o.Action = action } // WithReturnTimeout adds the returnTimeout to the metrocluster modify params func (o *MetroclusterModifyParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster modify params func (o *MetroclusterModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *MetroclusterModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Action != nil { // query param action var qrAction string if o.Action != nil { qrAction = *o.Action } qAction := qrAction if qAction != "" { if err := r.SetQueryParam("action", qAction); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/mediator_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewMediatorDeleteParams creates a new MediatorDeleteParams 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 NewMediatorDeleteParams() *MediatorDeleteParams { return &MediatorDeleteParams{ timeout: cr.DefaultTimeout, } } // NewMediatorDeleteParamsWithTimeout creates a new MediatorDeleteParams object // with the ability to set a timeout on a request. func NewMediatorDeleteParamsWithTimeout(timeout time.Duration) *MediatorDeleteParams { return &MediatorDeleteParams{ timeout: timeout, } } // NewMediatorDeleteParamsWithContext creates a new MediatorDeleteParams object // with the ability to set a context for a request. func NewMediatorDeleteParamsWithContext(ctx context.Context) *MediatorDeleteParams { return &MediatorDeleteParams{ Context: ctx, } } // NewMediatorDeleteParamsWithHTTPClient creates a new MediatorDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewMediatorDeleteParamsWithHTTPClient(client *http.Client) *MediatorDeleteParams { return &MediatorDeleteParams{ HTTPClient: client, } } /* MediatorDeleteParams contains all the parameters to send to the API endpoint for the mediator delete operation. Typically these are written to a http.Request. */ type MediatorDeleteParams struct { /* Info. Mediator information for the delete operation */ Info *models.Mediator /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 // UUID. // // Format: uuid UUID strfmt.UUID timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the mediator delete params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorDeleteParams) WithDefaults() *MediatorDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the mediator delete params (not the query body). // // All values with no default are reset to their zero value. func (o *MediatorDeleteParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := MediatorDeleteParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the mediator delete params func (o *MediatorDeleteParams) WithTimeout(timeout time.Duration) *MediatorDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the mediator delete params func (o *MediatorDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the mediator delete params func (o *MediatorDeleteParams) WithContext(ctx context.Context) *MediatorDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the mediator delete params func (o *MediatorDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the mediator delete params func (o *MediatorDeleteParams) WithHTTPClient(client *http.Client) *MediatorDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the mediator delete params func (o *MediatorDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the mediator delete params func (o *MediatorDeleteParams) WithInfo(info *models.Mediator) *MediatorDeleteParams { o.SetInfo(info) return o } // SetInfo adds the info to the mediator delete params func (o *MediatorDeleteParams) SetInfo(info *models.Mediator) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the mediator delete params func (o *MediatorDeleteParams) WithReturnTimeout(returnTimeout *int64) *MediatorDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the mediator delete params func (o *MediatorDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the mediator delete params func (o *MediatorDeleteParams) WithUUID(uuid strfmt.UUID) *MediatorDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the mediator delete params func (o *MediatorDeleteParams) SetUUID(uuid strfmt.UUID) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *MediatorDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } // path param uuid if err := r.SetPathParam("uuid", o.UUID.String()); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewClusterNtpServersDeleteParams creates a new ClusterNtpServersDeleteParams 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 NewClusterNtpServersDeleteParams() *ClusterNtpServersDeleteParams { return &ClusterNtpServersDeleteParams{ timeout: cr.DefaultTimeout, } } // NewClusterNtpServersDeleteParamsWithTimeout creates a new ClusterNtpServersDeleteParams object // with the ability to set a timeout on a request. func NewClusterNtpServersDeleteParamsWithTimeout(timeout time.Duration) *ClusterNtpServersDeleteParams { return &ClusterNtpServersDeleteParams{ timeout: timeout, } } // NewClusterNtpServersDeleteParamsWithContext creates a new ClusterNtpServersDeleteParams object // with the ability to set a context for a request. func NewClusterNtpServersDeleteParamsWithContext(ctx context.Context) *ClusterNtpServersDeleteParams { return &ClusterNtpServersDeleteParams{ Context: ctx, } } // NewClusterNtpServersDeleteParamsWithHTTPClient creates a new ClusterNtpServersDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNtpServersDeleteParamsWithHTTPClient(client *http.Client) *ClusterNtpServersDeleteParams { return &ClusterNtpServersDeleteParams{ HTTPClient: client, } } /* ClusterNtpServersDeleteParams contains all the parameters to send to the API endpoint for the cluster ntp servers delete operation. Typically these are written to a http.Request. */ type ClusterNtpServersDeleteParams struct { /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 /* Server. Server address or host name */ Server string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ntp servers delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersDeleteParams) WithDefaults() *ClusterNtpServersDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ntp servers delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNtpServersDeleteParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ClusterNtpServersDeleteParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) WithTimeout(timeout time.Duration) *ClusterNtpServersDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) WithContext(ctx context.Context) *ClusterNtpServersDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) WithHTTPClient(client *http.Client) *ClusterNtpServersDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithReturnTimeout adds the returnTimeout to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) WithReturnTimeout(returnTimeout *int64) *ClusterNtpServersDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithServer adds the server to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) WithServer(server string) *ClusterNtpServersDeleteParams { o.SetServer(server) return o } // SetServer adds the server to the cluster ntp servers delete params func (o *ClusterNtpServersDeleteParams) SetServer(server string) { o.Server = server } // WriteToRequest writes these params to a swagger request func (o *ClusterNtpServersDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } // path param server if err := r.SetPathParam("server", o.Server); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/schedule_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ScheduleDeleteReader is a Reader for the ScheduleDelete structure. type ScheduleDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ScheduleDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewScheduleDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewScheduleDeleteDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewScheduleDeleteOK creates a ScheduleDeleteOK with default headers values func NewScheduleDeleteOK() *ScheduleDeleteOK { return &ScheduleDeleteOK{} } /* ScheduleDeleteOK describes a response with status code 200, with default header values. OK */ type ScheduleDeleteOK struct { } // IsSuccess returns true when this schedule delete o k response has a 2xx status code func (o *ScheduleDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this schedule delete o k response has a 3xx status code func (o *ScheduleDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this schedule delete o k response has a 4xx status code func (o *ScheduleDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this schedule delete o k response has a 5xx status code func (o *ScheduleDeleteOK) IsServerError() bool { return false } // IsCode returns true when this schedule delete o k response a status code equal to that given func (o *ScheduleDeleteOK) IsCode(code int) bool { return code == 200 } func (o *ScheduleDeleteOK) Error() string { return fmt.Sprintf("[DELETE /cluster/schedules/{uuid}][%d] scheduleDeleteOK ", 200) } func (o *ScheduleDeleteOK) String() string { return fmt.Sprintf("[DELETE /cluster/schedules/{uuid}][%d] scheduleDeleteOK ", 200) } func (o *ScheduleDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewScheduleDeleteDefault creates a ScheduleDeleteDefault with default headers values func NewScheduleDeleteDefault(code int) *ScheduleDeleteDefault { return &ScheduleDeleteDefault{ _statusCode: code, } } /* ScheduleDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 459758 | Cannot delete a job schedule that is in use. Remove all references to the schedule, and then try to delete again. | | 459761 | Schedule cannot be deleted on this cluster because it is replicated from the remote cluster. | | 459762 | The schedule cannot be deleted because it is a system-level schedule. | */ type ScheduleDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the schedule delete default response func (o *ScheduleDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this schedule delete default response has a 2xx status code func (o *ScheduleDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this schedule delete default response has a 3xx status code func (o *ScheduleDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this schedule delete default response has a 4xx status code func (o *ScheduleDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this schedule delete default response has a 5xx status code func (o *ScheduleDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this schedule delete default response a status code equal to that given func (o *ScheduleDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ScheduleDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /cluster/schedules/{uuid}][%d] schedule_delete default %+v", o._statusCode, o.Payload) } func (o *ScheduleDeleteDefault) String() string { return fmt.Sprintf("[DELETE /cluster/schedules/{uuid}][%d] schedule_delete default %+v", o._statusCode, o.Payload) } func (o *ScheduleDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ScheduleDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewSoftwareModifyParams creates a new SoftwareModifyParams 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 NewSoftwareModifyParams() *SoftwareModifyParams { return &SoftwareModifyParams{ timeout: cr.DefaultTimeout, } } // NewSoftwareModifyParamsWithTimeout creates a new SoftwareModifyParams object // with the ability to set a timeout on a request. func NewSoftwareModifyParamsWithTimeout(timeout time.Duration) *SoftwareModifyParams { return &SoftwareModifyParams{ timeout: timeout, } } // NewSoftwareModifyParamsWithContext creates a new SoftwareModifyParams object // with the ability to set a context for a request. func NewSoftwareModifyParamsWithContext(ctx context.Context) *SoftwareModifyParams { return &SoftwareModifyParams{ Context: ctx, } } // NewSoftwareModifyParamsWithHTTPClient creates a new SoftwareModifyParams object // with the ability to set a custom HTTPClient for a request. func NewSoftwareModifyParamsWithHTTPClient(client *http.Client) *SoftwareModifyParams { return &SoftwareModifyParams{ HTTPClient: client, } } /* SoftwareModifyParams contains all the parameters to send to the API endpoint for the software modify operation. Typically these are written to a http.Request. */ type SoftwareModifyParams struct { /* Action. Requests an upgrade to pause, resume, or cancel. Note that not all upgrades support these actions. An upgrade can only be resumed if it is in the paused state. When a request to cancel an upgrade is successful, the upgrade state changes to either `success` or `failure`. */ Action *string /* EstimateOnly. Generates an estimate of the time required for the overall update operation for the specified package. No update is performed when this option is used. The default is false. */ EstimateOnly *bool /* ForceRolling. Forces a rolling upgrade on the cluster. This option is not applicable for a single-node cluster and for a two-node MetroCluster. The default is false. */ ForceRolling *bool // Info. Info *models.SoftwareReference /* NodesToUpdate. A comma separated list of node names to be updated. The nodes must be a part of a HA Pair. The default is all nodes. */ NodesToUpdate *string /* PauseAfter. The pause after specified tasks option. When ANDU is paused user interaction is required to resume the update. The default is none. */ PauseAfter *string /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 /* ShowValidationDetails. If the value is set to true, then all validation details will be shown in the output. */ ShowValidationDetails *bool /* SkipWarnings. Ignore warnings and proceed with the install. */ SkipWarnings *bool /* StabilizeMinutes. Sets a custom value between 1 to 60 minutes for the upgrade, allowing each node a specified amount of time to stabilize after a reboot. */ StabilizeMinutes *int64 /* ValidateOnly. Validate the operation and its parameters, without actually performing the operation. */ ValidateOnly *bool timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the software modify params (not the query body). // // All values with no default are reset to their zero value. func (o *SoftwareModifyParams) WithDefaults() *SoftwareModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the software modify params (not the query body). // // All values with no default are reset to their zero value. func (o *SoftwareModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := SoftwareModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the software modify params func (o *SoftwareModifyParams) WithTimeout(timeout time.Duration) *SoftwareModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the software modify params func (o *SoftwareModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the software modify params func (o *SoftwareModifyParams) WithContext(ctx context.Context) *SoftwareModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the software modify params func (o *SoftwareModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the software modify params func (o *SoftwareModifyParams) WithHTTPClient(client *http.Client) *SoftwareModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the software modify params func (o *SoftwareModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAction adds the action to the software modify params func (o *SoftwareModifyParams) WithAction(action *string) *SoftwareModifyParams { o.SetAction(action) return o } // SetAction adds the action to the software modify params func (o *SoftwareModifyParams) SetAction(action *string) { o.Action = action } // WithEstimateOnly adds the estimateOnly to the software modify params func (o *SoftwareModifyParams) WithEstimateOnly(estimateOnly *bool) *SoftwareModifyParams { o.SetEstimateOnly(estimateOnly) return o } // SetEstimateOnly adds the estimateOnly to the software modify params func (o *SoftwareModifyParams) SetEstimateOnly(estimateOnly *bool) { o.EstimateOnly = estimateOnly } // WithForceRolling adds the forceRolling to the software modify params func (o *SoftwareModifyParams) WithForceRolling(forceRolling *bool) *SoftwareModifyParams { o.SetForceRolling(forceRolling) return o } // SetForceRolling adds the forceRolling to the software modify params func (o *SoftwareModifyParams) SetForceRolling(forceRolling *bool) { o.ForceRolling = forceRolling } // WithInfo adds the info to the software modify params func (o *SoftwareModifyParams) WithInfo(info *models.SoftwareReference) *SoftwareModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the software modify params func (o *SoftwareModifyParams) SetInfo(info *models.SoftwareReference) { o.Info = info } // WithNodesToUpdate adds the nodesToUpdate to the software modify params func (o *SoftwareModifyParams) WithNodesToUpdate(nodesToUpdate *string) *SoftwareModifyParams { o.SetNodesToUpdate(nodesToUpdate) return o } // SetNodesToUpdate adds the nodesToUpdate to the software modify params func (o *SoftwareModifyParams) SetNodesToUpdate(nodesToUpdate *string) { o.NodesToUpdate = nodesToUpdate } // WithPauseAfter adds the pauseAfter to the software modify params func (o *SoftwareModifyParams) WithPauseAfter(pauseAfter *string) *SoftwareModifyParams { o.SetPauseAfter(pauseAfter) return o } // SetPauseAfter adds the pauseAfter to the software modify params func (o *SoftwareModifyParams) SetPauseAfter(pauseAfter *string) { o.PauseAfter = pauseAfter } // WithReturnTimeout adds the returnTimeout to the software modify params func (o *SoftwareModifyParams) WithReturnTimeout(returnTimeout *int64) *SoftwareModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the software modify params func (o *SoftwareModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithShowValidationDetails adds the showValidationDetails to the software modify params func (o *SoftwareModifyParams) WithShowValidationDetails(showValidationDetails *bool) *SoftwareModifyParams { o.SetShowValidationDetails(showValidationDetails) return o } // SetShowValidationDetails adds the showValidationDetails to the software modify params func (o *SoftwareModifyParams) SetShowValidationDetails(showValidationDetails *bool) { o.ShowValidationDetails = showValidationDetails } // WithSkipWarnings adds the skipWarnings to the software modify params func (o *SoftwareModifyParams) WithSkipWarnings(skipWarnings *bool) *SoftwareModifyParams { o.SetSkipWarnings(skipWarnings) return o } // SetSkipWarnings adds the skipWarnings to the software modify params func (o *SoftwareModifyParams) SetSkipWarnings(skipWarnings *bool) { o.SkipWarnings = skipWarnings } // WithStabilizeMinutes adds the stabilizeMinutes to the software modify params func (o *SoftwareModifyParams) WithStabilizeMinutes(stabilizeMinutes *int64) *SoftwareModifyParams { o.SetStabilizeMinutes(stabilizeMinutes) return o } // SetStabilizeMinutes adds the stabilizeMinutes to the software modify params func (o *SoftwareModifyParams) SetStabilizeMinutes(stabilizeMinutes *int64) { o.StabilizeMinutes = stabilizeMinutes } // WithValidateOnly adds the validateOnly to the software modify params func (o *SoftwareModifyParams) WithValidateOnly(validateOnly *bool) *SoftwareModifyParams { o.SetValidateOnly(validateOnly) return o } // SetValidateOnly adds the validateOnly to the software modify params func (o *SoftwareModifyParams) SetValidateOnly(validateOnly *bool) { o.ValidateOnly = validateOnly } // WriteToRequest writes these params to a swagger request func (o *SoftwareModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Action != nil { // query param action var qrAction string if o.Action != nil { qrAction = *o.Action } qAction := qrAction if qAction != "" { if err := r.SetQueryParam("action", qAction); err != nil { return err } } } if o.EstimateOnly != nil { // query param estimate_only var qrEstimateOnly bool if o.EstimateOnly != nil { qrEstimateOnly = *o.EstimateOnly } qEstimateOnly := swag.FormatBool(qrEstimateOnly) if qEstimateOnly != "" { if err := r.SetQueryParam("estimate_only", qEstimateOnly); err != nil { return err } } } if o.ForceRolling != nil { // query param force_rolling var qrForceRolling bool if o.ForceRolling != nil { qrForceRolling = *o.ForceRolling } qForceRolling := swag.FormatBool(qrForceRolling) if qForceRolling != "" { if err := r.SetQueryParam("force_rolling", qForceRolling); err != nil { return err } } } if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.NodesToUpdate != nil { // query param nodes_to_update var qrNodesToUpdate string if o.NodesToUpdate != nil { qrNodesToUpdate = *o.NodesToUpdate } qNodesToUpdate := qrNodesToUpdate if qNodesToUpdate != "" { if err := r.SetQueryParam("nodes_to_update", qNodesToUpdate); err != nil { return err } } } if o.PauseAfter != nil { // query param pause_after var qrPauseAfter string if o.PauseAfter != nil { qrPauseAfter = *o.PauseAfter } qPauseAfter := qrPauseAfter if qPauseAfter != "" { if err := r.SetQueryParam("pause_after", qPauseAfter); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.ShowValidationDetails != nil { // query param show_validation_details var qrShowValidationDetails bool if o.ShowValidationDetails != nil { qrShowValidationDetails = *o.ShowValidationDetails } qShowValidationDetails := swag.FormatBool(qrShowValidationDetails) if qShowValidationDetails != "" { if err := r.SetQueryParam("show_validation_details", qShowValidationDetails); err != nil { return err } } } if o.SkipWarnings != nil { // query param skip_warnings var qrSkipWarnings bool if o.SkipWarnings != nil { qrSkipWarnings = *o.SkipWarnings } qSkipWarnings := swag.FormatBool(qrSkipWarnings) if qSkipWarnings != "" { if err := r.SetQueryParam("skip_warnings", qSkipWarnings); err != nil { return err } } } if o.StabilizeMinutes != nil { // query param stabilize_minutes var qrStabilizeMinutes int64 if o.StabilizeMinutes != nil { qrStabilizeMinutes = *o.StabilizeMinutes } qStabilizeMinutes := swag.FormatInt64(qrStabilizeMinutes) if qStabilizeMinutes != "" { if err := r.SetQueryParam("stabilize_minutes", qStabilizeMinutes); err != nil { return err } } } if o.ValidateOnly != nil { // query param validate_only var qrValidateOnly bool if o.ValidateOnly != nil { qrValidateOnly = *o.ValidateOnly } qValidateOnly := swag.FormatBool(qrValidateOnly) if qValidateOnly != "" { if err := r.SetQueryParam("validate_only", qValidateOnly); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_peer_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterPeerGetReader is a Reader for the ClusterPeerGet structure. type ClusterPeerGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterPeerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterPeerGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterPeerGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterPeerGetOK creates a ClusterPeerGetOK with default headers values func NewClusterPeerGetOK() *ClusterPeerGetOK { return &ClusterPeerGetOK{} } /* ClusterPeerGetOK describes a response with status code 200, with default header values. OK */ type ClusterPeerGetOK struct { Payload *models.ClusterPeer } // IsSuccess returns true when this cluster peer get o k response has a 2xx status code func (o *ClusterPeerGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster peer get o k response has a 3xx status code func (o *ClusterPeerGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster peer get o k response has a 4xx status code func (o *ClusterPeerGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster peer get o k response has a 5xx status code func (o *ClusterPeerGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster peer get o k response a status code equal to that given func (o *ClusterPeerGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterPeerGetOK) Error() string { return fmt.Sprintf("[GET /cluster/peers/{uuid}][%d] clusterPeerGetOK %+v", 200, o.Payload) } func (o *ClusterPeerGetOK) String() string { return fmt.Sprintf("[GET /cluster/peers/{uuid}][%d] clusterPeerGetOK %+v", 200, o.Payload) } func (o *ClusterPeerGetOK) GetPayload() *models.ClusterPeer { return o.Payload } func (o *ClusterPeerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ClusterPeer) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterPeerGetDefault creates a ClusterPeerGetDefault with default headers values func NewClusterPeerGetDefault(code int) *ClusterPeerGetDefault { return &ClusterPeerGetDefault{ _statusCode: code, } } /* ClusterPeerGetDefault describes a response with status code -1, with default header values. Error */ type ClusterPeerGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster peer get default response func (o *ClusterPeerGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster peer get default response has a 2xx status code func (o *ClusterPeerGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster peer get default response has a 3xx status code func (o *ClusterPeerGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster peer get default response has a 4xx status code func (o *ClusterPeerGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster peer get default response has a 5xx status code func (o *ClusterPeerGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster peer get default response a status code equal to that given func (o *ClusterPeerGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterPeerGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/peers/{uuid}][%d] cluster_peer_get default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerGetDefault) String() string { return fmt.Sprintf("[GET /cluster/peers/{uuid}][%d] cluster_peer_get default %+v", o._statusCode, o.Payload) } func (o *ClusterPeerGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterPeerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/license_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // NewLicenseCreateParams creates a new LicenseCreateParams 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 NewLicenseCreateParams() *LicenseCreateParams { return &LicenseCreateParams{ timeout: cr.DefaultTimeout, } } // NewLicenseCreateParamsWithTimeout creates a new LicenseCreateParams object // with the ability to set a timeout on a request. func NewLicenseCreateParamsWithTimeout(timeout time.Duration) *LicenseCreateParams { return &LicenseCreateParams{ timeout: timeout, } } // NewLicenseCreateParamsWithContext creates a new LicenseCreateParams object // with the ability to set a context for a request. func NewLicenseCreateParamsWithContext(ctx context.Context) *LicenseCreateParams { return &LicenseCreateParams{ Context: ctx, } } // NewLicenseCreateParamsWithHTTPClient creates a new LicenseCreateParams object // with the ability to set a custom HTTPClient for a request. func NewLicenseCreateParamsWithHTTPClient(client *http.Client) *LicenseCreateParams { return &LicenseCreateParams{ HTTPClient: client, } } /* LicenseCreateParams contains all the parameters to send to the API endpoint for the license create operation. Typically these are written to a http.Request. */ type LicenseCreateParams struct { /* Info. List of NLF or 26-character keys. */ Info *models.LicensePackage /* ReturnRecords. The default is false. If set to true, the records are returned. */ ReturnRecords *bool timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the license create params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseCreateParams) WithDefaults() *LicenseCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the license create params (not the query body). // // All values with no default are reset to their zero value. func (o *LicenseCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := LicenseCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the license create params func (o *LicenseCreateParams) WithTimeout(timeout time.Duration) *LicenseCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the license create params func (o *LicenseCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the license create params func (o *LicenseCreateParams) WithContext(ctx context.Context) *LicenseCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the license create params func (o *LicenseCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the license create params func (o *LicenseCreateParams) WithHTTPClient(client *http.Client) *LicenseCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the license create params func (o *LicenseCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the license create params func (o *LicenseCreateParams) WithInfo(info *models.LicensePackage) *LicenseCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the license create params func (o *LicenseCreateParams) SetInfo(info *models.LicensePackage) { o.Info = info } // WithReturnRecords adds the returnRecords to the license create params func (o *LicenseCreateParams) WithReturnRecords(returnRecords *bool) *LicenseCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the license create params func (o *LicenseCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *LicenseCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_keys_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterNtpKeysModifyReader is a Reader for the ClusterNtpKeysModify structure. type ClusterNtpKeysModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNtpKeysModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterNtpKeysModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNtpKeysModifyDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterNtpKeysModifyOK creates a ClusterNtpKeysModifyOK with default headers values func NewClusterNtpKeysModifyOK() *ClusterNtpKeysModifyOK { return &ClusterNtpKeysModifyOK{} } /* ClusterNtpKeysModifyOK describes a response with status code 200, with default header values. OK */ type ClusterNtpKeysModifyOK struct { } // IsSuccess returns true when this cluster ntp keys modify o k response has a 2xx status code func (o *ClusterNtpKeysModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ntp keys modify o k response has a 3xx status code func (o *ClusterNtpKeysModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster ntp keys modify o k response has a 4xx status code func (o *ClusterNtpKeysModifyOK) IsClientError() bool { return false } // IsServerError returns true when this cluster ntp keys modify o k response has a 5xx status code func (o *ClusterNtpKeysModifyOK) IsServerError() bool { return false } // IsCode returns true when this cluster ntp keys modify o k response a status code equal to that given func (o *ClusterNtpKeysModifyOK) IsCode(code int) bool { return code == 200 } func (o *ClusterNtpKeysModifyOK) Error() string { return fmt.Sprintf("[PATCH /cluster/ntp/keys/{id}][%d] clusterNtpKeysModifyOK ", 200) } func (o *ClusterNtpKeysModifyOK) String() string { return fmt.Sprintf("[PATCH /cluster/ntp/keys/{id}][%d] clusterNtpKeysModifyOK ", 200) } func (o *ClusterNtpKeysModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewClusterNtpKeysModifyDefault creates a ClusterNtpKeysModifyDefault with default headers values func NewClusterNtpKeysModifyDefault(code int) *ClusterNtpKeysModifyDefault { return &ClusterNtpKeysModifyDefault{ _statusCode: code, } } /* ClusterNtpKeysModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2097187 | An invalid SHA1 key was provided. | */ type ClusterNtpKeysModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ntp keys modify default response func (o *ClusterNtpKeysModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ntp keys modify default response has a 2xx status code func (o *ClusterNtpKeysModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ntp keys modify default response has a 3xx status code func (o *ClusterNtpKeysModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ntp keys modify default response has a 4xx status code func (o *ClusterNtpKeysModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ntp keys modify default response has a 5xx status code func (o *ClusterNtpKeysModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ntp keys modify default response a status code equal to that given func (o *ClusterNtpKeysModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNtpKeysModifyDefault) Error() string { return fmt.Sprintf("[PATCH /cluster/ntp/keys/{id}][%d] cluster_ntp_keys_modify default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpKeysModifyDefault) String() string { return fmt.Sprintf("[PATCH /cluster/ntp/keys/{id}][%d] cluster_ntp_keys_modify default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpKeysModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNtpKeysModifyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_interconnect_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterInterconnectGetParams creates a new MetroclusterInterconnectGetParams 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 NewMetroclusterInterconnectGetParams() *MetroclusterInterconnectGetParams { return &MetroclusterInterconnectGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterInterconnectGetParamsWithTimeout creates a new MetroclusterInterconnectGetParams object // with the ability to set a timeout on a request. func NewMetroclusterInterconnectGetParamsWithTimeout(timeout time.Duration) *MetroclusterInterconnectGetParams { return &MetroclusterInterconnectGetParams{ timeout: timeout, } } // NewMetroclusterInterconnectGetParamsWithContext creates a new MetroclusterInterconnectGetParams object // with the ability to set a context for a request. func NewMetroclusterInterconnectGetParamsWithContext(ctx context.Context) *MetroclusterInterconnectGetParams { return &MetroclusterInterconnectGetParams{ Context: ctx, } } // NewMetroclusterInterconnectGetParamsWithHTTPClient creates a new MetroclusterInterconnectGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterInterconnectGetParamsWithHTTPClient(client *http.Client) *MetroclusterInterconnectGetParams { return &MetroclusterInterconnectGetParams{ HTTPClient: client, } } /* MetroclusterInterconnectGetParams contains all the parameters to send to the API endpoint for the metrocluster interconnect get operation. Typically these are written to a http.Request. */ type MetroclusterInterconnectGetParams struct { /* Adapter. Interconnect adapter. */ Adapter string /* Fields. Specify the fields to return. */ Fields []string /* NodeUUID. Node UUID */ NodeUUID string /* PartnerType. DR Partner type */ PartnerType string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster interconnect get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterInterconnectGetParams) WithDefaults() *MetroclusterInterconnectGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster interconnect get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterInterconnectGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) WithTimeout(timeout time.Duration) *MetroclusterInterconnectGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) WithContext(ctx context.Context) *MetroclusterInterconnectGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) WithHTTPClient(client *http.Client) *MetroclusterInterconnectGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAdapter adds the adapter to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) WithAdapter(adapter string) *MetroclusterInterconnectGetParams { o.SetAdapter(adapter) return o } // SetAdapter adds the adapter to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) SetAdapter(adapter string) { o.Adapter = adapter } // WithFields adds the fields to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) WithFields(fields []string) *MetroclusterInterconnectGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) SetFields(fields []string) { o.Fields = fields } // WithNodeUUID adds the nodeUUID to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) WithNodeUUID(nodeUUID string) *MetroclusterInterconnectGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WithPartnerType adds the partnerType to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) WithPartnerType(partnerType string) *MetroclusterInterconnectGetParams { o.SetPartnerType(partnerType) return o } // SetPartnerType adds the partnerType to the metrocluster interconnect get params func (o *MetroclusterInterconnectGetParams) SetPartnerType(partnerType string) { o.PartnerType = partnerType } // WriteToRequest writes these params to a swagger request func (o *MetroclusterInterconnectGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param adapter if err := r.SetPathParam("adapter", o.Adapter); err != nil { return err } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } // path param node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil { return err } // path param partner_type if err := r.SetPathParam("partner_type", o.PartnerType); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMetroclusterInterconnectGet binds the parameter fields func (o *MetroclusterInterconnectGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/cluster_ntp_servers_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // ClusterNtpServersDeleteReader is a Reader for the ClusterNtpServersDelete structure. type ClusterNtpServersDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNtpServersDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewClusterNtpServersDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNtpServersDeleteDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewClusterNtpServersDeleteAccepted creates a ClusterNtpServersDeleteAccepted with default headers values func NewClusterNtpServersDeleteAccepted() *ClusterNtpServersDeleteAccepted { return &ClusterNtpServersDeleteAccepted{} } /* ClusterNtpServersDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type ClusterNtpServersDeleteAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this cluster ntp servers delete accepted response has a 2xx status code func (o *ClusterNtpServersDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ntp servers delete accepted response has a 3xx status code func (o *ClusterNtpServersDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this cluster ntp servers delete accepted response has a 4xx status code func (o *ClusterNtpServersDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this cluster ntp servers delete accepted response has a 5xx status code func (o *ClusterNtpServersDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this cluster ntp servers delete accepted response a status code equal to that given func (o *ClusterNtpServersDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *ClusterNtpServersDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /cluster/ntp/servers/{server}][%d] clusterNtpServersDeleteAccepted %+v", 202, o.Payload) } func (o *ClusterNtpServersDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /cluster/ntp/servers/{server}][%d] clusterNtpServersDeleteAccepted %+v", 202, o.Payload) } func (o *ClusterNtpServersDeleteAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ClusterNtpServersDeleteAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.JobLinkResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNtpServersDeleteDefault creates a ClusterNtpServersDeleteDefault with default headers values func NewClusterNtpServersDeleteDefault(code int) *ClusterNtpServersDeleteDefault { return &ClusterNtpServersDeleteDefault{ _statusCode: code, } } /* ClusterNtpServersDeleteDefault describes a response with status code -1, with default header values. Error */ type ClusterNtpServersDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ntp servers delete default response func (o *ClusterNtpServersDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ntp servers delete default response has a 2xx status code func (o *ClusterNtpServersDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ntp servers delete default response has a 3xx status code func (o *ClusterNtpServersDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ntp servers delete default response has a 4xx status code func (o *ClusterNtpServersDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ntp servers delete default response has a 5xx status code func (o *ClusterNtpServersDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ntp servers delete default response a status code equal to that given func (o *ClusterNtpServersDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNtpServersDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /cluster/ntp/servers/{server}][%d] cluster_ntp_servers_delete default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpServersDeleteDefault) String() string { return fmt.Sprintf("[DELETE /cluster/ntp/servers/{server}][%d] cluster_ntp_servers_delete default %+v", o._statusCode, o.Payload) } func (o *ClusterNtpServersDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNtpServersDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_package_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/software_package_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SoftwarePackageDeleteReader is a Reader for the SoftwarePackageDelete structure. type SoftwarePackageDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SoftwarePackageDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewSoftwarePackageDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSoftwarePackageDeleteDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewSoftwarePackageDeleteAccepted creates a SoftwarePackageDeleteAccepted with default headers values func NewSoftwarePackageDeleteAccepted() *SoftwarePackageDeleteAccepted { return &SoftwarePackageDeleteAccepted{} } /* SoftwarePackageDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type SoftwarePackageDeleteAccepted struct { } // IsSuccess returns true when this software package delete accepted response has a 2xx status code func (o *SoftwarePackageDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this software package delete accepted response has a 3xx status code func (o *SoftwarePackageDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this software package delete accepted response has a 4xx status code func (o *SoftwarePackageDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this software package delete accepted response has a 5xx status code func (o *SoftwarePackageDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this software package delete accepted response a status code equal to that given func (o *SoftwarePackageDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *SoftwarePackageDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /cluster/software/packages/{version}][%d] softwarePackageDeleteAccepted ", 202) } func (o *SoftwarePackageDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /cluster/software/packages/{version}][%d] softwarePackageDeleteAccepted ", 202) } func (o *SoftwarePackageDeleteAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewSoftwarePackageDeleteDefault creates a SoftwarePackageDeleteDefault with default headers values func NewSoftwarePackageDeleteDefault(code int) *SoftwarePackageDeleteDefault { return &SoftwarePackageDeleteDefault{ _statusCode: code, } } /* SoftwarePackageDeleteDefault describes a response with status code -1, with default header values. ONTAP error response codes | Error codes | Description | | ----------- | ----------- | | 10551315 | Package store is empty | | 10551322 | Error in retrieving package cleanup status | | 10551323 | Error in cleaning up package information on a node | | 10551324 | Error in cleaning up package information on multiple nodes | | 10551325 | Package does not exist on the system | | 10551326 | Error in deleting older package cleanup tasks. Clean up images from the store and retry | | 10551346 | Package delete failed since a validation is in progress | | 10551347 | Package delete failed since an update is in progress | | 10551367 | A package synchronization is in progress | | 10551388 | Package delete operation timed out | */ type SoftwarePackageDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the software package delete default response func (o *SoftwarePackageDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this software package delete default response has a 2xx status code func (o *SoftwarePackageDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this software package delete default response has a 3xx status code func (o *SoftwarePackageDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this software package delete default response has a 4xx status code func (o *SoftwarePackageDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this software package delete default response has a 5xx status code func (o *SoftwarePackageDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this software package delete default response a status code equal to that given func (o *SoftwarePackageDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SoftwarePackageDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /cluster/software/packages/{version}][%d] software_package_delete default %+v", o._statusCode, o.Payload) } func (o *SoftwarePackageDeleteDefault) String() string { return fmt.Sprintf("[DELETE /cluster/software/packages/{version}][%d] software_package_delete default %+v", o._statusCode, o.Payload) } func (o *SoftwarePackageDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SoftwarePackageDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_operation_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_operation_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // NewMetroclusterOperationCollectionGetParams creates a new MetroclusterOperationCollectionGetParams 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 NewMetroclusterOperationCollectionGetParams() *MetroclusterOperationCollectionGetParams { return &MetroclusterOperationCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewMetroclusterOperationCollectionGetParamsWithTimeout creates a new MetroclusterOperationCollectionGetParams object // with the ability to set a timeout on a request. func NewMetroclusterOperationCollectionGetParamsWithTimeout(timeout time.Duration) *MetroclusterOperationCollectionGetParams { return &MetroclusterOperationCollectionGetParams{ timeout: timeout, } } // NewMetroclusterOperationCollectionGetParamsWithContext creates a new MetroclusterOperationCollectionGetParams object // with the ability to set a context for a request. func NewMetroclusterOperationCollectionGetParamsWithContext(ctx context.Context) *MetroclusterOperationCollectionGetParams { return &MetroclusterOperationCollectionGetParams{ Context: ctx, } } // NewMetroclusterOperationCollectionGetParamsWithHTTPClient creates a new MetroclusterOperationCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewMetroclusterOperationCollectionGetParamsWithHTTPClient(client *http.Client) *MetroclusterOperationCollectionGetParams { return &MetroclusterOperationCollectionGetParams{ HTTPClient: client, } } /* MetroclusterOperationCollectionGetParams contains all the parameters to send to the API endpoint for the metrocluster operation collection get operation. Typically these are written to a http.Request. */ type MetroclusterOperationCollectionGetParams struct { /* AdditionalInfo. Filter by additional_info */ AdditionalInfo *string /* CommandLine. Filter by command_line */ CommandLine *string /* EndTime. Filter by end_time */ EndTime *string /* Errors. Filter by errors */ Errors *string /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* NodeName. Filter by node.name */ NodeName *string /* NodeUUID. Filter by node.uuid */ NodeUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* StartTime. Filter by start_time */ StartTime *string /* State. Filter by state */ State *string /* Type. Filter by type */ Type *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the metrocluster operation collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterOperationCollectionGetParams) WithDefaults() *MetroclusterOperationCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the metrocluster operation collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MetroclusterOperationCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := MetroclusterOperationCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithTimeout(timeout time.Duration) *MetroclusterOperationCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithContext(ctx context.Context) *MetroclusterOperationCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithHTTPClient(client *http.Client) *MetroclusterOperationCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAdditionalInfo adds the additionalInfo to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithAdditionalInfo(additionalInfo *string) *MetroclusterOperationCollectionGetParams { o.SetAdditionalInfo(additionalInfo) return o } // SetAdditionalInfo adds the additionalInfo to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetAdditionalInfo(additionalInfo *string) { o.AdditionalInfo = additionalInfo } // WithCommandLine adds the commandLine to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithCommandLine(commandLine *string) *MetroclusterOperationCollectionGetParams { o.SetCommandLine(commandLine) return o } // SetCommandLine adds the commandLine to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetCommandLine(commandLine *string) { o.CommandLine = commandLine } // WithEndTime adds the endTime to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithEndTime(endTime *string) *MetroclusterOperationCollectionGetParams { o.SetEndTime(endTime) return o } // SetEndTime adds the endTime to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetEndTime(endTime *string) { o.EndTime = endTime } // WithErrors adds the errors to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithErrors(errors *string) *MetroclusterOperationCollectionGetParams { o.SetErrors(errors) return o } // SetErrors adds the errors to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetErrors(errors *string) { o.Errors = errors } // WithFields adds the fields to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithFields(fields []string) *MetroclusterOperationCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithMaxRecords(maxRecords *int64) *MetroclusterOperationCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithNodeName adds the nodeName to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithNodeName(nodeName *string) *MetroclusterOperationCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithNodeUUID(nodeUUID *string) *MetroclusterOperationCollectionGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithOrderBy(orderBy []string) *MetroclusterOperationCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithReturnRecords(returnRecords *bool) *MetroclusterOperationCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *MetroclusterOperationCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithStartTime adds the startTime to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithStartTime(startTime *string) *MetroclusterOperationCollectionGetParams { o.SetStartTime(startTime) return o } // SetStartTime adds the startTime to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetStartTime(startTime *string) { o.StartTime = startTime } // WithState adds the state to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithState(state *string) *MetroclusterOperationCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetState(state *string) { o.State = state } // WithType adds the typeVar to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithType(typeVar *string) *MetroclusterOperationCollectionGetParams { o.SetType(typeVar) return o } // SetType adds the type to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetType(typeVar *string) { o.Type = typeVar } // WithUUID adds the uuid to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) WithUUID(uuid *string) *MetroclusterOperationCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the metrocluster operation collection get params func (o *MetroclusterOperationCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *MetroclusterOperationCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AdditionalInfo != nil { // query param additional_info var qrAdditionalInfo string if o.AdditionalInfo != nil { qrAdditionalInfo = *o.AdditionalInfo } qAdditionalInfo := qrAdditionalInfo if qAdditionalInfo != "" { if err := r.SetQueryParam("additional_info", qAdditionalInfo); err != nil { return err } } } if o.CommandLine != nil { // query param command_line var qrCommandLine string if o.CommandLine != nil { qrCommandLine = *o.CommandLine } qCommandLine := qrCommandLine if qCommandLine != "" { if err := r.SetQueryParam("command_line", qCommandLine); err != nil { return err } } } if o.EndTime != nil { // query param end_time var qrEndTime string if o.EndTime != nil { qrEndTime = *o.EndTime } qEndTime := qrEndTime if qEndTime != "" { if err := r.SetQueryParam("end_time", qEndTime); err != nil { return err } } } if o.Errors != nil { // query param errors var qrErrors string if o.Errors != nil { qrErrors = *o.Errors } qErrors := qrErrors if qErrors != "" { if err := r.SetQueryParam("errors", qErrors); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.NodeName != nil { // query param node.name var qrNodeName string if o.NodeName != nil { qrNodeName = *o.NodeName } qNodeName := qrNodeName if qNodeName != "" { if err := r.SetQueryParam("node.name", qNodeName); err != nil { return err } } } if o.NodeUUID != nil { // query param node.uuid var qrNodeUUID string if o.NodeUUID != nil { qrNodeUUID = *o.NodeUUID } qNodeUUID := qrNodeUUID if qNodeUUID != "" { if err := r.SetQueryParam("node.uuid", qNodeUUID); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.StartTime != nil { // query param start_time var qrStartTime string if o.StartTime != nil { qrStartTime = *o.StartTime } qStartTime := qrStartTime if qStartTime != "" { if err := r.SetQueryParam("start_time", qStartTime); err != nil { return err } } } if o.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if o.Type != nil { // query param type var qrType string if o.Type != nil { qrType = *o.Type } qType := qrType if qType != "" { if err := r.SetQueryParam("type", qType); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMetroclusterOperationCollectionGet binds the parameter fields func (o *MetroclusterOperationCollectionGetParams) bindParamFields(formats strfmt.Registry) []string { fieldsIR := o.Fields var fieldsIC []string for _, fieldsIIR := range fieldsIR { // explode []string fieldsIIV := fieldsIIR // string as string fieldsIC = append(fieldsIC, fieldsIIV) } // items.CollectionFormat: "csv" fieldsIS := swag.JoinByFormat(fieldsIC, "csv") return fieldsIS } // bindParamMetroclusterOperationCollectionGet binds the parameter order_by func (o *MetroclusterOperationCollectionGetParams) bindParamOrderBy(formats strfmt.Registry) []string { orderByIR := o.OrderBy var orderByIC []string for _, orderByIIR := range orderByIR { // explode []string orderByIIV := orderByIIR // string as string orderByIC = append(orderByIC, orderByIIV) } // items.CollectionFormat: "csv" orderByIS := swag.JoinByFormat(orderByIC, "csv") return orderByIS }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cluster/metrocluster_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cluster // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // MetroclusterGetReader is a Reader for the MetroclusterGet structure. type MetroclusterGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MetroclusterGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMetroclusterGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMetroclusterGetDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewMetroclusterGetOK creates a MetroclusterGetOK with default headers values func NewMetroclusterGetOK() *MetroclusterGetOK { return &MetroclusterGetOK{} } /* MetroclusterGetOK describes a response with status code 200, with default header values. OK */ type MetroclusterGetOK struct { Payload *models.Metrocluster } // IsSuccess returns true when this metrocluster get o k response has a 2xx status code func (o *MetroclusterGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this metrocluster get o k response has a 3xx status code func (o *MetroclusterGetOK) IsRedirect() bool { return false } // IsClientError returns true when this metrocluster get o k response has a 4xx status code func (o *MetroclusterGetOK) IsClientError() bool { return false } // IsServerError returns true when this metrocluster get o k response has a 5xx status code func (o *MetroclusterGetOK) IsServerError() bool { return false } // IsCode returns true when this metrocluster get o k response a status code equal to that given func (o *MetroclusterGetOK) IsCode(code int) bool { return code == 200 } func (o *MetroclusterGetOK) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster][%d] metroclusterGetOK %+v", 200, o.Payload) } func (o *MetroclusterGetOK) String() string { return fmt.Sprintf("[GET /cluster/metrocluster][%d] metroclusterGetOK %+v", 200, o.Payload) } func (o *MetroclusterGetOK) GetPayload() *models.Metrocluster { return o.Payload } func (o *MetroclusterGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Metrocluster) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMetroclusterGetDefault creates a MetroclusterGetDefault with default headers values func NewMetroclusterGetDefault(code int) *MetroclusterGetDefault { return &MetroclusterGetDefault{ _statusCode: code, } } /* MetroclusterGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2425734 | An internal error occurred. Wait a few minutes, and try the operation again. For further assistance, contact technical support. | */ type MetroclusterGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the metrocluster get default response func (o *MetroclusterGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this metrocluster get default response has a 2xx status code func (o *MetroclusterGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this metrocluster get default response has a 3xx status code func (o *MetroclusterGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this metrocluster get default response has a 4xx status code func (o *MetroclusterGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this metrocluster get default response has a 5xx status code func (o *MetroclusterGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this metrocluster get default response a status code equal to that given func (o *MetroclusterGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MetroclusterGetDefault) Error() string { return fmt.Sprintf("[GET /cluster/metrocluster][%d] metrocluster_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterGetDefault) String() string { return fmt.Sprintf("[GET /cluster/metrocluster][%d] metrocluster_get default %+v", o._statusCode, o.Payload) } func (o *MetroclusterGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MetroclusterGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false