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/n_a_s/cifs_share_acl_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_acl_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewCifsShareACLModifyParams creates a new CifsShareACLModifyParams 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 NewCifsShareACLModifyParams() *CifsShareACLModifyParams { return &CifsShareACLModifyParams{ timeout: cr.DefaultTimeout, } } // NewCifsShareACLModifyParamsWithTimeout creates a new CifsShareACLModifyParams object // with the ability to set a timeout on a request. func NewCifsShareACLModifyParamsWithTimeout(timeout time.Duration) *CifsShareACLModifyParams { return &CifsShareACLModifyParams{ timeout: timeout, } } // NewCifsShareACLModifyParamsWithContext creates a new CifsShareACLModifyParams object // with the ability to set a context for a request. func NewCifsShareACLModifyParamsWithContext(ctx context.Context) *CifsShareACLModifyParams { return &CifsShareACLModifyParams{ Context: ctx, } } // NewCifsShareACLModifyParamsWithHTTPClient creates a new CifsShareACLModifyParams object // with the ability to set a custom HTTPClient for a request. func NewCifsShareACLModifyParamsWithHTTPClient(client *http.Client) *CifsShareACLModifyParams { return &CifsShareACLModifyParams{ HTTPClient: client, } } /* CifsShareACLModifyParams contains all the parameters to send to the API endpoint for the cifs share acl modify operation. Typically these are written to a http.Request. */ type CifsShareACLModifyParams struct { /* Info. Info specification */ Info *models.CifsShareACL /* Share. Share name */ Share string /* SvmUUID. UUID of the SVM to which this object belongs. */ SvmUUID string /* Type. User or group type */ Type string /* UserOrGroup. User or group name */ UserOrGroup string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cifs share acl modify params (not the query body). // // All values with no default are reset to their zero value. func (o *CifsShareACLModifyParams) WithDefaults() *CifsShareACLModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cifs share acl modify params (not the query body). // // All values with no default are reset to their zero value. func (o *CifsShareACLModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithTimeout(timeout time.Duration) *CifsShareACLModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithContext(ctx context.Context) *CifsShareACLModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithHTTPClient(client *http.Client) *CifsShareACLModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithInfo(info *models.CifsShareACL) *CifsShareACLModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetInfo(info *models.CifsShareACL) { o.Info = info } // WithShare adds the share to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithShare(share string) *CifsShareACLModifyParams { o.SetShare(share) return o } // SetShare adds the share to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetShare(share string) { o.Share = share } // WithSvmUUID adds the svmUUID to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithSvmUUID(svmUUID string) *CifsShareACLModifyParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WithType adds the typeVar to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithType(typeVar string) *CifsShareACLModifyParams { o.SetType(typeVar) return o } // SetType adds the type to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetType(typeVar string) { o.Type = typeVar } // WithUserOrGroup adds the userOrGroup to the cifs share acl modify params func (o *CifsShareACLModifyParams) WithUserOrGroup(userOrGroup string) *CifsShareACLModifyParams { o.SetUserOrGroup(userOrGroup) return o } // SetUserOrGroup adds the userOrGroup to the cifs share acl modify params func (o *CifsShareACLModifyParams) SetUserOrGroup(userOrGroup string) { o.UserOrGroup = userOrGroup } // WriteToRequest writes these params to a swagger request func (o *CifsShareACLModifyParams) 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 share if err := r.SetPathParam("share", o.Share); err != nil { return err } // path param svm.uuid if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil { return err } // path param type if err := r.SetPathParam("type", o.Type); err != nil { return err } // path param user_or_group if err := r.SetPathParam("user_or_group", o.UserOrGroup); 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/n_a_s/local_cifs_group_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // LocalCifsGroupCreateReader is a Reader for the LocalCifsGroupCreate structure. type LocalCifsGroupCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LocalCifsGroupCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewLocalCifsGroupCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLocalCifsGroupCreateDefault(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 } } // NewLocalCifsGroupCreateCreated creates a LocalCifsGroupCreateCreated with default headers values func NewLocalCifsGroupCreateCreated() *LocalCifsGroupCreateCreated { return &LocalCifsGroupCreateCreated{} } /* LocalCifsGroupCreateCreated describes a response with status code 201, with default header values. Created */ type LocalCifsGroupCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this local cifs group create created response has a 2xx status code func (o *LocalCifsGroupCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this local cifs group create created response has a 3xx status code func (o *LocalCifsGroupCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this local cifs group create created response has a 4xx status code func (o *LocalCifsGroupCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this local cifs group create created response has a 5xx status code func (o *LocalCifsGroupCreateCreated) IsServerError() bool { return false } // IsCode returns true when this local cifs group create created response a status code equal to that given func (o *LocalCifsGroupCreateCreated) IsCode(code int) bool { return code == 201 } func (o *LocalCifsGroupCreateCreated) Error() string { return fmt.Sprintf("[POST /protocols/cifs/local-groups][%d] localCifsGroupCreateCreated ", 201) } func (o *LocalCifsGroupCreateCreated) String() string { return fmt.Sprintf("[POST /protocols/cifs/local-groups][%d] localCifsGroupCreateCreated ", 201) } func (o *LocalCifsGroupCreateCreated) 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 } // NewLocalCifsGroupCreateDefault creates a LocalCifsGroupCreateDefault with default headers values func NewLocalCifsGroupCreateDefault(code int) *LocalCifsGroupCreateDefault { return &LocalCifsGroupCreateDefault{ _statusCode: code, } } /* LocalCifsGroupCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 262278 | Name is a required field. | | 655399 | CIFS server must exist to create a local group. | | 655660 | The operation is allowed only on data SVMs. | | 655661 | The group name and description should not exceed 256 characters. | | 655668 | The specified group name contains illegal characters. | | 655675 | The local domain name specified in the group name does not exist. | | 655677 | This operation does not allow for the creation of a group in the BUILTIN domain. | | 655682 | The group name cannot be blank. | | 655717 | The specified group name already exists. | | 2621706 | The specified SVM UUID is incorrect for the specified SVM name. | */ type LocalCifsGroupCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the local cifs group create default response func (o *LocalCifsGroupCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this local cifs group create default response has a 2xx status code func (o *LocalCifsGroupCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this local cifs group create default response has a 3xx status code func (o *LocalCifsGroupCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this local cifs group create default response has a 4xx status code func (o *LocalCifsGroupCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this local cifs group create default response has a 5xx status code func (o *LocalCifsGroupCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this local cifs group create default response a status code equal to that given func (o *LocalCifsGroupCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LocalCifsGroupCreateDefault) Error() string { return fmt.Sprintf("[POST /protocols/cifs/local-groups][%d] local_cifs_group_create default %+v", o._statusCode, o.Payload) } func (o *LocalCifsGroupCreateDefault) String() string { return fmt.Sprintf("[POST /protocols/cifs/local-groups][%d] local_cifs_group_create default %+v", o._statusCode, o.Payload) } func (o *LocalCifsGroupCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LocalCifsGroupCreateDefault) 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/n_a_s/cifs_search_path_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_search_path_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // CifsSearchPathCreateReader is a Reader for the CifsSearchPathCreate structure. type CifsSearchPathCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CifsSearchPathCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewCifsSearchPathCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCifsSearchPathCreateDefault(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 } } // NewCifsSearchPathCreateCreated creates a CifsSearchPathCreateCreated with default headers values func NewCifsSearchPathCreateCreated() *CifsSearchPathCreateCreated { return &CifsSearchPathCreateCreated{} } /* CifsSearchPathCreateCreated describes a response with status code 201, with default header values. Created */ type CifsSearchPathCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.CifsSearchPathResponse } // IsSuccess returns true when this cifs search path create created response has a 2xx status code func (o *CifsSearchPathCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this cifs search path create created response has a 3xx status code func (o *CifsSearchPathCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this cifs search path create created response has a 4xx status code func (o *CifsSearchPathCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this cifs search path create created response has a 5xx status code func (o *CifsSearchPathCreateCreated) IsServerError() bool { return false } // IsCode returns true when this cifs search path create created response a status code equal to that given func (o *CifsSearchPathCreateCreated) IsCode(code int) bool { return code == 201 } func (o *CifsSearchPathCreateCreated) Error() string { return fmt.Sprintf("[POST /protocols/cifs/home-directory/search-paths][%d] cifsSearchPathCreateCreated %+v", 201, o.Payload) } func (o *CifsSearchPathCreateCreated) String() string { return fmt.Sprintf("[POST /protocols/cifs/home-directory/search-paths][%d] cifsSearchPathCreateCreated %+v", 201, o.Payload) } func (o *CifsSearchPathCreateCreated) GetPayload() *models.CifsSearchPathResponse { return o.Payload } func (o *CifsSearchPathCreateCreated) 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.CifsSearchPathResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCifsSearchPathCreateDefault creates a CifsSearchPathCreateDefault with default headers values func NewCifsSearchPathCreateDefault(code int) *CifsSearchPathCreateDefault { return &CifsSearchPathCreateDefault{ _statusCode: code, } } /* CifsSearchPathCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 655551 | Invalid home-directory search-path path | | 655462 | The specified path is an invalid file-type | */ type CifsSearchPathCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cifs search path create default response func (o *CifsSearchPathCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cifs search path create default response has a 2xx status code func (o *CifsSearchPathCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cifs search path create default response has a 3xx status code func (o *CifsSearchPathCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cifs search path create default response has a 4xx status code func (o *CifsSearchPathCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cifs search path create default response has a 5xx status code func (o *CifsSearchPathCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cifs search path create default response a status code equal to that given func (o *CifsSearchPathCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CifsSearchPathCreateDefault) Error() string { return fmt.Sprintf("[POST /protocols/cifs/home-directory/search-paths][%d] cifs_search_path_create default %+v", o._statusCode, o.Payload) } func (o *CifsSearchPathCreateDefault) String() string { return fmt.Sprintf("[POST /protocols/cifs/home-directory/search-paths][%d] cifs_search_path_create default %+v", o._statusCode, o.Payload) } func (o *CifsSearchPathCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CifsSearchPathCreateDefault) 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/n_a_s/vscan_config_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_config_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // VscanConfigDeleteReader is a Reader for the VscanConfigDelete structure. type VscanConfigDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *VscanConfigDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewVscanConfigDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewVscanConfigDeleteDefault(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 } } // NewVscanConfigDeleteOK creates a VscanConfigDeleteOK with default headers values func NewVscanConfigDeleteOK() *VscanConfigDeleteOK { return &VscanConfigDeleteOK{} } /* VscanConfigDeleteOK describes a response with status code 200, with default header values. OK */ type VscanConfigDeleteOK struct { } // IsSuccess returns true when this vscan config delete o k response has a 2xx status code func (o *VscanConfigDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this vscan config delete o k response has a 3xx status code func (o *VscanConfigDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this vscan config delete o k response has a 4xx status code func (o *VscanConfigDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this vscan config delete o k response has a 5xx status code func (o *VscanConfigDeleteOK) IsServerError() bool { return false } // IsCode returns true when this vscan config delete o k response a status code equal to that given func (o *VscanConfigDeleteOK) IsCode(code int) bool { return code == 200 } func (o *VscanConfigDeleteOK) Error() string { return fmt.Sprintf("[DELETE /protocols/vscan/{svm.uuid}][%d] vscanConfigDeleteOK ", 200) } func (o *VscanConfigDeleteOK) String() string { return fmt.Sprintf("[DELETE /protocols/vscan/{svm.uuid}][%d] vscanConfigDeleteOK ", 200) } func (o *VscanConfigDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewVscanConfigDeleteDefault creates a VscanConfigDeleteDefault with default headers values func NewVscanConfigDeleteDefault(code int) *VscanConfigDeleteDefault { return &VscanConfigDeleteDefault{ _statusCode: code, } } /* VscanConfigDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 10027259 | A scanner-pool, an On-Access policy, or an On-Demand policy might fail to get deleted due to either a systematic error or some hardware failure. The error code returned details the failure along with the reason for the failure. For example, \"Failed to delete On-Access policy \"sp1\". Reason: \"Failed to delete policy. Reason: policy must be disabled before being deleted.\". Retry the operation.\" */ type VscanConfigDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the vscan config delete default response func (o *VscanConfigDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this vscan config delete default response has a 2xx status code func (o *VscanConfigDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this vscan config delete default response has a 3xx status code func (o *VscanConfigDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this vscan config delete default response has a 4xx status code func (o *VscanConfigDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this vscan config delete default response has a 5xx status code func (o *VscanConfigDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this vscan config delete default response a status code equal to that given func (o *VscanConfigDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *VscanConfigDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /protocols/vscan/{svm.uuid}][%d] vscan_config_delete default %+v", o._statusCode, o.Payload) } func (o *VscanConfigDeleteDefault) String() string { return fmt.Sprintf("[DELETE /protocols/vscan/{svm.uuid}][%d] vscan_config_delete default %+v", o._statusCode, o.Payload) } func (o *VscanConfigDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *VscanConfigDeleteDefault) 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/n_a_s/nfs_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/nfs_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NfsGetReader is a Reader for the NfsGet structure. type NfsGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *NfsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewNfsGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewNfsGetDefault(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 } } // NewNfsGetOK creates a NfsGetOK with default headers values func NewNfsGetOK() *NfsGetOK { return &NfsGetOK{} } /* NfsGetOK describes a response with status code 200, with default header values. OK */ type NfsGetOK struct { Payload *models.NfsService } // IsSuccess returns true when this nfs get o k response has a 2xx status code func (o *NfsGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this nfs get o k response has a 3xx status code func (o *NfsGetOK) IsRedirect() bool { return false } // IsClientError returns true when this nfs get o k response has a 4xx status code func (o *NfsGetOK) IsClientError() bool { return false } // IsServerError returns true when this nfs get o k response has a 5xx status code func (o *NfsGetOK) IsServerError() bool { return false } // IsCode returns true when this nfs get o k response a status code equal to that given func (o *NfsGetOK) IsCode(code int) bool { return code == 200 } func (o *NfsGetOK) Error() string { return fmt.Sprintf("[GET /protocols/nfs/services/{svm.uuid}][%d] nfsGetOK %+v", 200, o.Payload) } func (o *NfsGetOK) String() string { return fmt.Sprintf("[GET /protocols/nfs/services/{svm.uuid}][%d] nfsGetOK %+v", 200, o.Payload) } func (o *NfsGetOK) GetPayload() *models.NfsService { return o.Payload } func (o *NfsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.NfsService) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewNfsGetDefault creates a NfsGetDefault with default headers values func NewNfsGetDefault(code int) *NfsGetDefault { return &NfsGetDefault{ _statusCode: code, } } /* NfsGetDefault describes a response with status code -1, with default header values. Error */ type NfsGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the nfs get default response func (o *NfsGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this nfs get default response has a 2xx status code func (o *NfsGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this nfs get default response has a 3xx status code func (o *NfsGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this nfs get default response has a 4xx status code func (o *NfsGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this nfs get default response has a 5xx status code func (o *NfsGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this nfs get default response a status code equal to that given func (o *NfsGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *NfsGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/nfs/services/{svm.uuid}][%d] nfs_get default %+v", o._statusCode, o.Payload) } func (o *NfsGetDefault) String() string { return fmt.Sprintf("[GET /protocols/nfs/services/{svm.uuid}][%d] nfs_get default %+v", o._statusCode, o.Payload) } func (o *NfsGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *NfsGetDefault) 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/n_a_s/client_lock_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/client_lock_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewClientLockDeleteParams creates a new ClientLockDeleteParams 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 NewClientLockDeleteParams() *ClientLockDeleteParams { return &ClientLockDeleteParams{ timeout: cr.DefaultTimeout, } } // NewClientLockDeleteParamsWithTimeout creates a new ClientLockDeleteParams object // with the ability to set a timeout on a request. func NewClientLockDeleteParamsWithTimeout(timeout time.Duration) *ClientLockDeleteParams { return &ClientLockDeleteParams{ timeout: timeout, } } // NewClientLockDeleteParamsWithContext creates a new ClientLockDeleteParams object // with the ability to set a context for a request. func NewClientLockDeleteParamsWithContext(ctx context.Context) *ClientLockDeleteParams { return &ClientLockDeleteParams{ Context: ctx, } } // NewClientLockDeleteParamsWithHTTPClient creates a new ClientLockDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewClientLockDeleteParamsWithHTTPClient(client *http.Client) *ClientLockDeleteParams { return &ClientLockDeleteParams{ HTTPClient: client, } } /* ClientLockDeleteParams contains all the parameters to send to the API endpoint for the client lock delete operation. Typically these are written to a http.Request. */ type ClientLockDeleteParams struct { /* UUID. Lock ID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the client lock delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClientLockDeleteParams) WithDefaults() *ClientLockDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the client lock delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClientLockDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the client lock delete params func (o *ClientLockDeleteParams) WithTimeout(timeout time.Duration) *ClientLockDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the client lock delete params func (o *ClientLockDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the client lock delete params func (o *ClientLockDeleteParams) WithContext(ctx context.Context) *ClientLockDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the client lock delete params func (o *ClientLockDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the client lock delete params func (o *ClientLockDeleteParams) WithHTTPClient(client *http.Client) *ClientLockDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the client lock delete params func (o *ClientLockDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the client lock delete params func (o *ClientLockDeleteParams) WithUUID(uuid string) *ClientLockDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the client lock delete params func (o *ClientLockDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ClientLockDeleteParams) 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/n_a_s/cifs_session_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_session_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewCifsSessionDeleteParams creates a new CifsSessionDeleteParams 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 NewCifsSessionDeleteParams() *CifsSessionDeleteParams { return &CifsSessionDeleteParams{ timeout: cr.DefaultTimeout, } } // NewCifsSessionDeleteParamsWithTimeout creates a new CifsSessionDeleteParams object // with the ability to set a timeout on a request. func NewCifsSessionDeleteParamsWithTimeout(timeout time.Duration) *CifsSessionDeleteParams { return &CifsSessionDeleteParams{ timeout: timeout, } } // NewCifsSessionDeleteParamsWithContext creates a new CifsSessionDeleteParams object // with the ability to set a context for a request. func NewCifsSessionDeleteParamsWithContext(ctx context.Context) *CifsSessionDeleteParams { return &CifsSessionDeleteParams{ Context: ctx, } } // NewCifsSessionDeleteParamsWithHTTPClient creates a new CifsSessionDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewCifsSessionDeleteParamsWithHTTPClient(client *http.Client) *CifsSessionDeleteParams { return &CifsSessionDeleteParams{ HTTPClient: client, } } /* CifsSessionDeleteParams contains all the parameters to send to the API endpoint for the cifs session delete operation. Typically these are written to a http.Request. */ type CifsSessionDeleteParams struct { /* ConnectionID. Unique identifier for the SMB connection. */ ConnectionID int64 /* Identifier. Unique identifier for the SMB session. */ Identifier int64 /* NodeUUID. Node UUID. */ NodeUUID string /* SvmUUID. UUID of the SVM to which this object belongs. */ SvmUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cifs session delete params (not the query body). // // All values with no default are reset to their zero value. func (o *CifsSessionDeleteParams) WithDefaults() *CifsSessionDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cifs session delete params (not the query body). // // All values with no default are reset to their zero value. func (o *CifsSessionDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cifs session delete params func (o *CifsSessionDeleteParams) WithTimeout(timeout time.Duration) *CifsSessionDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cifs session delete params func (o *CifsSessionDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cifs session delete params func (o *CifsSessionDeleteParams) WithContext(ctx context.Context) *CifsSessionDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the cifs session delete params func (o *CifsSessionDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cifs session delete params func (o *CifsSessionDeleteParams) WithHTTPClient(client *http.Client) *CifsSessionDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cifs session delete params func (o *CifsSessionDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithConnectionID adds the connectionID to the cifs session delete params func (o *CifsSessionDeleteParams) WithConnectionID(connectionID int64) *CifsSessionDeleteParams { o.SetConnectionID(connectionID) return o } // SetConnectionID adds the connectionId to the cifs session delete params func (o *CifsSessionDeleteParams) SetConnectionID(connectionID int64) { o.ConnectionID = connectionID } // WithIdentifier adds the identifier to the cifs session delete params func (o *CifsSessionDeleteParams) WithIdentifier(identifier int64) *CifsSessionDeleteParams { o.SetIdentifier(identifier) return o } // SetIdentifier adds the identifier to the cifs session delete params func (o *CifsSessionDeleteParams) SetIdentifier(identifier int64) { o.Identifier = identifier } // WithNodeUUID adds the nodeUUID to the cifs session delete params func (o *CifsSessionDeleteParams) WithNodeUUID(nodeUUID string) *CifsSessionDeleteParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the cifs session delete params func (o *CifsSessionDeleteParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WithSvmUUID adds the svmUUID to the cifs session delete params func (o *CifsSessionDeleteParams) WithSvmUUID(svmUUID string) *CifsSessionDeleteParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the cifs session delete params func (o *CifsSessionDeleteParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *CifsSessionDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param connection_id if err := r.SetPathParam("connection_id", swag.FormatInt64(o.ConnectionID)); err != nil { return err } // path param identifier if err := r.SetPathParam("identifier", swag.FormatInt64(o.Identifier)); err != nil { return err } // path param node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil { return err } // path param svm.uuid if err := r.SetPathParam("svm.uuid", o.SvmUUID); 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/n_a_s/cifs_share_acl_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_acl_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // CifsShareACLDeleteReader is a Reader for the CifsShareACLDelete structure. type CifsShareACLDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CifsShareACLDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCifsShareACLDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCifsShareACLDeleteDefault(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 } } // NewCifsShareACLDeleteOK creates a CifsShareACLDeleteOK with default headers values func NewCifsShareACLDeleteOK() *CifsShareACLDeleteOK { return &CifsShareACLDeleteOK{} } /* CifsShareACLDeleteOK describes a response with status code 200, with default header values. OK */ type CifsShareACLDeleteOK struct { } // IsSuccess returns true when this cifs share Acl delete o k response has a 2xx status code func (o *CifsShareACLDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this cifs share Acl delete o k response has a 3xx status code func (o *CifsShareACLDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this cifs share Acl delete o k response has a 4xx status code func (o *CifsShareACLDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this cifs share Acl delete o k response has a 5xx status code func (o *CifsShareACLDeleteOK) IsServerError() bool { return false } // IsCode returns true when this cifs share Acl delete o k response a status code equal to that given func (o *CifsShareACLDeleteOK) IsCode(code int) bool { return code == 200 } func (o *CifsShareACLDeleteOK) Error() string { return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifsShareAclDeleteOK ", 200) } func (o *CifsShareACLDeleteOK) String() string { return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifsShareAclDeleteOK ", 200) } func (o *CifsShareACLDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewCifsShareACLDeleteDefault creates a CifsShareACLDeleteDefault with default headers values func NewCifsShareACLDeleteDefault(code int) *CifsShareACLDeleteDefault { return &CifsShareACLDeleteDefault{ _statusCode: code, } } /* CifsShareACLDeleteDefault describes a response with status code -1, with default header values. Error */ type CifsShareACLDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cifs share acl delete default response func (o *CifsShareACLDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cifs share acl delete default response has a 2xx status code func (o *CifsShareACLDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cifs share acl delete default response has a 3xx status code func (o *CifsShareACLDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cifs share acl delete default response has a 4xx status code func (o *CifsShareACLDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cifs share acl delete default response has a 5xx status code func (o *CifsShareACLDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cifs share acl delete default response a status code equal to that given func (o *CifsShareACLDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CifsShareACLDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifs_share_acl_delete default %+v", o._statusCode, o.Payload) } func (o *CifsShareACLDeleteDefault) String() string { return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifs_share_acl_delete default %+v", o._statusCode, o.Payload) } func (o *CifsShareACLDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CifsShareACLDeleteDefault) 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/n_a_s/fpolicy_engine_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_engine_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewFpolicyEngineGetParams creates a new FpolicyEngineGetParams 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 NewFpolicyEngineGetParams() *FpolicyEngineGetParams { return &FpolicyEngineGetParams{ timeout: cr.DefaultTimeout, } } // NewFpolicyEngineGetParamsWithTimeout creates a new FpolicyEngineGetParams object // with the ability to set a timeout on a request. func NewFpolicyEngineGetParamsWithTimeout(timeout time.Duration) *FpolicyEngineGetParams { return &FpolicyEngineGetParams{ timeout: timeout, } } // NewFpolicyEngineGetParamsWithContext creates a new FpolicyEngineGetParams object // with the ability to set a context for a request. func NewFpolicyEngineGetParamsWithContext(ctx context.Context) *FpolicyEngineGetParams { return &FpolicyEngineGetParams{ Context: ctx, } } // NewFpolicyEngineGetParamsWithHTTPClient creates a new FpolicyEngineGetParams object // with the ability to set a custom HTTPClient for a request. func NewFpolicyEngineGetParamsWithHTTPClient(client *http.Client) *FpolicyEngineGetParams { return &FpolicyEngineGetParams{ HTTPClient: client, } } /* FpolicyEngineGetParams contains all the parameters to send to the API endpoint for the fpolicy engine get operation. Typically these are written to a http.Request. */ type FpolicyEngineGetParams struct { /* Fields. Specify the fields to return. */ Fields []string // Name. Name string /* SvmUUID. UUID of the SVM to which this object belongs. */ SvmUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fpolicy engine get params (not the query body). // // All values with no default are reset to their zero value. func (o *FpolicyEngineGetParams) WithDefaults() *FpolicyEngineGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fpolicy engine get params (not the query body). // // All values with no default are reset to their zero value. func (o *FpolicyEngineGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the fpolicy engine get params func (o *FpolicyEngineGetParams) WithTimeout(timeout time.Duration) *FpolicyEngineGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fpolicy engine get params func (o *FpolicyEngineGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fpolicy engine get params func (o *FpolicyEngineGetParams) WithContext(ctx context.Context) *FpolicyEngineGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the fpolicy engine get params func (o *FpolicyEngineGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fpolicy engine get params func (o *FpolicyEngineGetParams) WithHTTPClient(client *http.Client) *FpolicyEngineGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fpolicy engine get params func (o *FpolicyEngineGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the fpolicy engine get params func (o *FpolicyEngineGetParams) WithFields(fields []string) *FpolicyEngineGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the fpolicy engine get params func (o *FpolicyEngineGetParams) SetFields(fields []string) { o.Fields = fields } // WithName adds the name to the fpolicy engine get params func (o *FpolicyEngineGetParams) WithName(name string) *FpolicyEngineGetParams { o.SetName(name) return o } // SetName adds the name to the fpolicy engine get params func (o *FpolicyEngineGetParams) SetName(name string) { o.Name = name } // WithSvmUUID adds the svmUUID to the fpolicy engine get params func (o *FpolicyEngineGetParams) WithSvmUUID(svmUUID string) *FpolicyEngineGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the fpolicy engine get params func (o *FpolicyEngineGetParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *FpolicyEngineGetParams) 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 } // path param svm.uuid if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamFpolicyEngineGet binds the parameter fields func (o *FpolicyEngineGetParams) 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/n_a_s/kerberos_interface_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/kerberos_interface_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewKerberosInterfaceCollectionGetParams creates a new KerberosInterfaceCollectionGetParams 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 NewKerberosInterfaceCollectionGetParams() *KerberosInterfaceCollectionGetParams { return &KerberosInterfaceCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewKerberosInterfaceCollectionGetParamsWithTimeout creates a new KerberosInterfaceCollectionGetParams object // with the ability to set a timeout on a request. func NewKerberosInterfaceCollectionGetParamsWithTimeout(timeout time.Duration) *KerberosInterfaceCollectionGetParams { return &KerberosInterfaceCollectionGetParams{ timeout: timeout, } } // NewKerberosInterfaceCollectionGetParamsWithContext creates a new KerberosInterfaceCollectionGetParams object // with the ability to set a context for a request. func NewKerberosInterfaceCollectionGetParamsWithContext(ctx context.Context) *KerberosInterfaceCollectionGetParams { return &KerberosInterfaceCollectionGetParams{ Context: ctx, } } // NewKerberosInterfaceCollectionGetParamsWithHTTPClient creates a new KerberosInterfaceCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewKerberosInterfaceCollectionGetParamsWithHTTPClient(client *http.Client) *KerberosInterfaceCollectionGetParams { return &KerberosInterfaceCollectionGetParams{ HTTPClient: client, } } /* KerberosInterfaceCollectionGetParams contains all the parameters to send to the API endpoint for the kerberos interface collection get operation. Typically these are written to a http.Request. */ type KerberosInterfaceCollectionGetParams struct { /* Enabled. Filter by enabled */ Enabled *bool /* EncryptionTypes. Filter by encryption_types */ EncryptionTypes *string /* Fields. Specify the fields to return. */ Fields []string /* InterfaceIPAddress. Filter by interface.ip.address */ InterfaceIPAddress *string /* InterfaceName. Filter by interface.name */ InterfaceName *string /* InterfaceUUID. Filter by interface.uuid */ InterfaceUUID *string /* MachineAccount. Filter by machine_account */ MachineAccount *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 /* Spn. Filter by spn */ Spn *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the kerberos interface collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *KerberosInterfaceCollectionGetParams) WithDefaults() *KerberosInterfaceCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the kerberos interface collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *KerberosInterfaceCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := KerberosInterfaceCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithTimeout(timeout time.Duration) *KerberosInterfaceCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithContext(ctx context.Context) *KerberosInterfaceCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithHTTPClient(client *http.Client) *KerberosInterfaceCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithEnabled adds the enabled to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithEnabled(enabled *bool) *KerberosInterfaceCollectionGetParams { o.SetEnabled(enabled) return o } // SetEnabled adds the enabled to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetEnabled(enabled *bool) { o.Enabled = enabled } // WithEncryptionTypes adds the encryptionTypes to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithEncryptionTypes(encryptionTypes *string) *KerberosInterfaceCollectionGetParams { o.SetEncryptionTypes(encryptionTypes) return o } // SetEncryptionTypes adds the encryptionTypes to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetEncryptionTypes(encryptionTypes *string) { o.EncryptionTypes = encryptionTypes } // WithFields adds the fields to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithFields(fields []string) *KerberosInterfaceCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithInterfaceIPAddress adds the interfaceIPAddress to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithInterfaceIPAddress(interfaceIPAddress *string) *KerberosInterfaceCollectionGetParams { o.SetInterfaceIPAddress(interfaceIPAddress) return o } // SetInterfaceIPAddress adds the interfaceIpAddress to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetInterfaceIPAddress(interfaceIPAddress *string) { o.InterfaceIPAddress = interfaceIPAddress } // WithInterfaceName adds the interfaceName to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithInterfaceName(interfaceName *string) *KerberosInterfaceCollectionGetParams { o.SetInterfaceName(interfaceName) return o } // SetInterfaceName adds the interfaceName to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetInterfaceName(interfaceName *string) { o.InterfaceName = interfaceName } // WithInterfaceUUID adds the interfaceUUID to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithInterfaceUUID(interfaceUUID *string) *KerberosInterfaceCollectionGetParams { o.SetInterfaceUUID(interfaceUUID) return o } // SetInterfaceUUID adds the interfaceUuid to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetInterfaceUUID(interfaceUUID *string) { o.InterfaceUUID = interfaceUUID } // WithMachineAccount adds the machineAccount to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithMachineAccount(machineAccount *string) *KerberosInterfaceCollectionGetParams { o.SetMachineAccount(machineAccount) return o } // SetMachineAccount adds the machineAccount to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetMachineAccount(machineAccount *string) { o.MachineAccount = machineAccount } // WithMaxRecords adds the maxRecords to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithMaxRecords(maxRecords *int64) *KerberosInterfaceCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithOrderBy(orderBy []string) *KerberosInterfaceCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithReturnRecords(returnRecords *bool) *KerberosInterfaceCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *KerberosInterfaceCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSpn adds the spn to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithSpn(spn *string) *KerberosInterfaceCollectionGetParams { o.SetSpn(spn) return o } // SetSpn adds the spn to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetSpn(spn *string) { o.Spn = spn } // WithSvmName adds the svmName to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithSvmName(svmName *string) *KerberosInterfaceCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) WithSvmUUID(svmUUID *string) *KerberosInterfaceCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the kerberos interface collection get params func (o *KerberosInterfaceCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *KerberosInterfaceCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Enabled != nil { // query param enabled var qrEnabled bool if o.Enabled != nil { qrEnabled = *o.Enabled } qEnabled := swag.FormatBool(qrEnabled) if qEnabled != "" { if err := r.SetQueryParam("enabled", qEnabled); err != nil { return err } } } if o.EncryptionTypes != nil { // query param encryption_types var qrEncryptionTypes string if o.EncryptionTypes != nil { qrEncryptionTypes = *o.EncryptionTypes } qEncryptionTypes := qrEncryptionTypes if qEncryptionTypes != "" { if err := r.SetQueryParam("encryption_types", qEncryptionTypes); 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.InterfaceIPAddress != nil { // query param interface.ip.address var qrInterfaceIPAddress string if o.InterfaceIPAddress != nil { qrInterfaceIPAddress = *o.InterfaceIPAddress } qInterfaceIPAddress := qrInterfaceIPAddress if qInterfaceIPAddress != "" { if err := r.SetQueryParam("interface.ip.address", qInterfaceIPAddress); err != nil { return err } } } if o.InterfaceName != nil { // query param interface.name var qrInterfaceName string if o.InterfaceName != nil { qrInterfaceName = *o.InterfaceName } qInterfaceName := qrInterfaceName if qInterfaceName != "" { if err := r.SetQueryParam("interface.name", qInterfaceName); err != nil { return err } } } if o.InterfaceUUID != nil { // query param interface.uuid var qrInterfaceUUID string if o.InterfaceUUID != nil { qrInterfaceUUID = *o.InterfaceUUID } qInterfaceUUID := qrInterfaceUUID if qInterfaceUUID != "" { if err := r.SetQueryParam("interface.uuid", qInterfaceUUID); err != nil { return err } } } if o.MachineAccount != nil { // query param machine_account var qrMachineAccount string if o.MachineAccount != nil { qrMachineAccount = *o.MachineAccount } qMachineAccount := qrMachineAccount if qMachineAccount != "" { if err := r.SetQueryParam("machine_account", qMachineAccount); 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.Spn != nil { // query param spn var qrSpn string if o.Spn != nil { qrSpn = *o.Spn } qSpn := qrSpn if qSpn != "" { if err := r.SetQueryParam("spn", qSpn); 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 len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamKerberosInterfaceCollectionGet binds the parameter fields func (o *KerberosInterfaceCollectionGetParams) 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 } // bindParamKerberosInterfaceCollectionGet binds the parameter order_by func (o *KerberosInterfaceCollectionGetParams) 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/n_a_s/vscan_on_access_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_on_access_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // VscanOnAccessGetReader is a Reader for the VscanOnAccessGet structure. type VscanOnAccessGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *VscanOnAccessGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewVscanOnAccessGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewVscanOnAccessGetDefault(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 } } // NewVscanOnAccessGetOK creates a VscanOnAccessGetOK with default headers values func NewVscanOnAccessGetOK() *VscanOnAccessGetOK { return &VscanOnAccessGetOK{} } /* VscanOnAccessGetOK describes a response with status code 200, with default header values. OK */ type VscanOnAccessGetOK struct { Payload *models.VscanOnAccess } // IsSuccess returns true when this vscan on access get o k response has a 2xx status code func (o *VscanOnAccessGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this vscan on access get o k response has a 3xx status code func (o *VscanOnAccessGetOK) IsRedirect() bool { return false } // IsClientError returns true when this vscan on access get o k response has a 4xx status code func (o *VscanOnAccessGetOK) IsClientError() bool { return false } // IsServerError returns true when this vscan on access get o k response has a 5xx status code func (o *VscanOnAccessGetOK) IsServerError() bool { return false } // IsCode returns true when this vscan on access get o k response a status code equal to that given func (o *VscanOnAccessGetOK) IsCode(code int) bool { return code == 200 } func (o *VscanOnAccessGetOK) Error() string { return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies/{name}][%d] vscanOnAccessGetOK %+v", 200, o.Payload) } func (o *VscanOnAccessGetOK) String() string { return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies/{name}][%d] vscanOnAccessGetOK %+v", 200, o.Payload) } func (o *VscanOnAccessGetOK) GetPayload() *models.VscanOnAccess { return o.Payload } func (o *VscanOnAccessGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.VscanOnAccess) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewVscanOnAccessGetDefault creates a VscanOnAccessGetDefault with default headers values func NewVscanOnAccessGetDefault(code int) *VscanOnAccessGetDefault { return &VscanOnAccessGetDefault{ _statusCode: code, } } /* VscanOnAccessGetDefault describes a response with status code -1, with default header values. Error */ type VscanOnAccessGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the vscan on access get default response func (o *VscanOnAccessGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this vscan on access get default response has a 2xx status code func (o *VscanOnAccessGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this vscan on access get default response has a 3xx status code func (o *VscanOnAccessGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this vscan on access get default response has a 4xx status code func (o *VscanOnAccessGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this vscan on access get default response has a 5xx status code func (o *VscanOnAccessGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this vscan on access get default response a status code equal to that given func (o *VscanOnAccessGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *VscanOnAccessGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies/{name}][%d] vscan_on_access_get default %+v", o._statusCode, o.Payload) } func (o *VscanOnAccessGetDefault) String() string { return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies/{name}][%d] vscan_on_access_get default %+v", o._statusCode, o.Payload) } func (o *VscanOnAccessGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *VscanOnAccessGetDefault) 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/n_a_s/cifs_domain_preferred_dc_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_domain_preferred_dc_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // CifsDomainPreferredDcGetReader is a Reader for the CifsDomainPreferredDcGet structure. type CifsDomainPreferredDcGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CifsDomainPreferredDcGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCifsDomainPreferredDcGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCifsDomainPreferredDcGetDefault(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 } } // NewCifsDomainPreferredDcGetOK creates a CifsDomainPreferredDcGetOK with default headers values func NewCifsDomainPreferredDcGetOK() *CifsDomainPreferredDcGetOK { return &CifsDomainPreferredDcGetOK{} } /* CifsDomainPreferredDcGetOK describes a response with status code 200, with default header values. OK */ type CifsDomainPreferredDcGetOK struct { Payload *models.CifsDomainPreferredDc } // IsSuccess returns true when this cifs domain preferred dc get o k response has a 2xx status code func (o *CifsDomainPreferredDcGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cifs domain preferred dc get o k response has a 3xx status code func (o *CifsDomainPreferredDcGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cifs domain preferred dc get o k response has a 4xx status code func (o *CifsDomainPreferredDcGetOK) IsClientError() bool { return false } // IsServerError returns true when this cifs domain preferred dc get o k response has a 5xx status code func (o *CifsDomainPreferredDcGetOK) IsServerError() bool { return false } // IsCode returns true when this cifs domain preferred dc get o k response a status code equal to that given func (o *CifsDomainPreferredDcGetOK) IsCode(code int) bool { return code == 200 } func (o *CifsDomainPreferredDcGetOK) Error() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers/{fqdn}/{server_ip}][%d] cifsDomainPreferredDcGetOK %+v", 200, o.Payload) } func (o *CifsDomainPreferredDcGetOK) String() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers/{fqdn}/{server_ip}][%d] cifsDomainPreferredDcGetOK %+v", 200, o.Payload) } func (o *CifsDomainPreferredDcGetOK) GetPayload() *models.CifsDomainPreferredDc { return o.Payload } func (o *CifsDomainPreferredDcGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CifsDomainPreferredDc) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCifsDomainPreferredDcGetDefault creates a CifsDomainPreferredDcGetDefault with default headers values func NewCifsDomainPreferredDcGetDefault(code int) *CifsDomainPreferredDcGetDefault { return &CifsDomainPreferredDcGetDefault{ _statusCode: code, } } /* CifsDomainPreferredDcGetDefault describes a response with status code -1, with default header values. Error */ type CifsDomainPreferredDcGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cifs domain preferred dc get default response func (o *CifsDomainPreferredDcGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cifs domain preferred dc get default response has a 2xx status code func (o *CifsDomainPreferredDcGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cifs domain preferred dc get default response has a 3xx status code func (o *CifsDomainPreferredDcGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cifs domain preferred dc get default response has a 4xx status code func (o *CifsDomainPreferredDcGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cifs domain preferred dc get default response has a 5xx status code func (o *CifsDomainPreferredDcGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cifs domain preferred dc get default response a status code equal to that given func (o *CifsDomainPreferredDcGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CifsDomainPreferredDcGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers/{fqdn}/{server_ip}][%d] cifs_domain_preferred_dc_get default %+v", o._statusCode, o.Payload) } func (o *CifsDomainPreferredDcGetDefault) String() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers/{fqdn}/{server_ip}][%d] cifs_domain_preferred_dc_get default %+v", o._statusCode, o.Payload) } func (o *CifsDomainPreferredDcGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CifsDomainPreferredDcGetDefault) 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/n_a_s/nfs_clients_map_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/nfs_clients_map_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewNfsClientsMapGetParams creates a new NfsClientsMapGetParams 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 NewNfsClientsMapGetParams() *NfsClientsMapGetParams { return &NfsClientsMapGetParams{ timeout: cr.DefaultTimeout, } } // NewNfsClientsMapGetParamsWithTimeout creates a new NfsClientsMapGetParams object // with the ability to set a timeout on a request. func NewNfsClientsMapGetParamsWithTimeout(timeout time.Duration) *NfsClientsMapGetParams { return &NfsClientsMapGetParams{ timeout: timeout, } } // NewNfsClientsMapGetParamsWithContext creates a new NfsClientsMapGetParams object // with the ability to set a context for a request. func NewNfsClientsMapGetParamsWithContext(ctx context.Context) *NfsClientsMapGetParams { return &NfsClientsMapGetParams{ Context: ctx, } } // NewNfsClientsMapGetParamsWithHTTPClient creates a new NfsClientsMapGetParams object // with the ability to set a custom HTTPClient for a request. func NewNfsClientsMapGetParamsWithHTTPClient(client *http.Client) *NfsClientsMapGetParams { return &NfsClientsMapGetParams{ HTTPClient: client, } } /* NfsClientsMapGetParams contains all the parameters to send to the API endpoint for the nfs clients map get operation. Typically these are written to a http.Request. */ type NfsClientsMapGetParams struct { /* ClientIps. Filter by client_ips */ ClientIps *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 /* ServerIP. Filter by server_ip */ ServerIP *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the nfs clients map get params (not the query body). // // All values with no default are reset to their zero value. func (o *NfsClientsMapGetParams) WithDefaults() *NfsClientsMapGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the nfs clients map get params (not the query body). // // All values with no default are reset to their zero value. func (o *NfsClientsMapGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := NfsClientsMapGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the nfs clients map get params func (o *NfsClientsMapGetParams) WithTimeout(timeout time.Duration) *NfsClientsMapGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the nfs clients map get params func (o *NfsClientsMapGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the nfs clients map get params func (o *NfsClientsMapGetParams) WithContext(ctx context.Context) *NfsClientsMapGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the nfs clients map get params func (o *NfsClientsMapGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the nfs clients map get params func (o *NfsClientsMapGetParams) WithHTTPClient(client *http.Client) *NfsClientsMapGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the nfs clients map get params func (o *NfsClientsMapGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithClientIps adds the clientIps to the nfs clients map get params func (o *NfsClientsMapGetParams) WithClientIps(clientIps *string) *NfsClientsMapGetParams { o.SetClientIps(clientIps) return o } // SetClientIps adds the clientIps to the nfs clients map get params func (o *NfsClientsMapGetParams) SetClientIps(clientIps *string) { o.ClientIps = clientIps } // WithFields adds the fields to the nfs clients map get params func (o *NfsClientsMapGetParams) WithFields(fields []string) *NfsClientsMapGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the nfs clients map get params func (o *NfsClientsMapGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the nfs clients map get params func (o *NfsClientsMapGetParams) WithMaxRecords(maxRecords *int64) *NfsClientsMapGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the nfs clients map get params func (o *NfsClientsMapGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithNodeName adds the nodeName to the nfs clients map get params func (o *NfsClientsMapGetParams) WithNodeName(nodeName *string) *NfsClientsMapGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the nfs clients map get params func (o *NfsClientsMapGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the nfs clients map get params func (o *NfsClientsMapGetParams) WithNodeUUID(nodeUUID *string) *NfsClientsMapGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the nfs clients map get params func (o *NfsClientsMapGetParams) SetNodeUUID(nodeUUID *string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the nfs clients map get params func (o *NfsClientsMapGetParams) WithOrderBy(orderBy []string) *NfsClientsMapGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the nfs clients map get params func (o *NfsClientsMapGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the nfs clients map get params func (o *NfsClientsMapGetParams) WithReturnRecords(returnRecords *bool) *NfsClientsMapGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the nfs clients map get params func (o *NfsClientsMapGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the nfs clients map get params func (o *NfsClientsMapGetParams) WithReturnTimeout(returnTimeout *int64) *NfsClientsMapGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the nfs clients map get params func (o *NfsClientsMapGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithServerIP adds the serverIP to the nfs clients map get params func (o *NfsClientsMapGetParams) WithServerIP(serverIP *string) *NfsClientsMapGetParams { o.SetServerIP(serverIP) return o } // SetServerIP adds the serverIp to the nfs clients map get params func (o *NfsClientsMapGetParams) SetServerIP(serverIP *string) { o.ServerIP = serverIP } // WithSvmName adds the svmName to the nfs clients map get params func (o *NfsClientsMapGetParams) WithSvmName(svmName *string) *NfsClientsMapGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the nfs clients map get params func (o *NfsClientsMapGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the nfs clients map get params func (o *NfsClientsMapGetParams) WithSvmUUID(svmUUID *string) *NfsClientsMapGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the nfs clients map get params func (o *NfsClientsMapGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *NfsClientsMapGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.ClientIps != nil { // query param client_ips var qrClientIps string if o.ClientIps != nil { qrClientIps = *o.ClientIps } qClientIps := qrClientIps if qClientIps != "" { if err := r.SetQueryParam("client_ips", qClientIps); 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.ServerIP != nil { // query param server_ip var qrServerIP string if o.ServerIP != nil { qrServerIP = *o.ServerIP } qServerIP := qrServerIP if qServerIP != "" { if err := r.SetQueryParam("server_ip", qServerIP); 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 len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamNfsClientsMapGet binds the parameter fields func (o *NfsClientsMapGetParams) 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 } // bindParamNfsClientsMapGet binds the parameter order_by func (o *NfsClientsMapGetParams) 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/n_a_s/vscan_on_access_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_on_access_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewVscanOnAccessGetParams creates a new VscanOnAccessGetParams 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 NewVscanOnAccessGetParams() *VscanOnAccessGetParams { return &VscanOnAccessGetParams{ timeout: cr.DefaultTimeout, } } // NewVscanOnAccessGetParamsWithTimeout creates a new VscanOnAccessGetParams object // with the ability to set a timeout on a request. func NewVscanOnAccessGetParamsWithTimeout(timeout time.Duration) *VscanOnAccessGetParams { return &VscanOnAccessGetParams{ timeout: timeout, } } // NewVscanOnAccessGetParamsWithContext creates a new VscanOnAccessGetParams object // with the ability to set a context for a request. func NewVscanOnAccessGetParamsWithContext(ctx context.Context) *VscanOnAccessGetParams { return &VscanOnAccessGetParams{ Context: ctx, } } // NewVscanOnAccessGetParamsWithHTTPClient creates a new VscanOnAccessGetParams object // with the ability to set a custom HTTPClient for a request. func NewVscanOnAccessGetParamsWithHTTPClient(client *http.Client) *VscanOnAccessGetParams { return &VscanOnAccessGetParams{ HTTPClient: client, } } /* VscanOnAccessGetParams contains all the parameters to send to the API endpoint for the vscan on access get operation. Typically these are written to a http.Request. */ type VscanOnAccessGetParams struct { /* Fields. Specify the fields to return. */ Fields []string // Name. Name string /* SvmUUID. UUID of the SVM to which this object belongs. */ SvmUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the vscan on access get params (not the query body). // // All values with no default are reset to their zero value. func (o *VscanOnAccessGetParams) WithDefaults() *VscanOnAccessGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the vscan on access get params (not the query body). // // All values with no default are reset to their zero value. func (o *VscanOnAccessGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the vscan on access get params func (o *VscanOnAccessGetParams) WithTimeout(timeout time.Duration) *VscanOnAccessGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the vscan on access get params func (o *VscanOnAccessGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the vscan on access get params func (o *VscanOnAccessGetParams) WithContext(ctx context.Context) *VscanOnAccessGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the vscan on access get params func (o *VscanOnAccessGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the vscan on access get params func (o *VscanOnAccessGetParams) WithHTTPClient(client *http.Client) *VscanOnAccessGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the vscan on access get params func (o *VscanOnAccessGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the vscan on access get params func (o *VscanOnAccessGetParams) WithFields(fields []string) *VscanOnAccessGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the vscan on access get params func (o *VscanOnAccessGetParams) SetFields(fields []string) { o.Fields = fields } // WithName adds the name to the vscan on access get params func (o *VscanOnAccessGetParams) WithName(name string) *VscanOnAccessGetParams { o.SetName(name) return o } // SetName adds the name to the vscan on access get params func (o *VscanOnAccessGetParams) SetName(name string) { o.Name = name } // WithSvmUUID adds the svmUUID to the vscan on access get params func (o *VscanOnAccessGetParams) WithSvmUUID(svmUUID string) *VscanOnAccessGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the vscan on access get params func (o *VscanOnAccessGetParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *VscanOnAccessGetParams) 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 } // path param svm.uuid if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamVscanOnAccessGet binds the parameter fields func (o *VscanOnAccessGetParams) 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/n_a_s/active_directory_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/active_directory_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewActiveDirectoryGetParams creates a new ActiveDirectoryGetParams 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 NewActiveDirectoryGetParams() *ActiveDirectoryGetParams { return &ActiveDirectoryGetParams{ timeout: cr.DefaultTimeout, } } // NewActiveDirectoryGetParamsWithTimeout creates a new ActiveDirectoryGetParams object // with the ability to set a timeout on a request. func NewActiveDirectoryGetParamsWithTimeout(timeout time.Duration) *ActiveDirectoryGetParams { return &ActiveDirectoryGetParams{ timeout: timeout, } } // NewActiveDirectoryGetParamsWithContext creates a new ActiveDirectoryGetParams object // with the ability to set a context for a request. func NewActiveDirectoryGetParamsWithContext(ctx context.Context) *ActiveDirectoryGetParams { return &ActiveDirectoryGetParams{ Context: ctx, } } // NewActiveDirectoryGetParamsWithHTTPClient creates a new ActiveDirectoryGetParams object // with the ability to set a custom HTTPClient for a request. func NewActiveDirectoryGetParamsWithHTTPClient(client *http.Client) *ActiveDirectoryGetParams { return &ActiveDirectoryGetParams{ HTTPClient: client, } } /* ActiveDirectoryGetParams contains all the parameters to send to the API endpoint for the active directory get operation. Typically these are written to a http.Request. */ type ActiveDirectoryGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* ResetDiscoveredServers. Force a rediscovery. */ ResetDiscoveredServers *bool /* SvmUUID. UUID of the SVM to which this object belongs. */ SvmUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the active directory get params (not the query body). // // All values with no default are reset to their zero value. func (o *ActiveDirectoryGetParams) WithDefaults() *ActiveDirectoryGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the active directory get params (not the query body). // // All values with no default are reset to their zero value. func (o *ActiveDirectoryGetParams) SetDefaults() { var ( resetDiscoveredServersDefault = bool(false) ) val := ActiveDirectoryGetParams{ ResetDiscoveredServers: &resetDiscoveredServersDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the active directory get params func (o *ActiveDirectoryGetParams) WithTimeout(timeout time.Duration) *ActiveDirectoryGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the active directory get params func (o *ActiveDirectoryGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the active directory get params func (o *ActiveDirectoryGetParams) WithContext(ctx context.Context) *ActiveDirectoryGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the active directory get params func (o *ActiveDirectoryGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the active directory get params func (o *ActiveDirectoryGetParams) WithHTTPClient(client *http.Client) *ActiveDirectoryGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the active directory get params func (o *ActiveDirectoryGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the active directory get params func (o *ActiveDirectoryGetParams) WithFields(fields []string) *ActiveDirectoryGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the active directory get params func (o *ActiveDirectoryGetParams) SetFields(fields []string) { o.Fields = fields } // WithResetDiscoveredServers adds the resetDiscoveredServers to the active directory get params func (o *ActiveDirectoryGetParams) WithResetDiscoveredServers(resetDiscoveredServers *bool) *ActiveDirectoryGetParams { o.SetResetDiscoveredServers(resetDiscoveredServers) return o } // SetResetDiscoveredServers adds the resetDiscoveredServers to the active directory get params func (o *ActiveDirectoryGetParams) SetResetDiscoveredServers(resetDiscoveredServers *bool) { o.ResetDiscoveredServers = resetDiscoveredServers } // WithSvmUUID adds the svmUUID to the active directory get params func (o *ActiveDirectoryGetParams) WithSvmUUID(svmUUID string) *ActiveDirectoryGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the active directory get params func (o *ActiveDirectoryGetParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *ActiveDirectoryGetParams) 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.ResetDiscoveredServers != nil { // query param reset_discovered_servers var qrResetDiscoveredServers bool if o.ResetDiscoveredServers != nil { qrResetDiscoveredServers = *o.ResetDiscoveredServers } qResetDiscoveredServers := swag.FormatBool(qrResetDiscoveredServers) if qResetDiscoveredServers != "" { if err := r.SetQueryParam("reset_discovered_servers", qResetDiscoveredServers); err != nil { return err } } } // path param svm.uuid if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamActiveDirectoryGet binds the parameter fields func (o *ActiveDirectoryGetParams) 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/n_a_s/export_policy_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_policy_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // ExportPolicyGetReader is a Reader for the ExportPolicyGet structure. type ExportPolicyGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ExportPolicyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewExportPolicyGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewExportPolicyGetDefault(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 } } // NewExportPolicyGetOK creates a ExportPolicyGetOK with default headers values func NewExportPolicyGetOK() *ExportPolicyGetOK { return &ExportPolicyGetOK{} } /* ExportPolicyGetOK describes a response with status code 200, with default header values. OK */ type ExportPolicyGetOK struct { Payload *models.ExportPolicy } // IsSuccess returns true when this export policy get o k response has a 2xx status code func (o *ExportPolicyGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this export policy get o k response has a 3xx status code func (o *ExportPolicyGetOK) IsRedirect() bool { return false } // IsClientError returns true when this export policy get o k response has a 4xx status code func (o *ExportPolicyGetOK) IsClientError() bool { return false } // IsServerError returns true when this export policy get o k response has a 5xx status code func (o *ExportPolicyGetOK) IsServerError() bool { return false } // IsCode returns true when this export policy get o k response a status code equal to that given func (o *ExportPolicyGetOK) IsCode(code int) bool { return code == 200 } func (o *ExportPolicyGetOK) Error() string { return fmt.Sprintf("[GET /protocols/nfs/export-policies/{id}][%d] exportPolicyGetOK %+v", 200, o.Payload) } func (o *ExportPolicyGetOK) String() string { return fmt.Sprintf("[GET /protocols/nfs/export-policies/{id}][%d] exportPolicyGetOK %+v", 200, o.Payload) } func (o *ExportPolicyGetOK) GetPayload() *models.ExportPolicy { return o.Payload } func (o *ExportPolicyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ExportPolicy) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewExportPolicyGetDefault creates a ExportPolicyGetDefault with default headers values func NewExportPolicyGetDefault(code int) *ExportPolicyGetDefault { return &ExportPolicyGetDefault{ _statusCode: code, } } /* ExportPolicyGetDefault describes a response with status code -1, with default header values. Error */ type ExportPolicyGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the export policy get default response func (o *ExportPolicyGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this export policy get default response has a 2xx status code func (o *ExportPolicyGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this export policy get default response has a 3xx status code func (o *ExportPolicyGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this export policy get default response has a 4xx status code func (o *ExportPolicyGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this export policy get default response has a 5xx status code func (o *ExportPolicyGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this export policy get default response a status code equal to that given func (o *ExportPolicyGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ExportPolicyGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/nfs/export-policies/{id}][%d] export_policy_get default %+v", o._statusCode, o.Payload) } func (o *ExportPolicyGetDefault) String() string { return fmt.Sprintf("[GET /protocols/nfs/export-policies/{id}][%d] export_policy_get default %+v", o._statusCode, o.Payload) } func (o *ExportPolicyGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ExportPolicyGetDefault) 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/n_a_s/fpolicy_engine_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_engine_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // FpolicyEngineCollectionGetReader is a Reader for the FpolicyEngineCollectionGet structure. type FpolicyEngineCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FpolicyEngineCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFpolicyEngineCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFpolicyEngineCollectionGetDefault(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 } } // NewFpolicyEngineCollectionGetOK creates a FpolicyEngineCollectionGetOK with default headers values func NewFpolicyEngineCollectionGetOK() *FpolicyEngineCollectionGetOK { return &FpolicyEngineCollectionGetOK{} } /* FpolicyEngineCollectionGetOK describes a response with status code 200, with default header values. OK */ type FpolicyEngineCollectionGetOK struct { Payload *models.FpolicyEngineResponse } // IsSuccess returns true when this fpolicy engine collection get o k response has a 2xx status code func (o *FpolicyEngineCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fpolicy engine collection get o k response has a 3xx status code func (o *FpolicyEngineCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fpolicy engine collection get o k response has a 4xx status code func (o *FpolicyEngineCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this fpolicy engine collection get o k response has a 5xx status code func (o *FpolicyEngineCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this fpolicy engine collection get o k response a status code equal to that given func (o *FpolicyEngineCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *FpolicyEngineCollectionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines][%d] fpolicyEngineCollectionGetOK %+v", 200, o.Payload) } func (o *FpolicyEngineCollectionGetOK) String() string { return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines][%d] fpolicyEngineCollectionGetOK %+v", 200, o.Payload) } func (o *FpolicyEngineCollectionGetOK) GetPayload() *models.FpolicyEngineResponse { return o.Payload } func (o *FpolicyEngineCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FpolicyEngineResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFpolicyEngineCollectionGetDefault creates a FpolicyEngineCollectionGetDefault with default headers values func NewFpolicyEngineCollectionGetDefault(code int) *FpolicyEngineCollectionGetDefault { return &FpolicyEngineCollectionGetDefault{ _statusCode: code, } } /* FpolicyEngineCollectionGetDefault describes a response with status code -1, with default header values. FpolicyEngineCollectionGetDefault fpolicy engine collection get default */ type FpolicyEngineCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fpolicy engine collection get default response func (o *FpolicyEngineCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fpolicy engine collection get default response has a 2xx status code func (o *FpolicyEngineCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fpolicy engine collection get default response has a 3xx status code func (o *FpolicyEngineCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fpolicy engine collection get default response has a 4xx status code func (o *FpolicyEngineCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fpolicy engine collection get default response has a 5xx status code func (o *FpolicyEngineCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fpolicy engine collection get default response a status code equal to that given func (o *FpolicyEngineCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FpolicyEngineCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines][%d] fpolicy_engine_collection_get default %+v", o._statusCode, o.Payload) } func (o *FpolicyEngineCollectionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines][%d] fpolicy_engine_collection_get default %+v", o._statusCode, o.Payload) } func (o *FpolicyEngineCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FpolicyEngineCollectionGetDefault) 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/n_a_s/file_directory_security_acl_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/file_directory_security_acl_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewFileDirectorySecurityACLDeleteParams creates a new FileDirectorySecurityACLDeleteParams 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 NewFileDirectorySecurityACLDeleteParams() *FileDirectorySecurityACLDeleteParams { return &FileDirectorySecurityACLDeleteParams{ timeout: cr.DefaultTimeout, } } // NewFileDirectorySecurityACLDeleteParamsWithTimeout creates a new FileDirectorySecurityACLDeleteParams object // with the ability to set a timeout on a request. func NewFileDirectorySecurityACLDeleteParamsWithTimeout(timeout time.Duration) *FileDirectorySecurityACLDeleteParams { return &FileDirectorySecurityACLDeleteParams{ timeout: timeout, } } // NewFileDirectorySecurityACLDeleteParamsWithContext creates a new FileDirectorySecurityACLDeleteParams object // with the ability to set a context for a request. func NewFileDirectorySecurityACLDeleteParamsWithContext(ctx context.Context) *FileDirectorySecurityACLDeleteParams { return &FileDirectorySecurityACLDeleteParams{ Context: ctx, } } // NewFileDirectorySecurityACLDeleteParamsWithHTTPClient creates a new FileDirectorySecurityACLDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewFileDirectorySecurityACLDeleteParamsWithHTTPClient(client *http.Client) *FileDirectorySecurityACLDeleteParams { return &FileDirectorySecurityACLDeleteParams{ HTTPClient: client, } } /* FileDirectorySecurityACLDeleteParams contains all the parameters to send to the API endpoint for the file directory security acl delete operation. Typically these are written to a http.Request. */ type FileDirectorySecurityACLDeleteParams struct { /* Info. Info specification */ Info *models.ACLDelete /* Path. path */ Path string /* 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 /* SvmUUID. UUID of the SVM to which this object belongs. */ SvmUUID string /* User. User Name */ User string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the file directory security acl delete params (not the query body). // // All values with no default are reset to their zero value. func (o *FileDirectorySecurityACLDeleteParams) WithDefaults() *FileDirectorySecurityACLDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the file directory security acl delete params (not the query body). // // All values with no default are reset to their zero value. func (o *FileDirectorySecurityACLDeleteParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := FileDirectorySecurityACLDeleteParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithTimeout(timeout time.Duration) *FileDirectorySecurityACLDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithContext(ctx context.Context) *FileDirectorySecurityACLDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithHTTPClient(client *http.Client) *FileDirectorySecurityACLDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithInfo(info *models.ACLDelete) *FileDirectorySecurityACLDeleteParams { o.SetInfo(info) return o } // SetInfo adds the info to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetInfo(info *models.ACLDelete) { o.Info = info } // WithPath adds the path to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithPath(path string) *FileDirectorySecurityACLDeleteParams { o.SetPath(path) return o } // SetPath adds the path to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetPath(path string) { o.Path = path } // WithReturnRecords adds the returnRecords to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithReturnRecords(returnRecords *bool) *FileDirectorySecurityACLDeleteParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithReturnTimeout(returnTimeout *int64) *FileDirectorySecurityACLDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSvmUUID adds the svmUUID to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithSvmUUID(svmUUID string) *FileDirectorySecurityACLDeleteParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WithUser adds the user to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) WithUser(user string) *FileDirectorySecurityACLDeleteParams { o.SetUser(user) return o } // SetUser adds the user to the file directory security acl delete params func (o *FileDirectorySecurityACLDeleteParams) SetUser(user string) { o.User = user } // WriteToRequest writes these params to a swagger request func (o *FileDirectorySecurityACLDeleteParams) 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 path if err := r.SetPathParam("path", o.Path); 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 } } } // path param svm.uuid if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil { return err } // path param user if err := r.SetPathParam("user", o.User); 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/n_a_s/fpolicy_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewFpolicyCreateParams creates a new FpolicyCreateParams 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 NewFpolicyCreateParams() *FpolicyCreateParams { return &FpolicyCreateParams{ timeout: cr.DefaultTimeout, } } // NewFpolicyCreateParamsWithTimeout creates a new FpolicyCreateParams object // with the ability to set a timeout on a request. func NewFpolicyCreateParamsWithTimeout(timeout time.Duration) *FpolicyCreateParams { return &FpolicyCreateParams{ timeout: timeout, } } // NewFpolicyCreateParamsWithContext creates a new FpolicyCreateParams object // with the ability to set a context for a request. func NewFpolicyCreateParamsWithContext(ctx context.Context) *FpolicyCreateParams { return &FpolicyCreateParams{ Context: ctx, } } // NewFpolicyCreateParamsWithHTTPClient creates a new FpolicyCreateParams object // with the ability to set a custom HTTPClient for a request. func NewFpolicyCreateParamsWithHTTPClient(client *http.Client) *FpolicyCreateParams { return &FpolicyCreateParams{ HTTPClient: client, } } /* FpolicyCreateParams contains all the parameters to send to the API endpoint for the fpolicy create operation. Typically these are written to a http.Request. */ type FpolicyCreateParams struct { /* Info. Info specification */ Info *models.Fpolicy /* 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 fpolicy create params (not the query body). // // All values with no default are reset to their zero value. func (o *FpolicyCreateParams) WithDefaults() *FpolicyCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fpolicy create params (not the query body). // // All values with no default are reset to their zero value. func (o *FpolicyCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := FpolicyCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the fpolicy create params func (o *FpolicyCreateParams) WithTimeout(timeout time.Duration) *FpolicyCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fpolicy create params func (o *FpolicyCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fpolicy create params func (o *FpolicyCreateParams) WithContext(ctx context.Context) *FpolicyCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the fpolicy create params func (o *FpolicyCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fpolicy create params func (o *FpolicyCreateParams) WithHTTPClient(client *http.Client) *FpolicyCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fpolicy create params func (o *FpolicyCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the fpolicy create params func (o *FpolicyCreateParams) WithInfo(info *models.Fpolicy) *FpolicyCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the fpolicy create params func (o *FpolicyCreateParams) SetInfo(info *models.Fpolicy) { o.Info = info } // WithReturnRecords adds the returnRecords to the fpolicy create params func (o *FpolicyCreateParams) WithReturnRecords(returnRecords *bool) *FpolicyCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the fpolicy create params func (o *FpolicyCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *FpolicyCreateParams) 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/n_a_s/cifs_domain_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_domain_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // CifsDomainGetReader is a Reader for the CifsDomainGet structure. type CifsDomainGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CifsDomainGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCifsDomainGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCifsDomainGetDefault(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 } } // NewCifsDomainGetOK creates a CifsDomainGetOK with default headers values func NewCifsDomainGetOK() *CifsDomainGetOK { return &CifsDomainGetOK{} } /* CifsDomainGetOK describes a response with status code 200, with default header values. OK */ type CifsDomainGetOK struct { Payload *models.CifsDomain } // IsSuccess returns true when this cifs domain get o k response has a 2xx status code func (o *CifsDomainGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cifs domain get o k response has a 3xx status code func (o *CifsDomainGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cifs domain get o k response has a 4xx status code func (o *CifsDomainGetOK) IsClientError() bool { return false } // IsServerError returns true when this cifs domain get o k response has a 5xx status code func (o *CifsDomainGetOK) IsServerError() bool { return false } // IsCode returns true when this cifs domain get o k response a status code equal to that given func (o *CifsDomainGetOK) IsCode(code int) bool { return code == 200 } func (o *CifsDomainGetOK) Error() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}][%d] cifsDomainGetOK %+v", 200, o.Payload) } func (o *CifsDomainGetOK) String() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}][%d] cifsDomainGetOK %+v", 200, o.Payload) } func (o *CifsDomainGetOK) GetPayload() *models.CifsDomain { return o.Payload } func (o *CifsDomainGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CifsDomain) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCifsDomainGetDefault creates a CifsDomainGetDefault with default headers values func NewCifsDomainGetDefault(code int) *CifsDomainGetDefault { return &CifsDomainGetDefault{ _statusCode: code, } } /* CifsDomainGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 656463 | SVM UUID must be provided for a query on the field rediscover_trusts and reset_discovered_servers. | */ type CifsDomainGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cifs domain get default response func (o *CifsDomainGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cifs domain get default response has a 2xx status code func (o *CifsDomainGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cifs domain get default response has a 3xx status code func (o *CifsDomainGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cifs domain get default response has a 4xx status code func (o *CifsDomainGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cifs domain get default response has a 5xx status code func (o *CifsDomainGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cifs domain get default response a status code equal to that given func (o *CifsDomainGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *CifsDomainGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}][%d] cifs_domain_get default %+v", o._statusCode, o.Payload) } func (o *CifsDomainGetDefault) String() string { return fmt.Sprintf("[GET /protocols/cifs/domains/{svm.uuid}][%d] cifs_domain_get default %+v", o._statusCode, o.Payload) } func (o *CifsDomainGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CifsDomainGetDefault) 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/n_a_s/local_cifs_group_members_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_members_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // LocalCifsGroupMembersGetReader is a Reader for the LocalCifsGroupMembersGet structure. type LocalCifsGroupMembersGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LocalCifsGroupMembersGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLocalCifsGroupMembersGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLocalCifsGroupMembersGetDefault(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 } } // NewLocalCifsGroupMembersGetOK creates a LocalCifsGroupMembersGetOK with default headers values func NewLocalCifsGroupMembersGetOK() *LocalCifsGroupMembersGetOK { return &LocalCifsGroupMembersGetOK{} } /* LocalCifsGroupMembersGetOK describes a response with status code 200, with default header values. OK */ type LocalCifsGroupMembersGetOK struct { Payload *models.LocalCifsGroupMembers } // IsSuccess returns true when this local cifs group members get o k response has a 2xx status code func (o *LocalCifsGroupMembersGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this local cifs group members get o k response has a 3xx status code func (o *LocalCifsGroupMembersGetOK) IsRedirect() bool { return false } // IsClientError returns true when this local cifs group members get o k response has a 4xx status code func (o *LocalCifsGroupMembersGetOK) IsClientError() bool { return false } // IsServerError returns true when this local cifs group members get o k response has a 5xx status code func (o *LocalCifsGroupMembersGetOK) IsServerError() bool { return false } // IsCode returns true when this local cifs group members get o k response a status code equal to that given func (o *LocalCifsGroupMembersGetOK) IsCode(code int) bool { return code == 200 } func (o *LocalCifsGroupMembersGetOK) Error() string { return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{local_cifs_group.sid}/members/{name}][%d] localCifsGroupMembersGetOK %+v", 200, o.Payload) } func (o *LocalCifsGroupMembersGetOK) String() string { return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{local_cifs_group.sid}/members/{name}][%d] localCifsGroupMembersGetOK %+v", 200, o.Payload) } func (o *LocalCifsGroupMembersGetOK) GetPayload() *models.LocalCifsGroupMembers { return o.Payload } func (o *LocalCifsGroupMembersGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.LocalCifsGroupMembers) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLocalCifsGroupMembersGetDefault creates a LocalCifsGroupMembersGetDefault with default headers values func NewLocalCifsGroupMembersGetDefault(code int) *LocalCifsGroupMembersGetDefault { return &LocalCifsGroupMembersGetDefault{ _statusCode: code, } } /* LocalCifsGroupMembersGetDefault describes a response with status code -1, with default header values. Error */ type LocalCifsGroupMembersGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the local cifs group members get default response func (o *LocalCifsGroupMembersGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this local cifs group members get default response has a 2xx status code func (o *LocalCifsGroupMembersGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this local cifs group members get default response has a 3xx status code func (o *LocalCifsGroupMembersGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this local cifs group members get default response has a 4xx status code func (o *LocalCifsGroupMembersGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this local cifs group members get default response has a 5xx status code func (o *LocalCifsGroupMembersGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this local cifs group members get default response a status code equal to that given func (o *LocalCifsGroupMembersGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LocalCifsGroupMembersGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{local_cifs_group.sid}/members/{name}][%d] local_cifs_group_members_get default %+v", o._statusCode, o.Payload) } func (o *LocalCifsGroupMembersGetDefault) String() string { return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{local_cifs_group.sid}/members/{name}][%d] local_cifs_group_members_get default %+v", o._statusCode, o.Payload) } func (o *LocalCifsGroupMembersGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LocalCifsGroupMembersGetDefault) 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/n_a_s/kerberos_realm_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/kerberos_realm_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // KerberosRealmModifyReader is a Reader for the KerberosRealmModify structure. type KerberosRealmModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *KerberosRealmModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewKerberosRealmModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewKerberosRealmModifyDefault(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 } } // NewKerberosRealmModifyOK creates a KerberosRealmModifyOK with default headers values func NewKerberosRealmModifyOK() *KerberosRealmModifyOK { return &KerberosRealmModifyOK{} } /* KerberosRealmModifyOK describes a response with status code 200, with default header values. OK */ type KerberosRealmModifyOK struct { } // IsSuccess returns true when this kerberos realm modify o k response has a 2xx status code func (o *KerberosRealmModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this kerberos realm modify o k response has a 3xx status code func (o *KerberosRealmModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this kerberos realm modify o k response has a 4xx status code func (o *KerberosRealmModifyOK) IsClientError() bool { return false } // IsServerError returns true when this kerberos realm modify o k response has a 5xx status code func (o *KerberosRealmModifyOK) IsServerError() bool { return false } // IsCode returns true when this kerberos realm modify o k response a status code equal to that given func (o *KerberosRealmModifyOK) IsCode(code int) bool { return code == 200 } func (o *KerberosRealmModifyOK) Error() string { return fmt.Sprintf("[PATCH /protocols/nfs/kerberos/realms/{svm.uuid}/{name}][%d] kerberosRealmModifyOK ", 200) } func (o *KerberosRealmModifyOK) String() string { return fmt.Sprintf("[PATCH /protocols/nfs/kerberos/realms/{svm.uuid}/{name}][%d] kerberosRealmModifyOK ", 200) } func (o *KerberosRealmModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewKerberosRealmModifyDefault creates a KerberosRealmModifyDefault with default headers values func NewKerberosRealmModifyDefault(code int) *KerberosRealmModifyDefault { return &KerberosRealmModifyDefault{ _statusCode: code, } } /* KerberosRealmModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error codes | Description | | ----------- | ----------- | | 1966125 | Failed to remove hosts entry.| | 1966126 | Failed to lookup hosts entry.| | 1966131 | Failed to create hosts entry.| | 1966132 | Failed to modify hosts entry.| | 2949121 | Active Directory server name required.| | 2949122 | Active Directory server address required| | 2949123 | Failed to create Kerberos realm.| | 2949124 | Failed to create hosts file entry.| | 2949141 | Failed to lookup Kerberos realm.| | 2949148 | Failed to modify Kerberos realm.| | 3276976 | "realm" is a required input| | 3276998 | Only the data Vservers can own NFS Kerberos realms.| */ type KerberosRealmModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the kerberos realm modify default response func (o *KerberosRealmModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this kerberos realm modify default response has a 2xx status code func (o *KerberosRealmModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this kerberos realm modify default response has a 3xx status code func (o *KerberosRealmModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this kerberos realm modify default response has a 4xx status code func (o *KerberosRealmModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this kerberos realm modify default response has a 5xx status code func (o *KerberosRealmModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this kerberos realm modify default response a status code equal to that given func (o *KerberosRealmModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *KerberosRealmModifyDefault) Error() string { return fmt.Sprintf("[PATCH /protocols/nfs/kerberos/realms/{svm.uuid}/{name}][%d] kerberos_realm_modify default %+v", o._statusCode, o.Payload) } func (o *KerberosRealmModifyDefault) String() string { return fmt.Sprintf("[PATCH /protocols/nfs/kerberos/realms/{svm.uuid}/{name}][%d] kerberos_realm_modify default %+v", o._statusCode, o.Payload) } func (o *KerberosRealmModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *KerberosRealmModifyDefault) 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/n_a_s/cifs_symlink_mapping_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_symlink_mapping_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package n_a_s // 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" ) // NewCifsSymlinkMappingCreateParams creates a new CifsSymlinkMappingCreateParams 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 NewCifsSymlinkMappingCreateParams() *CifsSymlinkMappingCreateParams { return &CifsSymlinkMappingCreateParams{ timeout: cr.DefaultTimeout, } } // NewCifsSymlinkMappingCreateParamsWithTimeout creates a new CifsSymlinkMappingCreateParams object // with the ability to set a timeout on a request. func NewCifsSymlinkMappingCreateParamsWithTimeout(timeout time.Duration) *CifsSymlinkMappingCreateParams { return &CifsSymlinkMappingCreateParams{ timeout: timeout, } } // NewCifsSymlinkMappingCreateParamsWithContext creates a new CifsSymlinkMappingCreateParams object // with the ability to set a context for a request. func NewCifsSymlinkMappingCreateParamsWithContext(ctx context.Context) *CifsSymlinkMappingCreateParams { return &CifsSymlinkMappingCreateParams{ Context: ctx, } } // NewCifsSymlinkMappingCreateParamsWithHTTPClient creates a new CifsSymlinkMappingCreateParams object // with the ability to set a custom HTTPClient for a request. func NewCifsSymlinkMappingCreateParamsWithHTTPClient(client *http.Client) *CifsSymlinkMappingCreateParams { return &CifsSymlinkMappingCreateParams{ HTTPClient: client, } } /* CifsSymlinkMappingCreateParams contains all the parameters to send to the API endpoint for the cifs symlink mapping create operation. Typically these are written to a http.Request. */ type CifsSymlinkMappingCreateParams struct { /* Info. Info specification */ Info *models.CifsSymlinkMapping /* 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 cifs symlink mapping create params (not the query body). // // All values with no default are reset to their zero value. func (o *CifsSymlinkMappingCreateParams) WithDefaults() *CifsSymlinkMappingCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cifs symlink mapping create params (not the query body). // // All values with no default are reset to their zero value. func (o *CifsSymlinkMappingCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := CifsSymlinkMappingCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) WithTimeout(timeout time.Duration) *CifsSymlinkMappingCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) WithContext(ctx context.Context) *CifsSymlinkMappingCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) WithHTTPClient(client *http.Client) *CifsSymlinkMappingCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) WithInfo(info *models.CifsSymlinkMapping) *CifsSymlinkMappingCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) SetInfo(info *models.CifsSymlinkMapping) { o.Info = info } // WithReturnRecords adds the returnRecords to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) WithReturnRecords(returnRecords *bool) *CifsSymlinkMappingCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the cifs symlink mapping create params func (o *CifsSymlinkMappingCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *CifsSymlinkMappingCreateParams) 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/application/application_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationCreateParams creates a new ApplicationCreateParams 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 NewApplicationCreateParams() *ApplicationCreateParams { return &ApplicationCreateParams{ timeout: cr.DefaultTimeout, } } // NewApplicationCreateParamsWithTimeout creates a new ApplicationCreateParams object // with the ability to set a timeout on a request. func NewApplicationCreateParamsWithTimeout(timeout time.Duration) *ApplicationCreateParams { return &ApplicationCreateParams{ timeout: timeout, } } // NewApplicationCreateParamsWithContext creates a new ApplicationCreateParams object // with the ability to set a context for a request. func NewApplicationCreateParamsWithContext(ctx context.Context) *ApplicationCreateParams { return &ApplicationCreateParams{ Context: ctx, } } // NewApplicationCreateParamsWithHTTPClient creates a new ApplicationCreateParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationCreateParamsWithHTTPClient(client *http.Client) *ApplicationCreateParams { return &ApplicationCreateParams{ HTTPClient: client, } } /* ApplicationCreateParams contains all the parameters to send to the API endpoint for the application create operation. Typically these are written to a http.Request. */ type ApplicationCreateParams struct { /* Info. Info specification */ Info *models.Application /* 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 application create params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationCreateParams) WithDefaults() *ApplicationCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application create params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ApplicationCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application create params func (o *ApplicationCreateParams) WithTimeout(timeout time.Duration) *ApplicationCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application create params func (o *ApplicationCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application create params func (o *ApplicationCreateParams) WithContext(ctx context.Context) *ApplicationCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the application create params func (o *ApplicationCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application create params func (o *ApplicationCreateParams) WithHTTPClient(client *http.Client) *ApplicationCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application create params func (o *ApplicationCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the application create params func (o *ApplicationCreateParams) WithInfo(info *models.Application) *ApplicationCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the application create params func (o *ApplicationCreateParams) SetInfo(info *models.Application) { o.Info = info } // WithReturnRecords adds the returnRecords to the application create params func (o *ApplicationCreateParams) WithReturnRecords(returnRecords *bool) *ApplicationCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application create params func (o *ApplicationCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application create params func (o *ApplicationCreateParams) WithReturnTimeout(returnTimeout *int64) *ApplicationCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application create params func (o *ApplicationCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ApplicationCreateParams) 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/application/application_component_snapshot_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationComponentSnapshotGetReader is a Reader for the ApplicationComponentSnapshotGet structure. type ApplicationComponentSnapshotGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationComponentSnapshotGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationComponentSnapshotGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationComponentSnapshotGetDefault(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 } } // NewApplicationComponentSnapshotGetOK creates a ApplicationComponentSnapshotGetOK with default headers values func NewApplicationComponentSnapshotGetOK() *ApplicationComponentSnapshotGetOK { return &ApplicationComponentSnapshotGetOK{} } /* ApplicationComponentSnapshotGetOK describes a response with status code 200, with default header values. OK */ type ApplicationComponentSnapshotGetOK struct { Payload *models.ApplicationComponentSnapshot } // IsSuccess returns true when this application component snapshot get o k response has a 2xx status code func (o *ApplicationComponentSnapshotGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application component snapshot get o k response has a 3xx status code func (o *ApplicationComponentSnapshotGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application component snapshot get o k response has a 4xx status code func (o *ApplicationComponentSnapshotGetOK) IsClientError() bool { return false } // IsServerError returns true when this application component snapshot get o k response has a 5xx status code func (o *ApplicationComponentSnapshotGetOK) IsServerError() bool { return false } // IsCode returns true when this application component snapshot get o k response a status code equal to that given func (o *ApplicationComponentSnapshotGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationComponentSnapshotGetOK) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] applicationComponentSnapshotGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentSnapshotGetOK) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] applicationComponentSnapshotGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentSnapshotGetOK) GetPayload() *models.ApplicationComponentSnapshot { return o.Payload } func (o *ApplicationComponentSnapshotGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationComponentSnapshot) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationComponentSnapshotGetDefault creates a ApplicationComponentSnapshotGetDefault with default headers values func NewApplicationComponentSnapshotGetDefault(code int) *ApplicationComponentSnapshotGetDefault { return &ApplicationComponentSnapshotGetDefault{ _statusCode: code, } } /* ApplicationComponentSnapshotGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationComponentSnapshotGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application component snapshot get default response func (o *ApplicationComponentSnapshotGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application component snapshot get default response has a 2xx status code func (o *ApplicationComponentSnapshotGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application component snapshot get default response has a 3xx status code func (o *ApplicationComponentSnapshotGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application component snapshot get default response has a 4xx status code func (o *ApplicationComponentSnapshotGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application component snapshot get default response has a 5xx status code func (o *ApplicationComponentSnapshotGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application component snapshot get default response a status code equal to that given func (o *ApplicationComponentSnapshotGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationComponentSnapshotGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] application_component_snapshot_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotGetDefault) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] application_component_snapshot_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationComponentSnapshotGetDefault) 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/application/consistency_group_snapshot_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupSnapshotDeleteParams creates a new ConsistencyGroupSnapshotDeleteParams 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 NewConsistencyGroupSnapshotDeleteParams() *ConsistencyGroupSnapshotDeleteParams { return &ConsistencyGroupSnapshotDeleteParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupSnapshotDeleteParamsWithTimeout creates a new ConsistencyGroupSnapshotDeleteParams object // with the ability to set a timeout on a request. func NewConsistencyGroupSnapshotDeleteParamsWithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotDeleteParams { return &ConsistencyGroupSnapshotDeleteParams{ timeout: timeout, } } // NewConsistencyGroupSnapshotDeleteParamsWithContext creates a new ConsistencyGroupSnapshotDeleteParams object // with the ability to set a context for a request. func NewConsistencyGroupSnapshotDeleteParamsWithContext(ctx context.Context) *ConsistencyGroupSnapshotDeleteParams { return &ConsistencyGroupSnapshotDeleteParams{ Context: ctx, } } // NewConsistencyGroupSnapshotDeleteParamsWithHTTPClient creates a new ConsistencyGroupSnapshotDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupSnapshotDeleteParamsWithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotDeleteParams { return &ConsistencyGroupSnapshotDeleteParams{ HTTPClient: client, } } /* ConsistencyGroupSnapshotDeleteParams contains all the parameters to send to the API endpoint for the consistency group snapshot delete operation. Typically these are written to a http.Request. */ type ConsistencyGroupSnapshotDeleteParams struct { /* ConsistencyGroupUUID. The unique identifier of the Snapshot copy of the consistency group to delete. */ ConsistencyGroupUUID 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 /* UUID. Snapshot copy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the consistency group snapshot delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotDeleteParams) WithDefaults() *ConsistencyGroupSnapshotDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group snapshot delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotDeleteParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ConsistencyGroupSnapshotDeleteParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) WithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) WithContext(ctx context.Context) *ConsistencyGroupSnapshotDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) WithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithConsistencyGroupUUID adds the consistencyGroupUUID to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) WithConsistencyGroupUUID(consistencyGroupUUID string) *ConsistencyGroupSnapshotDeleteParams { o.SetConsistencyGroupUUID(consistencyGroupUUID) return o } // SetConsistencyGroupUUID adds the consistencyGroupUuid to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) SetConsistencyGroupUUID(consistencyGroupUUID string) { o.ConsistencyGroupUUID = consistencyGroupUUID } // WithReturnTimeout adds the returnTimeout to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupSnapshotDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) WithUUID(uuid string) *ConsistencyGroupSnapshotDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the consistency group snapshot delete params func (o *ConsistencyGroupSnapshotDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupSnapshotDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param consistency_group.uuid if err := r.SetPathParam("consistency_group.uuid", o.ConsistencyGroupUUID); 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); 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/application/application_snapshot_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationSnapshotCollectionGetReader is a Reader for the ApplicationSnapshotCollectionGet structure. type ApplicationSnapshotCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationSnapshotCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationSnapshotCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationSnapshotCollectionGetDefault(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 } } // NewApplicationSnapshotCollectionGetOK creates a ApplicationSnapshotCollectionGetOK with default headers values func NewApplicationSnapshotCollectionGetOK() *ApplicationSnapshotCollectionGetOK { return &ApplicationSnapshotCollectionGetOK{} } /* ApplicationSnapshotCollectionGetOK describes a response with status code 200, with default header values. OK */ type ApplicationSnapshotCollectionGetOK struct { Payload *models.ApplicationSnapshotResponse } // IsSuccess returns true when this application snapshot collection get o k response has a 2xx status code func (o *ApplicationSnapshotCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application snapshot collection get o k response has a 3xx status code func (o *ApplicationSnapshotCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application snapshot collection get o k response has a 4xx status code func (o *ApplicationSnapshotCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this application snapshot collection get o k response has a 5xx status code func (o *ApplicationSnapshotCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this application snapshot collection get o k response a status code equal to that given func (o *ApplicationSnapshotCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationSnapshotCollectionGetOK) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots][%d] applicationSnapshotCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationSnapshotCollectionGetOK) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots][%d] applicationSnapshotCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationSnapshotCollectionGetOK) GetPayload() *models.ApplicationSnapshotResponse { return o.Payload } func (o *ApplicationSnapshotCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationSnapshotResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationSnapshotCollectionGetDefault creates a ApplicationSnapshotCollectionGetDefault with default headers values func NewApplicationSnapshotCollectionGetDefault(code int) *ApplicationSnapshotCollectionGetDefault { return &ApplicationSnapshotCollectionGetDefault{ _statusCode: code, } } /* ApplicationSnapshotCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationSnapshotCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application snapshot collection get default response func (o *ApplicationSnapshotCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application snapshot collection get default response has a 2xx status code func (o *ApplicationSnapshotCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application snapshot collection get default response has a 3xx status code func (o *ApplicationSnapshotCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application snapshot collection get default response has a 4xx status code func (o *ApplicationSnapshotCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application snapshot collection get default response has a 5xx status code func (o *ApplicationSnapshotCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application snapshot collection get default response a status code equal to that given func (o *ApplicationSnapshotCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationSnapshotCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots][%d] application_snapshot_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotCollectionGetDefault) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots][%d] application_snapshot_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationSnapshotCollectionGetDefault) 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/application/application_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationCollectionGetReader is a Reader for the ApplicationCollectionGet structure. type ApplicationCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationCollectionGetDefault(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 } } // NewApplicationCollectionGetOK creates a ApplicationCollectionGetOK with default headers values func NewApplicationCollectionGetOK() *ApplicationCollectionGetOK { return &ApplicationCollectionGetOK{} } /* ApplicationCollectionGetOK describes a response with status code 200, with default header values. OK */ type ApplicationCollectionGetOK struct { Payload *models.ApplicationResponse } // IsSuccess returns true when this application collection get o k response has a 2xx status code func (o *ApplicationCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application collection get o k response has a 3xx status code func (o *ApplicationCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application collection get o k response has a 4xx status code func (o *ApplicationCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this application collection get o k response has a 5xx status code func (o *ApplicationCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this application collection get o k response a status code equal to that given func (o *ApplicationCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationCollectionGetOK) Error() string { return fmt.Sprintf("[GET /application/applications][%d] applicationCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationCollectionGetOK) String() string { return fmt.Sprintf("[GET /application/applications][%d] applicationCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationCollectionGetOK) GetPayload() *models.ApplicationResponse { return o.Payload } func (o *ApplicationCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationCollectionGetDefault creates a ApplicationCollectionGetDefault with default headers values func NewApplicationCollectionGetDefault(code int) *ApplicationCollectionGetDefault { return &ApplicationCollectionGetDefault{ _statusCode: code, } } /* ApplicationCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application collection get default response func (o *ApplicationCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application collection get default response has a 2xx status code func (o *ApplicationCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application collection get default response has a 3xx status code func (o *ApplicationCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application collection get default response has a 4xx status code func (o *ApplicationCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application collection get default response has a 5xx status code func (o *ApplicationCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application collection get default response a status code equal to that given func (o *ApplicationCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications][%d] application_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationCollectionGetDefault) String() string { return fmt.Sprintf("[GET /application/applications][%d] application_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationCollectionGetDefault) 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/application/consistency_group_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupGetParams creates a new ConsistencyGroupGetParams 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 NewConsistencyGroupGetParams() *ConsistencyGroupGetParams { return &ConsistencyGroupGetParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupGetParamsWithTimeout creates a new ConsistencyGroupGetParams object // with the ability to set a timeout on a request. func NewConsistencyGroupGetParamsWithTimeout(timeout time.Duration) *ConsistencyGroupGetParams { return &ConsistencyGroupGetParams{ timeout: timeout, } } // NewConsistencyGroupGetParamsWithContext creates a new ConsistencyGroupGetParams object // with the ability to set a context for a request. func NewConsistencyGroupGetParamsWithContext(ctx context.Context) *ConsistencyGroupGetParams { return &ConsistencyGroupGetParams{ Context: ctx, } } // NewConsistencyGroupGetParamsWithHTTPClient creates a new ConsistencyGroupGetParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupGetParamsWithHTTPClient(client *http.Client) *ConsistencyGroupGetParams { return &ConsistencyGroupGetParams{ HTTPClient: client, } } /* ConsistencyGroupGetParams contains all the parameters to send to the API endpoint for the consistency group get operation. Typically these are written to a http.Request. */ type ConsistencyGroupGetParams struct { /* ApplicationComponentType. Filter by application.component_type */ ApplicationComponentType *string /* ApplicationType. Filter by application.type */ ApplicationType *string /* CloneGuaranteeType. Filter by clone.guarantee.type */ CloneGuaranteeType *string /* CloneParentConsistencyGroupName. Filter by clone.parent_consistency_group.name */ CloneParentConsistencyGroupName *string /* CloneParentConsistencyGroupUUID. Filter by clone.parent_consistency_group.uuid */ CloneParentConsistencyGroupUUID *string /* CloneParentSnapshotName. Filter by clone.parent_snapshot.name */ CloneParentSnapshotName *string /* CloneSplitInitiated. Filter by clone.split_initiated */ CloneSplitInitiated *bool /* CloneVolumePrefix. Filter by clone.volume.prefix */ CloneVolumePrefix *string /* CloneVolumeSuffix. Filter by clone.volume.suffix */ CloneVolumeSuffix *string /* ConsistencyGroupsApplicationComponentType. Filter by consistency_groups.application.component_type */ ConsistencyGroupsApplicationComponentType *string /* ConsistencyGroupsApplicationType. Filter by consistency_groups.application.type */ ConsistencyGroupsApplicationType *string /* ConsistencyGroupsLunsComment. Filter by consistency_groups.luns.comment */ ConsistencyGroupsLunsComment *string /* ConsistencyGroupsLunsCreateTime. Filter by consistency_groups.luns.create_time */ ConsistencyGroupsLunsCreateTime *string /* ConsistencyGroupsLunsEnabled. Filter by consistency_groups.luns.enabled */ ConsistencyGroupsLunsEnabled *bool /* ConsistencyGroupsLunsLunMapsIgroupComment. Filter by consistency_groups.luns.lun_maps.igroup.comment */ ConsistencyGroupsLunsLunMapsIgroupComment *string /* ConsistencyGroupsLunsLunMapsIgroupIgroupsName. Filter by consistency_groups.luns.lun_maps.igroup.igroups.name */ ConsistencyGroupsLunsLunMapsIgroupIgroupsName *string /* ConsistencyGroupsLunsLunMapsIgroupIgroupsUUID. Filter by consistency_groups.luns.lun_maps.igroup.igroups.uuid */ ConsistencyGroupsLunsLunMapsIgroupIgroupsUUID *string /* ConsistencyGroupsLunsLunMapsIgroupInitiatorsComment. Filter by consistency_groups.luns.lun_maps.igroup.initiators.comment */ ConsistencyGroupsLunsLunMapsIgroupInitiatorsComment *string /* ConsistencyGroupsLunsLunMapsIgroupInitiatorsName. Filter by consistency_groups.luns.lun_maps.igroup.initiators.name */ ConsistencyGroupsLunsLunMapsIgroupInitiatorsName *string /* ConsistencyGroupsLunsLunMapsIgroupName. Filter by consistency_groups.luns.lun_maps.igroup.name */ ConsistencyGroupsLunsLunMapsIgroupName *string /* ConsistencyGroupsLunsLunMapsIgroupOsType. Filter by consistency_groups.luns.lun_maps.igroup.os_type */ ConsistencyGroupsLunsLunMapsIgroupOsType *string /* ConsistencyGroupsLunsLunMapsIgroupProtocol. Filter by consistency_groups.luns.lun_maps.igroup.protocol */ ConsistencyGroupsLunsLunMapsIgroupProtocol *string /* ConsistencyGroupsLunsLunMapsIgroupUUID. Filter by consistency_groups.luns.lun_maps.igroup.uuid */ ConsistencyGroupsLunsLunMapsIgroupUUID *string /* ConsistencyGroupsLunsLunMapsLogicalUnitNumber. Filter by consistency_groups.luns.lun_maps.logical_unit_number */ ConsistencyGroupsLunsLunMapsLogicalUnitNumber *int64 /* ConsistencyGroupsLunsName. Filter by consistency_groups.luns.name */ ConsistencyGroupsLunsName *string /* ConsistencyGroupsLunsOsType. Filter by consistency_groups.luns.os_type */ ConsistencyGroupsLunsOsType *string /* ConsistencyGroupsLunsQosPolicyMaxThroughputIops. Filter by consistency_groups.luns.qos.policy.max_throughput_iops */ ConsistencyGroupsLunsQosPolicyMaxThroughputIops *int64 /* ConsistencyGroupsLunsQosPolicyMaxThroughputMbps. Filter by consistency_groups.luns.qos.policy.max_throughput_mbps */ ConsistencyGroupsLunsQosPolicyMaxThroughputMbps *int64 /* ConsistencyGroupsLunsQosPolicyMinThroughputIops. Filter by consistency_groups.luns.qos.policy.min_throughput_iops */ ConsistencyGroupsLunsQosPolicyMinThroughputIops *int64 /* ConsistencyGroupsLunsQosPolicyMinThroughputMbps. Filter by consistency_groups.luns.qos.policy.min_throughput_mbps */ ConsistencyGroupsLunsQosPolicyMinThroughputMbps *int64 /* ConsistencyGroupsLunsQosPolicyName. Filter by consistency_groups.luns.qos.policy.name */ ConsistencyGroupsLunsQosPolicyName *string /* ConsistencyGroupsLunsQosPolicyUUID. Filter by consistency_groups.luns.qos.policy.uuid */ ConsistencyGroupsLunsQosPolicyUUID *string /* ConsistencyGroupsLunsSerialNumber. Filter by consistency_groups.luns.serial_number */ ConsistencyGroupsLunsSerialNumber *string /* ConsistencyGroupsLunsSpaceGuaranteeRequested. Filter by consistency_groups.luns.space.guarantee.requested */ ConsistencyGroupsLunsSpaceGuaranteeRequested *bool /* ConsistencyGroupsLunsSpaceGuaranteeReserved. Filter by consistency_groups.luns.space.guarantee.reserved */ ConsistencyGroupsLunsSpaceGuaranteeReserved *bool /* ConsistencyGroupsLunsSpaceSize. Filter by consistency_groups.luns.space.size */ ConsistencyGroupsLunsSpaceSize *int64 /* ConsistencyGroupsLunsSpaceUsed. Filter by consistency_groups.luns.space.used */ ConsistencyGroupsLunsSpaceUsed *int64 /* ConsistencyGroupsLunsUUID. Filter by consistency_groups.luns.uuid */ ConsistencyGroupsLunsUUID *string /* ConsistencyGroupsName. Filter by consistency_groups.name */ ConsistencyGroupsName *string /* ConsistencyGroupsNamespacesAutoDelete. Filter by consistency_groups.namespaces.auto_delete */ ConsistencyGroupsNamespacesAutoDelete *bool /* ConsistencyGroupsNamespacesComment. Filter by consistency_groups.namespaces.comment */ ConsistencyGroupsNamespacesComment *string /* ConsistencyGroupsNamespacesCreateTime. Filter by consistency_groups.namespaces.create_time */ ConsistencyGroupsNamespacesCreateTime *string /* ConsistencyGroupsNamespacesEnabled. Filter by consistency_groups.namespaces.enabled */ ConsistencyGroupsNamespacesEnabled *bool /* ConsistencyGroupsNamespacesName. Filter by consistency_groups.namespaces.name */ ConsistencyGroupsNamespacesName *string /* ConsistencyGroupsNamespacesOsType. Filter by consistency_groups.namespaces.os_type */ ConsistencyGroupsNamespacesOsType *string /* ConsistencyGroupsNamespacesSpaceBlockSize. Filter by consistency_groups.namespaces.space.block_size */ ConsistencyGroupsNamespacesSpaceBlockSize *int64 /* ConsistencyGroupsNamespacesSpaceGuaranteeRequested. Filter by consistency_groups.namespaces.space.guarantee.requested */ ConsistencyGroupsNamespacesSpaceGuaranteeRequested *bool /* ConsistencyGroupsNamespacesSpaceGuaranteeReserved. Filter by consistency_groups.namespaces.space.guarantee.reserved */ ConsistencyGroupsNamespacesSpaceGuaranteeReserved *bool /* ConsistencyGroupsNamespacesSpaceSize. Filter by consistency_groups.namespaces.space.size */ ConsistencyGroupsNamespacesSpaceSize *int64 /* ConsistencyGroupsNamespacesSpaceUsed. Filter by consistency_groups.namespaces.space.used */ ConsistencyGroupsNamespacesSpaceUsed *int64 /* ConsistencyGroupsNamespacesStatusContainerState. Filter by consistency_groups.namespaces.status.container_state */ ConsistencyGroupsNamespacesStatusContainerState *string /* ConsistencyGroupsNamespacesStatusMapped. Filter by consistency_groups.namespaces.status.mapped */ ConsistencyGroupsNamespacesStatusMapped *bool /* ConsistencyGroupsNamespacesStatusReadOnly. Filter by consistency_groups.namespaces.status.read_only */ ConsistencyGroupsNamespacesStatusReadOnly *bool /* ConsistencyGroupsNamespacesStatusState. Filter by consistency_groups.namespaces.status.state */ ConsistencyGroupsNamespacesStatusState *string /* ConsistencyGroupsNamespacesSubsystemMapAnagrpid. Filter by consistency_groups.namespaces.subsystem_map.anagrpid */ ConsistencyGroupsNamespacesSubsystemMapAnagrpid *string /* ConsistencyGroupsNamespacesSubsystemMapNsid. Filter by consistency_groups.namespaces.subsystem_map.nsid */ ConsistencyGroupsNamespacesSubsystemMapNsid *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemComment. Filter by consistency_groups.namespaces.subsystem_map.subsystem.comment */ ConsistencyGroupsNamespacesSubsystemMapSubsystemComment *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemHostsNqn. Filter by consistency_groups.namespaces.subsystem_map.subsystem.hosts.nqn */ ConsistencyGroupsNamespacesSubsystemMapSubsystemHostsNqn *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemName. Filter by consistency_groups.namespaces.subsystem_map.subsystem.name */ ConsistencyGroupsNamespacesSubsystemMapSubsystemName *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemOsType. Filter by consistency_groups.namespaces.subsystem_map.subsystem.os_type */ ConsistencyGroupsNamespacesSubsystemMapSubsystemOsType *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemUUID. Filter by consistency_groups.namespaces.subsystem_map.subsystem.uuid */ ConsistencyGroupsNamespacesSubsystemMapSubsystemUUID *string /* ConsistencyGroupsNamespacesUUID. Filter by consistency_groups.namespaces.uuid */ ConsistencyGroupsNamespacesUUID *string /* ConsistencyGroupsParentConsistencyGroupName. Filter by consistency_groups.parent_consistency_group.name */ ConsistencyGroupsParentConsistencyGroupName *string /* ConsistencyGroupsParentConsistencyGroupUUID. Filter by consistency_groups.parent_consistency_group.uuid */ ConsistencyGroupsParentConsistencyGroupUUID *string /* ConsistencyGroupsQosPolicyMaxThroughputIops. Filter by consistency_groups.qos.policy.max_throughput_iops */ ConsistencyGroupsQosPolicyMaxThroughputIops *int64 /* ConsistencyGroupsQosPolicyMaxThroughputMbps. Filter by consistency_groups.qos.policy.max_throughput_mbps */ ConsistencyGroupsQosPolicyMaxThroughputMbps *int64 /* ConsistencyGroupsQosPolicyMinThroughputIops. Filter by consistency_groups.qos.policy.min_throughput_iops */ ConsistencyGroupsQosPolicyMinThroughputIops *int64 /* ConsistencyGroupsQosPolicyMinThroughputMbps. Filter by consistency_groups.qos.policy.min_throughput_mbps */ ConsistencyGroupsQosPolicyMinThroughputMbps *int64 /* ConsistencyGroupsQosPolicyName. Filter by consistency_groups.qos.policy.name */ ConsistencyGroupsQosPolicyName *string /* ConsistencyGroupsQosPolicyUUID. Filter by consistency_groups.qos.policy.uuid */ ConsistencyGroupsQosPolicyUUID *string /* ConsistencyGroupsSnapshotPolicyName. Filter by consistency_groups.snapshot_policy.name */ ConsistencyGroupsSnapshotPolicyName *string /* ConsistencyGroupsSnapshotPolicyUUID. Filter by consistency_groups.snapshot_policy.uuid */ ConsistencyGroupsSnapshotPolicyUUID *string /* ConsistencyGroupsSpaceAvailable. Filter by consistency_groups.space.available */ ConsistencyGroupsSpaceAvailable *int64 /* ConsistencyGroupsSpaceSize. Filter by consistency_groups.space.size */ ConsistencyGroupsSpaceSize *int64 /* ConsistencyGroupsSpaceUsed. Filter by consistency_groups.space.used */ ConsistencyGroupsSpaceUsed *int64 /* ConsistencyGroupsSvmName. Filter by consistency_groups.svm.name */ ConsistencyGroupsSvmName *string /* ConsistencyGroupsSvmUUID. Filter by consistency_groups.svm.uuid */ ConsistencyGroupsSvmUUID *string /* ConsistencyGroupsTieringPolicy. Filter by consistency_groups.tiering.policy */ ConsistencyGroupsTieringPolicy *string /* ConsistencyGroupsUUID. Filter by consistency_groups.uuid */ ConsistencyGroupsUUID *string /* ConsistencyGroupsVolumesComment. Filter by consistency_groups.volumes.comment */ ConsistencyGroupsVolumesComment *string /* ConsistencyGroupsVolumesLanguage. Filter by consistency_groups.volumes.language */ ConsistencyGroupsVolumesLanguage *string /* ConsistencyGroupsVolumesName. Filter by consistency_groups.volumes.name */ ConsistencyGroupsVolumesName *string /* ConsistencyGroupsVolumesNasCifsSharesAccessBasedEnumeration. Filter by consistency_groups.volumes.nas.cifs.shares.access_based_enumeration */ ConsistencyGroupsVolumesNasCifsSharesAccessBasedEnumeration *bool /* ConsistencyGroupsVolumesNasCifsSharesAclsPermission. Filter by consistency_groups.volumes.nas.cifs.shares.acls.permission */ ConsistencyGroupsVolumesNasCifsSharesAclsPermission *string /* ConsistencyGroupsVolumesNasCifsSharesAclsType. Filter by consistency_groups.volumes.nas.cifs.shares.acls.type */ ConsistencyGroupsVolumesNasCifsSharesAclsType *string /* ConsistencyGroupsVolumesNasCifsSharesAclsUserOrGroup. Filter by consistency_groups.volumes.nas.cifs.shares.acls.user_or_group */ ConsistencyGroupsVolumesNasCifsSharesAclsUserOrGroup *string /* ConsistencyGroupsVolumesNasCifsSharesAllowUnencryptedAccess. Filter by consistency_groups.volumes.nas.cifs.shares.allow_unencrypted_access */ ConsistencyGroupsVolumesNasCifsSharesAllowUnencryptedAccess *bool /* ConsistencyGroupsVolumesNasCifsSharesChangeNotify. Filter by consistency_groups.volumes.nas.cifs.shares.change_notify */ ConsistencyGroupsVolumesNasCifsSharesChangeNotify *bool /* ConsistencyGroupsVolumesNasCifsSharesComment. Filter by consistency_groups.volumes.nas.cifs.shares.comment */ ConsistencyGroupsVolumesNasCifsSharesComment *string /* ConsistencyGroupsVolumesNasCifsSharesContinuouslyAvailable. Filter by consistency_groups.volumes.nas.cifs.shares.continuously_available */ ConsistencyGroupsVolumesNasCifsSharesContinuouslyAvailable *bool /* ConsistencyGroupsVolumesNasCifsSharesDirUmask. Filter by consistency_groups.volumes.nas.cifs.shares.dir_umask */ ConsistencyGroupsVolumesNasCifsSharesDirUmask *int64 /* ConsistencyGroupsVolumesNasCifsSharesEncryption. Filter by consistency_groups.volumes.nas.cifs.shares.encryption */ ConsistencyGroupsVolumesNasCifsSharesEncryption *bool /* ConsistencyGroupsVolumesNasCifsSharesFileUmask. Filter by consistency_groups.volumes.nas.cifs.shares.file_umask */ ConsistencyGroupsVolumesNasCifsSharesFileUmask *int64 /* ConsistencyGroupsVolumesNasCifsSharesHomeDirectory. Filter by consistency_groups.volumes.nas.cifs.shares.home_directory */ ConsistencyGroupsVolumesNasCifsSharesHomeDirectory *bool /* ConsistencyGroupsVolumesNasCifsSharesName. Filter by consistency_groups.volumes.nas.cifs.shares.name */ ConsistencyGroupsVolumesNasCifsSharesName *string /* ConsistencyGroupsVolumesNasCifsSharesNamespaceCaching. Filter by consistency_groups.volumes.nas.cifs.shares.namespace_caching */ ConsistencyGroupsVolumesNasCifsSharesNamespaceCaching *bool /* ConsistencyGroupsVolumesNasCifsSharesNoStrictSecurity. Filter by consistency_groups.volumes.nas.cifs.shares.no_strict_security */ ConsistencyGroupsVolumesNasCifsSharesNoStrictSecurity *bool /* ConsistencyGroupsVolumesNasCifsSharesOfflineFiles. Filter by consistency_groups.volumes.nas.cifs.shares.offline_files */ ConsistencyGroupsVolumesNasCifsSharesOfflineFiles *string /* ConsistencyGroupsVolumesNasCifsSharesOplocks. Filter by consistency_groups.volumes.nas.cifs.shares.oplocks */ ConsistencyGroupsVolumesNasCifsSharesOplocks *bool /* ConsistencyGroupsVolumesNasCifsSharesShowSnapshot. Filter by consistency_groups.volumes.nas.cifs.shares.show_snapshot */ ConsistencyGroupsVolumesNasCifsSharesShowSnapshot *bool /* ConsistencyGroupsVolumesNasCifsSharesUnixSymlink. Filter by consistency_groups.volumes.nas.cifs.shares.unix_symlink */ ConsistencyGroupsVolumesNasCifsSharesUnixSymlink *string /* ConsistencyGroupsVolumesNasCifsSharesVscanProfile. Filter by consistency_groups.volumes.nas.cifs.shares.vscan_profile */ ConsistencyGroupsVolumesNasCifsSharesVscanProfile *string /* ConsistencyGroupsVolumesNasExportPolicyName. Filter by consistency_groups.volumes.nas.export_policy.name */ ConsistencyGroupsVolumesNasExportPolicyName *string /* ConsistencyGroupsVolumesNasExportPolicyRulesAllowDeviceCreation. Filter by consistency_groups.volumes.nas.export_policy.rules.allow_device_creation */ ConsistencyGroupsVolumesNasExportPolicyRulesAllowDeviceCreation *bool /* ConsistencyGroupsVolumesNasExportPolicyRulesAllowSuid. Filter by consistency_groups.volumes.nas.export_policy.rules.allow_suid */ ConsistencyGroupsVolumesNasExportPolicyRulesAllowSuid *bool /* ConsistencyGroupsVolumesNasExportPolicyRulesAnonymousUser. Filter by consistency_groups.volumes.nas.export_policy.rules.anonymous_user */ ConsistencyGroupsVolumesNasExportPolicyRulesAnonymousUser *string /* ConsistencyGroupsVolumesNasExportPolicyRulesChownMode. Filter by consistency_groups.volumes.nas.export_policy.rules.chown_mode */ ConsistencyGroupsVolumesNasExportPolicyRulesChownMode *string /* ConsistencyGroupsVolumesNasExportPolicyRulesClientsMatch. Filter by consistency_groups.volumes.nas.export_policy.rules.clients.match */ ConsistencyGroupsVolumesNasExportPolicyRulesClientsMatch *string /* ConsistencyGroupsVolumesNasExportPolicyRulesIndex. Filter by consistency_groups.volumes.nas.export_policy.rules.index */ ConsistencyGroupsVolumesNasExportPolicyRulesIndex *int64 /* ConsistencyGroupsVolumesNasExportPolicyRulesNtfsUnixSecurity. Filter by consistency_groups.volumes.nas.export_policy.rules.ntfs_unix_security */ ConsistencyGroupsVolumesNasExportPolicyRulesNtfsUnixSecurity *string /* ConsistencyGroupsVolumesNasExportPolicyRulesProtocols. Filter by consistency_groups.volumes.nas.export_policy.rules.protocols */ ConsistencyGroupsVolumesNasExportPolicyRulesProtocols *string /* ConsistencyGroupsVolumesNasExportPolicyRulesRoRule. Filter by consistency_groups.volumes.nas.export_policy.rules.ro_rule */ ConsistencyGroupsVolumesNasExportPolicyRulesRoRule *string /* ConsistencyGroupsVolumesNasExportPolicyRulesRwRule. Filter by consistency_groups.volumes.nas.export_policy.rules.rw_rule */ ConsistencyGroupsVolumesNasExportPolicyRulesRwRule *string /* ConsistencyGroupsVolumesNasExportPolicyRulesSuperuser. Filter by consistency_groups.volumes.nas.export_policy.rules.superuser */ ConsistencyGroupsVolumesNasExportPolicyRulesSuperuser *string /* ConsistencyGroupsVolumesNasExportPolicyUUID. Filter by consistency_groups.volumes.nas.export_policy.uuid */ ConsistencyGroupsVolumesNasExportPolicyUUID *string /* ConsistencyGroupsVolumesNasGid. Filter by consistency_groups.volumes.nas.gid */ ConsistencyGroupsVolumesNasGid *int64 /* ConsistencyGroupsVolumesNasJunctionParentName. Filter by consistency_groups.volumes.nas.junction_parent.name */ ConsistencyGroupsVolumesNasJunctionParentName *string /* ConsistencyGroupsVolumesNasJunctionParentUUID. Filter by consistency_groups.volumes.nas.junction_parent.uuid */ ConsistencyGroupsVolumesNasJunctionParentUUID *string /* ConsistencyGroupsVolumesNasPath. Filter by consistency_groups.volumes.nas.path */ ConsistencyGroupsVolumesNasPath *string /* ConsistencyGroupsVolumesNasSecurityStyle. Filter by consistency_groups.volumes.nas.security_style */ ConsistencyGroupsVolumesNasSecurityStyle *string /* ConsistencyGroupsVolumesNasUID. Filter by consistency_groups.volumes.nas.uid */ ConsistencyGroupsVolumesNasUID *int64 /* ConsistencyGroupsVolumesNasUnixPermissions. Filter by consistency_groups.volumes.nas.unix_permissions */ ConsistencyGroupsVolumesNasUnixPermissions *int64 /* ConsistencyGroupsVolumesQosPolicyMaxThroughputIops. Filter by consistency_groups.volumes.qos.policy.max_throughput_iops */ ConsistencyGroupsVolumesQosPolicyMaxThroughputIops *int64 /* ConsistencyGroupsVolumesQosPolicyMaxThroughputMbps. Filter by consistency_groups.volumes.qos.policy.max_throughput_mbps */ ConsistencyGroupsVolumesQosPolicyMaxThroughputMbps *int64 /* ConsistencyGroupsVolumesQosPolicyMinThroughputIops. Filter by consistency_groups.volumes.qos.policy.min_throughput_iops */ ConsistencyGroupsVolumesQosPolicyMinThroughputIops *int64 /* ConsistencyGroupsVolumesQosPolicyMinThroughputMbps. Filter by consistency_groups.volumes.qos.policy.min_throughput_mbps */ ConsistencyGroupsVolumesQosPolicyMinThroughputMbps *int64 /* ConsistencyGroupsVolumesQosPolicyName. Filter by consistency_groups.volumes.qos.policy.name */ ConsistencyGroupsVolumesQosPolicyName *string /* ConsistencyGroupsVolumesQosPolicyUUID. Filter by consistency_groups.volumes.qos.policy.uuid */ ConsistencyGroupsVolumesQosPolicyUUID *string /* ConsistencyGroupsVolumesSnapshotPolicyName. Filter by consistency_groups.volumes.snapshot_policy.name */ ConsistencyGroupsVolumesSnapshotPolicyName *string /* ConsistencyGroupsVolumesSnapshotPolicyUUID. Filter by consistency_groups.volumes.snapshot_policy.uuid */ ConsistencyGroupsVolumesSnapshotPolicyUUID *string /* ConsistencyGroupsVolumesSpaceAvailable. Filter by consistency_groups.volumes.space.available */ ConsistencyGroupsVolumesSpaceAvailable *int64 /* ConsistencyGroupsVolumesSpaceSize. Filter by consistency_groups.volumes.space.size */ ConsistencyGroupsVolumesSpaceSize *int64 /* ConsistencyGroupsVolumesSpaceUsed. Filter by consistency_groups.volumes.space.used */ ConsistencyGroupsVolumesSpaceUsed *int64 /* ConsistencyGroupsVolumesTieringPolicy. Filter by consistency_groups.volumes.tiering.policy */ ConsistencyGroupsVolumesTieringPolicy *string /* ConsistencyGroupsVolumesUUID. Filter by consistency_groups.volumes.uuid */ ConsistencyGroupsVolumesUUID *string /* Fields. Specify the fields to return. */ Fields []string /* LunsComment. Filter by luns.comment */ LunsComment *string /* LunsCreateTime. Filter by luns.create_time */ LunsCreateTime *string /* LunsEnabled. Filter by luns.enabled */ LunsEnabled *bool /* LunsLunMapsIgroupComment. Filter by luns.lun_maps.igroup.comment */ LunsLunMapsIgroupComment *string /* LunsLunMapsIgroupIgroupsName. Filter by luns.lun_maps.igroup.igroups.name */ LunsLunMapsIgroupIgroupsName *string /* LunsLunMapsIgroupIgroupsUUID. Filter by luns.lun_maps.igroup.igroups.uuid */ LunsLunMapsIgroupIgroupsUUID *string /* LunsLunMapsIgroupInitiatorsComment. Filter by luns.lun_maps.igroup.initiators.comment */ LunsLunMapsIgroupInitiatorsComment *string /* LunsLunMapsIgroupInitiatorsName. Filter by luns.lun_maps.igroup.initiators.name */ LunsLunMapsIgroupInitiatorsName *string /* LunsLunMapsIgroupName. Filter by luns.lun_maps.igroup.name */ LunsLunMapsIgroupName *string /* LunsLunMapsIgroupOsType. Filter by luns.lun_maps.igroup.os_type */ LunsLunMapsIgroupOsType *string /* LunsLunMapsIgroupProtocol. Filter by luns.lun_maps.igroup.protocol */ LunsLunMapsIgroupProtocol *string /* LunsLunMapsIgroupUUID. Filter by luns.lun_maps.igroup.uuid */ LunsLunMapsIgroupUUID *string /* LunsLunMapsLogicalUnitNumber. Filter by luns.lun_maps.logical_unit_number */ LunsLunMapsLogicalUnitNumber *int64 /* LunsName. Filter by luns.name */ LunsName *string /* LunsOsType. Filter by luns.os_type */ LunsOsType *string /* LunsQosPolicyMaxThroughputIops. Filter by luns.qos.policy.max_throughput_iops */ LunsQosPolicyMaxThroughputIops *int64 /* LunsQosPolicyMaxThroughputMbps. Filter by luns.qos.policy.max_throughput_mbps */ LunsQosPolicyMaxThroughputMbps *int64 /* LunsQosPolicyMinThroughputIops. Filter by luns.qos.policy.min_throughput_iops */ LunsQosPolicyMinThroughputIops *int64 /* LunsQosPolicyMinThroughputMbps. Filter by luns.qos.policy.min_throughput_mbps */ LunsQosPolicyMinThroughputMbps *int64 /* LunsQosPolicyName. Filter by luns.qos.policy.name */ LunsQosPolicyName *string /* LunsQosPolicyUUID. Filter by luns.qos.policy.uuid */ LunsQosPolicyUUID *string /* LunsSerialNumber. Filter by luns.serial_number */ LunsSerialNumber *string /* LunsSpaceGuaranteeRequested. Filter by luns.space.guarantee.requested */ LunsSpaceGuaranteeRequested *bool /* LunsSpaceGuaranteeReserved. Filter by luns.space.guarantee.reserved */ LunsSpaceGuaranteeReserved *bool /* LunsSpaceSize. Filter by luns.space.size */ LunsSpaceSize *int64 /* LunsSpaceUsed. Filter by luns.space.used */ LunsSpaceUsed *int64 /* LunsUUID. Filter by luns.uuid */ LunsUUID *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Name. Filter by name */ Name *string /* NamespacesAutoDelete. Filter by namespaces.auto_delete */ NamespacesAutoDelete *bool /* NamespacesComment. Filter by namespaces.comment */ NamespacesComment *string /* NamespacesCreateTime. Filter by namespaces.create_time */ NamespacesCreateTime *string /* NamespacesEnabled. Filter by namespaces.enabled */ NamespacesEnabled *bool /* NamespacesName. Filter by namespaces.name */ NamespacesName *string /* NamespacesOsType. Filter by namespaces.os_type */ NamespacesOsType *string /* NamespacesSpaceBlockSize. Filter by namespaces.space.block_size */ NamespacesSpaceBlockSize *int64 /* NamespacesSpaceGuaranteeRequested. Filter by namespaces.space.guarantee.requested */ NamespacesSpaceGuaranteeRequested *bool /* NamespacesSpaceGuaranteeReserved. Filter by namespaces.space.guarantee.reserved */ NamespacesSpaceGuaranteeReserved *bool /* NamespacesSpaceSize. Filter by namespaces.space.size */ NamespacesSpaceSize *int64 /* NamespacesSpaceUsed. Filter by namespaces.space.used */ NamespacesSpaceUsed *int64 /* NamespacesStatusContainerState. Filter by namespaces.status.container_state */ NamespacesStatusContainerState *string /* NamespacesStatusMapped. Filter by namespaces.status.mapped */ NamespacesStatusMapped *bool /* NamespacesStatusReadOnly. Filter by namespaces.status.read_only */ NamespacesStatusReadOnly *bool /* NamespacesStatusState. Filter by namespaces.status.state */ NamespacesStatusState *string /* NamespacesSubsystemMapAnagrpid. Filter by namespaces.subsystem_map.anagrpid */ NamespacesSubsystemMapAnagrpid *string /* NamespacesSubsystemMapNsid. Filter by namespaces.subsystem_map.nsid */ NamespacesSubsystemMapNsid *string /* NamespacesSubsystemMapSubsystemComment. Filter by namespaces.subsystem_map.subsystem.comment */ NamespacesSubsystemMapSubsystemComment *string /* NamespacesSubsystemMapSubsystemHostsNqn. Filter by namespaces.subsystem_map.subsystem.hosts.nqn */ NamespacesSubsystemMapSubsystemHostsNqn *string /* NamespacesSubsystemMapSubsystemName. Filter by namespaces.subsystem_map.subsystem.name */ NamespacesSubsystemMapSubsystemName *string /* NamespacesSubsystemMapSubsystemOsType. Filter by namespaces.subsystem_map.subsystem.os_type */ NamespacesSubsystemMapSubsystemOsType *string /* NamespacesSubsystemMapSubsystemUUID. Filter by namespaces.subsystem_map.subsystem.uuid */ NamespacesSubsystemMapSubsystemUUID *string /* NamespacesUUID. Filter by namespaces.uuid */ NamespacesUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ParentConsistencyGroupName. Filter by parent_consistency_group.name */ ParentConsistencyGroupName *string /* ParentConsistencyGroupUUID. Filter by parent_consistency_group.uuid */ ParentConsistencyGroupUUID *string /* QosPolicyMaxThroughputIops. Filter by qos.policy.max_throughput_iops */ QosPolicyMaxThroughputIops *int64 /* QosPolicyMaxThroughputMbps. Filter by qos.policy.max_throughput_mbps */ QosPolicyMaxThroughputMbps *int64 /* QosPolicyMinThroughputIops. Filter by qos.policy.min_throughput_iops */ QosPolicyMinThroughputIops *int64 /* QosPolicyMinThroughputMbps. Filter by qos.policy.min_throughput_mbps */ QosPolicyMinThroughputMbps *int64 /* QosPolicyName. Filter by qos.policy.name */ QosPolicyName *string /* QosPolicyUUID. Filter by qos.policy.uuid */ QosPolicyUUID *string /* Replicated. Filter by replicated */ Replicated *bool /* ReplicationSource. Filter by replication_source */ ReplicationSource *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 /* SnapshotPolicyName. Filter by snapshot_policy.name */ SnapshotPolicyName *string /* SnapshotPolicyUUID. Filter by snapshot_policy.uuid */ SnapshotPolicyUUID *string /* SpaceAvailable. Filter by space.available */ SpaceAvailable *int64 /* SpaceSize. Filter by space.size */ SpaceSize *int64 /* SpaceUsed. Filter by space.used */ SpaceUsed *int64 /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* TieringPolicy. Filter by tiering.policy */ TieringPolicy *string /* UUID. The unique identifier of the group to retrieve. */ UUID string /* VolumesComment. Filter by volumes.comment */ VolumesComment *string /* VolumesLanguage. Filter by volumes.language */ VolumesLanguage *string /* VolumesName. Filter by volumes.name */ VolumesName *string /* VolumesNasCifsSharesAccessBasedEnumeration. Filter by volumes.nas.cifs.shares.access_based_enumeration */ VolumesNasCifsSharesAccessBasedEnumeration *bool /* VolumesNasCifsSharesAclsPermission. Filter by volumes.nas.cifs.shares.acls.permission */ VolumesNasCifsSharesAclsPermission *string /* VolumesNasCifsSharesAclsType. Filter by volumes.nas.cifs.shares.acls.type */ VolumesNasCifsSharesAclsType *string /* VolumesNasCifsSharesAclsUserOrGroup. Filter by volumes.nas.cifs.shares.acls.user_or_group */ VolumesNasCifsSharesAclsUserOrGroup *string /* VolumesNasCifsSharesAllowUnencryptedAccess. Filter by volumes.nas.cifs.shares.allow_unencrypted_access */
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/application/application_component_snapshot_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationComponentSnapshotDeleteParams creates a new ApplicationComponentSnapshotDeleteParams 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 NewApplicationComponentSnapshotDeleteParams() *ApplicationComponentSnapshotDeleteParams { return &ApplicationComponentSnapshotDeleteParams{ timeout: cr.DefaultTimeout, } } // NewApplicationComponentSnapshotDeleteParamsWithTimeout creates a new ApplicationComponentSnapshotDeleteParams object // with the ability to set a timeout on a request. func NewApplicationComponentSnapshotDeleteParamsWithTimeout(timeout time.Duration) *ApplicationComponentSnapshotDeleteParams { return &ApplicationComponentSnapshotDeleteParams{ timeout: timeout, } } // NewApplicationComponentSnapshotDeleteParamsWithContext creates a new ApplicationComponentSnapshotDeleteParams object // with the ability to set a context for a request. func NewApplicationComponentSnapshotDeleteParamsWithContext(ctx context.Context) *ApplicationComponentSnapshotDeleteParams { return &ApplicationComponentSnapshotDeleteParams{ Context: ctx, } } // NewApplicationComponentSnapshotDeleteParamsWithHTTPClient creates a new ApplicationComponentSnapshotDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationComponentSnapshotDeleteParamsWithHTTPClient(client *http.Client) *ApplicationComponentSnapshotDeleteParams { return &ApplicationComponentSnapshotDeleteParams{ HTTPClient: client, } } /* ApplicationComponentSnapshotDeleteParams contains all the parameters to send to the API endpoint for the application component snapshot delete operation. Typically these are written to a http.Request. */ type ApplicationComponentSnapshotDeleteParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* ComponentUUID. Application Component UUID */ ComponentUUID 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 /* UUID. Snapshot UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application component snapshot delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotDeleteParams) WithDefaults() *ApplicationComponentSnapshotDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application component snapshot delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotDeleteParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ApplicationComponentSnapshotDeleteParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) WithTimeout(timeout time.Duration) *ApplicationComponentSnapshotDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) WithContext(ctx context.Context) *ApplicationComponentSnapshotDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) WithHTTPClient(client *http.Client) *ApplicationComponentSnapshotDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) WithApplicationUUID(applicationUUID string) *ApplicationComponentSnapshotDeleteParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithComponentUUID adds the componentUUID to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) WithComponentUUID(componentUUID string) *ApplicationComponentSnapshotDeleteParams { o.SetComponentUUID(componentUUID) return o } // SetComponentUUID adds the componentUuid to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) SetComponentUUID(componentUUID string) { o.ComponentUUID = componentUUID } // WithReturnTimeout adds the returnTimeout to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) WithReturnTimeout(returnTimeout *int64) *ApplicationComponentSnapshotDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) WithUUID(uuid string) *ApplicationComponentSnapshotDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application component snapshot delete params func (o *ApplicationComponentSnapshotDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationComponentSnapshotDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); err != nil { return err } // path param component.uuid if err := r.SetPathParam("component.uuid", o.ComponentUUID); 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); 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/application/consistency_group_snapshot_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupSnapshotCollectionGetParams creates a new ConsistencyGroupSnapshotCollectionGetParams 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 NewConsistencyGroupSnapshotCollectionGetParams() *ConsistencyGroupSnapshotCollectionGetParams { return &ConsistencyGroupSnapshotCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupSnapshotCollectionGetParamsWithTimeout creates a new ConsistencyGroupSnapshotCollectionGetParams object // with the ability to set a timeout on a request. func NewConsistencyGroupSnapshotCollectionGetParamsWithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotCollectionGetParams { return &ConsistencyGroupSnapshotCollectionGetParams{ timeout: timeout, } } // NewConsistencyGroupSnapshotCollectionGetParamsWithContext creates a new ConsistencyGroupSnapshotCollectionGetParams object // with the ability to set a context for a request. func NewConsistencyGroupSnapshotCollectionGetParamsWithContext(ctx context.Context) *ConsistencyGroupSnapshotCollectionGetParams { return &ConsistencyGroupSnapshotCollectionGetParams{ Context: ctx, } } // NewConsistencyGroupSnapshotCollectionGetParamsWithHTTPClient creates a new ConsistencyGroupSnapshotCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupSnapshotCollectionGetParamsWithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotCollectionGetParams { return &ConsistencyGroupSnapshotCollectionGetParams{ HTTPClient: client, } } /* ConsistencyGroupSnapshotCollectionGetParams contains all the parameters to send to the API endpoint for the consistency group snapshot collection get operation. Typically these are written to a http.Request. */ type ConsistencyGroupSnapshotCollectionGetParams struct { /* Comment. Filter by comment */ Comment *string /* ConsistencyGroupName. Filter by consistency_group.name */ ConsistencyGroupName *string /* ConsistencyGroupUUID. The unique identifier of the consistency group to retrieve. */ ConsistencyGroupUUID string /* ConsistencyType. Filter by consistency_type */ ConsistencyType *string /* CreateTime. Filter by create_time */ CreateTime *string /* Fields. Specify the fields to return. */ Fields []string /* IsPartial. Filter by is_partial */ IsPartial *bool /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* MissingVolumesName. Filter by missing_volumes.name */ MissingVolumesName *string /* MissingVolumesUUID. Filter by missing_volumes.uuid */ MissingVolumesUUID *string /* 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 /* SnapmirrorLabel. Filter by snapmirror_label */ SnapmirrorLabel *string /* SnapshotVolumesSnapshotName. Filter by snapshot_volumes.snapshot.name */ SnapshotVolumesSnapshotName *string /* SnapshotVolumesSnapshotUUID. Filter by snapshot_volumes.snapshot.uuid */ SnapshotVolumesSnapshotUUID *string /* SnapshotVolumesVolumeName. Filter by snapshot_volumes.volume.name */ SnapshotVolumesVolumeName *string /* SnapshotVolumesVolumeUUID. Filter by snapshot_volumes.volume.uuid */ SnapshotVolumesVolumeUUID *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 consistency group snapshot collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotCollectionGetParams) WithDefaults() *ConsistencyGroupSnapshotCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group snapshot collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ConsistencyGroupSnapshotCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithContext(ctx context.Context) *ConsistencyGroupSnapshotCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithComment adds the comment to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithComment(comment *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetComment(comment) return o } // SetComment adds the comment to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetComment(comment *string) { o.Comment = comment } // WithConsistencyGroupName adds the consistencyGroupName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithConsistencyGroupName(consistencyGroupName *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetConsistencyGroupName(consistencyGroupName) return o } // SetConsistencyGroupName adds the consistencyGroupName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetConsistencyGroupName(consistencyGroupName *string) { o.ConsistencyGroupName = consistencyGroupName } // WithConsistencyGroupUUID adds the consistencyGroupUUID to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithConsistencyGroupUUID(consistencyGroupUUID string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetConsistencyGroupUUID(consistencyGroupUUID) return o } // SetConsistencyGroupUUID adds the consistencyGroupUuid to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetConsistencyGroupUUID(consistencyGroupUUID string) { o.ConsistencyGroupUUID = consistencyGroupUUID } // WithConsistencyType adds the consistencyType to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithConsistencyType(consistencyType *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetConsistencyType(consistencyType) return o } // SetConsistencyType adds the consistencyType to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetConsistencyType(consistencyType *string) { o.ConsistencyType = consistencyType } // WithCreateTime adds the createTime to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithCreateTime(createTime *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetCreateTime(createTime) return o } // SetCreateTime adds the createTime to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetCreateTime(createTime *string) { o.CreateTime = createTime } // WithFields adds the fields to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithFields(fields []string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithIsPartial adds the isPartial to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithIsPartial(isPartial *bool) *ConsistencyGroupSnapshotCollectionGetParams { o.SetIsPartial(isPartial) return o } // SetIsPartial adds the isPartial to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetIsPartial(isPartial *bool) { o.IsPartial = isPartial } // WithMaxRecords adds the maxRecords to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithMaxRecords(maxRecords *int64) *ConsistencyGroupSnapshotCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMissingVolumesName adds the missingVolumesName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithMissingVolumesName(missingVolumesName *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetMissingVolumesName(missingVolumesName) return o } // SetMissingVolumesName adds the missingVolumesName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetMissingVolumesName(missingVolumesName *string) { o.MissingVolumesName = missingVolumesName } // WithMissingVolumesUUID adds the missingVolumesUUID to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithMissingVolumesUUID(missingVolumesUUID *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetMissingVolumesUUID(missingVolumesUUID) return o } // SetMissingVolumesUUID adds the missingVolumesUuid to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetMissingVolumesUUID(missingVolumesUUID *string) { o.MissingVolumesUUID = missingVolumesUUID } // WithName adds the name to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithName(name *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithOrderBy(orderBy []string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithReturnRecords(returnRecords *bool) *ConsistencyGroupSnapshotCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupSnapshotCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSnapmirrorLabel adds the snapmirrorLabel to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithSnapmirrorLabel(snapmirrorLabel *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetSnapmirrorLabel(snapmirrorLabel) return o } // SetSnapmirrorLabel adds the snapmirrorLabel to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetSnapmirrorLabel(snapmirrorLabel *string) { o.SnapmirrorLabel = snapmirrorLabel } // WithSnapshotVolumesSnapshotName adds the snapshotVolumesSnapshotName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithSnapshotVolumesSnapshotName(snapshotVolumesSnapshotName *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetSnapshotVolumesSnapshotName(snapshotVolumesSnapshotName) return o } // SetSnapshotVolumesSnapshotName adds the snapshotVolumesSnapshotName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetSnapshotVolumesSnapshotName(snapshotVolumesSnapshotName *string) { o.SnapshotVolumesSnapshotName = snapshotVolumesSnapshotName } // WithSnapshotVolumesSnapshotUUID adds the snapshotVolumesSnapshotUUID to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithSnapshotVolumesSnapshotUUID(snapshotVolumesSnapshotUUID *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetSnapshotVolumesSnapshotUUID(snapshotVolumesSnapshotUUID) return o } // SetSnapshotVolumesSnapshotUUID adds the snapshotVolumesSnapshotUuid to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetSnapshotVolumesSnapshotUUID(snapshotVolumesSnapshotUUID *string) { o.SnapshotVolumesSnapshotUUID = snapshotVolumesSnapshotUUID } // WithSnapshotVolumesVolumeName adds the snapshotVolumesVolumeName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithSnapshotVolumesVolumeName(snapshotVolumesVolumeName *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetSnapshotVolumesVolumeName(snapshotVolumesVolumeName) return o } // SetSnapshotVolumesVolumeName adds the snapshotVolumesVolumeName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetSnapshotVolumesVolumeName(snapshotVolumesVolumeName *string) { o.SnapshotVolumesVolumeName = snapshotVolumesVolumeName } // WithSnapshotVolumesVolumeUUID adds the snapshotVolumesVolumeUUID to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithSnapshotVolumesVolumeUUID(snapshotVolumesVolumeUUID *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetSnapshotVolumesVolumeUUID(snapshotVolumesVolumeUUID) return o } // SetSnapshotVolumesVolumeUUID adds the snapshotVolumesVolumeUuid to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetSnapshotVolumesVolumeUUID(snapshotVolumesVolumeUUID *string) { o.SnapshotVolumesVolumeUUID = snapshotVolumesVolumeUUID } // WithSvmName adds the svmName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithSvmName(svmName *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithSvmUUID(svmUUID *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithUUID adds the uuid to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) WithUUID(uuid *string) *ConsistencyGroupSnapshotCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the consistency group snapshot collection get params func (o *ConsistencyGroupSnapshotCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupSnapshotCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Comment != nil { // query param comment var qrComment string if o.Comment != nil { qrComment = *o.Comment } qComment := qrComment if qComment != "" { if err := r.SetQueryParam("comment", qComment); err != nil { return err } } } if o.ConsistencyGroupName != nil { // query param consistency_group.name var qrConsistencyGroupName string if o.ConsistencyGroupName != nil { qrConsistencyGroupName = *o.ConsistencyGroupName } qConsistencyGroupName := qrConsistencyGroupName if qConsistencyGroupName != "" { if err := r.SetQueryParam("consistency_group.name", qConsistencyGroupName); err != nil { return err } } } // path param consistency_group.uuid if err := r.SetPathParam("consistency_group.uuid", o.ConsistencyGroupUUID); err != nil { return err } if o.ConsistencyType != nil { // query param consistency_type var qrConsistencyType string if o.ConsistencyType != nil { qrConsistencyType = *o.ConsistencyType } qConsistencyType := qrConsistencyType if qConsistencyType != "" { if err := r.SetQueryParam("consistency_type", qConsistencyType); err != nil { return err } } } if o.CreateTime != nil { // query param create_time var qrCreateTime string if o.CreateTime != nil { qrCreateTime = *o.CreateTime } qCreateTime := qrCreateTime if qCreateTime != "" { if err := r.SetQueryParam("create_time", qCreateTime); 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.IsPartial != nil { // query param is_partial var qrIsPartial bool if o.IsPartial != nil { qrIsPartial = *o.IsPartial } qIsPartial := swag.FormatBool(qrIsPartial) if qIsPartial != "" { if err := r.SetQueryParam("is_partial", qIsPartial); 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.MissingVolumesName != nil { // query param missing_volumes.name var qrMissingVolumesName string if o.MissingVolumesName != nil { qrMissingVolumesName = *o.MissingVolumesName } qMissingVolumesName := qrMissingVolumesName if qMissingVolumesName != "" { if err := r.SetQueryParam("missing_volumes.name", qMissingVolumesName); err != nil { return err } } } if o.MissingVolumesUUID != nil { // query param missing_volumes.uuid var qrMissingVolumesUUID string if o.MissingVolumesUUID != nil { qrMissingVolumesUUID = *o.MissingVolumesUUID } qMissingVolumesUUID := qrMissingVolumesUUID if qMissingVolumesUUID != "" { if err := r.SetQueryParam("missing_volumes.uuid", qMissingVolumesUUID); 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.SnapmirrorLabel != nil { // query param snapmirror_label var qrSnapmirrorLabel string if o.SnapmirrorLabel != nil { qrSnapmirrorLabel = *o.SnapmirrorLabel } qSnapmirrorLabel := qrSnapmirrorLabel if qSnapmirrorLabel != "" { if err := r.SetQueryParam("snapmirror_label", qSnapmirrorLabel); err != nil { return err } } } if o.SnapshotVolumesSnapshotName != nil { // query param snapshot_volumes.snapshot.name var qrSnapshotVolumesSnapshotName string if o.SnapshotVolumesSnapshotName != nil { qrSnapshotVolumesSnapshotName = *o.SnapshotVolumesSnapshotName } qSnapshotVolumesSnapshotName := qrSnapshotVolumesSnapshotName if qSnapshotVolumesSnapshotName != "" { if err := r.SetQueryParam("snapshot_volumes.snapshot.name", qSnapshotVolumesSnapshotName); err != nil { return err } } } if o.SnapshotVolumesSnapshotUUID != nil { // query param snapshot_volumes.snapshot.uuid var qrSnapshotVolumesSnapshotUUID string if o.SnapshotVolumesSnapshotUUID != nil { qrSnapshotVolumesSnapshotUUID = *o.SnapshotVolumesSnapshotUUID } qSnapshotVolumesSnapshotUUID := qrSnapshotVolumesSnapshotUUID if qSnapshotVolumesSnapshotUUID != "" { if err := r.SetQueryParam("snapshot_volumes.snapshot.uuid", qSnapshotVolumesSnapshotUUID); err != nil { return err } } } if o.SnapshotVolumesVolumeName != nil { // query param snapshot_volumes.volume.name var qrSnapshotVolumesVolumeName string if o.SnapshotVolumesVolumeName != nil { qrSnapshotVolumesVolumeName = *o.SnapshotVolumesVolumeName } qSnapshotVolumesVolumeName := qrSnapshotVolumesVolumeName if qSnapshotVolumesVolumeName != "" { if err := r.SetQueryParam("snapshot_volumes.volume.name", qSnapshotVolumesVolumeName); err != nil { return err } } } if o.SnapshotVolumesVolumeUUID != nil { // query param snapshot_volumes.volume.uuid var qrSnapshotVolumesVolumeUUID string if o.SnapshotVolumesVolumeUUID != nil { qrSnapshotVolumesVolumeUUID = *o.SnapshotVolumesVolumeUUID } qSnapshotVolumesVolumeUUID := qrSnapshotVolumesVolumeUUID if qSnapshotVolumesVolumeUUID != "" { if err := r.SetQueryParam("snapshot_volumes.volume.uuid", qSnapshotVolumesVolumeUUID); 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 } // bindParamConsistencyGroupSnapshotCollectionGet binds the parameter fields func (o *ConsistencyGroupSnapshotCollectionGetParams) 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 } // bindParamConsistencyGroupSnapshotCollectionGet binds the parameter order_by func (o *ConsistencyGroupSnapshotCollectionGetParams) 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/application/consistency_group_snapshot_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupSnapshotModifyParams creates a new ConsistencyGroupSnapshotModifyParams 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 NewConsistencyGroupSnapshotModifyParams() *ConsistencyGroupSnapshotModifyParams { return &ConsistencyGroupSnapshotModifyParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupSnapshotModifyParamsWithTimeout creates a new ConsistencyGroupSnapshotModifyParams object // with the ability to set a timeout on a request. func NewConsistencyGroupSnapshotModifyParamsWithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotModifyParams { return &ConsistencyGroupSnapshotModifyParams{ timeout: timeout, } } // NewConsistencyGroupSnapshotModifyParamsWithContext creates a new ConsistencyGroupSnapshotModifyParams object // with the ability to set a context for a request. func NewConsistencyGroupSnapshotModifyParamsWithContext(ctx context.Context) *ConsistencyGroupSnapshotModifyParams { return &ConsistencyGroupSnapshotModifyParams{ Context: ctx, } } // NewConsistencyGroupSnapshotModifyParamsWithHTTPClient creates a new ConsistencyGroupSnapshotModifyParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupSnapshotModifyParamsWithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotModifyParams { return &ConsistencyGroupSnapshotModifyParams{ HTTPClient: client, } } /* ConsistencyGroupSnapshotModifyParams contains all the parameters to send to the API endpoint for the consistency group snapshot modify operation. Typically these are written to a http.Request. */ type ConsistencyGroupSnapshotModifyParams struct { /* Action. Commits the Snapshot copy. The commit must be called within the timeout value specified during POST. If the commit is not called within the specified time, then the Snapshot copy create operation is aborted. */ Action *string /* ConsistencyGroupUUID. Unique identifier of the consistency group's Snapshot copy for deletion. */ ConsistencyGroupUUID 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 /* UUID. Snapshot copy UUID. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the consistency group snapshot modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotModifyParams) WithDefaults() *ConsistencyGroupSnapshotModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group snapshot modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ConsistencyGroupSnapshotModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) WithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) WithContext(ctx context.Context) *ConsistencyGroupSnapshotModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) WithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAction adds the action to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) WithAction(action *string) *ConsistencyGroupSnapshotModifyParams { o.SetAction(action) return o } // SetAction adds the action to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) SetAction(action *string) { o.Action = action } // WithConsistencyGroupUUID adds the consistencyGroupUUID to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) WithConsistencyGroupUUID(consistencyGroupUUID string) *ConsistencyGroupSnapshotModifyParams { o.SetConsistencyGroupUUID(consistencyGroupUUID) return o } // SetConsistencyGroupUUID adds the consistencyGroupUuid to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) SetConsistencyGroupUUID(consistencyGroupUUID string) { o.ConsistencyGroupUUID = consistencyGroupUUID } // WithReturnTimeout adds the returnTimeout to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupSnapshotModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) WithUUID(uuid string) *ConsistencyGroupSnapshotModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the consistency group snapshot modify params func (o *ConsistencyGroupSnapshotModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupSnapshotModifyParams) 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 consistency_group.uuid if err := r.SetPathParam("consistency_group.uuid", o.ConsistencyGroupUUID); 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); 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/application/application_component_snapshot_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationComponentSnapshotGetParams creates a new ApplicationComponentSnapshotGetParams 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 NewApplicationComponentSnapshotGetParams() *ApplicationComponentSnapshotGetParams { return &ApplicationComponentSnapshotGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationComponentSnapshotGetParamsWithTimeout creates a new ApplicationComponentSnapshotGetParams object // with the ability to set a timeout on a request. func NewApplicationComponentSnapshotGetParamsWithTimeout(timeout time.Duration) *ApplicationComponentSnapshotGetParams { return &ApplicationComponentSnapshotGetParams{ timeout: timeout, } } // NewApplicationComponentSnapshotGetParamsWithContext creates a new ApplicationComponentSnapshotGetParams object // with the ability to set a context for a request. func NewApplicationComponentSnapshotGetParamsWithContext(ctx context.Context) *ApplicationComponentSnapshotGetParams { return &ApplicationComponentSnapshotGetParams{ Context: ctx, } } // NewApplicationComponentSnapshotGetParamsWithHTTPClient creates a new ApplicationComponentSnapshotGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationComponentSnapshotGetParamsWithHTTPClient(client *http.Client) *ApplicationComponentSnapshotGetParams { return &ApplicationComponentSnapshotGetParams{ HTTPClient: client, } } /* ApplicationComponentSnapshotGetParams contains all the parameters to send to the API endpoint for the application component snapshot get operation. Typically these are written to a http.Request. */ type ApplicationComponentSnapshotGetParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* ComponentUUID. Application Component UUID */ ComponentUUID string /* Fields. Specify the fields to return. */ Fields []string /* UUID. Snapshot UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application component snapshot get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotGetParams) WithDefaults() *ApplicationComponentSnapshotGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application component snapshot get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) WithTimeout(timeout time.Duration) *ApplicationComponentSnapshotGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) WithContext(ctx context.Context) *ApplicationComponentSnapshotGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) WithHTTPClient(client *http.Client) *ApplicationComponentSnapshotGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) WithApplicationUUID(applicationUUID string) *ApplicationComponentSnapshotGetParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithComponentUUID adds the componentUUID to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) WithComponentUUID(componentUUID string) *ApplicationComponentSnapshotGetParams { o.SetComponentUUID(componentUUID) return o } // SetComponentUUID adds the componentUuid to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) SetComponentUUID(componentUUID string) { o.ComponentUUID = componentUUID } // WithFields adds the fields to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) WithFields(fields []string) *ApplicationComponentSnapshotGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) WithUUID(uuid string) *ApplicationComponentSnapshotGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application component snapshot get params func (o *ApplicationComponentSnapshotGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationComponentSnapshotGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); err != nil { return err } // path param component.uuid if err := r.SetPathParam("component.uuid", o.ComponentUUID); 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 uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamApplicationComponentSnapshotGet binds the parameter fields func (o *ApplicationComponentSnapshotGetParams) 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/application/consistency_group_snapshot_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupSnapshotDeleteReader is a Reader for the ConsistencyGroupSnapshotDelete structure. type ConsistencyGroupSnapshotDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupSnapshotDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupSnapshotDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 202: result := NewConsistencyGroupSnapshotDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupSnapshotDeleteDefault(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 } } // NewConsistencyGroupSnapshotDeleteOK creates a ConsistencyGroupSnapshotDeleteOK with default headers values func NewConsistencyGroupSnapshotDeleteOK() *ConsistencyGroupSnapshotDeleteOK { return &ConsistencyGroupSnapshotDeleteOK{} } /* ConsistencyGroupSnapshotDeleteOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupSnapshotDeleteOK struct { } // IsSuccess returns true when this consistency group snapshot delete o k response has a 2xx status code func (o *ConsistencyGroupSnapshotDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot delete o k response has a 3xx status code func (o *ConsistencyGroupSnapshotDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot delete o k response has a 4xx status code func (o *ConsistencyGroupSnapshotDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot delete o k response has a 5xx status code func (o *ConsistencyGroupSnapshotDeleteOK) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot delete o k response a status code equal to that given func (o *ConsistencyGroupSnapshotDeleteOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupSnapshotDeleteOK) Error() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotDeleteOK ", 200) } func (o *ConsistencyGroupSnapshotDeleteOK) String() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotDeleteOK ", 200) } func (o *ConsistencyGroupSnapshotDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewConsistencyGroupSnapshotDeleteAccepted creates a ConsistencyGroupSnapshotDeleteAccepted with default headers values func NewConsistencyGroupSnapshotDeleteAccepted() *ConsistencyGroupSnapshotDeleteAccepted { return &ConsistencyGroupSnapshotDeleteAccepted{} } /* ConsistencyGroupSnapshotDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type ConsistencyGroupSnapshotDeleteAccepted struct { } // IsSuccess returns true when this consistency group snapshot delete accepted response has a 2xx status code func (o *ConsistencyGroupSnapshotDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot delete accepted response has a 3xx status code func (o *ConsistencyGroupSnapshotDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot delete accepted response has a 4xx status code func (o *ConsistencyGroupSnapshotDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot delete accepted response has a 5xx status code func (o *ConsistencyGroupSnapshotDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot delete accepted response a status code equal to that given func (o *ConsistencyGroupSnapshotDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *ConsistencyGroupSnapshotDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotDeleteAccepted ", 202) } func (o *ConsistencyGroupSnapshotDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotDeleteAccepted ", 202) } func (o *ConsistencyGroupSnapshotDeleteAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewConsistencyGroupSnapshotDeleteDefault creates a ConsistencyGroupSnapshotDeleteDefault with default headers values func NewConsistencyGroupSnapshotDeleteDefault(code int) *ConsistencyGroupSnapshotDeleteDefault { return &ConsistencyGroupSnapshotDeleteDefault{ _statusCode: code, } } /* ConsistencyGroupSnapshotDeleteDefault describes a response with status code -1, with default header values. Error */ type ConsistencyGroupSnapshotDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group snapshot delete default response func (o *ConsistencyGroupSnapshotDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group snapshot delete default response has a 2xx status code func (o *ConsistencyGroupSnapshotDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group snapshot delete default response has a 3xx status code func (o *ConsistencyGroupSnapshotDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group snapshot delete default response has a 4xx status code func (o *ConsistencyGroupSnapshotDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group snapshot delete default response has a 5xx status code func (o *ConsistencyGroupSnapshotDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group snapshot delete default response a status code equal to that given func (o *ConsistencyGroupSnapshotDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupSnapshotDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistency_group_snapshot_delete default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotDeleteDefault) String() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistency_group_snapshot_delete default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupSnapshotDeleteDefault) 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/application/application_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationModifyParams creates a new ApplicationModifyParams 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 NewApplicationModifyParams() *ApplicationModifyParams { return &ApplicationModifyParams{ timeout: cr.DefaultTimeout, } } // NewApplicationModifyParamsWithTimeout creates a new ApplicationModifyParams object // with the ability to set a timeout on a request. func NewApplicationModifyParamsWithTimeout(timeout time.Duration) *ApplicationModifyParams { return &ApplicationModifyParams{ timeout: timeout, } } // NewApplicationModifyParamsWithContext creates a new ApplicationModifyParams object // with the ability to set a context for a request. func NewApplicationModifyParamsWithContext(ctx context.Context) *ApplicationModifyParams { return &ApplicationModifyParams{ Context: ctx, } } // NewApplicationModifyParamsWithHTTPClient creates a new ApplicationModifyParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationModifyParamsWithHTTPClient(client *http.Client) *ApplicationModifyParams { return &ApplicationModifyParams{ HTTPClient: client, } } /* ApplicationModifyParams contains all the parameters to send to the API endpoint for the application modify operation. Typically these are written to a http.Request. */ type ApplicationModifyParams struct { /* Info. Info specification */ Info *models.Application /* 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. Application UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationModifyParams) WithDefaults() *ApplicationModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ApplicationModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application modify params func (o *ApplicationModifyParams) WithTimeout(timeout time.Duration) *ApplicationModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application modify params func (o *ApplicationModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application modify params func (o *ApplicationModifyParams) WithContext(ctx context.Context) *ApplicationModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the application modify params func (o *ApplicationModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application modify params func (o *ApplicationModifyParams) WithHTTPClient(client *http.Client) *ApplicationModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application modify params func (o *ApplicationModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the application modify params func (o *ApplicationModifyParams) WithInfo(info *models.Application) *ApplicationModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the application modify params func (o *ApplicationModifyParams) SetInfo(info *models.Application) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the application modify params func (o *ApplicationModifyParams) WithReturnTimeout(returnTimeout *int64) *ApplicationModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application modify params func (o *ApplicationModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application modify params func (o *ApplicationModifyParams) WithUUID(uuid string) *ApplicationModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application modify params func (o *ApplicationModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationModifyParams) 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); 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/application/application_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationModifyReader is a Reader for the ApplicationModify structure. type ApplicationModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationModifyDefault(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 } } // NewApplicationModifyAccepted creates a ApplicationModifyAccepted with default headers values func NewApplicationModifyAccepted() *ApplicationModifyAccepted { return &ApplicationModifyAccepted{} } /* ApplicationModifyAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this application modify accepted response has a 2xx status code func (o *ApplicationModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application modify accepted response has a 3xx status code func (o *ApplicationModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application modify accepted response has a 4xx status code func (o *ApplicationModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this application modify accepted response has a 5xx status code func (o *ApplicationModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this application modify accepted response a status code equal to that given func (o *ApplicationModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /application/applications/{uuid}][%d] applicationModifyAccepted %+v", 202, o.Payload) } func (o *ApplicationModifyAccepted) String() string { return fmt.Sprintf("[PATCH /application/applications/{uuid}][%d] applicationModifyAccepted %+v", 202, o.Payload) } func (o *ApplicationModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationModifyAccepted) 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 } // NewApplicationModifyDefault creates a ApplicationModifyDefault with default headers values func NewApplicationModifyDefault(code int) *ApplicationModifyDefault { return &ApplicationModifyDefault{ _statusCode: code, } } /* ApplicationModifyDefault describes a response with status code -1, with default header values. Error */ type ApplicationModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application modify default response func (o *ApplicationModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application modify default response has a 2xx status code func (o *ApplicationModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application modify default response has a 3xx status code func (o *ApplicationModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application modify default response has a 4xx status code func (o *ApplicationModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application modify default response has a 5xx status code func (o *ApplicationModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application modify default response a status code equal to that given func (o *ApplicationModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationModifyDefault) Error() string { return fmt.Sprintf("[PATCH /application/applications/{uuid}][%d] application_modify default %+v", o._statusCode, o.Payload) } func (o *ApplicationModifyDefault) String() string { return fmt.Sprintf("[PATCH /application/applications/{uuid}][%d] application_modify default %+v", o._statusCode, o.Payload) } func (o *ApplicationModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationModifyDefault) 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/application/consistency_group_snapshot_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupSnapshotCollectionGetReader is a Reader for the ConsistencyGroupSnapshotCollectionGet structure. type ConsistencyGroupSnapshotCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupSnapshotCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupSnapshotCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupSnapshotCollectionGetDefault(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 } } // NewConsistencyGroupSnapshotCollectionGetOK creates a ConsistencyGroupSnapshotCollectionGetOK with default headers values func NewConsistencyGroupSnapshotCollectionGetOK() *ConsistencyGroupSnapshotCollectionGetOK { return &ConsistencyGroupSnapshotCollectionGetOK{} } /* ConsistencyGroupSnapshotCollectionGetOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupSnapshotCollectionGetOK struct { Payload *models.ConsistencyGroupSnapshotResponse } // IsSuccess returns true when this consistency group snapshot collection get o k response has a 2xx status code func (o *ConsistencyGroupSnapshotCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot collection get o k response has a 3xx status code func (o *ConsistencyGroupSnapshotCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot collection get o k response has a 4xx status code func (o *ConsistencyGroupSnapshotCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot collection get o k response has a 5xx status code func (o *ConsistencyGroupSnapshotCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot collection get o k response a status code equal to that given func (o *ConsistencyGroupSnapshotCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupSnapshotCollectionGetOK) Error() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistencyGroupSnapshotCollectionGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupSnapshotCollectionGetOK) String() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistencyGroupSnapshotCollectionGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupSnapshotCollectionGetOK) GetPayload() *models.ConsistencyGroupSnapshotResponse { return o.Payload } func (o *ConsistencyGroupSnapshotCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ConsistencyGroupSnapshotResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewConsistencyGroupSnapshotCollectionGetDefault creates a ConsistencyGroupSnapshotCollectionGetDefault with default headers values func NewConsistencyGroupSnapshotCollectionGetDefault(code int) *ConsistencyGroupSnapshotCollectionGetDefault { return &ConsistencyGroupSnapshotCollectionGetDefault{ _statusCode: code, } } /* ConsistencyGroupSnapshotCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ConsistencyGroupSnapshotCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group snapshot collection get default response func (o *ConsistencyGroupSnapshotCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group snapshot collection get default response has a 2xx status code func (o *ConsistencyGroupSnapshotCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group snapshot collection get default response has a 3xx status code func (o *ConsistencyGroupSnapshotCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group snapshot collection get default response has a 4xx status code func (o *ConsistencyGroupSnapshotCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group snapshot collection get default response has a 5xx status code func (o *ConsistencyGroupSnapshotCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group snapshot collection get default response a status code equal to that given func (o *ConsistencyGroupSnapshotCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupSnapshotCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistency_group_snapshot_collection_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotCollectionGetDefault) String() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistency_group_snapshot_collection_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupSnapshotCollectionGetDefault) 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/application/application_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationGetParams creates a new ApplicationGetParams 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 NewApplicationGetParams() *ApplicationGetParams { return &ApplicationGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationGetParamsWithTimeout creates a new ApplicationGetParams object // with the ability to set a timeout on a request. func NewApplicationGetParamsWithTimeout(timeout time.Duration) *ApplicationGetParams { return &ApplicationGetParams{ timeout: timeout, } } // NewApplicationGetParamsWithContext creates a new ApplicationGetParams object // with the ability to set a context for a request. func NewApplicationGetParamsWithContext(ctx context.Context) *ApplicationGetParams { return &ApplicationGetParams{ Context: ctx, } } // NewApplicationGetParamsWithHTTPClient creates a new ApplicationGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationGetParamsWithHTTPClient(client *http.Client) *ApplicationGetParams { return &ApplicationGetParams{ HTTPClient: client, } } /* ApplicationGetParams contains all the parameters to send to the API endpoint for the application get operation. Typically these are written to a http.Request. */ type ApplicationGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Application UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationGetParams) WithDefaults() *ApplicationGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the application get params func (o *ApplicationGetParams) WithTimeout(timeout time.Duration) *ApplicationGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application get params func (o *ApplicationGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application get params func (o *ApplicationGetParams) WithContext(ctx context.Context) *ApplicationGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application get params func (o *ApplicationGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application get params func (o *ApplicationGetParams) WithHTTPClient(client *http.Client) *ApplicationGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application get params func (o *ApplicationGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the application get params func (o *ApplicationGetParams) WithFields(fields []string) *ApplicationGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application get params func (o *ApplicationGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the application get params func (o *ApplicationGetParams) WithUUID(uuid string) *ApplicationGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application get params func (o *ApplicationGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationGetParams) 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 } // bindParamApplicationGet binds the parameter fields func (o *ApplicationGetParams) 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/application/application_component_snapshot_restore_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_restore_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationComponentSnapshotRestoreReader is a Reader for the ApplicationComponentSnapshotRestore structure. type ApplicationComponentSnapshotRestoreReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationComponentSnapshotRestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationComponentSnapshotRestoreAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationComponentSnapshotRestoreDefault(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 } } // NewApplicationComponentSnapshotRestoreAccepted creates a ApplicationComponentSnapshotRestoreAccepted with default headers values func NewApplicationComponentSnapshotRestoreAccepted() *ApplicationComponentSnapshotRestoreAccepted { return &ApplicationComponentSnapshotRestoreAccepted{} } /* ApplicationComponentSnapshotRestoreAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationComponentSnapshotRestoreAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this application component snapshot restore accepted response has a 2xx status code func (o *ApplicationComponentSnapshotRestoreAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application component snapshot restore accepted response has a 3xx status code func (o *ApplicationComponentSnapshotRestoreAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application component snapshot restore accepted response has a 4xx status code func (o *ApplicationComponentSnapshotRestoreAccepted) IsClientError() bool { return false } // IsServerError returns true when this application component snapshot restore accepted response has a 5xx status code func (o *ApplicationComponentSnapshotRestoreAccepted) IsServerError() bool { return false } // IsCode returns true when this application component snapshot restore accepted response a status code equal to that given func (o *ApplicationComponentSnapshotRestoreAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationComponentSnapshotRestoreAccepted) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}/restore][%d] applicationComponentSnapshotRestoreAccepted %+v", 202, o.Payload) } func (o *ApplicationComponentSnapshotRestoreAccepted) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}/restore][%d] applicationComponentSnapshotRestoreAccepted %+v", 202, o.Payload) } func (o *ApplicationComponentSnapshotRestoreAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationComponentSnapshotRestoreAccepted) 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 } // NewApplicationComponentSnapshotRestoreDefault creates a ApplicationComponentSnapshotRestoreDefault with default headers values func NewApplicationComponentSnapshotRestoreDefault(code int) *ApplicationComponentSnapshotRestoreDefault { return &ApplicationComponentSnapshotRestoreDefault{ _statusCode: code, } } /* ApplicationComponentSnapshotRestoreDefault describes a response with status code -1, with default header values. Error */ type ApplicationComponentSnapshotRestoreDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application component snapshot restore default response func (o *ApplicationComponentSnapshotRestoreDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application component snapshot restore default response has a 2xx status code func (o *ApplicationComponentSnapshotRestoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application component snapshot restore default response has a 3xx status code func (o *ApplicationComponentSnapshotRestoreDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application component snapshot restore default response has a 4xx status code func (o *ApplicationComponentSnapshotRestoreDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application component snapshot restore default response has a 5xx status code func (o *ApplicationComponentSnapshotRestoreDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application component snapshot restore default response a status code equal to that given func (o *ApplicationComponentSnapshotRestoreDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationComponentSnapshotRestoreDefault) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}/restore][%d] application_component_snapshot_restore default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotRestoreDefault) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}/restore][%d] application_component_snapshot_restore default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotRestoreDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationComponentSnapshotRestoreDefault) 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/application/consistency_group_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupDeleteReader is a Reader for the ConsistencyGroupDelete structure. type ConsistencyGroupDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 202: result := NewConsistencyGroupDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupDeleteDefault(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 } } // NewConsistencyGroupDeleteOK creates a ConsistencyGroupDeleteOK with default headers values func NewConsistencyGroupDeleteOK() *ConsistencyGroupDeleteOK { return &ConsistencyGroupDeleteOK{} } /* ConsistencyGroupDeleteOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupDeleteOK struct { } // IsSuccess returns true when this consistency group delete o k response has a 2xx status code func (o *ConsistencyGroupDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group delete o k response has a 3xx status code func (o *ConsistencyGroupDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group delete o k response has a 4xx status code func (o *ConsistencyGroupDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group delete o k response has a 5xx status code func (o *ConsistencyGroupDeleteOK) IsServerError() bool { return false } // IsCode returns true when this consistency group delete o k response a status code equal to that given func (o *ConsistencyGroupDeleteOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupDeleteOK) Error() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{uuid}][%d] consistencyGroupDeleteOK ", 200) } func (o *ConsistencyGroupDeleteOK) String() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{uuid}][%d] consistencyGroupDeleteOK ", 200) } func (o *ConsistencyGroupDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewConsistencyGroupDeleteAccepted creates a ConsistencyGroupDeleteAccepted with default headers values func NewConsistencyGroupDeleteAccepted() *ConsistencyGroupDeleteAccepted { return &ConsistencyGroupDeleteAccepted{} } /* ConsistencyGroupDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type ConsistencyGroupDeleteAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this consistency group delete accepted response has a 2xx status code func (o *ConsistencyGroupDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group delete accepted response has a 3xx status code func (o *ConsistencyGroupDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this consistency group delete accepted response has a 4xx status code func (o *ConsistencyGroupDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this consistency group delete accepted response has a 5xx status code func (o *ConsistencyGroupDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this consistency group delete accepted response a status code equal to that given func (o *ConsistencyGroupDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *ConsistencyGroupDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{uuid}][%d] consistencyGroupDeleteAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{uuid}][%d] consistencyGroupDeleteAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupDeleteAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ConsistencyGroupDeleteAccepted) 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 } // NewConsistencyGroupDeleteDefault creates a ConsistencyGroupDeleteDefault with default headers values func NewConsistencyGroupDeleteDefault(code int) *ConsistencyGroupDeleteDefault { return &ConsistencyGroupDeleteDefault{ _statusCode: code, } } /* ConsistencyGroupDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 53411842 | Consistency group does not exist. | | 53411843 | A consistency group with specified UUID was not found. | | 53411844 | Specified consistency group was not found in the specified SVM. | | 53411845 | The specified UUID and name refer to different consistency groups. | | 53411846 | Either name or UUID must be provided. | */ type ConsistencyGroupDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group delete default response func (o *ConsistencyGroupDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group delete default response has a 2xx status code func (o *ConsistencyGroupDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group delete default response has a 3xx status code func (o *ConsistencyGroupDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group delete default response has a 4xx status code func (o *ConsistencyGroupDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group delete default response has a 5xx status code func (o *ConsistencyGroupDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group delete default response a status code equal to that given func (o *ConsistencyGroupDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{uuid}][%d] consistency_group_delete default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupDeleteDefault) String() string { return fmt.Sprintf("[DELETE /application/consistency-groups/{uuid}][%d] consistency_group_delete default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupDeleteDefault) 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/application/consistency_group_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupModifyReader is a Reader for the ConsistencyGroupModify structure. type ConsistencyGroupModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 202: result := NewConsistencyGroupModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupModifyDefault(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 } } // NewConsistencyGroupModifyOK creates a ConsistencyGroupModifyOK with default headers values func NewConsistencyGroupModifyOK() *ConsistencyGroupModifyOK { return &ConsistencyGroupModifyOK{} } /* ConsistencyGroupModifyOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupModifyOK struct { } // IsSuccess returns true when this consistency group modify o k response has a 2xx status code func (o *ConsistencyGroupModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group modify o k response has a 3xx status code func (o *ConsistencyGroupModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group modify o k response has a 4xx status code func (o *ConsistencyGroupModifyOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group modify o k response has a 5xx status code func (o *ConsistencyGroupModifyOK) IsServerError() bool { return false } // IsCode returns true when this consistency group modify o k response a status code equal to that given func (o *ConsistencyGroupModifyOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupModifyOK) Error() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{uuid}][%d] consistencyGroupModifyOK ", 200) } func (o *ConsistencyGroupModifyOK) String() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{uuid}][%d] consistencyGroupModifyOK ", 200) } func (o *ConsistencyGroupModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewConsistencyGroupModifyAccepted creates a ConsistencyGroupModifyAccepted with default headers values func NewConsistencyGroupModifyAccepted() *ConsistencyGroupModifyAccepted { return &ConsistencyGroupModifyAccepted{} } /* ConsistencyGroupModifyAccepted describes a response with status code 202, with default header values. Accepted */ type ConsistencyGroupModifyAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this consistency group modify accepted response has a 2xx status code func (o *ConsistencyGroupModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group modify accepted response has a 3xx status code func (o *ConsistencyGroupModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this consistency group modify accepted response has a 4xx status code func (o *ConsistencyGroupModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this consistency group modify accepted response has a 5xx status code func (o *ConsistencyGroupModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this consistency group modify accepted response a status code equal to that given func (o *ConsistencyGroupModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *ConsistencyGroupModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{uuid}][%d] consistencyGroupModifyAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupModifyAccepted) String() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{uuid}][%d] consistencyGroupModifyAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupModifyAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ConsistencyGroupModifyAccepted) 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 } // NewConsistencyGroupModifyDefault creates a ConsistencyGroupModifyDefault with default headers values func NewConsistencyGroupModifyDefault(code int) *ConsistencyGroupModifyDefault { return &ConsistencyGroupModifyDefault{ _statusCode: code, } } /* ConsistencyGroupModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 53411842 | Consistency group does not exist. | | 53411843 | A consistency group with specified UUID was not found. | | 53411844 | Specified consistency group was not found in the specified SVM. | | 53411845 | The specified UUID and name refer to different consistency groups. | | 53411846 | Either name or UUID must be provided. | | 53411852 | A consistency group with the same identifier in the same scope exists. | | 53411853 | Fields provided in the request conflict with each other. | | 53411856 | Field provided is only supported when provisioning new objects. | | 53411857 | LUNs that are not members of the application are not supported by this API. LUNs can be added to an application by adding the volume containing the LUNs to the application. | | 53411860 | An object with the same identifier in the same scope exists. | | 53411861 | Volume specified does not exist in provided volume array. | | 53411862 | Modifying existing igroups is not supported using this API. | | 53411864 | Request content insufficient to add an existing volume to an application. | | 53411865 | Volumes contained in one consistency group cannot be added to a different consistency group. | | 53411866 | LUNs are not supported on FlexGroup volumes. | | 53411867 | LUN name is too long after appending a unique suffix. | | 53411869 | Volume name is too long after appending a unique suffix. | | 53411870 | When using the \"round_robin\" layout, the volume count must not be greater than the LUN count. | */ type ConsistencyGroupModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group modify default response func (o *ConsistencyGroupModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group modify default response has a 2xx status code func (o *ConsistencyGroupModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group modify default response has a 3xx status code func (o *ConsistencyGroupModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group modify default response has a 4xx status code func (o *ConsistencyGroupModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group modify default response has a 5xx status code func (o *ConsistencyGroupModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group modify default response a status code equal to that given func (o *ConsistencyGroupModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupModifyDefault) Error() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{uuid}][%d] consistency_group_modify default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupModifyDefault) String() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{uuid}][%d] consistency_group_modify default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupModifyDefault) 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/application/consistency_group_snapshot_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupSnapshotModifyReader is a Reader for the ConsistencyGroupSnapshotModify structure. type ConsistencyGroupSnapshotModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupSnapshotModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupSnapshotModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 202: result := NewConsistencyGroupSnapshotModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupSnapshotModifyDefault(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 } } // NewConsistencyGroupSnapshotModifyOK creates a ConsistencyGroupSnapshotModifyOK with default headers values func NewConsistencyGroupSnapshotModifyOK() *ConsistencyGroupSnapshotModifyOK { return &ConsistencyGroupSnapshotModifyOK{} } /* ConsistencyGroupSnapshotModifyOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupSnapshotModifyOK struct { } // IsSuccess returns true when this consistency group snapshot modify o k response has a 2xx status code func (o *ConsistencyGroupSnapshotModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot modify o k response has a 3xx status code func (o *ConsistencyGroupSnapshotModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot modify o k response has a 4xx status code func (o *ConsistencyGroupSnapshotModifyOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot modify o k response has a 5xx status code func (o *ConsistencyGroupSnapshotModifyOK) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot modify o k response a status code equal to that given func (o *ConsistencyGroupSnapshotModifyOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupSnapshotModifyOK) Error() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotModifyOK ", 200) } func (o *ConsistencyGroupSnapshotModifyOK) String() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotModifyOK ", 200) } func (o *ConsistencyGroupSnapshotModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewConsistencyGroupSnapshotModifyAccepted creates a ConsistencyGroupSnapshotModifyAccepted with default headers values func NewConsistencyGroupSnapshotModifyAccepted() *ConsistencyGroupSnapshotModifyAccepted { return &ConsistencyGroupSnapshotModifyAccepted{} } /* ConsistencyGroupSnapshotModifyAccepted describes a response with status code 202, with default header values. Accepted */ type ConsistencyGroupSnapshotModifyAccepted struct { } // IsSuccess returns true when this consistency group snapshot modify accepted response has a 2xx status code func (o *ConsistencyGroupSnapshotModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot modify accepted response has a 3xx status code func (o *ConsistencyGroupSnapshotModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot modify accepted response has a 4xx status code func (o *ConsistencyGroupSnapshotModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot modify accepted response has a 5xx status code func (o *ConsistencyGroupSnapshotModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot modify accepted response a status code equal to that given func (o *ConsistencyGroupSnapshotModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *ConsistencyGroupSnapshotModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotModifyAccepted ", 202) } func (o *ConsistencyGroupSnapshotModifyAccepted) String() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotModifyAccepted ", 202) } func (o *ConsistencyGroupSnapshotModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewConsistencyGroupSnapshotModifyDefault creates a ConsistencyGroupSnapshotModifyDefault with default headers values func NewConsistencyGroupSnapshotModifyDefault(code int) *ConsistencyGroupSnapshotModifyDefault { return &ConsistencyGroupSnapshotModifyDefault{ _statusCode: code, } } /* ConsistencyGroupSnapshotModifyDefault describes a response with status code -1, with default header values. Error */ type ConsistencyGroupSnapshotModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group snapshot modify default response func (o *ConsistencyGroupSnapshotModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group snapshot modify default response has a 2xx status code func (o *ConsistencyGroupSnapshotModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group snapshot modify default response has a 3xx status code func (o *ConsistencyGroupSnapshotModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group snapshot modify default response has a 4xx status code func (o *ConsistencyGroupSnapshotModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group snapshot modify default response has a 5xx status code func (o *ConsistencyGroupSnapshotModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group snapshot modify default response a status code equal to that given func (o *ConsistencyGroupSnapshotModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupSnapshotModifyDefault) Error() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistency_group_snapshot_modify default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotModifyDefault) String() string { return fmt.Sprintf("[PATCH /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistency_group_snapshot_modify default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupSnapshotModifyDefault) 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/application/application_component_snapshot_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationComponentSnapshotCreateReader is a Reader for the ApplicationComponentSnapshotCreate structure. type ApplicationComponentSnapshotCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationComponentSnapshotCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationComponentSnapshotCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationComponentSnapshotCreateDefault(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 } } // NewApplicationComponentSnapshotCreateAccepted creates a ApplicationComponentSnapshotCreateAccepted with default headers values func NewApplicationComponentSnapshotCreateAccepted() *ApplicationComponentSnapshotCreateAccepted { return &ApplicationComponentSnapshotCreateAccepted{} } /* ApplicationComponentSnapshotCreateAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationComponentSnapshotCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this application component snapshot create accepted response has a 2xx status code func (o *ApplicationComponentSnapshotCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application component snapshot create accepted response has a 3xx status code func (o *ApplicationComponentSnapshotCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application component snapshot create accepted response has a 4xx status code func (o *ApplicationComponentSnapshotCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this application component snapshot create accepted response has a 5xx status code func (o *ApplicationComponentSnapshotCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this application component snapshot create accepted response a status code equal to that given func (o *ApplicationComponentSnapshotCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationComponentSnapshotCreateAccepted) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] applicationComponentSnapshotCreateAccepted %+v", 202, o.Payload) } func (o *ApplicationComponentSnapshotCreateAccepted) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] applicationComponentSnapshotCreateAccepted %+v", 202, o.Payload) } func (o *ApplicationComponentSnapshotCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationComponentSnapshotCreateAccepted) 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 } // NewApplicationComponentSnapshotCreateDefault creates a ApplicationComponentSnapshotCreateDefault with default headers values func NewApplicationComponentSnapshotCreateDefault(code int) *ApplicationComponentSnapshotCreateDefault { return &ApplicationComponentSnapshotCreateDefault{ _statusCode: code, } } /* ApplicationComponentSnapshotCreateDefault describes a response with status code -1, with default header values. Error */ type ApplicationComponentSnapshotCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application component snapshot create default response func (o *ApplicationComponentSnapshotCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application component snapshot create default response has a 2xx status code func (o *ApplicationComponentSnapshotCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application component snapshot create default response has a 3xx status code func (o *ApplicationComponentSnapshotCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application component snapshot create default response has a 4xx status code func (o *ApplicationComponentSnapshotCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application component snapshot create default response has a 5xx status code func (o *ApplicationComponentSnapshotCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application component snapshot create default response a status code equal to that given func (o *ApplicationComponentSnapshotCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationComponentSnapshotCreateDefault) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] application_component_snapshot_create default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotCreateDefault) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] application_component_snapshot_create default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationComponentSnapshotCreateDefault) 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/application/application_template_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_template_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationTemplateGetReader is a Reader for the ApplicationTemplateGet structure. type ApplicationTemplateGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationTemplateGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationTemplateGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationTemplateGetDefault(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 } } // NewApplicationTemplateGetOK creates a ApplicationTemplateGetOK with default headers values func NewApplicationTemplateGetOK() *ApplicationTemplateGetOK { return &ApplicationTemplateGetOK{} } /* ApplicationTemplateGetOK describes a response with status code 200, with default header values. OK */ type ApplicationTemplateGetOK struct { Payload *models.ApplicationTemplate } // IsSuccess returns true when this application template get o k response has a 2xx status code func (o *ApplicationTemplateGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application template get o k response has a 3xx status code func (o *ApplicationTemplateGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application template get o k response has a 4xx status code func (o *ApplicationTemplateGetOK) IsClientError() bool { return false } // IsServerError returns true when this application template get o k response has a 5xx status code func (o *ApplicationTemplateGetOK) IsServerError() bool { return false } // IsCode returns true when this application template get o k response a status code equal to that given func (o *ApplicationTemplateGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationTemplateGetOK) Error() string { return fmt.Sprintf("[GET /application/templates/{name}][%d] applicationTemplateGetOK %+v", 200, o.Payload) } func (o *ApplicationTemplateGetOK) String() string { return fmt.Sprintf("[GET /application/templates/{name}][%d] applicationTemplateGetOK %+v", 200, o.Payload) } func (o *ApplicationTemplateGetOK) GetPayload() *models.ApplicationTemplate { return o.Payload } func (o *ApplicationTemplateGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationTemplate) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationTemplateGetDefault creates a ApplicationTemplateGetDefault with default headers values func NewApplicationTemplateGetDefault(code int) *ApplicationTemplateGetDefault { return &ApplicationTemplateGetDefault{ _statusCode: code, } } /* ApplicationTemplateGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationTemplateGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application template get default response func (o *ApplicationTemplateGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application template get default response has a 2xx status code func (o *ApplicationTemplateGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application template get default response has a 3xx status code func (o *ApplicationTemplateGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application template get default response has a 4xx status code func (o *ApplicationTemplateGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application template get default response has a 5xx status code func (o *ApplicationTemplateGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application template get default response a status code equal to that given func (o *ApplicationTemplateGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationTemplateGetDefault) Error() string { return fmt.Sprintf("[GET /application/templates/{name}][%d] application_template_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationTemplateGetDefault) String() string { return fmt.Sprintf("[GET /application/templates/{name}][%d] application_template_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationTemplateGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationTemplateGetDefault) 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/application/application_template_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_template_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationTemplateCollectionGetParams creates a new ApplicationTemplateCollectionGetParams 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 NewApplicationTemplateCollectionGetParams() *ApplicationTemplateCollectionGetParams { return &ApplicationTemplateCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationTemplateCollectionGetParamsWithTimeout creates a new ApplicationTemplateCollectionGetParams object // with the ability to set a timeout on a request. func NewApplicationTemplateCollectionGetParamsWithTimeout(timeout time.Duration) *ApplicationTemplateCollectionGetParams { return &ApplicationTemplateCollectionGetParams{ timeout: timeout, } } // NewApplicationTemplateCollectionGetParamsWithContext creates a new ApplicationTemplateCollectionGetParams object // with the ability to set a context for a request. func NewApplicationTemplateCollectionGetParamsWithContext(ctx context.Context) *ApplicationTemplateCollectionGetParams { return &ApplicationTemplateCollectionGetParams{ Context: ctx, } } // NewApplicationTemplateCollectionGetParamsWithHTTPClient creates a new ApplicationTemplateCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationTemplateCollectionGetParamsWithHTTPClient(client *http.Client) *ApplicationTemplateCollectionGetParams { return &ApplicationTemplateCollectionGetParams{ HTTPClient: client, } } /* ApplicationTemplateCollectionGetParams contains all the parameters to send to the API endpoint for the application template collection get operation. Typically these are written to a http.Request. */ type ApplicationTemplateCollectionGetParams struct { /* Description. Filter by description */ Description *string /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* MissingPrerequisites. Filter by missing_prerequisites */ MissingPrerequisites *string /* 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 /* Protocol. Filter by protocol */ Protocol *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 application template collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationTemplateCollectionGetParams) WithDefaults() *ApplicationTemplateCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application template collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationTemplateCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ApplicationTemplateCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithTimeout(timeout time.Duration) *ApplicationTemplateCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithContext(ctx context.Context) *ApplicationTemplateCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithHTTPClient(client *http.Client) *ApplicationTemplateCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDescription adds the description to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithDescription(description *string) *ApplicationTemplateCollectionGetParams { o.SetDescription(description) return o } // SetDescription adds the description to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetDescription(description *string) { o.Description = description } // WithFields adds the fields to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithFields(fields []string) *ApplicationTemplateCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithMaxRecords(maxRecords *int64) *ApplicationTemplateCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMissingPrerequisites adds the missingPrerequisites to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithMissingPrerequisites(missingPrerequisites *string) *ApplicationTemplateCollectionGetParams { o.SetMissingPrerequisites(missingPrerequisites) return o } // SetMissingPrerequisites adds the missingPrerequisites to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetMissingPrerequisites(missingPrerequisites *string) { o.MissingPrerequisites = missingPrerequisites } // WithName adds the name to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithName(name *string) *ApplicationTemplateCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithOrderBy(orderBy []string) *ApplicationTemplateCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithProtocol adds the protocol to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithProtocol(protocol *string) *ApplicationTemplateCollectionGetParams { o.SetProtocol(protocol) return o } // SetProtocol adds the protocol to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetProtocol(protocol *string) { o.Protocol = protocol } // WithReturnRecords adds the returnRecords to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithReturnRecords(returnRecords *bool) *ApplicationTemplateCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ApplicationTemplateCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application template collection get params func (o *ApplicationTemplateCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ApplicationTemplateCollectionGetParams) 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.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.MissingPrerequisites != nil { // query param missing_prerequisites var qrMissingPrerequisites string if o.MissingPrerequisites != nil { qrMissingPrerequisites = *o.MissingPrerequisites } qMissingPrerequisites := qrMissingPrerequisites if qMissingPrerequisites != "" { if err := r.SetQueryParam("missing_prerequisites", qMissingPrerequisites); 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.Protocol != nil { // query param protocol var qrProtocol string if o.Protocol != nil { qrProtocol = *o.Protocol } qProtocol := qrProtocol if qProtocol != "" { if err := r.SetQueryParam("protocol", qProtocol); 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 } // bindParamApplicationTemplateCollectionGet binds the parameter fields func (o *ApplicationTemplateCollectionGetParams) 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 } // bindParamApplicationTemplateCollectionGet binds the parameter order_by func (o *ApplicationTemplateCollectionGetParams) 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/application/application_component_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationComponentCollectionGetReader is a Reader for the ApplicationComponentCollectionGet structure. type ApplicationComponentCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationComponentCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationComponentCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationComponentCollectionGetDefault(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 } } // NewApplicationComponentCollectionGetOK creates a ApplicationComponentCollectionGetOK with default headers values func NewApplicationComponentCollectionGetOK() *ApplicationComponentCollectionGetOK { return &ApplicationComponentCollectionGetOK{} } /* ApplicationComponentCollectionGetOK describes a response with status code 200, with default header values. OK */ type ApplicationComponentCollectionGetOK struct { Payload *models.ApplicationComponentResponse } // IsSuccess returns true when this application component collection get o k response has a 2xx status code func (o *ApplicationComponentCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application component collection get o k response has a 3xx status code func (o *ApplicationComponentCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application component collection get o k response has a 4xx status code func (o *ApplicationComponentCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this application component collection get o k response has a 5xx status code func (o *ApplicationComponentCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this application component collection get o k response a status code equal to that given func (o *ApplicationComponentCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationComponentCollectionGetOK) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components][%d] applicationComponentCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentCollectionGetOK) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components][%d] applicationComponentCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentCollectionGetOK) GetPayload() *models.ApplicationComponentResponse { return o.Payload } func (o *ApplicationComponentCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationComponentResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationComponentCollectionGetDefault creates a ApplicationComponentCollectionGetDefault with default headers values func NewApplicationComponentCollectionGetDefault(code int) *ApplicationComponentCollectionGetDefault { return &ApplicationComponentCollectionGetDefault{ _statusCode: code, } } /* ApplicationComponentCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationComponentCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application component collection get default response func (o *ApplicationComponentCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application component collection get default response has a 2xx status code func (o *ApplicationComponentCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application component collection get default response has a 3xx status code func (o *ApplicationComponentCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application component collection get default response has a 4xx status code func (o *ApplicationComponentCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application component collection get default response has a 5xx status code func (o *ApplicationComponentCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application component collection get default response a status code equal to that given func (o *ApplicationComponentCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationComponentCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components][%d] application_component_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentCollectionGetDefault) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components][%d] application_component_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationComponentCollectionGetDefault) 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/application/application_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationGetReader is a Reader for the ApplicationGet structure. type ApplicationGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationGetDefault(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 } } // NewApplicationGetOK creates a ApplicationGetOK with default headers values func NewApplicationGetOK() *ApplicationGetOK { return &ApplicationGetOK{} } /* ApplicationGetOK describes a response with status code 200, with default header values. OK */ type ApplicationGetOK struct { Payload *models.Application } // IsSuccess returns true when this application get o k response has a 2xx status code func (o *ApplicationGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application get o k response has a 3xx status code func (o *ApplicationGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application get o k response has a 4xx status code func (o *ApplicationGetOK) IsClientError() bool { return false } // IsServerError returns true when this application get o k response has a 5xx status code func (o *ApplicationGetOK) IsServerError() bool { return false } // IsCode returns true when this application get o k response a status code equal to that given func (o *ApplicationGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationGetOK) Error() string { return fmt.Sprintf("[GET /application/applications/{uuid}][%d] applicationGetOK %+v", 200, o.Payload) } func (o *ApplicationGetOK) String() string { return fmt.Sprintf("[GET /application/applications/{uuid}][%d] applicationGetOK %+v", 200, o.Payload) } func (o *ApplicationGetOK) GetPayload() *models.Application { return o.Payload } func (o *ApplicationGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Application) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationGetDefault creates a ApplicationGetDefault with default headers values func NewApplicationGetDefault(code int) *ApplicationGetDefault { return &ApplicationGetDefault{ _statusCode: code, } } /* ApplicationGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application get default response func (o *ApplicationGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application get default response has a 2xx status code func (o *ApplicationGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application get default response has a 3xx status code func (o *ApplicationGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application get default response has a 4xx status code func (o *ApplicationGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application get default response has a 5xx status code func (o *ApplicationGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application get default response a status code equal to that given func (o *ApplicationGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications/{uuid}][%d] application_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationGetDefault) String() string { return fmt.Sprintf("[GET /application/applications/{uuid}][%d] application_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationGetDefault) 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/application/consistency_group_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupDeleteParams creates a new ConsistencyGroupDeleteParams 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 NewConsistencyGroupDeleteParams() *ConsistencyGroupDeleteParams { return &ConsistencyGroupDeleteParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupDeleteParamsWithTimeout creates a new ConsistencyGroupDeleteParams object // with the ability to set a timeout on a request. func NewConsistencyGroupDeleteParamsWithTimeout(timeout time.Duration) *ConsistencyGroupDeleteParams { return &ConsistencyGroupDeleteParams{ timeout: timeout, } } // NewConsistencyGroupDeleteParamsWithContext creates a new ConsistencyGroupDeleteParams object // with the ability to set a context for a request. func NewConsistencyGroupDeleteParamsWithContext(ctx context.Context) *ConsistencyGroupDeleteParams { return &ConsistencyGroupDeleteParams{ Context: ctx, } } // NewConsistencyGroupDeleteParamsWithHTTPClient creates a new ConsistencyGroupDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupDeleteParamsWithHTTPClient(client *http.Client) *ConsistencyGroupDeleteParams { return &ConsistencyGroupDeleteParams{ HTTPClient: client, } } /* ConsistencyGroupDeleteParams contains all the parameters to send to the API endpoint for the consistency group delete operation. Typically these are written to a http.Request. */ type ConsistencyGroupDeleteParams struct { /* DeleteData. Delete the underlying storage as well as the consistency group association. **This parameter should be used with caution.** */ DeleteData *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 /* UUID. The unique identifier of the consistency group to delete. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the consistency group delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupDeleteParams) WithDefaults() *ConsistencyGroupDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupDeleteParams) SetDefaults() { var ( deleteDataDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ConsistencyGroupDeleteParams{ DeleteData: &deleteDataDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group delete params func (o *ConsistencyGroupDeleteParams) WithTimeout(timeout time.Duration) *ConsistencyGroupDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group delete params func (o *ConsistencyGroupDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group delete params func (o *ConsistencyGroupDeleteParams) WithContext(ctx context.Context) *ConsistencyGroupDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group delete params func (o *ConsistencyGroupDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group delete params func (o *ConsistencyGroupDeleteParams) WithHTTPClient(client *http.Client) *ConsistencyGroupDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group delete params func (o *ConsistencyGroupDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDeleteData adds the deleteData to the consistency group delete params func (o *ConsistencyGroupDeleteParams) WithDeleteData(deleteData *bool) *ConsistencyGroupDeleteParams { o.SetDeleteData(deleteData) return o } // SetDeleteData adds the deleteData to the consistency group delete params func (o *ConsistencyGroupDeleteParams) SetDeleteData(deleteData *bool) { o.DeleteData = deleteData } // WithReturnTimeout adds the returnTimeout to the consistency group delete params func (o *ConsistencyGroupDeleteParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group delete params func (o *ConsistencyGroupDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the consistency group delete params func (o *ConsistencyGroupDeleteParams) WithUUID(uuid string) *ConsistencyGroupDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the consistency group delete params func (o *ConsistencyGroupDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.DeleteData != nil { // query param delete_data var qrDeleteData bool if o.DeleteData != nil { qrDeleteData = *o.DeleteData } qDeleteData := swag.FormatBool(qrDeleteData) if qDeleteData != "" { if err := r.SetQueryParam("delete_data", qDeleteData); 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); 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/application/consistency_group_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupGetReader is a Reader for the ConsistencyGroupGet structure. type ConsistencyGroupGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupGetDefault(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 } } // NewConsistencyGroupGetOK creates a ConsistencyGroupGetOK with default headers values func NewConsistencyGroupGetOK() *ConsistencyGroupGetOK { return &ConsistencyGroupGetOK{} } /* ConsistencyGroupGetOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupGetOK struct { Payload *models.ConsistencyGroup } // IsSuccess returns true when this consistency group get o k response has a 2xx status code func (o *ConsistencyGroupGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group get o k response has a 3xx status code func (o *ConsistencyGroupGetOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group get o k response has a 4xx status code func (o *ConsistencyGroupGetOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group get o k response has a 5xx status code func (o *ConsistencyGroupGetOK) IsServerError() bool { return false } // IsCode returns true when this consistency group get o k response a status code equal to that given func (o *ConsistencyGroupGetOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupGetOK) Error() string { return fmt.Sprintf("[GET /application/consistency-groups/{uuid}][%d] consistencyGroupGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupGetOK) String() string { return fmt.Sprintf("[GET /application/consistency-groups/{uuid}][%d] consistencyGroupGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupGetOK) GetPayload() *models.ConsistencyGroup { return o.Payload } func (o *ConsistencyGroupGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ConsistencyGroup) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewConsistencyGroupGetDefault creates a ConsistencyGroupGetDefault with default headers values func NewConsistencyGroupGetDefault(code int) *ConsistencyGroupGetDefault { return &ConsistencyGroupGetDefault{ _statusCode: code, } } /* ConsistencyGroupGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 53411842 | Consistency group does not exist. | | 53411843 | A consistency group with specified UUID was not found. | | 53411844 | Specified consistency group was not found in the specified SVM. | | 53411845 | The specified UUID and name refer to different consistency groups. | | 53411846 | Either name or UUID must be provided. | */ type ConsistencyGroupGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group get default response func (o *ConsistencyGroupGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group get default response has a 2xx status code func (o *ConsistencyGroupGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group get default response has a 3xx status code func (o *ConsistencyGroupGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group get default response has a 4xx status code func (o *ConsistencyGroupGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group get default response has a 5xx status code func (o *ConsistencyGroupGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group get default response a status code equal to that given func (o *ConsistencyGroupGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupGetDefault) Error() string { return fmt.Sprintf("[GET /application/consistency-groups/{uuid}][%d] consistency_group_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupGetDefault) String() string { return fmt.Sprintf("[GET /application/consistency-groups/{uuid}][%d] consistency_group_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupGetDefault) 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/application/consistency_group_snapshot_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupSnapshotGetReader is a Reader for the ConsistencyGroupSnapshotGet structure. type ConsistencyGroupSnapshotGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupSnapshotGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupSnapshotGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupSnapshotGetDefault(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 } } // NewConsistencyGroupSnapshotGetOK creates a ConsistencyGroupSnapshotGetOK with default headers values func NewConsistencyGroupSnapshotGetOK() *ConsistencyGroupSnapshotGetOK { return &ConsistencyGroupSnapshotGetOK{} } /* ConsistencyGroupSnapshotGetOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupSnapshotGetOK struct { Payload *models.ConsistencyGroupSnapshot } // IsSuccess returns true when this consistency group snapshot get o k response has a 2xx status code func (o *ConsistencyGroupSnapshotGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot get o k response has a 3xx status code func (o *ConsistencyGroupSnapshotGetOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot get o k response has a 4xx status code func (o *ConsistencyGroupSnapshotGetOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot get o k response has a 5xx status code func (o *ConsistencyGroupSnapshotGetOK) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot get o k response a status code equal to that given func (o *ConsistencyGroupSnapshotGetOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupSnapshotGetOK) Error() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupSnapshotGetOK) String() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistencyGroupSnapshotGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupSnapshotGetOK) GetPayload() *models.ConsistencyGroupSnapshot { return o.Payload } func (o *ConsistencyGroupSnapshotGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ConsistencyGroupSnapshot) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewConsistencyGroupSnapshotGetDefault creates a ConsistencyGroupSnapshotGetDefault with default headers values func NewConsistencyGroupSnapshotGetDefault(code int) *ConsistencyGroupSnapshotGetDefault { return &ConsistencyGroupSnapshotGetDefault{ _statusCode: code, } } /* ConsistencyGroupSnapshotGetDefault describes a response with status code -1, with default header values. Error */ type ConsistencyGroupSnapshotGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group snapshot get default response func (o *ConsistencyGroupSnapshotGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group snapshot get default response has a 2xx status code func (o *ConsistencyGroupSnapshotGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group snapshot get default response has a 3xx status code func (o *ConsistencyGroupSnapshotGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group snapshot get default response has a 4xx status code func (o *ConsistencyGroupSnapshotGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group snapshot get default response has a 5xx status code func (o *ConsistencyGroupSnapshotGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group snapshot get default response a status code equal to that given func (o *ConsistencyGroupSnapshotGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupSnapshotGetDefault) Error() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistency_group_snapshot_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotGetDefault) String() string { return fmt.Sprintf("[GET /application/consistency-groups/{consistency_group.uuid}/snapshots/{uuid}][%d] consistency_group_snapshot_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupSnapshotGetDefault) 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/application/application_snapshot_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationSnapshotGetParams creates a new ApplicationSnapshotGetParams 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 NewApplicationSnapshotGetParams() *ApplicationSnapshotGetParams { return &ApplicationSnapshotGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationSnapshotGetParamsWithTimeout creates a new ApplicationSnapshotGetParams object // with the ability to set a timeout on a request. func NewApplicationSnapshotGetParamsWithTimeout(timeout time.Duration) *ApplicationSnapshotGetParams { return &ApplicationSnapshotGetParams{ timeout: timeout, } } // NewApplicationSnapshotGetParamsWithContext creates a new ApplicationSnapshotGetParams object // with the ability to set a context for a request. func NewApplicationSnapshotGetParamsWithContext(ctx context.Context) *ApplicationSnapshotGetParams { return &ApplicationSnapshotGetParams{ Context: ctx, } } // NewApplicationSnapshotGetParamsWithHTTPClient creates a new ApplicationSnapshotGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationSnapshotGetParamsWithHTTPClient(client *http.Client) *ApplicationSnapshotGetParams { return &ApplicationSnapshotGetParams{ HTTPClient: client, } } /* ApplicationSnapshotGetParams contains all the parameters to send to the API endpoint for the application snapshot get operation. Typically these are written to a http.Request. */ type ApplicationSnapshotGetParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* Fields. Specify the fields to return. */ Fields []string /* UUID. Snapshot copy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application snapshot get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotGetParams) WithDefaults() *ApplicationSnapshotGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application snapshot get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the application snapshot get params func (o *ApplicationSnapshotGetParams) WithTimeout(timeout time.Duration) *ApplicationSnapshotGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application snapshot get params func (o *ApplicationSnapshotGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application snapshot get params func (o *ApplicationSnapshotGetParams) WithContext(ctx context.Context) *ApplicationSnapshotGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application snapshot get params func (o *ApplicationSnapshotGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application snapshot get params func (o *ApplicationSnapshotGetParams) WithHTTPClient(client *http.Client) *ApplicationSnapshotGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application snapshot get params func (o *ApplicationSnapshotGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application snapshot get params func (o *ApplicationSnapshotGetParams) WithApplicationUUID(applicationUUID string) *ApplicationSnapshotGetParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application snapshot get params func (o *ApplicationSnapshotGetParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithFields adds the fields to the application snapshot get params func (o *ApplicationSnapshotGetParams) WithFields(fields []string) *ApplicationSnapshotGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application snapshot get params func (o *ApplicationSnapshotGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the application snapshot get params func (o *ApplicationSnapshotGetParams) WithUUID(uuid string) *ApplicationSnapshotGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application snapshot get params func (o *ApplicationSnapshotGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationSnapshotGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); 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 uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamApplicationSnapshotGet binds the parameter fields func (o *ApplicationSnapshotGetParams) 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/application/application_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationDeleteParams creates a new ApplicationDeleteParams 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 NewApplicationDeleteParams() *ApplicationDeleteParams { return &ApplicationDeleteParams{ timeout: cr.DefaultTimeout, } } // NewApplicationDeleteParamsWithTimeout creates a new ApplicationDeleteParams object // with the ability to set a timeout on a request. func NewApplicationDeleteParamsWithTimeout(timeout time.Duration) *ApplicationDeleteParams { return &ApplicationDeleteParams{ timeout: timeout, } } // NewApplicationDeleteParamsWithContext creates a new ApplicationDeleteParams object // with the ability to set a context for a request. func NewApplicationDeleteParamsWithContext(ctx context.Context) *ApplicationDeleteParams { return &ApplicationDeleteParams{ Context: ctx, } } // NewApplicationDeleteParamsWithHTTPClient creates a new ApplicationDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationDeleteParamsWithHTTPClient(client *http.Client) *ApplicationDeleteParams { return &ApplicationDeleteParams{ HTTPClient: client, } } /* ApplicationDeleteParams contains all the parameters to send to the API endpoint for the application delete operation. Typically these are written to a http.Request. */ type ApplicationDeleteParams struct { /* DeleteData. By default, deleting an application deletes all of the application's data. By setting this parameter to "false", the application's data is preserved, but can no longer be managed through application APIs. Default: true */ DeleteData *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 /* UUID. Application UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationDeleteParams) WithDefaults() *ApplicationDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationDeleteParams) SetDefaults() { var ( deleteDataDefault = bool(true) returnTimeoutDefault = int64(0) ) val := ApplicationDeleteParams{ DeleteData: &deleteDataDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application delete params func (o *ApplicationDeleteParams) WithTimeout(timeout time.Duration) *ApplicationDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application delete params func (o *ApplicationDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application delete params func (o *ApplicationDeleteParams) WithContext(ctx context.Context) *ApplicationDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the application delete params func (o *ApplicationDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application delete params func (o *ApplicationDeleteParams) WithHTTPClient(client *http.Client) *ApplicationDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application delete params func (o *ApplicationDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithDeleteData adds the deleteData to the application delete params func (o *ApplicationDeleteParams) WithDeleteData(deleteData *bool) *ApplicationDeleteParams { o.SetDeleteData(deleteData) return o } // SetDeleteData adds the deleteData to the application delete params func (o *ApplicationDeleteParams) SetDeleteData(deleteData *bool) { o.DeleteData = deleteData } // WithReturnTimeout adds the returnTimeout to the application delete params func (o *ApplicationDeleteParams) WithReturnTimeout(returnTimeout *int64) *ApplicationDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application delete params func (o *ApplicationDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application delete params func (o *ApplicationDeleteParams) WithUUID(uuid string) *ApplicationDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application delete params func (o *ApplicationDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.DeleteData != nil { // query param delete_data var qrDeleteData bool if o.DeleteData != nil { qrDeleteData = *o.DeleteData } qDeleteData := swag.FormatBool(qrDeleteData) if qDeleteData != "" { if err := r.SetQueryParam("delete_data", qDeleteData); 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); 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/application/application_snapshot_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationSnapshotGetReader is a Reader for the ApplicationSnapshotGet structure. type ApplicationSnapshotGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationSnapshotGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationSnapshotGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationSnapshotGetDefault(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 } } // NewApplicationSnapshotGetOK creates a ApplicationSnapshotGetOK with default headers values func NewApplicationSnapshotGetOK() *ApplicationSnapshotGetOK { return &ApplicationSnapshotGetOK{} } /* ApplicationSnapshotGetOK describes a response with status code 200, with default header values. OK */ type ApplicationSnapshotGetOK struct { Payload *models.ApplicationSnapshot } // IsSuccess returns true when this application snapshot get o k response has a 2xx status code func (o *ApplicationSnapshotGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application snapshot get o k response has a 3xx status code func (o *ApplicationSnapshotGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application snapshot get o k response has a 4xx status code func (o *ApplicationSnapshotGetOK) IsClientError() bool { return false } // IsServerError returns true when this application snapshot get o k response has a 5xx status code func (o *ApplicationSnapshotGetOK) IsServerError() bool { return false } // IsCode returns true when this application snapshot get o k response a status code equal to that given func (o *ApplicationSnapshotGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationSnapshotGetOK) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots/{uuid}][%d] applicationSnapshotGetOK %+v", 200, o.Payload) } func (o *ApplicationSnapshotGetOK) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots/{uuid}][%d] applicationSnapshotGetOK %+v", 200, o.Payload) } func (o *ApplicationSnapshotGetOK) GetPayload() *models.ApplicationSnapshot { return o.Payload } func (o *ApplicationSnapshotGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationSnapshot) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationSnapshotGetDefault creates a ApplicationSnapshotGetDefault with default headers values func NewApplicationSnapshotGetDefault(code int) *ApplicationSnapshotGetDefault { return &ApplicationSnapshotGetDefault{ _statusCode: code, } } /* ApplicationSnapshotGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationSnapshotGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application snapshot get default response func (o *ApplicationSnapshotGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application snapshot get default response has a 2xx status code func (o *ApplicationSnapshotGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application snapshot get default response has a 3xx status code func (o *ApplicationSnapshotGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application snapshot get default response has a 4xx status code func (o *ApplicationSnapshotGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application snapshot get default response has a 5xx status code func (o *ApplicationSnapshotGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application snapshot get default response a status code equal to that given func (o *ApplicationSnapshotGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationSnapshotGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots/{uuid}][%d] application_snapshot_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotGetDefault) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/snapshots/{uuid}][%d] application_snapshot_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationSnapshotGetDefault) 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/application/application_component_snapshot_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationComponentSnapshotCollectionGetParams creates a new ApplicationComponentSnapshotCollectionGetParams 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 NewApplicationComponentSnapshotCollectionGetParams() *ApplicationComponentSnapshotCollectionGetParams { return &ApplicationComponentSnapshotCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationComponentSnapshotCollectionGetParamsWithTimeout creates a new ApplicationComponentSnapshotCollectionGetParams object // with the ability to set a timeout on a request. func NewApplicationComponentSnapshotCollectionGetParamsWithTimeout(timeout time.Duration) *ApplicationComponentSnapshotCollectionGetParams { return &ApplicationComponentSnapshotCollectionGetParams{ timeout: timeout, } } // NewApplicationComponentSnapshotCollectionGetParamsWithContext creates a new ApplicationComponentSnapshotCollectionGetParams object // with the ability to set a context for a request. func NewApplicationComponentSnapshotCollectionGetParamsWithContext(ctx context.Context) *ApplicationComponentSnapshotCollectionGetParams { return &ApplicationComponentSnapshotCollectionGetParams{ Context: ctx, } } // NewApplicationComponentSnapshotCollectionGetParamsWithHTTPClient creates a new ApplicationComponentSnapshotCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationComponentSnapshotCollectionGetParamsWithHTTPClient(client *http.Client) *ApplicationComponentSnapshotCollectionGetParams { return &ApplicationComponentSnapshotCollectionGetParams{ HTTPClient: client, } } /* ApplicationComponentSnapshotCollectionGetParams contains all the parameters to send to the API endpoint for the application component snapshot collection get operation. Typically these are written to a http.Request. */ type ApplicationComponentSnapshotCollectionGetParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* Comment. Filter by comment */ Comment *string /* ComponentName. Filter by Application Component Name */ ComponentName *string /* ComponentUUID. Application Component UUID */ ComponentUUID string /* ConsistencyType. Filter by consistency_type */ ConsistencyType *string /* CreateTime. Filter by create_time */ CreateTime *string /* Fields. Specify the fields to return. */ Fields []string /* IsPartial. Filter by is_partial */ IsPartial *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 /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application component snapshot collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotCollectionGetParams) WithDefaults() *ApplicationComponentSnapshotCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application component snapshot collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ApplicationComponentSnapshotCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithTimeout(timeout time.Duration) *ApplicationComponentSnapshotCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithContext(ctx context.Context) *ApplicationComponentSnapshotCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithHTTPClient(client *http.Client) *ApplicationComponentSnapshotCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithApplicationUUID(applicationUUID string) *ApplicationComponentSnapshotCollectionGetParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithComment adds the comment to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithComment(comment *string) *ApplicationComponentSnapshotCollectionGetParams { o.SetComment(comment) return o } // SetComment adds the comment to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetComment(comment *string) { o.Comment = comment } // WithComponentName adds the componentName to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithComponentName(componentName *string) *ApplicationComponentSnapshotCollectionGetParams { o.SetComponentName(componentName) return o } // SetComponentName adds the componentName to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetComponentName(componentName *string) { o.ComponentName = componentName } // WithComponentUUID adds the componentUUID to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithComponentUUID(componentUUID string) *ApplicationComponentSnapshotCollectionGetParams { o.SetComponentUUID(componentUUID) return o } // SetComponentUUID adds the componentUuid to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetComponentUUID(componentUUID string) { o.ComponentUUID = componentUUID } // WithConsistencyType adds the consistencyType to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithConsistencyType(consistencyType *string) *ApplicationComponentSnapshotCollectionGetParams { o.SetConsistencyType(consistencyType) return o } // SetConsistencyType adds the consistencyType to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetConsistencyType(consistencyType *string) { o.ConsistencyType = consistencyType } // WithCreateTime adds the createTime to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithCreateTime(createTime *string) *ApplicationComponentSnapshotCollectionGetParams { o.SetCreateTime(createTime) return o } // SetCreateTime adds the createTime to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetCreateTime(createTime *string) { o.CreateTime = createTime } // WithFields adds the fields to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithFields(fields []string) *ApplicationComponentSnapshotCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithIsPartial adds the isPartial to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithIsPartial(isPartial *string) *ApplicationComponentSnapshotCollectionGetParams { o.SetIsPartial(isPartial) return o } // SetIsPartial adds the isPartial to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetIsPartial(isPartial *string) { o.IsPartial = isPartial } // WithMaxRecords adds the maxRecords to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithMaxRecords(maxRecords *int64) *ApplicationComponentSnapshotCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithName(name *string) *ApplicationComponentSnapshotCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithOrderBy(orderBy []string) *ApplicationComponentSnapshotCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithReturnRecords(returnRecords *bool) *ApplicationComponentSnapshotCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ApplicationComponentSnapshotCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) WithUUID(uuid *string) *ApplicationComponentSnapshotCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application component snapshot collection get params func (o *ApplicationComponentSnapshotCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationComponentSnapshotCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); err != nil { return err } if o.Comment != nil { // query param comment var qrComment string if o.Comment != nil { qrComment = *o.Comment } qComment := qrComment if qComment != "" { if err := r.SetQueryParam("comment", qComment); err != nil { return err } } } if o.ComponentName != nil { // query param component.name var qrComponentName string if o.ComponentName != nil { qrComponentName = *o.ComponentName } qComponentName := qrComponentName if qComponentName != "" { if err := r.SetQueryParam("component.name", qComponentName); err != nil { return err } } } // path param component.uuid if err := r.SetPathParam("component.uuid", o.ComponentUUID); err != nil { return err } if o.ConsistencyType != nil { // query param consistency_type var qrConsistencyType string if o.ConsistencyType != nil { qrConsistencyType = *o.ConsistencyType } qConsistencyType := qrConsistencyType if qConsistencyType != "" { if err := r.SetQueryParam("consistency_type", qConsistencyType); err != nil { return err } } } if o.CreateTime != nil { // query param create_time var qrCreateTime string if o.CreateTime != nil { qrCreateTime = *o.CreateTime } qCreateTime := qrCreateTime if qCreateTime != "" { if err := r.SetQueryParam("create_time", qCreateTime); 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.IsPartial != nil { // query param is_partial var qrIsPartial string if o.IsPartial != nil { qrIsPartial = *o.IsPartial } qIsPartial := qrIsPartial if qIsPartial != "" { if err := r.SetQueryParam("is_partial", qIsPartial); 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.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 } // bindParamApplicationComponentSnapshotCollectionGet binds the parameter fields func (o *ApplicationComponentSnapshotCollectionGetParams) 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 } // bindParamApplicationComponentSnapshotCollectionGet binds the parameter order_by func (o *ApplicationComponentSnapshotCollectionGetParams) 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/application/application_template_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_template_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationTemplateGetParams creates a new ApplicationTemplateGetParams 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 NewApplicationTemplateGetParams() *ApplicationTemplateGetParams { return &ApplicationTemplateGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationTemplateGetParamsWithTimeout creates a new ApplicationTemplateGetParams object // with the ability to set a timeout on a request. func NewApplicationTemplateGetParamsWithTimeout(timeout time.Duration) *ApplicationTemplateGetParams { return &ApplicationTemplateGetParams{ timeout: timeout, } } // NewApplicationTemplateGetParamsWithContext creates a new ApplicationTemplateGetParams object // with the ability to set a context for a request. func NewApplicationTemplateGetParamsWithContext(ctx context.Context) *ApplicationTemplateGetParams { return &ApplicationTemplateGetParams{ Context: ctx, } } // NewApplicationTemplateGetParamsWithHTTPClient creates a new ApplicationTemplateGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationTemplateGetParamsWithHTTPClient(client *http.Client) *ApplicationTemplateGetParams { return &ApplicationTemplateGetParams{ HTTPClient: client, } } /* ApplicationTemplateGetParams contains all the parameters to send to the API endpoint for the application template get operation. Typically these are written to a http.Request. */ type ApplicationTemplateGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* Name. Template Name */ Name string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application template get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationTemplateGetParams) WithDefaults() *ApplicationTemplateGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application template get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationTemplateGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the application template get params func (o *ApplicationTemplateGetParams) WithTimeout(timeout time.Duration) *ApplicationTemplateGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application template get params func (o *ApplicationTemplateGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application template get params func (o *ApplicationTemplateGetParams) WithContext(ctx context.Context) *ApplicationTemplateGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application template get params func (o *ApplicationTemplateGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application template get params func (o *ApplicationTemplateGetParams) WithHTTPClient(client *http.Client) *ApplicationTemplateGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application template get params func (o *ApplicationTemplateGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the application template get params func (o *ApplicationTemplateGetParams) WithFields(fields []string) *ApplicationTemplateGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application template get params func (o *ApplicationTemplateGetParams) SetFields(fields []string) { o.Fields = fields } // WithName adds the name to the application template get params func (o *ApplicationTemplateGetParams) WithName(name string) *ApplicationTemplateGetParams { o.SetName(name) return o } // SetName adds the name to the application template get params func (o *ApplicationTemplateGetParams) SetName(name string) { o.Name = name } // WriteToRequest writes these params to a swagger request func (o *ApplicationTemplateGetParams) 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 } // bindParamApplicationTemplateGet binds the parameter fields func (o *ApplicationTemplateGetParams) 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/application/application_component_snapshot_restore_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_restore_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationComponentSnapshotRestoreParams creates a new ApplicationComponentSnapshotRestoreParams 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 NewApplicationComponentSnapshotRestoreParams() *ApplicationComponentSnapshotRestoreParams { return &ApplicationComponentSnapshotRestoreParams{ timeout: cr.DefaultTimeout, } } // NewApplicationComponentSnapshotRestoreParamsWithTimeout creates a new ApplicationComponentSnapshotRestoreParams object // with the ability to set a timeout on a request. func NewApplicationComponentSnapshotRestoreParamsWithTimeout(timeout time.Duration) *ApplicationComponentSnapshotRestoreParams { return &ApplicationComponentSnapshotRestoreParams{ timeout: timeout, } } // NewApplicationComponentSnapshotRestoreParamsWithContext creates a new ApplicationComponentSnapshotRestoreParams object // with the ability to set a context for a request. func NewApplicationComponentSnapshotRestoreParamsWithContext(ctx context.Context) *ApplicationComponentSnapshotRestoreParams { return &ApplicationComponentSnapshotRestoreParams{ Context: ctx, } } // NewApplicationComponentSnapshotRestoreParamsWithHTTPClient creates a new ApplicationComponentSnapshotRestoreParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationComponentSnapshotRestoreParamsWithHTTPClient(client *http.Client) *ApplicationComponentSnapshotRestoreParams { return &ApplicationComponentSnapshotRestoreParams{ HTTPClient: client, } } /* ApplicationComponentSnapshotRestoreParams contains all the parameters to send to the API endpoint for the application component snapshot restore operation. Typically these are written to a http.Request. */ type ApplicationComponentSnapshotRestoreParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* ComponentUUID. Application Component UUID */ ComponentUUID string /* 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 /* UUID. Snapshot copy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application component snapshot restore params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotRestoreParams) WithDefaults() *ApplicationComponentSnapshotRestoreParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application component snapshot restore params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotRestoreParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ApplicationComponentSnapshotRestoreParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithTimeout(timeout time.Duration) *ApplicationComponentSnapshotRestoreParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithContext(ctx context.Context) *ApplicationComponentSnapshotRestoreParams { o.SetContext(ctx) return o } // SetContext adds the context to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithHTTPClient(client *http.Client) *ApplicationComponentSnapshotRestoreParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithApplicationUUID(applicationUUID string) *ApplicationComponentSnapshotRestoreParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithComponentUUID adds the componentUUID to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithComponentUUID(componentUUID string) *ApplicationComponentSnapshotRestoreParams { o.SetComponentUUID(componentUUID) return o } // SetComponentUUID adds the componentUuid to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetComponentUUID(componentUUID string) { o.ComponentUUID = componentUUID } // WithReturnRecords adds the returnRecords to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithReturnRecords(returnRecords *bool) *ApplicationComponentSnapshotRestoreParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithReturnTimeout(returnTimeout *int64) *ApplicationComponentSnapshotRestoreParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) WithUUID(uuid string) *ApplicationComponentSnapshotRestoreParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application component snapshot restore params func (o *ApplicationComponentSnapshotRestoreParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationComponentSnapshotRestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); err != nil { return err } // path param component.uuid if err := r.SetPathParam("component.uuid", o.ComponentUUID); 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 } } } // 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/application/application_component_snapshot_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationComponentSnapshotCreateParams creates a new ApplicationComponentSnapshotCreateParams 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 NewApplicationComponentSnapshotCreateParams() *ApplicationComponentSnapshotCreateParams { return &ApplicationComponentSnapshotCreateParams{ timeout: cr.DefaultTimeout, } } // NewApplicationComponentSnapshotCreateParamsWithTimeout creates a new ApplicationComponentSnapshotCreateParams object // with the ability to set a timeout on a request. func NewApplicationComponentSnapshotCreateParamsWithTimeout(timeout time.Duration) *ApplicationComponentSnapshotCreateParams { return &ApplicationComponentSnapshotCreateParams{ timeout: timeout, } } // NewApplicationComponentSnapshotCreateParamsWithContext creates a new ApplicationComponentSnapshotCreateParams object // with the ability to set a context for a request. func NewApplicationComponentSnapshotCreateParamsWithContext(ctx context.Context) *ApplicationComponentSnapshotCreateParams { return &ApplicationComponentSnapshotCreateParams{ Context: ctx, } } // NewApplicationComponentSnapshotCreateParamsWithHTTPClient creates a new ApplicationComponentSnapshotCreateParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationComponentSnapshotCreateParamsWithHTTPClient(client *http.Client) *ApplicationComponentSnapshotCreateParams { return &ApplicationComponentSnapshotCreateParams{ HTTPClient: client, } } /* ApplicationComponentSnapshotCreateParams contains all the parameters to send to the API endpoint for the application component snapshot create operation. Typically these are written to a http.Request. */ type ApplicationComponentSnapshotCreateParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* ComponentUUID. Application Component UUID */ ComponentUUID string /* Info. Info specification */ Info *models.ApplicationComponentSnapshot /* 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 application component snapshot create params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotCreateParams) WithDefaults() *ApplicationComponentSnapshotCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application component snapshot create params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentSnapshotCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ApplicationComponentSnapshotCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithTimeout(timeout time.Duration) *ApplicationComponentSnapshotCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithContext(ctx context.Context) *ApplicationComponentSnapshotCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithHTTPClient(client *http.Client) *ApplicationComponentSnapshotCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithApplicationUUID(applicationUUID string) *ApplicationComponentSnapshotCreateParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithComponentUUID adds the componentUUID to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithComponentUUID(componentUUID string) *ApplicationComponentSnapshotCreateParams { o.SetComponentUUID(componentUUID) return o } // SetComponentUUID adds the componentUuid to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetComponentUUID(componentUUID string) { o.ComponentUUID = componentUUID } // WithInfo adds the info to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithInfo(info *models.ApplicationComponentSnapshot) *ApplicationComponentSnapshotCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetInfo(info *models.ApplicationComponentSnapshot) { o.Info = info } // WithReturnRecords adds the returnRecords to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithReturnRecords(returnRecords *bool) *ApplicationComponentSnapshotCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) WithReturnTimeout(returnTimeout *int64) *ApplicationComponentSnapshotCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application component snapshot create params func (o *ApplicationComponentSnapshotCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ApplicationComponentSnapshotCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); err != nil { return err } // path param component.uuid if err := r.SetPathParam("component.uuid", o.ComponentUUID); err != nil { return err } 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/application/consistency_group_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupCreateReader is a Reader for the ConsistencyGroupCreate structure. type ConsistencyGroupCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewConsistencyGroupCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 202: result := NewConsistencyGroupCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupCreateDefault(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 } } // NewConsistencyGroupCreateCreated creates a ConsistencyGroupCreateCreated with default headers values func NewConsistencyGroupCreateCreated() *ConsistencyGroupCreateCreated { return &ConsistencyGroupCreateCreated{} } /* ConsistencyGroupCreateCreated describes a response with status code 201, with default header values. Created */ type ConsistencyGroupCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.ConsistencyGroupResponse } // IsSuccess returns true when this consistency group create created response has a 2xx status code func (o *ConsistencyGroupCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group create created response has a 3xx status code func (o *ConsistencyGroupCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this consistency group create created response has a 4xx status code func (o *ConsistencyGroupCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this consistency group create created response has a 5xx status code func (o *ConsistencyGroupCreateCreated) IsServerError() bool { return false } // IsCode returns true when this consistency group create created response a status code equal to that given func (o *ConsistencyGroupCreateCreated) IsCode(code int) bool { return code == 201 } func (o *ConsistencyGroupCreateCreated) Error() string { return fmt.Sprintf("[POST /application/consistency-groups][%d] consistencyGroupCreateCreated %+v", 201, o.Payload) } func (o *ConsistencyGroupCreateCreated) String() string { return fmt.Sprintf("[POST /application/consistency-groups][%d] consistencyGroupCreateCreated %+v", 201, o.Payload) } func (o *ConsistencyGroupCreateCreated) GetPayload() *models.ConsistencyGroupResponse { return o.Payload } func (o *ConsistencyGroupCreateCreated) 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.ConsistencyGroupResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewConsistencyGroupCreateAccepted creates a ConsistencyGroupCreateAccepted with default headers values func NewConsistencyGroupCreateAccepted() *ConsistencyGroupCreateAccepted { return &ConsistencyGroupCreateAccepted{} } /* ConsistencyGroupCreateAccepted describes a response with status code 202, with default header values. Accepted */ type ConsistencyGroupCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this consistency group create accepted response has a 2xx status code func (o *ConsistencyGroupCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group create accepted response has a 3xx status code func (o *ConsistencyGroupCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this consistency group create accepted response has a 4xx status code func (o *ConsistencyGroupCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this consistency group create accepted response has a 5xx status code func (o *ConsistencyGroupCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this consistency group create accepted response a status code equal to that given func (o *ConsistencyGroupCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *ConsistencyGroupCreateAccepted) Error() string { return fmt.Sprintf("[POST /application/consistency-groups][%d] consistencyGroupCreateAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupCreateAccepted) String() string { return fmt.Sprintf("[POST /application/consistency-groups][%d] consistencyGroupCreateAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ConsistencyGroupCreateAccepted) 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 } // NewConsistencyGroupCreateDefault creates a ConsistencyGroupCreateDefault with default headers values func NewConsistencyGroupCreateDefault(code int) *ConsistencyGroupCreateDefault { return &ConsistencyGroupCreateDefault{ _statusCode: code, } } /* ConsistencyGroupCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 53411842 | Consistency group does not exist. | | 53411843 | A consistency group with specified UUID was not found. | | 53411844 | Specified consistency group was not found in the specified SVM. | | 53411845 | The specified UUID and name refer to different consistency groups. | | 53411846 | Either name or UUID must be provided. | | 53411853 | Fields provided in the request conflict with each other. | | 53411856 | Field provided is only supported when provisioning new objects. | | 53411857 | LUNs that are not members of the application are not supported by this API. LUNs can be added to an application by adding the volume containing the LUNs to the application. | | 53411860 | An object with the same identifier in the same scope exists. | | 53411861 | Volume specified does not exist in provided volume array. | | 53411862 | Modifying existing igroups is not supported using this API. | | 53411864 | Request content insufficient to add an existing volume to an application. | | 53411865 | Volumes contained in one consistency group can not be added to a different consistency group. | | 53411866 | LUNs are not supported on FlexGroups volumes. | | 53411867 | LUN name is too long after appending a unique suffix. | | 53411869 | Volume name is too long after appending a unique suffix. | | 53411870 | When using the \"round_robin\" layout, the volume count must not be greater than the LUN count. | */ type ConsistencyGroupCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group create default response func (o *ConsistencyGroupCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group create default response has a 2xx status code func (o *ConsistencyGroupCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group create default response has a 3xx status code func (o *ConsistencyGroupCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group create default response has a 4xx status code func (o *ConsistencyGroupCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group create default response has a 5xx status code func (o *ConsistencyGroupCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group create default response a status code equal to that given func (o *ConsistencyGroupCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupCreateDefault) Error() string { return fmt.Sprintf("[POST /application/consistency-groups][%d] consistency_group_create default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupCreateDefault) String() string { return fmt.Sprintf("[POST /application/consistency-groups][%d] consistency_group_create default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupCreateDefault) 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/application/application_client.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_client.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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 application API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* Client for application 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 { ApplicationCollectionGet(params *ApplicationCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationCollectionGetOK, error) ApplicationComponentCollectionGet(params *ApplicationComponentCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentCollectionGetOK, error) ApplicationComponentGet(params *ApplicationComponentGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentGetOK, error) ApplicationComponentSnapshotCollectionGet(params *ApplicationComponentSnapshotCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotCollectionGetOK, error) ApplicationComponentSnapshotCreate(params *ApplicationComponentSnapshotCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotCreateAccepted, error) ApplicationComponentSnapshotDelete(params *ApplicationComponentSnapshotDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotDeleteAccepted, error) ApplicationComponentSnapshotGet(params *ApplicationComponentSnapshotGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotGetOK, error) ApplicationComponentSnapshotRestore(params *ApplicationComponentSnapshotRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotRestoreAccepted, error) ApplicationCreate(params *ApplicationCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationCreateAccepted, error) ApplicationDelete(params *ApplicationDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationDeleteAccepted, error) ApplicationGet(params *ApplicationGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationGetOK, error) ApplicationModify(params *ApplicationModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationModifyAccepted, error) ApplicationSnapshotCollectionGet(params *ApplicationSnapshotCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationSnapshotCollectionGetOK, error) ApplicationSnapshotCreate(params *ApplicationSnapshotCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationSnapshotCreateAccepted, error) ApplicationSnapshotDelete(params *ApplicationSnapshotDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationSnapshotDeleteAccepted, error) ApplicationSnapshotGet(params *ApplicationSnapshotGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationSnapshotGetOK, error) ApplicationSnapshotRestore(params *ApplicationSnapshotRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationSnapshotRestoreAccepted, error) ApplicationTemplateCollectionGet(params *ApplicationTemplateCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationTemplateCollectionGetOK, error) ApplicationTemplateGet(params *ApplicationTemplateGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationTemplateGetOK, error) ConsistencyGroupCollectionGet(params *ConsistencyGroupCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupCollectionGetOK, error) ConsistencyGroupCreate(params *ConsistencyGroupCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupCreateCreated, *ConsistencyGroupCreateAccepted, error) ConsistencyGroupDelete(params *ConsistencyGroupDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupDeleteOK, *ConsistencyGroupDeleteAccepted, error) ConsistencyGroupGet(params *ConsistencyGroupGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupGetOK, error) ConsistencyGroupModify(params *ConsistencyGroupModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupModifyOK, *ConsistencyGroupModifyAccepted, error) ConsistencyGroupSnapshotCollectionGet(params *ConsistencyGroupSnapshotCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupSnapshotCollectionGetOK, error) ConsistencyGroupSnapshotCreate(params *ConsistencyGroupSnapshotCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupSnapshotCreateCreated, *ConsistencyGroupSnapshotCreateAccepted, error) ConsistencyGroupSnapshotDelete(params *ConsistencyGroupSnapshotDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupSnapshotDeleteOK, *ConsistencyGroupSnapshotDeleteAccepted, error) ConsistencyGroupSnapshotGet(params *ConsistencyGroupSnapshotGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupSnapshotGetOK, error) ConsistencyGroupSnapshotModify(params *ConsistencyGroupSnapshotModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsistencyGroupSnapshotModifyOK, *ConsistencyGroupSnapshotModifyAccepted, error) SetTransport(transport runtime.ClientTransport) } /* ApplicationCollectionGet Retrieves applications. ### Expensive properties There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the `fields` query parameter. See [`Requesting specific fields`](#Requesting_specific_fields) to learn more. * `<template>` the property corresponding to the `template.name` of the application ### Query examples Numerous queries are available for classifying and sorting applications: 1. Return a list of applications sorted by name. ``` GET /application/applications?order_by=name ``` <br/> 2. Return a list of applications for a specific SVM. ``` GET /application/applications?svm.name=<name> ``` <br/> 3. Return a list of all SQL applications. ``` GET /application/applications?template.name=sql* ``` <br/> 4. Return a list of all applications that can be accessed via SAN.<br/> ``` GET /application/applications?template.protocol=san ``` <br/> 5. Return the top five applications consuming the most IOPS.<br/> ``` GET /application/applications?order_by=statistics.iops.total desc&max_records=5 ``` <br/>The above examples are not comprehensive. There are many more properties available for queries. Also, multiple queries can be mixed and matched with other query parameters for a large variety of requests. See the per-property documentation below for the full list of supported query parameters. ### Learn more * [`DOC /application`](#docs-application-overview) */ func (a *Client) ApplicationCollectionGet(params *ApplicationCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationCollectionGetParams() } op := &runtime.ClientOperation{ ID: "application_collection_get", Method: "GET", PathPattern: "/application/applications", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationCollectionGetReader{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.(*ApplicationCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationComponentCollectionGet Retrieves application components. ### Overview The application component object exposes how to access an application. Most application interfaces abstract away the underlying ONTAP storage elements, but this interface exposes what is necessary to connect to and uses the storage that is provisioned for an application. See the application component model for a detailed description of each property. ### Query examples Queries are limited on this API. Most of the details are nested under the `nfs_access`, `cifs_access`, or `san_access` properties, but those properties do not support queries, and properties nested under those properties cannot be requested individually in the current release.<br/> The following query returns all application components with names beginning in _secondary_.<br/><br/> ``` GET /application/applications/{application.uuid}/components?name=secondary* ``` <br/>The following query returns all application components at the _extreme_ storage service.<br/><br/> ``` GET /application/applications/{application.uuid}/components?storage_service.name=extreme ``` ### Learn more * [`DOC /application`](#docs-application-overview) */ func (a *Client) ApplicationComponentCollectionGet(params *ApplicationComponentCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationComponentCollectionGetParams() } op := &runtime.ClientOperation{ ID: "application_component_collection_get", Method: "GET", PathPattern: "/application/applications/{application.uuid}/components", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationComponentCollectionGetReader{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.(*ApplicationComponentCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationComponentCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationComponentGet Retrieves an application component. ### Overview The application component object exposes how to access an application. Most application interfaces abstract away the underlying ONTAP storage elements, but this interface exposes what is necessary to connect to and uses the storage that is provisioned for an application. See the application component model for a detailed description of each property. ### Access Each application component can be accessed via NFS, CIFS, or SAN. NFS and CIFS access can be enabled simultaneously. Each access section includes a `backing_storage` property. This property is used to correlate the storage elements with the access elements of the application. The `backing_storage` portion of the access section provides the `type` and `uuid` of the backing storage. There is another `backing_storage` property at the same level as the access properties which contains lists of backing storage elements corresponding to the types listed in the access section. ### Learn more * [`DOC /application`](#docs-application-overview) */ func (a *Client) ApplicationComponentGet(params *ApplicationComponentGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationComponentGetParams() } op := &runtime.ClientOperation{ ID: "application_component_get", Method: "GET", PathPattern: "/application/applications/{application.uuid}/components/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationComponentGetReader{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.(*ApplicationComponentGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationComponentGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationComponentSnapshotCollectionGet Retrieves Snapshot copies of an application component.<br/> This endpoint is only supported for Maxdata template applications.<br/> Component Snapshot copies are essentially more granular application Snapshot copies. There is no difference beyond the scope of the operation. ### Learn more * [`DOC /application/applications/{application.uuid}/snapshots`](#docs-application-application_applications_{application.uuid}_snapshots) * [`GET /application/applications/{uuid}/snapshots`](#operations-application-application_snapshot_collection_get) * [`DOC /application`](#docs-application-overview) */ func (a *Client) ApplicationComponentSnapshotCollectionGet(params *ApplicationComponentSnapshotCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotCollectionGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationComponentSnapshotCollectionGetParams() } op := &runtime.ClientOperation{ ID: "application_component_snapshot_collection_get", Method: "GET", PathPattern: "/application/applications/{application.uuid}/components/{component.uuid}/snapshots", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationComponentSnapshotCollectionGetReader{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.(*ApplicationComponentSnapshotCollectionGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationComponentSnapshotCollectionGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationComponentSnapshotCreate Creates a Snapshot copy of an application component.<br/> This endpoint is only supported for Maxdata template applications.<br/> ### Required properties * `name` ### Recommended optional properties * `consistency_type` - Track whether this snapshot is _application_ or _crash_ consistent. Component Snapshot copies are essentially more granular application Snapshot copies. There is no difference beyond the scope of the operation. ### Learn more * [`DOC /application/applications/{application.uuid}/snapshots`](#docs-application-application_applications_{application.uuid}_snapshots) * [`GET /application/applications/{uuid}/snapshots`](#operations-application-application_snapshot_create) * [`DOC /application`](#docs-application-overview) */ func (a *Client) ApplicationComponentSnapshotCreate(params *ApplicationComponentSnapshotCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotCreateAccepted, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationComponentSnapshotCreateParams() } op := &runtime.ClientOperation{ ID: "application_component_snapshot_create", Method: "POST", PathPattern: "/application/applications/{application.uuid}/components/{component.uuid}/snapshots", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationComponentSnapshotCreateReader{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.(*ApplicationComponentSnapshotCreateAccepted) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationComponentSnapshotCreateDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationComponentSnapshotDelete Delete a Snapshot copy of an application component.<br/> This endpoint is only supported for Maxdata template applications.<br/> Component Snapshot copies are essentially more granular application Snapshot copies. There is no difference beyond the scope of the operation. ### Learn more * [`DOC /application/applications/{application.uuid}/snapshots`](#docs-application-application_applications_{application.uuid}_snapshots) * [`DELETE /application/applications/{uuid}/snapshots`](#operations-application-application_snapshot_delete) * [`DOC /application`](#docs-application-overview) */ func (a *Client) ApplicationComponentSnapshotDelete(params *ApplicationComponentSnapshotDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotDeleteAccepted, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationComponentSnapshotDeleteParams() } op := &runtime.ClientOperation{ ID: "application_component_snapshot_delete", Method: "DELETE", PathPattern: "/application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationComponentSnapshotDeleteReader{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.(*ApplicationComponentSnapshotDeleteAccepted) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationComponentSnapshotDeleteDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationComponentSnapshotGet Retrieve a Snapshot copy of an application component.<br/> This endpoint is only supported for Maxdata template applications.<br/> Component Snapshot copies are essentially more granular application Snapshot copies. There is no difference beyond the scope of the operation. ### Learn more * [`DOC /application/applications/{application.uuid}/snapshots`](#docs-application-application_applications_{application.uuid}_snapshots) * [`GET /application/applications/{uuid}/snapshots`](#operations-application-application_snapshot_get) * [`DOC /application`](#docs-application-overview) */ func (a *Client) ApplicationComponentSnapshotGet(params *ApplicationComponentSnapshotGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotGetOK, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationComponentSnapshotGetParams() } op := &runtime.ClientOperation{ ID: "application_component_snapshot_get", Method: "GET", PathPattern: "/application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationComponentSnapshotGetReader{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.(*ApplicationComponentSnapshotGetOK) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationComponentSnapshotGetDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationComponentSnapshotRestore Restore a Snapshot copy of an application component.<br/> This endpoint is only supported for Maxdata template applications.<br/> Component Snapshot copies are essentially more granular application Snapshot copies. There is no difference beyond the scope of the operation. ### Learn more * [`DOC /application/applications/{application.uuid}/snapshots`](#docs-application-application_applications_{application.uuid}_snapshots) * [`POST /application/applications/{application.uuid}/snapshots/{uuid}/restore`](#operations-application-application_snapshot_restore) * [`DOC /application`](#docs-application-overview) * [`Asynchronous operations`](#Synchronous_and_asynchronous_operations) */ func (a *Client) ApplicationComponentSnapshotRestore(params *ApplicationComponentSnapshotRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationComponentSnapshotRestoreAccepted, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationComponentSnapshotRestoreParams() } op := &runtime.ClientOperation{ ID: "application_component_snapshot_restore", Method: "POST", PathPattern: "/application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}/restore", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationComponentSnapshotRestoreReader{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.(*ApplicationComponentSnapshotRestoreAccepted) if ok { return success, nil } // unexpected success response unexpectedSuccess := result.(*ApplicationComponentSnapshotRestoreDefault) return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } /* ApplicationCreate Creates an application. ### Template properties The application APIs appear to be complex and long in this documentation because we document every possible template, of which there are currently 14. When creating an application, only a single template is used, so it is best to focus only on the template of interest. Other than the properties for the chosen template, only the `name` and `svm` of the application must be provided. The following three sections provided guidelines on using the properties of the templates, but the whole idea behind the templates is to automatically follow the best practices of the given application, so the only way to determine the exact list of required properties and default values is to dig in to the model section of the template. The templates are all top level properties of the application object with names matching the values returned by [`GET /application/templates`](#operations-application-application_template_collection_get). ### Required properties * `svm.uuid` or `svm.name` - The existing SVM in which to create the application. * `name` - The name for the application. * `<template>` - Properties for one template must be provided. In general, the following properties are required, however the naming of these may vary slightly from template to template. - `<template>.name` - The generic templates require names for the components of the application. Other templates name the components automatically. - `<template>.application_component.size` - This generally refers to the size of an application component, which may be spread across multiple underlying storage objects (volumes, LUNs, etc...). - One of the following must be specified: - `nas.nfs_access` or an identifier (name or id) of an existing `export-policy`. - `nas.cifs_access` - `san.application_application.igroup_name` - To specify that a NAS application is not to be exposed via NFS nor CIFS: - `nas.application_component.export_policy.name` is 'none', and - `nas.application.cifs_share_name` is 'none'. - The name of the CIFS share can be provided through the `nas.application.cifs_share_name` attribute. If not provided, the CIFS share name will be the same as the `nas.application_component.name` attribute, including any suffix applied due to creating multiple application components in one post. - `san.os_type` - All SAN applications require an os_type to be specified in some way. Some templates refer to this as the `hypervisor`. ### Recommended optional properties * `<template>` - The following properties are available in some templates. - `san.new_igroups.*` - SAN applications can use existing initiator groups or create new ones. When creating new initiator groups, `new_igroups.name` is required and the other properties may be used to fully specify the new initiator group. ### Default property values If not specified in POST, the follow default property values are assigned. It is recommended that most of these properties be provided explicitly rather than relying upon the defaults. The defaults are intended to make it as easy as possible to provision and connect to an application. * `template.name` - Defaults to match the `<template>` provided. If specified, the value of this property must match the provided template properties. * `<template>` - The majority of template properties have default values. The defaults may vary from template to template. See the model of each template for complete details. In general the following patterns are common across all template properties. The location of these properties varies from template to template. - `<template>.storage_service.name` - _value_ - `<template>.protection_type.local_rpo` - _hourly_ (Hourly Snapshot copies) - `<template>.protection_type.remote_rpo` - _none_ (Not MetroCluster) - `san.new_igroups.os_type` - Defaults to match the `os_type` provided for the application, but may need to be provided explicitly when using virtualization. ### Optional components A common pattern across many templates are objects that are optional, but once any property in the object is specified, other properties within the object become required. Many applications have optional components. For example, provisioning a database without a component to store the logs is supported. If the properties related to the logs are omitted, no storage will be provisioned for logs. But when the additional component is desired, the size is required. Specifying any other property of a component without specifying the size is not supported. In the model of each template, the required components are indicated with a red '*'. When a `size` property is listed as optional, that means the component itself is optional, and the size should be specified to include that component in the application. ### POST body examples 1. Create a generic SAN application that exposes four LUNs to an existing initiator group, _igroup_1_.<br/> ``` { "name": "app1", "svm": { "name": "svm1" }, "san": { "os_type": "linux", "application_components": [ { "name": "component1", "total_size": "10GB", "lun_count": 4, "igroup_name": "igroup_1" } ] } } ``` <br/> 2. Create an SQL application that can be accessed via initiator _iqn.2017-01.com.example:foo_ from a new initiator group, _igroup_2_.<br/> ``` { "name": "app2", "svm": { "name": "svm1" }, "sql_on_san": { "db": { "size": "5GB" }, "log": { "size": "1GB" }, "temp_db": { "size": "2GB" }, "igroup_name": "igroup_2", "new_igroups": [ { "name": "igroup_2", "initiators": [ "iqn.2017-01.com.example:foo" ] } ] } } ``` <br/> 3. The following body creates the exact same SQL application, but manually provides all the defaults that were excluded from the previous call. Note: The model of a _sql_on_san_ application documents all these default values.<br/> ``` { "name": "app3", "svm": { "name": "svm1" }, "template": { "name": "sql_on_san" }, "sql_on_san": { "os_type": "windows_2008", "server_cores_count": 8, "db": { "size": "5GB", "storage_service": { "name": "value" } }, "log": { "size": "1GB", "storage_service": { "name": "value" } }, "temp_db": { "size": "2GB", "storage_service": { "name": "value" } }, "igroup_name": "igroup_2", "new_igroups": [ { "name": "igroup_2", "protocol": "mixed", "os_type": "windows", "initiators": [ "iqn.a.new.initiator" ] } ], "protection_type": { "local_rpo": "none" } } } ``` ### Learn more * [`DOC /application`](#docs-application-overview) * [`Asynchronous operations`](#Synchronous_and_asynchronous_operations) */ func (a *Client) ApplicationCreate(params *ApplicationCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplicationCreateAccepted, error) { // TODO: Validate the params before sending if params == nil { params = NewApplicationCreateParams() } op := &runtime.ClientOperation{ ID: "application_create", Method: "POST", PathPattern: "/application/applications", ProducesMediaTypes: []string{"application/hal+json", "application/json"}, ConsumesMediaTypes: []string{"application/hal+json", "application/json"}, Schemes: []string{"https"}, Params: params, Reader: &ApplicationCreateReader{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 }
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/application/application_snapshot_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationSnapshotDeleteParams creates a new ApplicationSnapshotDeleteParams 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 NewApplicationSnapshotDeleteParams() *ApplicationSnapshotDeleteParams { return &ApplicationSnapshotDeleteParams{ timeout: cr.DefaultTimeout, } } // NewApplicationSnapshotDeleteParamsWithTimeout creates a new ApplicationSnapshotDeleteParams object // with the ability to set a timeout on a request. func NewApplicationSnapshotDeleteParamsWithTimeout(timeout time.Duration) *ApplicationSnapshotDeleteParams { return &ApplicationSnapshotDeleteParams{ timeout: timeout, } } // NewApplicationSnapshotDeleteParamsWithContext creates a new ApplicationSnapshotDeleteParams object // with the ability to set a context for a request. func NewApplicationSnapshotDeleteParamsWithContext(ctx context.Context) *ApplicationSnapshotDeleteParams { return &ApplicationSnapshotDeleteParams{ Context: ctx, } } // NewApplicationSnapshotDeleteParamsWithHTTPClient creates a new ApplicationSnapshotDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationSnapshotDeleteParamsWithHTTPClient(client *http.Client) *ApplicationSnapshotDeleteParams { return &ApplicationSnapshotDeleteParams{ HTTPClient: client, } } /* ApplicationSnapshotDeleteParams contains all the parameters to send to the API endpoint for the application snapshot delete operation. Typically these are written to a http.Request. */ type ApplicationSnapshotDeleteParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID 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 /* UUID. Snapshot copy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application snapshot delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotDeleteParams) WithDefaults() *ApplicationSnapshotDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application snapshot delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotDeleteParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ApplicationSnapshotDeleteParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) WithTimeout(timeout time.Duration) *ApplicationSnapshotDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) WithContext(ctx context.Context) *ApplicationSnapshotDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) WithHTTPClient(client *http.Client) *ApplicationSnapshotDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) WithApplicationUUID(applicationUUID string) *ApplicationSnapshotDeleteParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithReturnTimeout adds the returnTimeout to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) WithReturnTimeout(returnTimeout *int64) *ApplicationSnapshotDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) WithUUID(uuid string) *ApplicationSnapshotDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application snapshot delete params func (o *ApplicationSnapshotDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationSnapshotDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); 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); 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/application/application_snapshot_restore_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_restore_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationSnapshotRestoreReader is a Reader for the ApplicationSnapshotRestore structure. type ApplicationSnapshotRestoreReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationSnapshotRestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationSnapshotRestoreAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationSnapshotRestoreDefault(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 } } // NewApplicationSnapshotRestoreAccepted creates a ApplicationSnapshotRestoreAccepted with default headers values func NewApplicationSnapshotRestoreAccepted() *ApplicationSnapshotRestoreAccepted { return &ApplicationSnapshotRestoreAccepted{} } /* ApplicationSnapshotRestoreAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationSnapshotRestoreAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this application snapshot restore accepted response has a 2xx status code func (o *ApplicationSnapshotRestoreAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application snapshot restore accepted response has a 3xx status code func (o *ApplicationSnapshotRestoreAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application snapshot restore accepted response has a 4xx status code func (o *ApplicationSnapshotRestoreAccepted) IsClientError() bool { return false } // IsServerError returns true when this application snapshot restore accepted response has a 5xx status code func (o *ApplicationSnapshotRestoreAccepted) IsServerError() bool { return false } // IsCode returns true when this application snapshot restore accepted response a status code equal to that given func (o *ApplicationSnapshotRestoreAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationSnapshotRestoreAccepted) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots/{uuid}/restore][%d] applicationSnapshotRestoreAccepted %+v", 202, o.Payload) } func (o *ApplicationSnapshotRestoreAccepted) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots/{uuid}/restore][%d] applicationSnapshotRestoreAccepted %+v", 202, o.Payload) } func (o *ApplicationSnapshotRestoreAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationSnapshotRestoreAccepted) 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 } // NewApplicationSnapshotRestoreDefault creates a ApplicationSnapshotRestoreDefault with default headers values func NewApplicationSnapshotRestoreDefault(code int) *ApplicationSnapshotRestoreDefault { return &ApplicationSnapshotRestoreDefault{ _statusCode: code, } } /* ApplicationSnapshotRestoreDefault describes a response with status code -1, with default header values. Error */ type ApplicationSnapshotRestoreDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application snapshot restore default response func (o *ApplicationSnapshotRestoreDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application snapshot restore default response has a 2xx status code func (o *ApplicationSnapshotRestoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application snapshot restore default response has a 3xx status code func (o *ApplicationSnapshotRestoreDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application snapshot restore default response has a 4xx status code func (o *ApplicationSnapshotRestoreDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application snapshot restore default response has a 5xx status code func (o *ApplicationSnapshotRestoreDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application snapshot restore default response a status code equal to that given func (o *ApplicationSnapshotRestoreDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationSnapshotRestoreDefault) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots/{uuid}/restore][%d] application_snapshot_restore default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotRestoreDefault) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots/{uuid}/restore][%d] application_snapshot_restore default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotRestoreDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationSnapshotRestoreDefault) 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/application/consistency_group_snapshot_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupSnapshotCreateParams creates a new ConsistencyGroupSnapshotCreateParams 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 NewConsistencyGroupSnapshotCreateParams() *ConsistencyGroupSnapshotCreateParams { return &ConsistencyGroupSnapshotCreateParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupSnapshotCreateParamsWithTimeout creates a new ConsistencyGroupSnapshotCreateParams object // with the ability to set a timeout on a request. func NewConsistencyGroupSnapshotCreateParamsWithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotCreateParams { return &ConsistencyGroupSnapshotCreateParams{ timeout: timeout, } } // NewConsistencyGroupSnapshotCreateParamsWithContext creates a new ConsistencyGroupSnapshotCreateParams object // with the ability to set a context for a request. func NewConsistencyGroupSnapshotCreateParamsWithContext(ctx context.Context) *ConsistencyGroupSnapshotCreateParams { return &ConsistencyGroupSnapshotCreateParams{ Context: ctx, } } // NewConsistencyGroupSnapshotCreateParamsWithHTTPClient creates a new ConsistencyGroupSnapshotCreateParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupSnapshotCreateParamsWithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotCreateParams { return &ConsistencyGroupSnapshotCreateParams{ HTTPClient: client, } } /* ConsistencyGroupSnapshotCreateParams contains all the parameters to send to the API endpoint for the consistency group snapshot create operation. Typically these are written to a http.Request. */ type ConsistencyGroupSnapshotCreateParams struct { /* Action. Initiates the Snapshot copy create operation. The start of the Snapshot copy operation can optionally use a timeout value specified by "action_timeout". The Snapshot copy is commited by calling PATCH on the Snapshot copy href link with action specified as "commit". */ Action *string /* ActionTimeout. Duration to complete the 2-phase Snapshot copy operation. This also specifies the maximum duration that the write-fence remains in effect on the volumes associated with this consistency group. Default is 7 seconds with a valid range of 1 to 90 seconds. */ ActionTimeout *int64 /* ConsistencyGroupUUID. The unique identifier of the consistency group to retrieve. */ ConsistencyGroupUUID string /* Info. Information regarding a consistency group's Snapshot copy. */ Info *models.ConsistencyGroupSnapshot /* 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 consistency group snapshot create params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotCreateParams) WithDefaults() *ConsistencyGroupSnapshotCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group snapshot create params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ConsistencyGroupSnapshotCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithContext(ctx context.Context) *ConsistencyGroupSnapshotCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAction adds the action to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithAction(action *string) *ConsistencyGroupSnapshotCreateParams { o.SetAction(action) return o } // SetAction adds the action to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetAction(action *string) { o.Action = action } // WithActionTimeout adds the actionTimeout to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithActionTimeout(actionTimeout *int64) *ConsistencyGroupSnapshotCreateParams { o.SetActionTimeout(actionTimeout) return o } // SetActionTimeout adds the actionTimeout to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetActionTimeout(actionTimeout *int64) { o.ActionTimeout = actionTimeout } // WithConsistencyGroupUUID adds the consistencyGroupUUID to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithConsistencyGroupUUID(consistencyGroupUUID string) *ConsistencyGroupSnapshotCreateParams { o.SetConsistencyGroupUUID(consistencyGroupUUID) return o } // SetConsistencyGroupUUID adds the consistencyGroupUuid to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetConsistencyGroupUUID(consistencyGroupUUID string) { o.ConsistencyGroupUUID = consistencyGroupUUID } // WithInfo adds the info to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithInfo(info *models.ConsistencyGroupSnapshot) *ConsistencyGroupSnapshotCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetInfo(info *models.ConsistencyGroupSnapshot) { o.Info = info } // WithReturnRecords adds the returnRecords to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithReturnRecords(returnRecords *bool) *ConsistencyGroupSnapshotCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupSnapshotCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group snapshot create params func (o *ConsistencyGroupSnapshotCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupSnapshotCreateParams) 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.ActionTimeout != nil { // query param action_timeout var qrActionTimeout int64 if o.ActionTimeout != nil { qrActionTimeout = *o.ActionTimeout } qActionTimeout := swag.FormatInt64(qrActionTimeout) if qActionTimeout != "" { if err := r.SetQueryParam("action_timeout", qActionTimeout); err != nil { return err } } } // path param consistency_group.uuid if err := r.SetPathParam("consistency_group.uuid", o.ConsistencyGroupUUID); err != nil { return err } 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/application/application_component_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationComponentGetReader is a Reader for the ApplicationComponentGet structure. type ApplicationComponentGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationComponentGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationComponentGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationComponentGetDefault(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 } } // NewApplicationComponentGetOK creates a ApplicationComponentGetOK with default headers values func NewApplicationComponentGetOK() *ApplicationComponentGetOK { return &ApplicationComponentGetOK{} } /* ApplicationComponentGetOK describes a response with status code 200, with default header values. OK */ type ApplicationComponentGetOK struct { Payload *models.ApplicationComponent } // IsSuccess returns true when this application component get o k response has a 2xx status code func (o *ApplicationComponentGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application component get o k response has a 3xx status code func (o *ApplicationComponentGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application component get o k response has a 4xx status code func (o *ApplicationComponentGetOK) IsClientError() bool { return false } // IsServerError returns true when this application component get o k response has a 5xx status code func (o *ApplicationComponentGetOK) IsServerError() bool { return false } // IsCode returns true when this application component get o k response a status code equal to that given func (o *ApplicationComponentGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationComponentGetOK) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{uuid}][%d] applicationComponentGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentGetOK) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{uuid}][%d] applicationComponentGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentGetOK) GetPayload() *models.ApplicationComponent { return o.Payload } func (o *ApplicationComponentGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationComponent) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationComponentGetDefault creates a ApplicationComponentGetDefault with default headers values func NewApplicationComponentGetDefault(code int) *ApplicationComponentGetDefault { return &ApplicationComponentGetDefault{ _statusCode: code, } } /* ApplicationComponentGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationComponentGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application component get default response func (o *ApplicationComponentGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application component get default response has a 2xx status code func (o *ApplicationComponentGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application component get default response has a 3xx status code func (o *ApplicationComponentGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application component get default response has a 4xx status code func (o *ApplicationComponentGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application component get default response has a 5xx status code func (o *ApplicationComponentGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application component get default response a status code equal to that given func (o *ApplicationComponentGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationComponentGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{uuid}][%d] application_component_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentGetDefault) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{uuid}][%d] application_component_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationComponentGetDefault) 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/application/application_snapshot_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationSnapshotCreateParams creates a new ApplicationSnapshotCreateParams 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 NewApplicationSnapshotCreateParams() *ApplicationSnapshotCreateParams { return &ApplicationSnapshotCreateParams{ timeout: cr.DefaultTimeout, } } // NewApplicationSnapshotCreateParamsWithTimeout creates a new ApplicationSnapshotCreateParams object // with the ability to set a timeout on a request. func NewApplicationSnapshotCreateParamsWithTimeout(timeout time.Duration) *ApplicationSnapshotCreateParams { return &ApplicationSnapshotCreateParams{ timeout: timeout, } } // NewApplicationSnapshotCreateParamsWithContext creates a new ApplicationSnapshotCreateParams object // with the ability to set a context for a request. func NewApplicationSnapshotCreateParamsWithContext(ctx context.Context) *ApplicationSnapshotCreateParams { return &ApplicationSnapshotCreateParams{ Context: ctx, } } // NewApplicationSnapshotCreateParamsWithHTTPClient creates a new ApplicationSnapshotCreateParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationSnapshotCreateParamsWithHTTPClient(client *http.Client) *ApplicationSnapshotCreateParams { return &ApplicationSnapshotCreateParams{ HTTPClient: client, } } /* ApplicationSnapshotCreateParams contains all the parameters to send to the API endpoint for the application snapshot create operation. Typically these are written to a http.Request. */ type ApplicationSnapshotCreateParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* Info. Info specification */ Info *models.ApplicationSnapshot /* 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 application snapshot create params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotCreateParams) WithDefaults() *ApplicationSnapshotCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application snapshot create params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ApplicationSnapshotCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application snapshot create params func (o *ApplicationSnapshotCreateParams) WithTimeout(timeout time.Duration) *ApplicationSnapshotCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application snapshot create params func (o *ApplicationSnapshotCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application snapshot create params func (o *ApplicationSnapshotCreateParams) WithContext(ctx context.Context) *ApplicationSnapshotCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the application snapshot create params func (o *ApplicationSnapshotCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application snapshot create params func (o *ApplicationSnapshotCreateParams) WithHTTPClient(client *http.Client) *ApplicationSnapshotCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application snapshot create params func (o *ApplicationSnapshotCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application snapshot create params func (o *ApplicationSnapshotCreateParams) WithApplicationUUID(applicationUUID string) *ApplicationSnapshotCreateParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application snapshot create params func (o *ApplicationSnapshotCreateParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithInfo adds the info to the application snapshot create params func (o *ApplicationSnapshotCreateParams) WithInfo(info *models.ApplicationSnapshot) *ApplicationSnapshotCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the application snapshot create params func (o *ApplicationSnapshotCreateParams) SetInfo(info *models.ApplicationSnapshot) { o.Info = info } // WithReturnRecords adds the returnRecords to the application snapshot create params func (o *ApplicationSnapshotCreateParams) WithReturnRecords(returnRecords *bool) *ApplicationSnapshotCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application snapshot create params func (o *ApplicationSnapshotCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application snapshot create params func (o *ApplicationSnapshotCreateParams) WithReturnTimeout(returnTimeout *int64) *ApplicationSnapshotCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application snapshot create params func (o *ApplicationSnapshotCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ApplicationSnapshotCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); err != nil { return err } 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/application/application_component_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationComponentCollectionGetParams creates a new ApplicationComponentCollectionGetParams 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 NewApplicationComponentCollectionGetParams() *ApplicationComponentCollectionGetParams { return &ApplicationComponentCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationComponentCollectionGetParamsWithTimeout creates a new ApplicationComponentCollectionGetParams object // with the ability to set a timeout on a request. func NewApplicationComponentCollectionGetParamsWithTimeout(timeout time.Duration) *ApplicationComponentCollectionGetParams { return &ApplicationComponentCollectionGetParams{ timeout: timeout, } } // NewApplicationComponentCollectionGetParamsWithContext creates a new ApplicationComponentCollectionGetParams object // with the ability to set a context for a request. func NewApplicationComponentCollectionGetParamsWithContext(ctx context.Context) *ApplicationComponentCollectionGetParams { return &ApplicationComponentCollectionGetParams{ Context: ctx, } } // NewApplicationComponentCollectionGetParamsWithHTTPClient creates a new ApplicationComponentCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationComponentCollectionGetParamsWithHTTPClient(client *http.Client) *ApplicationComponentCollectionGetParams { return &ApplicationComponentCollectionGetParams{ HTTPClient: client, } } /* ApplicationComponentCollectionGetParams contains all the parameters to send to the API endpoint for the application component collection get operation. Typically these are written to a http.Request. */ type ApplicationComponentCollectionGetParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* Fields. Specify the fields to return. */ Fields []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 /* StorageServiceName. Filter by storage_service.name */ StorageServiceName *string /* StorageServiceUUID. Filter by storage_service.uuid */ StorageServiceUUID *string /* UUID. Filter by UUID */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application component collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentCollectionGetParams) WithDefaults() *ApplicationComponentCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application component collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ApplicationComponentCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithTimeout(timeout time.Duration) *ApplicationComponentCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithContext(ctx context.Context) *ApplicationComponentCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithHTTPClient(client *http.Client) *ApplicationComponentCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithApplicationUUID(applicationUUID string) *ApplicationComponentCollectionGetParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithFields adds the fields to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithFields(fields []string) *ApplicationComponentCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithMaxRecords(maxRecords *int64) *ApplicationComponentCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithName(name *string) *ApplicationComponentCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithOrderBy(orderBy []string) *ApplicationComponentCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithReturnRecords(returnRecords *bool) *ApplicationComponentCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ApplicationComponentCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithStorageServiceName adds the storageServiceName to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithStorageServiceName(storageServiceName *string) *ApplicationComponentCollectionGetParams { o.SetStorageServiceName(storageServiceName) return o } // SetStorageServiceName adds the storageServiceName to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetStorageServiceName(storageServiceName *string) { o.StorageServiceName = storageServiceName } // WithStorageServiceUUID adds the storageServiceUUID to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithStorageServiceUUID(storageServiceUUID *string) *ApplicationComponentCollectionGetParams { o.SetStorageServiceUUID(storageServiceUUID) return o } // SetStorageServiceUUID adds the storageServiceUuid to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetStorageServiceUUID(storageServiceUUID *string) { o.StorageServiceUUID = storageServiceUUID } // WithUUID adds the uuid to the application component collection get params func (o *ApplicationComponentCollectionGetParams) WithUUID(uuid *string) *ApplicationComponentCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application component collection get params func (o *ApplicationComponentCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationComponentCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); 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.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.StorageServiceName != nil { // query param storage_service.name var qrStorageServiceName string if o.StorageServiceName != nil { qrStorageServiceName = *o.StorageServiceName } qStorageServiceName := qrStorageServiceName if qStorageServiceName != "" { if err := r.SetQueryParam("storage_service.name", qStorageServiceName); err != nil { return err } } } if o.StorageServiceUUID != nil { // query param storage_service.uuid var qrStorageServiceUUID string if o.StorageServiceUUID != nil { qrStorageServiceUUID = *o.StorageServiceUUID } qStorageServiceUUID := qrStorageServiceUUID if qStorageServiceUUID != "" { if err := r.SetQueryParam("storage_service.uuid", qStorageServiceUUID); 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 } // bindParamApplicationComponentCollectionGet binds the parameter fields func (o *ApplicationComponentCollectionGetParams) 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 } // bindParamApplicationComponentCollectionGet binds the parameter order_by func (o *ApplicationComponentCollectionGetParams) 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/application/consistency_group_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupCollectionGetReader is a Reader for the ConsistencyGroupCollectionGet structure. type ConsistencyGroupCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewConsistencyGroupCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupCollectionGetDefault(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 } } // NewConsistencyGroupCollectionGetOK creates a ConsistencyGroupCollectionGetOK with default headers values func NewConsistencyGroupCollectionGetOK() *ConsistencyGroupCollectionGetOK { return &ConsistencyGroupCollectionGetOK{} } /* ConsistencyGroupCollectionGetOK describes a response with status code 200, with default header values. OK */ type ConsistencyGroupCollectionGetOK struct { Payload *models.ConsistencyGroupResponse } // IsSuccess returns true when this consistency group collection get o k response has a 2xx status code func (o *ConsistencyGroupCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group collection get o k response has a 3xx status code func (o *ConsistencyGroupCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this consistency group collection get o k response has a 4xx status code func (o *ConsistencyGroupCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this consistency group collection get o k response has a 5xx status code func (o *ConsistencyGroupCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this consistency group collection get o k response a status code equal to that given func (o *ConsistencyGroupCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ConsistencyGroupCollectionGetOK) Error() string { return fmt.Sprintf("[GET /application/consistency-groups][%d] consistencyGroupCollectionGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupCollectionGetOK) String() string { return fmt.Sprintf("[GET /application/consistency-groups][%d] consistencyGroupCollectionGetOK %+v", 200, o.Payload) } func (o *ConsistencyGroupCollectionGetOK) GetPayload() *models.ConsistencyGroupResponse { return o.Payload } func (o *ConsistencyGroupCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ConsistencyGroupResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewConsistencyGroupCollectionGetDefault creates a ConsistencyGroupCollectionGetDefault with default headers values func NewConsistencyGroupCollectionGetDefault(code int) *ConsistencyGroupCollectionGetDefault { return &ConsistencyGroupCollectionGetDefault{ _statusCode: code, } } /* ConsistencyGroupCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ConsistencyGroupCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group collection get default response func (o *ConsistencyGroupCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group collection get default response has a 2xx status code func (o *ConsistencyGroupCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group collection get default response has a 3xx status code func (o *ConsistencyGroupCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group collection get default response has a 4xx status code func (o *ConsistencyGroupCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group collection get default response has a 5xx status code func (o *ConsistencyGroupCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group collection get default response a status code equal to that given func (o *ConsistencyGroupCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /application/consistency-groups][%d] consistency_group_collection_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupCollectionGetDefault) String() string { return fmt.Sprintf("[GET /application/consistency-groups][%d] consistency_group_collection_get default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupCollectionGetDefault) 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/application/application_snapshot_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationSnapshotCollectionGetParams creates a new ApplicationSnapshotCollectionGetParams 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 NewApplicationSnapshotCollectionGetParams() *ApplicationSnapshotCollectionGetParams { return &ApplicationSnapshotCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationSnapshotCollectionGetParamsWithTimeout creates a new ApplicationSnapshotCollectionGetParams object // with the ability to set a timeout on a request. func NewApplicationSnapshotCollectionGetParamsWithTimeout(timeout time.Duration) *ApplicationSnapshotCollectionGetParams { return &ApplicationSnapshotCollectionGetParams{ timeout: timeout, } } // NewApplicationSnapshotCollectionGetParamsWithContext creates a new ApplicationSnapshotCollectionGetParams object // with the ability to set a context for a request. func NewApplicationSnapshotCollectionGetParamsWithContext(ctx context.Context) *ApplicationSnapshotCollectionGetParams { return &ApplicationSnapshotCollectionGetParams{ Context: ctx, } } // NewApplicationSnapshotCollectionGetParamsWithHTTPClient creates a new ApplicationSnapshotCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationSnapshotCollectionGetParamsWithHTTPClient(client *http.Client) *ApplicationSnapshotCollectionGetParams { return &ApplicationSnapshotCollectionGetParams{ HTTPClient: client, } } /* ApplicationSnapshotCollectionGetParams contains all the parameters to send to the API endpoint for the application snapshot collection get operation. Typically these are written to a http.Request. */ type ApplicationSnapshotCollectionGetParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* Comment. Filter by comment */ Comment *string /* ComponentsName. Filter by components.name */ ComponentsName *string /* ComponentsUUID. Filter by components.uuid */ ComponentsUUID *string /* ConsistencyType. Filter by consistency_type */ ConsistencyType *string /* CreateTime. Filter by create_time */ CreateTime *string /* Fields. Specify the fields to return. */ Fields []string /* IsPartial. Filter by is_partial */ IsPartial *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 /* UUID. Filter by UUID */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application snapshot collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotCollectionGetParams) WithDefaults() *ApplicationSnapshotCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application snapshot collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ApplicationSnapshotCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithTimeout(timeout time.Duration) *ApplicationSnapshotCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithContext(ctx context.Context) *ApplicationSnapshotCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithHTTPClient(client *http.Client) *ApplicationSnapshotCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithApplicationUUID(applicationUUID string) *ApplicationSnapshotCollectionGetParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithComment adds the comment to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithComment(comment *string) *ApplicationSnapshotCollectionGetParams { o.SetComment(comment) return o } // SetComment adds the comment to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetComment(comment *string) { o.Comment = comment } // WithComponentsName adds the componentsName to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithComponentsName(componentsName *string) *ApplicationSnapshotCollectionGetParams { o.SetComponentsName(componentsName) return o } // SetComponentsName adds the componentsName to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetComponentsName(componentsName *string) { o.ComponentsName = componentsName } // WithComponentsUUID adds the componentsUUID to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithComponentsUUID(componentsUUID *string) *ApplicationSnapshotCollectionGetParams { o.SetComponentsUUID(componentsUUID) return o } // SetComponentsUUID adds the componentsUuid to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetComponentsUUID(componentsUUID *string) { o.ComponentsUUID = componentsUUID } // WithConsistencyType adds the consistencyType to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithConsistencyType(consistencyType *string) *ApplicationSnapshotCollectionGetParams { o.SetConsistencyType(consistencyType) return o } // SetConsistencyType adds the consistencyType to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetConsistencyType(consistencyType *string) { o.ConsistencyType = consistencyType } // WithCreateTime adds the createTime to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithCreateTime(createTime *string) *ApplicationSnapshotCollectionGetParams { o.SetCreateTime(createTime) return o } // SetCreateTime adds the createTime to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetCreateTime(createTime *string) { o.CreateTime = createTime } // WithFields adds the fields to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithFields(fields []string) *ApplicationSnapshotCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithIsPartial adds the isPartial to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithIsPartial(isPartial *string) *ApplicationSnapshotCollectionGetParams { o.SetIsPartial(isPartial) return o } // SetIsPartial adds the isPartial to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetIsPartial(isPartial *string) { o.IsPartial = isPartial } // WithMaxRecords adds the maxRecords to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithMaxRecords(maxRecords *int64) *ApplicationSnapshotCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithName(name *string) *ApplicationSnapshotCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithOrderBy(orderBy []string) *ApplicationSnapshotCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithReturnRecords(returnRecords *bool) *ApplicationSnapshotCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ApplicationSnapshotCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) WithUUID(uuid *string) *ApplicationSnapshotCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application snapshot collection get params func (o *ApplicationSnapshotCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationSnapshotCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); err != nil { return err } if o.Comment != nil { // query param comment var qrComment string if o.Comment != nil { qrComment = *o.Comment } qComment := qrComment if qComment != "" { if err := r.SetQueryParam("comment", qComment); err != nil { return err } } } if o.ComponentsName != nil { // query param components.name var qrComponentsName string if o.ComponentsName != nil { qrComponentsName = *o.ComponentsName } qComponentsName := qrComponentsName if qComponentsName != "" { if err := r.SetQueryParam("components.name", qComponentsName); err != nil { return err } } } if o.ComponentsUUID != nil { // query param components.uuid var qrComponentsUUID string if o.ComponentsUUID != nil { qrComponentsUUID = *o.ComponentsUUID } qComponentsUUID := qrComponentsUUID if qComponentsUUID != "" { if err := r.SetQueryParam("components.uuid", qComponentsUUID); err != nil { return err } } } if o.ConsistencyType != nil { // query param consistency_type var qrConsistencyType string if o.ConsistencyType != nil { qrConsistencyType = *o.ConsistencyType } qConsistencyType := qrConsistencyType if qConsistencyType != "" { if err := r.SetQueryParam("consistency_type", qConsistencyType); err != nil { return err } } } if o.CreateTime != nil { // query param create_time var qrCreateTime string if o.CreateTime != nil { qrCreateTime = *o.CreateTime } qCreateTime := qrCreateTime if qCreateTime != "" { if err := r.SetQueryParam("create_time", qCreateTime); 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.IsPartial != nil { // query param is_partial var qrIsPartial string if o.IsPartial != nil { qrIsPartial = *o.IsPartial } qIsPartial := qrIsPartial if qIsPartial != "" { if err := r.SetQueryParam("is_partial", qIsPartial); 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.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 } // bindParamApplicationSnapshotCollectionGet binds the parameter fields func (o *ApplicationSnapshotCollectionGetParams) 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 } // bindParamApplicationSnapshotCollectionGet binds the parameter order_by func (o *ApplicationSnapshotCollectionGetParams) 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/application/application_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationCollectionGetParams creates a new ApplicationCollectionGetParams 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 NewApplicationCollectionGetParams() *ApplicationCollectionGetParams { return &ApplicationCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationCollectionGetParamsWithTimeout creates a new ApplicationCollectionGetParams object // with the ability to set a timeout on a request. func NewApplicationCollectionGetParamsWithTimeout(timeout time.Duration) *ApplicationCollectionGetParams { return &ApplicationCollectionGetParams{ timeout: timeout, } } // NewApplicationCollectionGetParamsWithContext creates a new ApplicationCollectionGetParams object // with the ability to set a context for a request. func NewApplicationCollectionGetParamsWithContext(ctx context.Context) *ApplicationCollectionGetParams { return &ApplicationCollectionGetParams{ Context: ctx, } } // NewApplicationCollectionGetParamsWithHTTPClient creates a new ApplicationCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationCollectionGetParamsWithHTTPClient(client *http.Client) *ApplicationCollectionGetParams { return &ApplicationCollectionGetParams{ HTTPClient: client, } } /* ApplicationCollectionGetParams contains all the parameters to send to the API endpoint for the application collection get operation. Typically these are written to a http.Request. */ type ApplicationCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* Generation. Filter by generation */ Generation *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 /* ProtectionGranularity. Filter by protection granularity */ ProtectionGranularity *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 /* RpoComponentsName. Filter by rpo.components.name */ RpoComponentsName *string /* RpoComponentsRpoLocalDescription. Filter by rpo.components.rpo.local.description */ RpoComponentsRpoLocalDescription *string /* RpoComponentsRpoLocalName. Filter by rpo.components.rpo.local.name */ RpoComponentsRpoLocalName *string /* RpoComponentsRpoRemoteDescription. Filter by rpo.components.rpo.remote.description */ RpoComponentsRpoRemoteDescription *string /* RpoComponentsRpoRemoteName. Filter by rpo.components.rpo.remote.name */ RpoComponentsRpoRemoteName *string /* RpoComponentsUUID. Filter by rpo.components.uuid */ RpoComponentsUUID *string /* RpoIsSupported. Filter by rpo.is_supported */ RpoIsSupported *string /* RpoLocalDescription. Filter by rpo.local.description */ RpoLocalDescription *string /* RpoLocalName. Filter by rpo.local.name */ RpoLocalName *string /* RpoRemoteDescription. Filter by rpo.remote.description */ RpoRemoteDescription *string /* RpoRemoteName. Filter by rpo.remote.name */ RpoRemoteName *string /* SmartContainer. Filter by smart_container */ SmartContainer *string /* State. Filter by state */ State *string /* StatisticsComponentsIopsPerTb. Filter by statistics.components.iops.per_tb */ StatisticsComponentsIopsPerTb *string /* StatisticsComponentsIopsTotal. Filter by statistics.components.iops.total */ StatisticsComponentsIopsTotal *string /* StatisticsComponentsLatencyAverage. Filter by statistics.components.latency.average */ StatisticsComponentsLatencyAverage *string /* StatisticsComponentsLatencyRaw. Filter by statistics.components.latency.raw */ StatisticsComponentsLatencyRaw *string /* StatisticsComponentsName. Filter by statistics.components.name */ StatisticsComponentsName *string /* StatisticsComponentsSharedStoragePool. Filter by statistics.components.shared_storage_pool */ StatisticsComponentsSharedStoragePool *string /* StatisticsComponentsSnapshotReserve. Filter by statistics.components.snapshot.reserve */ StatisticsComponentsSnapshotReserve *string /* StatisticsComponentsSnapshotUsed. Filter by statistics.components.snapshot.used */ StatisticsComponentsSnapshotUsed *string /* StatisticsComponentsSpaceAvailable. Filter by statistics.components.space.available */ StatisticsComponentsSpaceAvailable *string /* StatisticsComponentsSpaceLogicalUsed. Filter by statistics.components.space.logical_used */ StatisticsComponentsSpaceLogicalUsed *string /* StatisticsComponentsSpaceProvisioned. Filter by statistics.components.space.provisioned */ StatisticsComponentsSpaceProvisioned *string /* StatisticsComponentsSpaceReservedUnused. Filter by statistics.components.space.reserved_unused */ StatisticsComponentsSpaceReservedUnused *string /* StatisticsComponentsSpaceSavings. Filter by statistics.components.space.savings */ StatisticsComponentsSpaceSavings *string /* StatisticsComponentsSpaceUsed. Filter by statistics.components.space.used */ StatisticsComponentsSpaceUsed *string /* StatisticsComponentsSpaceUsedExcludingReserves. Filter by statistics.components.space.used_excluding_reserves */ StatisticsComponentsSpaceUsedExcludingReserves *string /* StatisticsComponentsSpaceUsedPercent. Filter by statistics.components.space.used_percent */ StatisticsComponentsSpaceUsedPercent *string /* StatisticsComponentsStatisticsIncomplete. Filter by statistics.components.statistics_incomplete */ StatisticsComponentsStatisticsIncomplete *string /* StatisticsComponentsStorageServiceName. Filter by statistics.components.storage_service.name */ StatisticsComponentsStorageServiceName *string /* StatisticsComponentsUUID. Filter by statistics.components.uuid */ StatisticsComponentsUUID *string /* StatisticsIopsPerTb. Filter by statistics.iops.per_tb */ StatisticsIopsPerTb *string /* StatisticsIopsTotal. Filter by statistics.iops.total */ StatisticsIopsTotal *string /* StatisticsLatencyAverage. Filter by statistics.latency.average */ StatisticsLatencyAverage *string /* StatisticsLatencyRaw. Filter by statistics.latency.raw */ StatisticsLatencyRaw *string /* StatisticsSharedStoragePool. Filter by statistics.shared_storage_pool */ StatisticsSharedStoragePool *string /* StatisticsSnapshotReserve. Filter by statistics.snapshot.reserve */ StatisticsSnapshotReserve *string /* StatisticsSnapshotUsed. Filter by statistics.snapshot.used */ StatisticsSnapshotUsed *string /* StatisticsSpaceAvailable. Filter by statistics.space.available */ StatisticsSpaceAvailable *string /* StatisticsSpaceLogicalUsed. Filter by statistics.space.logical_used */ StatisticsSpaceLogicalUsed *string /* StatisticsSpaceProvisioned. Filter by statistics.space.provisioned */ StatisticsSpaceProvisioned *string /* StatisticsSpaceReservedUnused. Filter by statistics.space.reserved_unused */ StatisticsSpaceReservedUnused *string /* StatisticsSpaceSavings. Filter by statistics.space.savings */ StatisticsSpaceSavings *string /* StatisticsSpaceUsed. Filter by statistics.space.used */ StatisticsSpaceUsed *string /* StatisticsSpaceUsedExcludingReserves. Filter by statistics.space.used_excluding_reserves */ StatisticsSpaceUsedExcludingReserves *string /* StatisticsSpaceUsedPercent. Filter by statistics.space.used_percent */ StatisticsSpaceUsedPercent *string /* StatisticsStatisticsIncomplete. Filter by statistics.statistics_incomplete */ StatisticsStatisticsIncomplete *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* TemplateName. Filter by template.name */ TemplateName *string /* TemplateProtocol. Filter by template.protocol */ TemplateProtocol *string /* TemplateVersion. Filter by template.version */ TemplateVersion *string /* UUID. Filter by UUID */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationCollectionGetParams) WithDefaults() *ApplicationCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ApplicationCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application collection get params func (o *ApplicationCollectionGetParams) WithTimeout(timeout time.Duration) *ApplicationCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application collection get params func (o *ApplicationCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application collection get params func (o *ApplicationCollectionGetParams) WithContext(ctx context.Context) *ApplicationCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application collection get params func (o *ApplicationCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application collection get params func (o *ApplicationCollectionGetParams) WithHTTPClient(client *http.Client) *ApplicationCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application collection get params func (o *ApplicationCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the application collection get params func (o *ApplicationCollectionGetParams) WithFields(fields []string) *ApplicationCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application collection get params func (o *ApplicationCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithGeneration adds the generation to the application collection get params func (o *ApplicationCollectionGetParams) WithGeneration(generation *string) *ApplicationCollectionGetParams { o.SetGeneration(generation) return o } // SetGeneration adds the generation to the application collection get params func (o *ApplicationCollectionGetParams) SetGeneration(generation *string) { o.Generation = generation } // WithMaxRecords adds the maxRecords to the application collection get params func (o *ApplicationCollectionGetParams) WithMaxRecords(maxRecords *int64) *ApplicationCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the application collection get params func (o *ApplicationCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the application collection get params func (o *ApplicationCollectionGetParams) WithName(name *string) *ApplicationCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the application collection get params func (o *ApplicationCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the application collection get params func (o *ApplicationCollectionGetParams) WithOrderBy(orderBy []string) *ApplicationCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the application collection get params func (o *ApplicationCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithProtectionGranularity adds the protectionGranularity to the application collection get params func (o *ApplicationCollectionGetParams) WithProtectionGranularity(protectionGranularity *string) *ApplicationCollectionGetParams { o.SetProtectionGranularity(protectionGranularity) return o } // SetProtectionGranularity adds the protectionGranularity to the application collection get params func (o *ApplicationCollectionGetParams) SetProtectionGranularity(protectionGranularity *string) { o.ProtectionGranularity = protectionGranularity } // WithReturnRecords adds the returnRecords to the application collection get params func (o *ApplicationCollectionGetParams) WithReturnRecords(returnRecords *bool) *ApplicationCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application collection get params func (o *ApplicationCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application collection get params func (o *ApplicationCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ApplicationCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application collection get params func (o *ApplicationCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithRpoComponentsName adds the rpoComponentsName to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoComponentsName(rpoComponentsName *string) *ApplicationCollectionGetParams { o.SetRpoComponentsName(rpoComponentsName) return o } // SetRpoComponentsName adds the rpoComponentsName to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoComponentsName(rpoComponentsName *string) { o.RpoComponentsName = rpoComponentsName } // WithRpoComponentsRpoLocalDescription adds the rpoComponentsRpoLocalDescription to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoComponentsRpoLocalDescription(rpoComponentsRpoLocalDescription *string) *ApplicationCollectionGetParams { o.SetRpoComponentsRpoLocalDescription(rpoComponentsRpoLocalDescription) return o } // SetRpoComponentsRpoLocalDescription adds the rpoComponentsRpoLocalDescription to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoComponentsRpoLocalDescription(rpoComponentsRpoLocalDescription *string) { o.RpoComponentsRpoLocalDescription = rpoComponentsRpoLocalDescription } // WithRpoComponentsRpoLocalName adds the rpoComponentsRpoLocalName to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoComponentsRpoLocalName(rpoComponentsRpoLocalName *string) *ApplicationCollectionGetParams { o.SetRpoComponentsRpoLocalName(rpoComponentsRpoLocalName) return o } // SetRpoComponentsRpoLocalName adds the rpoComponentsRpoLocalName to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoComponentsRpoLocalName(rpoComponentsRpoLocalName *string) { o.RpoComponentsRpoLocalName = rpoComponentsRpoLocalName } // WithRpoComponentsRpoRemoteDescription adds the rpoComponentsRpoRemoteDescription to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoComponentsRpoRemoteDescription(rpoComponentsRpoRemoteDescription *string) *ApplicationCollectionGetParams { o.SetRpoComponentsRpoRemoteDescription(rpoComponentsRpoRemoteDescription) return o } // SetRpoComponentsRpoRemoteDescription adds the rpoComponentsRpoRemoteDescription to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoComponentsRpoRemoteDescription(rpoComponentsRpoRemoteDescription *string) { o.RpoComponentsRpoRemoteDescription = rpoComponentsRpoRemoteDescription } // WithRpoComponentsRpoRemoteName adds the rpoComponentsRpoRemoteName to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoComponentsRpoRemoteName(rpoComponentsRpoRemoteName *string) *ApplicationCollectionGetParams { o.SetRpoComponentsRpoRemoteName(rpoComponentsRpoRemoteName) return o } // SetRpoComponentsRpoRemoteName adds the rpoComponentsRpoRemoteName to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoComponentsRpoRemoteName(rpoComponentsRpoRemoteName *string) { o.RpoComponentsRpoRemoteName = rpoComponentsRpoRemoteName } // WithRpoComponentsUUID adds the rpoComponentsUUID to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoComponentsUUID(rpoComponentsUUID *string) *ApplicationCollectionGetParams { o.SetRpoComponentsUUID(rpoComponentsUUID) return o } // SetRpoComponentsUUID adds the rpoComponentsUuid to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoComponentsUUID(rpoComponentsUUID *string) { o.RpoComponentsUUID = rpoComponentsUUID } // WithRpoIsSupported adds the rpoIsSupported to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoIsSupported(rpoIsSupported *string) *ApplicationCollectionGetParams { o.SetRpoIsSupported(rpoIsSupported) return o } // SetRpoIsSupported adds the rpoIsSupported to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoIsSupported(rpoIsSupported *string) { o.RpoIsSupported = rpoIsSupported } // WithRpoLocalDescription adds the rpoLocalDescription to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoLocalDescription(rpoLocalDescription *string) *ApplicationCollectionGetParams { o.SetRpoLocalDescription(rpoLocalDescription) return o } // SetRpoLocalDescription adds the rpoLocalDescription to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoLocalDescription(rpoLocalDescription *string) { o.RpoLocalDescription = rpoLocalDescription } // WithRpoLocalName adds the rpoLocalName to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoLocalName(rpoLocalName *string) *ApplicationCollectionGetParams { o.SetRpoLocalName(rpoLocalName) return o } // SetRpoLocalName adds the rpoLocalName to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoLocalName(rpoLocalName *string) { o.RpoLocalName = rpoLocalName } // WithRpoRemoteDescription adds the rpoRemoteDescription to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoRemoteDescription(rpoRemoteDescription *string) *ApplicationCollectionGetParams { o.SetRpoRemoteDescription(rpoRemoteDescription) return o } // SetRpoRemoteDescription adds the rpoRemoteDescription to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoRemoteDescription(rpoRemoteDescription *string) { o.RpoRemoteDescription = rpoRemoteDescription } // WithRpoRemoteName adds the rpoRemoteName to the application collection get params func (o *ApplicationCollectionGetParams) WithRpoRemoteName(rpoRemoteName *string) *ApplicationCollectionGetParams { o.SetRpoRemoteName(rpoRemoteName) return o } // SetRpoRemoteName adds the rpoRemoteName to the application collection get params func (o *ApplicationCollectionGetParams) SetRpoRemoteName(rpoRemoteName *string) { o.RpoRemoteName = rpoRemoteName } // WithSmartContainer adds the smartContainer to the application collection get params func (o *ApplicationCollectionGetParams) WithSmartContainer(smartContainer *string) *ApplicationCollectionGetParams { o.SetSmartContainer(smartContainer) return o } // SetSmartContainer adds the smartContainer to the application collection get params func (o *ApplicationCollectionGetParams) SetSmartContainer(smartContainer *string) { o.SmartContainer = smartContainer } // WithState adds the state to the application collection get params func (o *ApplicationCollectionGetParams) WithState(state *string) *ApplicationCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the application collection get params func (o *ApplicationCollectionGetParams) SetState(state *string) { o.State = state } // WithStatisticsComponentsIopsPerTb adds the statisticsComponentsIopsPerTb to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsIopsPerTb(statisticsComponentsIopsPerTb *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsIopsPerTb(statisticsComponentsIopsPerTb) return o } // SetStatisticsComponentsIopsPerTb adds the statisticsComponentsIopsPerTb to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsIopsPerTb(statisticsComponentsIopsPerTb *string) { o.StatisticsComponentsIopsPerTb = statisticsComponentsIopsPerTb } // WithStatisticsComponentsIopsTotal adds the statisticsComponentsIopsTotal to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsIopsTotal(statisticsComponentsIopsTotal *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsIopsTotal(statisticsComponentsIopsTotal) return o } // SetStatisticsComponentsIopsTotal adds the statisticsComponentsIopsTotal to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsIopsTotal(statisticsComponentsIopsTotal *string) { o.StatisticsComponentsIopsTotal = statisticsComponentsIopsTotal } // WithStatisticsComponentsLatencyAverage adds the statisticsComponentsLatencyAverage to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsLatencyAverage(statisticsComponentsLatencyAverage *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsLatencyAverage(statisticsComponentsLatencyAverage) return o } // SetStatisticsComponentsLatencyAverage adds the statisticsComponentsLatencyAverage to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsLatencyAverage(statisticsComponentsLatencyAverage *string) { o.StatisticsComponentsLatencyAverage = statisticsComponentsLatencyAverage } // WithStatisticsComponentsLatencyRaw adds the statisticsComponentsLatencyRaw to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsLatencyRaw(statisticsComponentsLatencyRaw *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsLatencyRaw(statisticsComponentsLatencyRaw) return o } // SetStatisticsComponentsLatencyRaw adds the statisticsComponentsLatencyRaw to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsLatencyRaw(statisticsComponentsLatencyRaw *string) { o.StatisticsComponentsLatencyRaw = statisticsComponentsLatencyRaw } // WithStatisticsComponentsName adds the statisticsComponentsName to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsName(statisticsComponentsName *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsName(statisticsComponentsName) return o } // SetStatisticsComponentsName adds the statisticsComponentsName to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsName(statisticsComponentsName *string) { o.StatisticsComponentsName = statisticsComponentsName } // WithStatisticsComponentsSharedStoragePool adds the statisticsComponentsSharedStoragePool to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSharedStoragePool(statisticsComponentsSharedStoragePool *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSharedStoragePool(statisticsComponentsSharedStoragePool) return o } // SetStatisticsComponentsSharedStoragePool adds the statisticsComponentsSharedStoragePool to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSharedStoragePool(statisticsComponentsSharedStoragePool *string) { o.StatisticsComponentsSharedStoragePool = statisticsComponentsSharedStoragePool } // WithStatisticsComponentsSnapshotReserve adds the statisticsComponentsSnapshotReserve to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSnapshotReserve(statisticsComponentsSnapshotReserve *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSnapshotReserve(statisticsComponentsSnapshotReserve) return o } // SetStatisticsComponentsSnapshotReserve adds the statisticsComponentsSnapshotReserve to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSnapshotReserve(statisticsComponentsSnapshotReserve *string) { o.StatisticsComponentsSnapshotReserve = statisticsComponentsSnapshotReserve } // WithStatisticsComponentsSnapshotUsed adds the statisticsComponentsSnapshotUsed to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSnapshotUsed(statisticsComponentsSnapshotUsed *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSnapshotUsed(statisticsComponentsSnapshotUsed) return o } // SetStatisticsComponentsSnapshotUsed adds the statisticsComponentsSnapshotUsed to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSnapshotUsed(statisticsComponentsSnapshotUsed *string) { o.StatisticsComponentsSnapshotUsed = statisticsComponentsSnapshotUsed } // WithStatisticsComponentsSpaceAvailable adds the statisticsComponentsSpaceAvailable to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceAvailable(statisticsComponentsSpaceAvailable *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceAvailable(statisticsComponentsSpaceAvailable) return o } // SetStatisticsComponentsSpaceAvailable adds the statisticsComponentsSpaceAvailable to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceAvailable(statisticsComponentsSpaceAvailable *string) { o.StatisticsComponentsSpaceAvailable = statisticsComponentsSpaceAvailable } // WithStatisticsComponentsSpaceLogicalUsed adds the statisticsComponentsSpaceLogicalUsed to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceLogicalUsed(statisticsComponentsSpaceLogicalUsed *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceLogicalUsed(statisticsComponentsSpaceLogicalUsed) return o } // SetStatisticsComponentsSpaceLogicalUsed adds the statisticsComponentsSpaceLogicalUsed to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceLogicalUsed(statisticsComponentsSpaceLogicalUsed *string) { o.StatisticsComponentsSpaceLogicalUsed = statisticsComponentsSpaceLogicalUsed } // WithStatisticsComponentsSpaceProvisioned adds the statisticsComponentsSpaceProvisioned to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceProvisioned(statisticsComponentsSpaceProvisioned *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceProvisioned(statisticsComponentsSpaceProvisioned) return o } // SetStatisticsComponentsSpaceProvisioned adds the statisticsComponentsSpaceProvisioned to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceProvisioned(statisticsComponentsSpaceProvisioned *string) { o.StatisticsComponentsSpaceProvisioned = statisticsComponentsSpaceProvisioned } // WithStatisticsComponentsSpaceReservedUnused adds the statisticsComponentsSpaceReservedUnused to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceReservedUnused(statisticsComponentsSpaceReservedUnused *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceReservedUnused(statisticsComponentsSpaceReservedUnused) return o } // SetStatisticsComponentsSpaceReservedUnused adds the statisticsComponentsSpaceReservedUnused to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceReservedUnused(statisticsComponentsSpaceReservedUnused *string) { o.StatisticsComponentsSpaceReservedUnused = statisticsComponentsSpaceReservedUnused } // WithStatisticsComponentsSpaceSavings adds the statisticsComponentsSpaceSavings to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceSavings(statisticsComponentsSpaceSavings *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceSavings(statisticsComponentsSpaceSavings) return o } // SetStatisticsComponentsSpaceSavings adds the statisticsComponentsSpaceSavings to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceSavings(statisticsComponentsSpaceSavings *string) { o.StatisticsComponentsSpaceSavings = statisticsComponentsSpaceSavings } // WithStatisticsComponentsSpaceUsed adds the statisticsComponentsSpaceUsed to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceUsed(statisticsComponentsSpaceUsed *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceUsed(statisticsComponentsSpaceUsed) return o } // SetStatisticsComponentsSpaceUsed adds the statisticsComponentsSpaceUsed to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceUsed(statisticsComponentsSpaceUsed *string) { o.StatisticsComponentsSpaceUsed = statisticsComponentsSpaceUsed } // WithStatisticsComponentsSpaceUsedExcludingReserves adds the statisticsComponentsSpaceUsedExcludingReserves to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceUsedExcludingReserves(statisticsComponentsSpaceUsedExcludingReserves *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceUsedExcludingReserves(statisticsComponentsSpaceUsedExcludingReserves) return o } // SetStatisticsComponentsSpaceUsedExcludingReserves adds the statisticsComponentsSpaceUsedExcludingReserves to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceUsedExcludingReserves(statisticsComponentsSpaceUsedExcludingReserves *string) { o.StatisticsComponentsSpaceUsedExcludingReserves = statisticsComponentsSpaceUsedExcludingReserves } // WithStatisticsComponentsSpaceUsedPercent adds the statisticsComponentsSpaceUsedPercent to the application collection get params func (o *ApplicationCollectionGetParams) WithStatisticsComponentsSpaceUsedPercent(statisticsComponentsSpaceUsedPercent *string) *ApplicationCollectionGetParams { o.SetStatisticsComponentsSpaceUsedPercent(statisticsComponentsSpaceUsedPercent) return o } // SetStatisticsComponentsSpaceUsedPercent adds the statisticsComponentsSpaceUsedPercent to the application collection get params func (o *ApplicationCollectionGetParams) SetStatisticsComponentsSpaceUsedPercent(statisticsComponentsSpaceUsedPercent *string) { o.StatisticsComponentsSpaceUsedPercent = statisticsComponentsSpaceUsedPercent }
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/application/consistency_group_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupCreateParams creates a new ConsistencyGroupCreateParams 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 NewConsistencyGroupCreateParams() *ConsistencyGroupCreateParams { return &ConsistencyGroupCreateParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupCreateParamsWithTimeout creates a new ConsistencyGroupCreateParams object // with the ability to set a timeout on a request. func NewConsistencyGroupCreateParamsWithTimeout(timeout time.Duration) *ConsistencyGroupCreateParams { return &ConsistencyGroupCreateParams{ timeout: timeout, } } // NewConsistencyGroupCreateParamsWithContext creates a new ConsistencyGroupCreateParams object // with the ability to set a context for a request. func NewConsistencyGroupCreateParamsWithContext(ctx context.Context) *ConsistencyGroupCreateParams { return &ConsistencyGroupCreateParams{ Context: ctx, } } // NewConsistencyGroupCreateParamsWithHTTPClient creates a new ConsistencyGroupCreateParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupCreateParamsWithHTTPClient(client *http.Client) *ConsistencyGroupCreateParams { return &ConsistencyGroupCreateParams{ HTTPClient: client, } } /* ConsistencyGroupCreateParams contains all the parameters to send to the API endpoint for the consistency group create operation. Typically these are written to a http.Request. */ type ConsistencyGroupCreateParams struct { /* Info. Information regarding a consistency group. */ Info *models.ConsistencyGroup /* 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 consistency group create params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupCreateParams) WithDefaults() *ConsistencyGroupCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group create params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ConsistencyGroupCreateParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group create params func (o *ConsistencyGroupCreateParams) WithTimeout(timeout time.Duration) *ConsistencyGroupCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group create params func (o *ConsistencyGroupCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group create params func (o *ConsistencyGroupCreateParams) WithContext(ctx context.Context) *ConsistencyGroupCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group create params func (o *ConsistencyGroupCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group create params func (o *ConsistencyGroupCreateParams) WithHTTPClient(client *http.Client) *ConsistencyGroupCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group create params func (o *ConsistencyGroupCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the consistency group create params func (o *ConsistencyGroupCreateParams) WithInfo(info *models.ConsistencyGroup) *ConsistencyGroupCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the consistency group create params func (o *ConsistencyGroupCreateParams) SetInfo(info *models.ConsistencyGroup) { o.Info = info } // WithReturnRecords adds the returnRecords to the consistency group create params func (o *ConsistencyGroupCreateParams) WithReturnRecords(returnRecords *bool) *ConsistencyGroupCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the consistency group create params func (o *ConsistencyGroupCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the consistency group create params func (o *ConsistencyGroupCreateParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupCreateParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group create params func (o *ConsistencyGroupCreateParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupCreateParams) 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/application/application_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationCreateReader is a Reader for the ApplicationCreate structure. type ApplicationCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationCreateDefault(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 } } // NewApplicationCreateAccepted creates a ApplicationCreateAccepted with default headers values func NewApplicationCreateAccepted() *ApplicationCreateAccepted { return &ApplicationCreateAccepted{} } /* ApplicationCreateAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this application create accepted response has a 2xx status code func (o *ApplicationCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application create accepted response has a 3xx status code func (o *ApplicationCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application create accepted response has a 4xx status code func (o *ApplicationCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this application create accepted response has a 5xx status code func (o *ApplicationCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this application create accepted response a status code equal to that given func (o *ApplicationCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationCreateAccepted) Error() string { return fmt.Sprintf("[POST /application/applications][%d] applicationCreateAccepted %+v", 202, o.Payload) } func (o *ApplicationCreateAccepted) String() string { return fmt.Sprintf("[POST /application/applications][%d] applicationCreateAccepted %+v", 202, o.Payload) } func (o *ApplicationCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationCreateAccepted) 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 } // NewApplicationCreateDefault creates a ApplicationCreateDefault with default headers values func NewApplicationCreateDefault(code int) *ApplicationCreateDefault { return &ApplicationCreateDefault{ _statusCode: code, } } /* ApplicationCreateDefault describes a response with status code -1, with default header values. Error */ type ApplicationCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application create default response func (o *ApplicationCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application create default response has a 2xx status code func (o *ApplicationCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application create default response has a 3xx status code func (o *ApplicationCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application create default response has a 4xx status code func (o *ApplicationCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application create default response has a 5xx status code func (o *ApplicationCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application create default response a status code equal to that given func (o *ApplicationCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationCreateDefault) Error() string { return fmt.Sprintf("[POST /application/applications][%d] application_create default %+v", o._statusCode, o.Payload) } func (o *ApplicationCreateDefault) String() string { return fmt.Sprintf("[POST /application/applications][%d] application_create default %+v", o._statusCode, o.Payload) } func (o *ApplicationCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationCreateDefault) 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/application/application_snapshot_restore_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_restore_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationSnapshotRestoreParams creates a new ApplicationSnapshotRestoreParams 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 NewApplicationSnapshotRestoreParams() *ApplicationSnapshotRestoreParams { return &ApplicationSnapshotRestoreParams{ timeout: cr.DefaultTimeout, } } // NewApplicationSnapshotRestoreParamsWithTimeout creates a new ApplicationSnapshotRestoreParams object // with the ability to set a timeout on a request. func NewApplicationSnapshotRestoreParamsWithTimeout(timeout time.Duration) *ApplicationSnapshotRestoreParams { return &ApplicationSnapshotRestoreParams{ timeout: timeout, } } // NewApplicationSnapshotRestoreParamsWithContext creates a new ApplicationSnapshotRestoreParams object // with the ability to set a context for a request. func NewApplicationSnapshotRestoreParamsWithContext(ctx context.Context) *ApplicationSnapshotRestoreParams { return &ApplicationSnapshotRestoreParams{ Context: ctx, } } // NewApplicationSnapshotRestoreParamsWithHTTPClient creates a new ApplicationSnapshotRestoreParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationSnapshotRestoreParamsWithHTTPClient(client *http.Client) *ApplicationSnapshotRestoreParams { return &ApplicationSnapshotRestoreParams{ HTTPClient: client, } } /* ApplicationSnapshotRestoreParams contains all the parameters to send to the API endpoint for the application snapshot restore operation. Typically these are written to a http.Request. */ type ApplicationSnapshotRestoreParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* 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 /* UUID. Snapshot copy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application snapshot restore params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotRestoreParams) WithDefaults() *ApplicationSnapshotRestoreParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application snapshot restore params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationSnapshotRestoreParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := ApplicationSnapshotRestoreParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) WithTimeout(timeout time.Duration) *ApplicationSnapshotRestoreParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) WithContext(ctx context.Context) *ApplicationSnapshotRestoreParams { o.SetContext(ctx) return o } // SetContext adds the context to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) WithHTTPClient(client *http.Client) *ApplicationSnapshotRestoreParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) WithApplicationUUID(applicationUUID string) *ApplicationSnapshotRestoreParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithReturnRecords adds the returnRecords to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) WithReturnRecords(returnRecords *bool) *ApplicationSnapshotRestoreParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) WithReturnTimeout(returnTimeout *int64) *ApplicationSnapshotRestoreParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) WithUUID(uuid string) *ApplicationSnapshotRestoreParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application snapshot restore params func (o *ApplicationSnapshotRestoreParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationSnapshotRestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); 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 } } } // 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/application/consistency_group_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupModifyParams creates a new ConsistencyGroupModifyParams 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 NewConsistencyGroupModifyParams() *ConsistencyGroupModifyParams { return &ConsistencyGroupModifyParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupModifyParamsWithTimeout creates a new ConsistencyGroupModifyParams object // with the ability to set a timeout on a request. func NewConsistencyGroupModifyParamsWithTimeout(timeout time.Duration) *ConsistencyGroupModifyParams { return &ConsistencyGroupModifyParams{ timeout: timeout, } } // NewConsistencyGroupModifyParamsWithContext creates a new ConsistencyGroupModifyParams object // with the ability to set a context for a request. func NewConsistencyGroupModifyParamsWithContext(ctx context.Context) *ConsistencyGroupModifyParams { return &ConsistencyGroupModifyParams{ Context: ctx, } } // NewConsistencyGroupModifyParamsWithHTTPClient creates a new ConsistencyGroupModifyParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupModifyParamsWithHTTPClient(client *http.Client) *ConsistencyGroupModifyParams { return &ConsistencyGroupModifyParams{ HTTPClient: client, } } /* ConsistencyGroupModifyParams contains all the parameters to send to the API endpoint for the consistency group modify operation. Typically these are written to a http.Request. */ type ConsistencyGroupModifyParams struct { /* Info. Request for content used to update a consistency group */ Info *models.ConsistencyGroup /* 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. The unique identifier of the consistency group to modify. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the consistency group modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupModifyParams) WithDefaults() *ConsistencyGroupModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := ConsistencyGroupModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group modify params func (o *ConsistencyGroupModifyParams) WithTimeout(timeout time.Duration) *ConsistencyGroupModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group modify params func (o *ConsistencyGroupModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group modify params func (o *ConsistencyGroupModifyParams) WithContext(ctx context.Context) *ConsistencyGroupModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group modify params func (o *ConsistencyGroupModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group modify params func (o *ConsistencyGroupModifyParams) WithHTTPClient(client *http.Client) *ConsistencyGroupModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group modify params func (o *ConsistencyGroupModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the consistency group modify params func (o *ConsistencyGroupModifyParams) WithInfo(info *models.ConsistencyGroup) *ConsistencyGroupModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the consistency group modify params func (o *ConsistencyGroupModifyParams) SetInfo(info *models.ConsistencyGroup) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the consistency group modify params func (o *ConsistencyGroupModifyParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group modify params func (o *ConsistencyGroupModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the consistency group modify params func (o *ConsistencyGroupModifyParams) WithUUID(uuid string) *ConsistencyGroupModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the consistency group modify params func (o *ConsistencyGroupModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupModifyParams) 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); 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/application/application_snapshot_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationSnapshotDeleteReader is a Reader for the ApplicationSnapshotDelete structure. type ApplicationSnapshotDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationSnapshotDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationSnapshotDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationSnapshotDeleteDefault(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 } } // NewApplicationSnapshotDeleteAccepted creates a ApplicationSnapshotDeleteAccepted with default headers values func NewApplicationSnapshotDeleteAccepted() *ApplicationSnapshotDeleteAccepted { return &ApplicationSnapshotDeleteAccepted{} } /* ApplicationSnapshotDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationSnapshotDeleteAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this application snapshot delete accepted response has a 2xx status code func (o *ApplicationSnapshotDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application snapshot delete accepted response has a 3xx status code func (o *ApplicationSnapshotDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application snapshot delete accepted response has a 4xx status code func (o *ApplicationSnapshotDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this application snapshot delete accepted response has a 5xx status code func (o *ApplicationSnapshotDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this application snapshot delete accepted response a status code equal to that given func (o *ApplicationSnapshotDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationSnapshotDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/snapshots/{uuid}][%d] applicationSnapshotDeleteAccepted %+v", 202, o.Payload) } func (o *ApplicationSnapshotDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/snapshots/{uuid}][%d] applicationSnapshotDeleteAccepted %+v", 202, o.Payload) } func (o *ApplicationSnapshotDeleteAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationSnapshotDeleteAccepted) 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 } // NewApplicationSnapshotDeleteDefault creates a ApplicationSnapshotDeleteDefault with default headers values func NewApplicationSnapshotDeleteDefault(code int) *ApplicationSnapshotDeleteDefault { return &ApplicationSnapshotDeleteDefault{ _statusCode: code, } } /* ApplicationSnapshotDeleteDefault describes a response with status code -1, with default header values. Error */ type ApplicationSnapshotDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application snapshot delete default response func (o *ApplicationSnapshotDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application snapshot delete default response has a 2xx status code func (o *ApplicationSnapshotDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application snapshot delete default response has a 3xx status code func (o *ApplicationSnapshotDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application snapshot delete default response has a 4xx status code func (o *ApplicationSnapshotDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application snapshot delete default response has a 5xx status code func (o *ApplicationSnapshotDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application snapshot delete default response a status code equal to that given func (o *ApplicationSnapshotDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationSnapshotDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/snapshots/{uuid}][%d] application_snapshot_delete default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotDeleteDefault) String() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/snapshots/{uuid}][%d] application_snapshot_delete default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationSnapshotDeleteDefault) 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/application/application_component_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewApplicationComponentGetParams creates a new ApplicationComponentGetParams 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 NewApplicationComponentGetParams() *ApplicationComponentGetParams { return &ApplicationComponentGetParams{ timeout: cr.DefaultTimeout, } } // NewApplicationComponentGetParamsWithTimeout creates a new ApplicationComponentGetParams object // with the ability to set a timeout on a request. func NewApplicationComponentGetParamsWithTimeout(timeout time.Duration) *ApplicationComponentGetParams { return &ApplicationComponentGetParams{ timeout: timeout, } } // NewApplicationComponentGetParamsWithContext creates a new ApplicationComponentGetParams object // with the ability to set a context for a request. func NewApplicationComponentGetParamsWithContext(ctx context.Context) *ApplicationComponentGetParams { return &ApplicationComponentGetParams{ Context: ctx, } } // NewApplicationComponentGetParamsWithHTTPClient creates a new ApplicationComponentGetParams object // with the ability to set a custom HTTPClient for a request. func NewApplicationComponentGetParamsWithHTTPClient(client *http.Client) *ApplicationComponentGetParams { return &ApplicationComponentGetParams{ HTTPClient: client, } } /* ApplicationComponentGetParams contains all the parameters to send to the API endpoint for the application component get operation. Typically these are written to a http.Request. */ type ApplicationComponentGetParams struct { /* ApplicationUUID. Application UUID */ ApplicationUUID string /* Fields. Specify the fields to return. */ Fields []string /* UUID. Application component UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the application component get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentGetParams) WithDefaults() *ApplicationComponentGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the application component get params (not the query body). // // All values with no default are reset to their zero value. func (o *ApplicationComponentGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the application component get params func (o *ApplicationComponentGetParams) WithTimeout(timeout time.Duration) *ApplicationComponentGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the application component get params func (o *ApplicationComponentGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the application component get params func (o *ApplicationComponentGetParams) WithContext(ctx context.Context) *ApplicationComponentGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the application component get params func (o *ApplicationComponentGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the application component get params func (o *ApplicationComponentGetParams) WithHTTPClient(client *http.Client) *ApplicationComponentGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the application component get params func (o *ApplicationComponentGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApplicationUUID adds the applicationUUID to the application component get params func (o *ApplicationComponentGetParams) WithApplicationUUID(applicationUUID string) *ApplicationComponentGetParams { o.SetApplicationUUID(applicationUUID) return o } // SetApplicationUUID adds the applicationUuid to the application component get params func (o *ApplicationComponentGetParams) SetApplicationUUID(applicationUUID string) { o.ApplicationUUID = applicationUUID } // WithFields adds the fields to the application component get params func (o *ApplicationComponentGetParams) WithFields(fields []string) *ApplicationComponentGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the application component get params func (o *ApplicationComponentGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the application component get params func (o *ApplicationComponentGetParams) WithUUID(uuid string) *ApplicationComponentGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the application component get params func (o *ApplicationComponentGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ApplicationComponentGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param application.uuid if err := r.SetPathParam("application.uuid", o.ApplicationUUID); 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 uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamApplicationComponentGet binds the parameter fields func (o *ApplicationComponentGetParams) 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/application/consistency_group_snapshot_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ConsistencyGroupSnapshotCreateReader is a Reader for the ConsistencyGroupSnapshotCreate structure. type ConsistencyGroupSnapshotCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ConsistencyGroupSnapshotCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewConsistencyGroupSnapshotCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 202: result := NewConsistencyGroupSnapshotCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewConsistencyGroupSnapshotCreateDefault(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 } } // NewConsistencyGroupSnapshotCreateCreated creates a ConsistencyGroupSnapshotCreateCreated with default headers values func NewConsistencyGroupSnapshotCreateCreated() *ConsistencyGroupSnapshotCreateCreated { return &ConsistencyGroupSnapshotCreateCreated{} } /* ConsistencyGroupSnapshotCreateCreated describes a response with status code 201, with default header values. Created */ type ConsistencyGroupSnapshotCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.ConsistencyGroupSnapshotResponse } // IsSuccess returns true when this consistency group snapshot create created response has a 2xx status code func (o *ConsistencyGroupSnapshotCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot create created response has a 3xx status code func (o *ConsistencyGroupSnapshotCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot create created response has a 4xx status code func (o *ConsistencyGroupSnapshotCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot create created response has a 5xx status code func (o *ConsistencyGroupSnapshotCreateCreated) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot create created response a status code equal to that given func (o *ConsistencyGroupSnapshotCreateCreated) IsCode(code int) bool { return code == 201 } func (o *ConsistencyGroupSnapshotCreateCreated) Error() string { return fmt.Sprintf("[POST /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistencyGroupSnapshotCreateCreated %+v", 201, o.Payload) } func (o *ConsistencyGroupSnapshotCreateCreated) String() string { return fmt.Sprintf("[POST /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistencyGroupSnapshotCreateCreated %+v", 201, o.Payload) } func (o *ConsistencyGroupSnapshotCreateCreated) GetPayload() *models.ConsistencyGroupSnapshotResponse { return o.Payload } func (o *ConsistencyGroupSnapshotCreateCreated) 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.ConsistencyGroupSnapshotResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewConsistencyGroupSnapshotCreateAccepted creates a ConsistencyGroupSnapshotCreateAccepted with default headers values func NewConsistencyGroupSnapshotCreateAccepted() *ConsistencyGroupSnapshotCreateAccepted { return &ConsistencyGroupSnapshotCreateAccepted{} } /* ConsistencyGroupSnapshotCreateAccepted describes a response with status code 202, with default header values. Accepted */ type ConsistencyGroupSnapshotCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this consistency group snapshot create accepted response has a 2xx status code func (o *ConsistencyGroupSnapshotCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this consistency group snapshot create accepted response has a 3xx status code func (o *ConsistencyGroupSnapshotCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this consistency group snapshot create accepted response has a 4xx status code func (o *ConsistencyGroupSnapshotCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this consistency group snapshot create accepted response has a 5xx status code func (o *ConsistencyGroupSnapshotCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this consistency group snapshot create accepted response a status code equal to that given func (o *ConsistencyGroupSnapshotCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *ConsistencyGroupSnapshotCreateAccepted) Error() string { return fmt.Sprintf("[POST /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistencyGroupSnapshotCreateAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupSnapshotCreateAccepted) String() string { return fmt.Sprintf("[POST /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistencyGroupSnapshotCreateAccepted %+v", 202, o.Payload) } func (o *ConsistencyGroupSnapshotCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ConsistencyGroupSnapshotCreateAccepted) 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 } // NewConsistencyGroupSnapshotCreateDefault creates a ConsistencyGroupSnapshotCreateDefault with default headers values func NewConsistencyGroupSnapshotCreateDefault(code int) *ConsistencyGroupSnapshotCreateDefault { return &ConsistencyGroupSnapshotCreateDefault{ _statusCode: code, } } /* ConsistencyGroupSnapshotCreateDefault describes a response with status code -1, with default header values. Error */ type ConsistencyGroupSnapshotCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the consistency group snapshot create default response func (o *ConsistencyGroupSnapshotCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this consistency group snapshot create default response has a 2xx status code func (o *ConsistencyGroupSnapshotCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this consistency group snapshot create default response has a 3xx status code func (o *ConsistencyGroupSnapshotCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this consistency group snapshot create default response has a 4xx status code func (o *ConsistencyGroupSnapshotCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this consistency group snapshot create default response has a 5xx status code func (o *ConsistencyGroupSnapshotCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this consistency group snapshot create default response a status code equal to that given func (o *ConsistencyGroupSnapshotCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ConsistencyGroupSnapshotCreateDefault) Error() string { return fmt.Sprintf("[POST /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistency_group_snapshot_create default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotCreateDefault) String() string { return fmt.Sprintf("[POST /application/consistency-groups/{consistency_group.uuid}/snapshots][%d] consistency_group_snapshot_create default %+v", o._statusCode, o.Payload) } func (o *ConsistencyGroupSnapshotCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ConsistencyGroupSnapshotCreateDefault) 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/application/consistency_group_snapshot_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_snapshot_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupSnapshotGetParams creates a new ConsistencyGroupSnapshotGetParams 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 NewConsistencyGroupSnapshotGetParams() *ConsistencyGroupSnapshotGetParams { return &ConsistencyGroupSnapshotGetParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupSnapshotGetParamsWithTimeout creates a new ConsistencyGroupSnapshotGetParams object // with the ability to set a timeout on a request. func NewConsistencyGroupSnapshotGetParamsWithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotGetParams { return &ConsistencyGroupSnapshotGetParams{ timeout: timeout, } } // NewConsistencyGroupSnapshotGetParamsWithContext creates a new ConsistencyGroupSnapshotGetParams object // with the ability to set a context for a request. func NewConsistencyGroupSnapshotGetParamsWithContext(ctx context.Context) *ConsistencyGroupSnapshotGetParams { return &ConsistencyGroupSnapshotGetParams{ Context: ctx, } } // NewConsistencyGroupSnapshotGetParamsWithHTTPClient creates a new ConsistencyGroupSnapshotGetParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupSnapshotGetParamsWithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotGetParams { return &ConsistencyGroupSnapshotGetParams{ HTTPClient: client, } } /* ConsistencyGroupSnapshotGetParams contains all the parameters to send to the API endpoint for the consistency group snapshot get operation. Typically these are written to a http.Request. */ type ConsistencyGroupSnapshotGetParams struct { /* Comment. Filter by comment */ Comment *string /* ConsistencyGroupName. Filter by consistency_group.name */ ConsistencyGroupName *string /* ConsistencyGroupUUID. The unique identifier of the consistency group to retrieve. */ ConsistencyGroupUUID string /* ConsistencyType. Filter by consistency_type */ ConsistencyType *string /* CreateTime. Filter by create_time */ CreateTime *string /* Fields. Specify the fields to return. */ Fields []string /* IsPartial. Filter by is_partial */ IsPartial *bool /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* MissingVolumesName. Filter by missing_volumes.name */ MissingVolumesName *string /* MissingVolumesUUID. Filter by missing_volumes.uuid */ MissingVolumesUUID *string /* 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 /* SnapmirrorLabel. Filter by snapmirror_label */ SnapmirrorLabel *string /* SnapshotVolumesSnapshotName. Filter by snapshot_volumes.snapshot.name */ SnapshotVolumesSnapshotName *string /* SnapshotVolumesSnapshotUUID. Filter by snapshot_volumes.snapshot.uuid */ SnapshotVolumesSnapshotUUID *string /* SnapshotVolumesVolumeName. Filter by snapshot_volumes.volume.name */ SnapshotVolumesVolumeName *string /* SnapshotVolumesVolumeUUID. Filter by snapshot_volumes.volume.uuid */ SnapshotVolumesVolumeUUID *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* UUID. The unique identifier of the Snapshot copy of the consistency group to retrieve. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the consistency group snapshot get params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotGetParams) WithDefaults() *ConsistencyGroupSnapshotGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the consistency group snapshot get params (not the query body). // // All values with no default are reset to their zero value. func (o *ConsistencyGroupSnapshotGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := ConsistencyGroupSnapshotGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithTimeout(timeout time.Duration) *ConsistencyGroupSnapshotGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithContext(ctx context.Context) *ConsistencyGroupSnapshotGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithHTTPClient(client *http.Client) *ConsistencyGroupSnapshotGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithComment adds the comment to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithComment(comment *string) *ConsistencyGroupSnapshotGetParams { o.SetComment(comment) return o } // SetComment adds the comment to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetComment(comment *string) { o.Comment = comment } // WithConsistencyGroupName adds the consistencyGroupName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithConsistencyGroupName(consistencyGroupName *string) *ConsistencyGroupSnapshotGetParams { o.SetConsistencyGroupName(consistencyGroupName) return o } // SetConsistencyGroupName adds the consistencyGroupName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetConsistencyGroupName(consistencyGroupName *string) { o.ConsistencyGroupName = consistencyGroupName } // WithConsistencyGroupUUID adds the consistencyGroupUUID to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithConsistencyGroupUUID(consistencyGroupUUID string) *ConsistencyGroupSnapshotGetParams { o.SetConsistencyGroupUUID(consistencyGroupUUID) return o } // SetConsistencyGroupUUID adds the consistencyGroupUuid to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetConsistencyGroupUUID(consistencyGroupUUID string) { o.ConsistencyGroupUUID = consistencyGroupUUID } // WithConsistencyType adds the consistencyType to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithConsistencyType(consistencyType *string) *ConsistencyGroupSnapshotGetParams { o.SetConsistencyType(consistencyType) return o } // SetConsistencyType adds the consistencyType to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetConsistencyType(consistencyType *string) { o.ConsistencyType = consistencyType } // WithCreateTime adds the createTime to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithCreateTime(createTime *string) *ConsistencyGroupSnapshotGetParams { o.SetCreateTime(createTime) return o } // SetCreateTime adds the createTime to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetCreateTime(createTime *string) { o.CreateTime = createTime } // WithFields adds the fields to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithFields(fields []string) *ConsistencyGroupSnapshotGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetFields(fields []string) { o.Fields = fields } // WithIsPartial adds the isPartial to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithIsPartial(isPartial *bool) *ConsistencyGroupSnapshotGetParams { o.SetIsPartial(isPartial) return o } // SetIsPartial adds the isPartial to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetIsPartial(isPartial *bool) { o.IsPartial = isPartial } // WithMaxRecords adds the maxRecords to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithMaxRecords(maxRecords *int64) *ConsistencyGroupSnapshotGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithMissingVolumesName adds the missingVolumesName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithMissingVolumesName(missingVolumesName *string) *ConsistencyGroupSnapshotGetParams { o.SetMissingVolumesName(missingVolumesName) return o } // SetMissingVolumesName adds the missingVolumesName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetMissingVolumesName(missingVolumesName *string) { o.MissingVolumesName = missingVolumesName } // WithMissingVolumesUUID adds the missingVolumesUUID to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithMissingVolumesUUID(missingVolumesUUID *string) *ConsistencyGroupSnapshotGetParams { o.SetMissingVolumesUUID(missingVolumesUUID) return o } // SetMissingVolumesUUID adds the missingVolumesUuid to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetMissingVolumesUUID(missingVolumesUUID *string) { o.MissingVolumesUUID = missingVolumesUUID } // WithName adds the name to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithName(name *string) *ConsistencyGroupSnapshotGetParams { o.SetName(name) return o } // SetName adds the name to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithOrderBy(orderBy []string) *ConsistencyGroupSnapshotGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithReturnRecords(returnRecords *bool) *ConsistencyGroupSnapshotGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithReturnTimeout(returnTimeout *int64) *ConsistencyGroupSnapshotGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSnapmirrorLabel adds the snapmirrorLabel to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithSnapmirrorLabel(snapmirrorLabel *string) *ConsistencyGroupSnapshotGetParams { o.SetSnapmirrorLabel(snapmirrorLabel) return o } // SetSnapmirrorLabel adds the snapmirrorLabel to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetSnapmirrorLabel(snapmirrorLabel *string) { o.SnapmirrorLabel = snapmirrorLabel } // WithSnapshotVolumesSnapshotName adds the snapshotVolumesSnapshotName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithSnapshotVolumesSnapshotName(snapshotVolumesSnapshotName *string) *ConsistencyGroupSnapshotGetParams { o.SetSnapshotVolumesSnapshotName(snapshotVolumesSnapshotName) return o } // SetSnapshotVolumesSnapshotName adds the snapshotVolumesSnapshotName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetSnapshotVolumesSnapshotName(snapshotVolumesSnapshotName *string) { o.SnapshotVolumesSnapshotName = snapshotVolumesSnapshotName } // WithSnapshotVolumesSnapshotUUID adds the snapshotVolumesSnapshotUUID to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithSnapshotVolumesSnapshotUUID(snapshotVolumesSnapshotUUID *string) *ConsistencyGroupSnapshotGetParams { o.SetSnapshotVolumesSnapshotUUID(snapshotVolumesSnapshotUUID) return o } // SetSnapshotVolumesSnapshotUUID adds the snapshotVolumesSnapshotUuid to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetSnapshotVolumesSnapshotUUID(snapshotVolumesSnapshotUUID *string) { o.SnapshotVolumesSnapshotUUID = snapshotVolumesSnapshotUUID } // WithSnapshotVolumesVolumeName adds the snapshotVolumesVolumeName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithSnapshotVolumesVolumeName(snapshotVolumesVolumeName *string) *ConsistencyGroupSnapshotGetParams { o.SetSnapshotVolumesVolumeName(snapshotVolumesVolumeName) return o } // SetSnapshotVolumesVolumeName adds the snapshotVolumesVolumeName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetSnapshotVolumesVolumeName(snapshotVolumesVolumeName *string) { o.SnapshotVolumesVolumeName = snapshotVolumesVolumeName } // WithSnapshotVolumesVolumeUUID adds the snapshotVolumesVolumeUUID to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithSnapshotVolumesVolumeUUID(snapshotVolumesVolumeUUID *string) *ConsistencyGroupSnapshotGetParams { o.SetSnapshotVolumesVolumeUUID(snapshotVolumesVolumeUUID) return o } // SetSnapshotVolumesVolumeUUID adds the snapshotVolumesVolumeUuid to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetSnapshotVolumesVolumeUUID(snapshotVolumesVolumeUUID *string) { o.SnapshotVolumesVolumeUUID = snapshotVolumesVolumeUUID } // WithSvmName adds the svmName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithSvmName(svmName *string) *ConsistencyGroupSnapshotGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithSvmUUID(svmUUID *string) *ConsistencyGroupSnapshotGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithUUID adds the uuid to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) WithUUID(uuid string) *ConsistencyGroupSnapshotGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the consistency group snapshot get params func (o *ConsistencyGroupSnapshotGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *ConsistencyGroupSnapshotGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Comment != nil { // query param comment var qrComment string if o.Comment != nil { qrComment = *o.Comment } qComment := qrComment if qComment != "" { if err := r.SetQueryParam("comment", qComment); err != nil { return err } } } if o.ConsistencyGroupName != nil { // query param consistency_group.name var qrConsistencyGroupName string if o.ConsistencyGroupName != nil { qrConsistencyGroupName = *o.ConsistencyGroupName } qConsistencyGroupName := qrConsistencyGroupName if qConsistencyGroupName != "" { if err := r.SetQueryParam("consistency_group.name", qConsistencyGroupName); err != nil { return err } } } // path param consistency_group.uuid if err := r.SetPathParam("consistency_group.uuid", o.ConsistencyGroupUUID); err != nil { return err } if o.ConsistencyType != nil { // query param consistency_type var qrConsistencyType string if o.ConsistencyType != nil { qrConsistencyType = *o.ConsistencyType } qConsistencyType := qrConsistencyType if qConsistencyType != "" { if err := r.SetQueryParam("consistency_type", qConsistencyType); err != nil { return err } } } if o.CreateTime != nil { // query param create_time var qrCreateTime string if o.CreateTime != nil { qrCreateTime = *o.CreateTime } qCreateTime := qrCreateTime if qCreateTime != "" { if err := r.SetQueryParam("create_time", qCreateTime); 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.IsPartial != nil { // query param is_partial var qrIsPartial bool if o.IsPartial != nil { qrIsPartial = *o.IsPartial } qIsPartial := swag.FormatBool(qrIsPartial) if qIsPartial != "" { if err := r.SetQueryParam("is_partial", qIsPartial); 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.MissingVolumesName != nil { // query param missing_volumes.name var qrMissingVolumesName string if o.MissingVolumesName != nil { qrMissingVolumesName = *o.MissingVolumesName } qMissingVolumesName := qrMissingVolumesName if qMissingVolumesName != "" { if err := r.SetQueryParam("missing_volumes.name", qMissingVolumesName); err != nil { return err } } } if o.MissingVolumesUUID != nil { // query param missing_volumes.uuid var qrMissingVolumesUUID string if o.MissingVolumesUUID != nil { qrMissingVolumesUUID = *o.MissingVolumesUUID } qMissingVolumesUUID := qrMissingVolumesUUID if qMissingVolumesUUID != "" { if err := r.SetQueryParam("missing_volumes.uuid", qMissingVolumesUUID); 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.SnapmirrorLabel != nil { // query param snapmirror_label var qrSnapmirrorLabel string if o.SnapmirrorLabel != nil { qrSnapmirrorLabel = *o.SnapmirrorLabel } qSnapmirrorLabel := qrSnapmirrorLabel if qSnapmirrorLabel != "" { if err := r.SetQueryParam("snapmirror_label", qSnapmirrorLabel); err != nil { return err } } } if o.SnapshotVolumesSnapshotName != nil { // query param snapshot_volumes.snapshot.name var qrSnapshotVolumesSnapshotName string if o.SnapshotVolumesSnapshotName != nil { qrSnapshotVolumesSnapshotName = *o.SnapshotVolumesSnapshotName } qSnapshotVolumesSnapshotName := qrSnapshotVolumesSnapshotName if qSnapshotVolumesSnapshotName != "" { if err := r.SetQueryParam("snapshot_volumes.snapshot.name", qSnapshotVolumesSnapshotName); err != nil { return err } } } if o.SnapshotVolumesSnapshotUUID != nil { // query param snapshot_volumes.snapshot.uuid var qrSnapshotVolumesSnapshotUUID string if o.SnapshotVolumesSnapshotUUID != nil { qrSnapshotVolumesSnapshotUUID = *o.SnapshotVolumesSnapshotUUID } qSnapshotVolumesSnapshotUUID := qrSnapshotVolumesSnapshotUUID if qSnapshotVolumesSnapshotUUID != "" { if err := r.SetQueryParam("snapshot_volumes.snapshot.uuid", qSnapshotVolumesSnapshotUUID); err != nil { return err } } } if o.SnapshotVolumesVolumeName != nil { // query param snapshot_volumes.volume.name var qrSnapshotVolumesVolumeName string if o.SnapshotVolumesVolumeName != nil { qrSnapshotVolumesVolumeName = *o.SnapshotVolumesVolumeName } qSnapshotVolumesVolumeName := qrSnapshotVolumesVolumeName if qSnapshotVolumesVolumeName != "" { if err := r.SetQueryParam("snapshot_volumes.volume.name", qSnapshotVolumesVolumeName); err != nil { return err } } } if o.SnapshotVolumesVolumeUUID != nil { // query param snapshot_volumes.volume.uuid var qrSnapshotVolumesVolumeUUID string if o.SnapshotVolumesVolumeUUID != nil { qrSnapshotVolumesVolumeUUID = *o.SnapshotVolumesVolumeUUID } qSnapshotVolumesVolumeUUID := qrSnapshotVolumesVolumeUUID if qSnapshotVolumesVolumeUUID != "" { if err := r.SetQueryParam("snapshot_volumes.volume.uuid", qSnapshotVolumesVolumeUUID); 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 } } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamConsistencyGroupSnapshotGet binds the parameter fields func (o *ConsistencyGroupSnapshotGetParams) 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 } // bindParamConsistencyGroupSnapshotGet binds the parameter order_by func (o *ConsistencyGroupSnapshotGetParams) 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/application/application_snapshot_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_snapshot_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationSnapshotCreateReader is a Reader for the ApplicationSnapshotCreate structure. type ApplicationSnapshotCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationSnapshotCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationSnapshotCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationSnapshotCreateDefault(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 } } // NewApplicationSnapshotCreateAccepted creates a ApplicationSnapshotCreateAccepted with default headers values func NewApplicationSnapshotCreateAccepted() *ApplicationSnapshotCreateAccepted { return &ApplicationSnapshotCreateAccepted{} } /* ApplicationSnapshotCreateAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationSnapshotCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.JobLinkResponse } // IsSuccess returns true when this application snapshot create accepted response has a 2xx status code func (o *ApplicationSnapshotCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application snapshot create accepted response has a 3xx status code func (o *ApplicationSnapshotCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application snapshot create accepted response has a 4xx status code func (o *ApplicationSnapshotCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this application snapshot create accepted response has a 5xx status code func (o *ApplicationSnapshotCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this application snapshot create accepted response a status code equal to that given func (o *ApplicationSnapshotCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationSnapshotCreateAccepted) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots][%d] applicationSnapshotCreateAccepted %+v", 202, o.Payload) } func (o *ApplicationSnapshotCreateAccepted) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots][%d] applicationSnapshotCreateAccepted %+v", 202, o.Payload) } func (o *ApplicationSnapshotCreateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationSnapshotCreateAccepted) 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 } // NewApplicationSnapshotCreateDefault creates a ApplicationSnapshotCreateDefault with default headers values func NewApplicationSnapshotCreateDefault(code int) *ApplicationSnapshotCreateDefault { return &ApplicationSnapshotCreateDefault{ _statusCode: code, } } /* ApplicationSnapshotCreateDefault describes a response with status code -1, with default header values. Error */ type ApplicationSnapshotCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application snapshot create default response func (o *ApplicationSnapshotCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application snapshot create default response has a 2xx status code func (o *ApplicationSnapshotCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application snapshot create default response has a 3xx status code func (o *ApplicationSnapshotCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application snapshot create default response has a 4xx status code func (o *ApplicationSnapshotCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application snapshot create default response has a 5xx status code func (o *ApplicationSnapshotCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application snapshot create default response a status code equal to that given func (o *ApplicationSnapshotCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationSnapshotCreateDefault) Error() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots][%d] application_snapshot_create default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotCreateDefault) String() string { return fmt.Sprintf("[POST /application/applications/{application.uuid}/snapshots][%d] application_snapshot_create default %+v", o._statusCode, o.Payload) } func (o *ApplicationSnapshotCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationSnapshotCreateDefault) 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/application/application_component_snapshot_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationComponentSnapshotCollectionGetReader is a Reader for the ApplicationComponentSnapshotCollectionGet structure. type ApplicationComponentSnapshotCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationComponentSnapshotCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationComponentSnapshotCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationComponentSnapshotCollectionGetDefault(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 } } // NewApplicationComponentSnapshotCollectionGetOK creates a ApplicationComponentSnapshotCollectionGetOK with default headers values func NewApplicationComponentSnapshotCollectionGetOK() *ApplicationComponentSnapshotCollectionGetOK { return &ApplicationComponentSnapshotCollectionGetOK{} } /* ApplicationComponentSnapshotCollectionGetOK describes a response with status code 200, with default header values. OK */ type ApplicationComponentSnapshotCollectionGetOK struct { Payload *models.ApplicationComponentSnapshotResponse } // IsSuccess returns true when this application component snapshot collection get o k response has a 2xx status code func (o *ApplicationComponentSnapshotCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application component snapshot collection get o k response has a 3xx status code func (o *ApplicationComponentSnapshotCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application component snapshot collection get o k response has a 4xx status code func (o *ApplicationComponentSnapshotCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this application component snapshot collection get o k response has a 5xx status code func (o *ApplicationComponentSnapshotCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this application component snapshot collection get o k response a status code equal to that given func (o *ApplicationComponentSnapshotCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationComponentSnapshotCollectionGetOK) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] applicationComponentSnapshotCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentSnapshotCollectionGetOK) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] applicationComponentSnapshotCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationComponentSnapshotCollectionGetOK) GetPayload() *models.ApplicationComponentSnapshotResponse { return o.Payload } func (o *ApplicationComponentSnapshotCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationComponentSnapshotResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationComponentSnapshotCollectionGetDefault creates a ApplicationComponentSnapshotCollectionGetDefault with default headers values func NewApplicationComponentSnapshotCollectionGetDefault(code int) *ApplicationComponentSnapshotCollectionGetDefault { return &ApplicationComponentSnapshotCollectionGetDefault{ _statusCode: code, } } /* ApplicationComponentSnapshotCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationComponentSnapshotCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application component snapshot collection get default response func (o *ApplicationComponentSnapshotCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application component snapshot collection get default response has a 2xx status code func (o *ApplicationComponentSnapshotCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application component snapshot collection get default response has a 3xx status code func (o *ApplicationComponentSnapshotCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application component snapshot collection get default response has a 4xx status code func (o *ApplicationComponentSnapshotCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application component snapshot collection get default response has a 5xx status code func (o *ApplicationComponentSnapshotCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application component snapshot collection get default response a status code equal to that given func (o *ApplicationComponentSnapshotCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationComponentSnapshotCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] application_component_snapshot_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotCollectionGetDefault) String() string { return fmt.Sprintf("[GET /application/applications/{application.uuid}/components/{component.uuid}/snapshots][%d] application_component_snapshot_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationComponentSnapshotCollectionGetDefault) 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/application/application_component_snapshot_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_component_snapshot_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationComponentSnapshotDeleteReader is a Reader for the ApplicationComponentSnapshotDelete structure. type ApplicationComponentSnapshotDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationComponentSnapshotDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationComponentSnapshotDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationComponentSnapshotDeleteDefault(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 } } // NewApplicationComponentSnapshotDeleteAccepted creates a ApplicationComponentSnapshotDeleteAccepted with default headers values func NewApplicationComponentSnapshotDeleteAccepted() *ApplicationComponentSnapshotDeleteAccepted { return &ApplicationComponentSnapshotDeleteAccepted{} } /* ApplicationComponentSnapshotDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationComponentSnapshotDeleteAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this application component snapshot delete accepted response has a 2xx status code func (o *ApplicationComponentSnapshotDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application component snapshot delete accepted response has a 3xx status code func (o *ApplicationComponentSnapshotDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application component snapshot delete accepted response has a 4xx status code func (o *ApplicationComponentSnapshotDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this application component snapshot delete accepted response has a 5xx status code func (o *ApplicationComponentSnapshotDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this application component snapshot delete accepted response a status code equal to that given func (o *ApplicationComponentSnapshotDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationComponentSnapshotDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] applicationComponentSnapshotDeleteAccepted %+v", 202, o.Payload) } func (o *ApplicationComponentSnapshotDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] applicationComponentSnapshotDeleteAccepted %+v", 202, o.Payload) } func (o *ApplicationComponentSnapshotDeleteAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationComponentSnapshotDeleteAccepted) 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 } // NewApplicationComponentSnapshotDeleteDefault creates a ApplicationComponentSnapshotDeleteDefault with default headers values func NewApplicationComponentSnapshotDeleteDefault(code int) *ApplicationComponentSnapshotDeleteDefault { return &ApplicationComponentSnapshotDeleteDefault{ _statusCode: code, } } /* ApplicationComponentSnapshotDeleteDefault describes a response with status code -1, with default header values. Error */ type ApplicationComponentSnapshotDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application component snapshot delete default response func (o *ApplicationComponentSnapshotDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application component snapshot delete default response has a 2xx status code func (o *ApplicationComponentSnapshotDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application component snapshot delete default response has a 3xx status code func (o *ApplicationComponentSnapshotDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application component snapshot delete default response has a 4xx status code func (o *ApplicationComponentSnapshotDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application component snapshot delete default response has a 5xx status code func (o *ApplicationComponentSnapshotDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application component snapshot delete default response a status code equal to that given func (o *ApplicationComponentSnapshotDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationComponentSnapshotDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] application_component_snapshot_delete default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotDeleteDefault) String() string { return fmt.Sprintf("[DELETE /application/applications/{application.uuid}/components/{component.uuid}/snapshots/{uuid}][%d] application_component_snapshot_delete default %+v", o._statusCode, o.Payload) } func (o *ApplicationComponentSnapshotDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationComponentSnapshotDeleteDefault) 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/application/consistency_group_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/consistency_group_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // NewConsistencyGroupCollectionGetParams creates a new ConsistencyGroupCollectionGetParams 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 NewConsistencyGroupCollectionGetParams() *ConsistencyGroupCollectionGetParams { return &ConsistencyGroupCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewConsistencyGroupCollectionGetParamsWithTimeout creates a new ConsistencyGroupCollectionGetParams object // with the ability to set a timeout on a request. func NewConsistencyGroupCollectionGetParamsWithTimeout(timeout time.Duration) *ConsistencyGroupCollectionGetParams { return &ConsistencyGroupCollectionGetParams{ timeout: timeout, } } // NewConsistencyGroupCollectionGetParamsWithContext creates a new ConsistencyGroupCollectionGetParams object // with the ability to set a context for a request. func NewConsistencyGroupCollectionGetParamsWithContext(ctx context.Context) *ConsistencyGroupCollectionGetParams { return &ConsistencyGroupCollectionGetParams{ Context: ctx, } } // NewConsistencyGroupCollectionGetParamsWithHTTPClient creates a new ConsistencyGroupCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewConsistencyGroupCollectionGetParamsWithHTTPClient(client *http.Client) *ConsistencyGroupCollectionGetParams { return &ConsistencyGroupCollectionGetParams{ HTTPClient: client, } } /* ConsistencyGroupCollectionGetParams contains all the parameters to send to the API endpoint for the consistency group collection get operation. Typically these are written to a http.Request. */ type ConsistencyGroupCollectionGetParams struct { /* ApplicationComponentType. Filter by application.component_type */ ApplicationComponentType *string /* ApplicationType. Filter by application.type */ ApplicationType *string /* CloneGuaranteeType. Filter by clone.guarantee.type */ CloneGuaranteeType *string /* CloneParentConsistencyGroupName. Filter by clone.parent_consistency_group.name */ CloneParentConsistencyGroupName *string /* CloneParentConsistencyGroupUUID. Filter by clone.parent_consistency_group.uuid */ CloneParentConsistencyGroupUUID *string /* CloneParentSnapshotName. Filter by clone.parent_snapshot.name */ CloneParentSnapshotName *string /* CloneSplitInitiated. Filter by clone.split_initiated */ CloneSplitInitiated *bool /* CloneVolumePrefix. Filter by clone.volume.prefix */ CloneVolumePrefix *string /* CloneVolumeSuffix. Filter by clone.volume.suffix */ CloneVolumeSuffix *string /* ConsistencyGroupsApplicationComponentType. Filter by consistency_groups.application.component_type */ ConsistencyGroupsApplicationComponentType *string /* ConsistencyGroupsApplicationType. Filter by consistency_groups.application.type */ ConsistencyGroupsApplicationType *string /* ConsistencyGroupsLunsComment. Filter by consistency_groups.luns.comment */ ConsistencyGroupsLunsComment *string /* ConsistencyGroupsLunsCreateTime. Filter by consistency_groups.luns.create_time */ ConsistencyGroupsLunsCreateTime *string /* ConsistencyGroupsLunsEnabled. Filter by consistency_groups.luns.enabled */ ConsistencyGroupsLunsEnabled *bool /* ConsistencyGroupsLunsLunMapsIgroupComment. Filter by consistency_groups.luns.lun_maps.igroup.comment */ ConsistencyGroupsLunsLunMapsIgroupComment *string /* ConsistencyGroupsLunsLunMapsIgroupIgroupsName. Filter by consistency_groups.luns.lun_maps.igroup.igroups.name */ ConsistencyGroupsLunsLunMapsIgroupIgroupsName *string /* ConsistencyGroupsLunsLunMapsIgroupIgroupsUUID. Filter by consistency_groups.luns.lun_maps.igroup.igroups.uuid */ ConsistencyGroupsLunsLunMapsIgroupIgroupsUUID *string /* ConsistencyGroupsLunsLunMapsIgroupInitiatorsComment. Filter by consistency_groups.luns.lun_maps.igroup.initiators.comment */ ConsistencyGroupsLunsLunMapsIgroupInitiatorsComment *string /* ConsistencyGroupsLunsLunMapsIgroupInitiatorsName. Filter by consistency_groups.luns.lun_maps.igroup.initiators.name */ ConsistencyGroupsLunsLunMapsIgroupInitiatorsName *string /* ConsistencyGroupsLunsLunMapsIgroupName. Filter by consistency_groups.luns.lun_maps.igroup.name */ ConsistencyGroupsLunsLunMapsIgroupName *string /* ConsistencyGroupsLunsLunMapsIgroupOsType. Filter by consistency_groups.luns.lun_maps.igroup.os_type */ ConsistencyGroupsLunsLunMapsIgroupOsType *string /* ConsistencyGroupsLunsLunMapsIgroupProtocol. Filter by consistency_groups.luns.lun_maps.igroup.protocol */ ConsistencyGroupsLunsLunMapsIgroupProtocol *string /* ConsistencyGroupsLunsLunMapsIgroupUUID. Filter by consistency_groups.luns.lun_maps.igroup.uuid */ ConsistencyGroupsLunsLunMapsIgroupUUID *string /* ConsistencyGroupsLunsLunMapsLogicalUnitNumber. Filter by consistency_groups.luns.lun_maps.logical_unit_number */ ConsistencyGroupsLunsLunMapsLogicalUnitNumber *int64 /* ConsistencyGroupsLunsName. Filter by consistency_groups.luns.name */ ConsistencyGroupsLunsName *string /* ConsistencyGroupsLunsOsType. Filter by consistency_groups.luns.os_type */ ConsistencyGroupsLunsOsType *string /* ConsistencyGroupsLunsQosPolicyMaxThroughputIops. Filter by consistency_groups.luns.qos.policy.max_throughput_iops */ ConsistencyGroupsLunsQosPolicyMaxThroughputIops *int64 /* ConsistencyGroupsLunsQosPolicyMaxThroughputMbps. Filter by consistency_groups.luns.qos.policy.max_throughput_mbps */ ConsistencyGroupsLunsQosPolicyMaxThroughputMbps *int64 /* ConsistencyGroupsLunsQosPolicyMinThroughputIops. Filter by consistency_groups.luns.qos.policy.min_throughput_iops */ ConsistencyGroupsLunsQosPolicyMinThroughputIops *int64 /* ConsistencyGroupsLunsQosPolicyMinThroughputMbps. Filter by consistency_groups.luns.qos.policy.min_throughput_mbps */ ConsistencyGroupsLunsQosPolicyMinThroughputMbps *int64 /* ConsistencyGroupsLunsQosPolicyName. Filter by consistency_groups.luns.qos.policy.name */ ConsistencyGroupsLunsQosPolicyName *string /* ConsistencyGroupsLunsQosPolicyUUID. Filter by consistency_groups.luns.qos.policy.uuid */ ConsistencyGroupsLunsQosPolicyUUID *string /* ConsistencyGroupsLunsSerialNumber. Filter by consistency_groups.luns.serial_number */ ConsistencyGroupsLunsSerialNumber *string /* ConsistencyGroupsLunsSpaceGuaranteeRequested. Filter by consistency_groups.luns.space.guarantee.requested */ ConsistencyGroupsLunsSpaceGuaranteeRequested *bool /* ConsistencyGroupsLunsSpaceGuaranteeReserved. Filter by consistency_groups.luns.space.guarantee.reserved */ ConsistencyGroupsLunsSpaceGuaranteeReserved *bool /* ConsistencyGroupsLunsSpaceSize. Filter by consistency_groups.luns.space.size */ ConsistencyGroupsLunsSpaceSize *int64 /* ConsistencyGroupsLunsSpaceUsed. Filter by consistency_groups.luns.space.used */ ConsistencyGroupsLunsSpaceUsed *int64 /* ConsistencyGroupsLunsUUID. Filter by consistency_groups.luns.uuid */ ConsistencyGroupsLunsUUID *string /* ConsistencyGroupsName. Filter by consistency_groups.name */ ConsistencyGroupsName *string /* ConsistencyGroupsNamespacesAutoDelete. Filter by consistency_groups.namespaces.auto_delete */ ConsistencyGroupsNamespacesAutoDelete *bool /* ConsistencyGroupsNamespacesComment. Filter by consistency_groups.namespaces.comment */ ConsistencyGroupsNamespacesComment *string /* ConsistencyGroupsNamespacesCreateTime. Filter by consistency_groups.namespaces.create_time */ ConsistencyGroupsNamespacesCreateTime *string /* ConsistencyGroupsNamespacesEnabled. Filter by consistency_groups.namespaces.enabled */ ConsistencyGroupsNamespacesEnabled *bool /* ConsistencyGroupsNamespacesName. Filter by consistency_groups.namespaces.name */ ConsistencyGroupsNamespacesName *string /* ConsistencyGroupsNamespacesOsType. Filter by consistency_groups.namespaces.os_type */ ConsistencyGroupsNamespacesOsType *string /* ConsistencyGroupsNamespacesSpaceBlockSize. Filter by consistency_groups.namespaces.space.block_size */ ConsistencyGroupsNamespacesSpaceBlockSize *int64 /* ConsistencyGroupsNamespacesSpaceGuaranteeRequested. Filter by consistency_groups.namespaces.space.guarantee.requested */ ConsistencyGroupsNamespacesSpaceGuaranteeRequested *bool /* ConsistencyGroupsNamespacesSpaceGuaranteeReserved. Filter by consistency_groups.namespaces.space.guarantee.reserved */ ConsistencyGroupsNamespacesSpaceGuaranteeReserved *bool /* ConsistencyGroupsNamespacesSpaceSize. Filter by consistency_groups.namespaces.space.size */ ConsistencyGroupsNamespacesSpaceSize *int64 /* ConsistencyGroupsNamespacesSpaceUsed. Filter by consistency_groups.namespaces.space.used */ ConsistencyGroupsNamespacesSpaceUsed *int64 /* ConsistencyGroupsNamespacesStatusContainerState. Filter by consistency_groups.namespaces.status.container_state */ ConsistencyGroupsNamespacesStatusContainerState *string /* ConsistencyGroupsNamespacesStatusMapped. Filter by consistency_groups.namespaces.status.mapped */ ConsistencyGroupsNamespacesStatusMapped *bool /* ConsistencyGroupsNamespacesStatusReadOnly. Filter by consistency_groups.namespaces.status.read_only */ ConsistencyGroupsNamespacesStatusReadOnly *bool /* ConsistencyGroupsNamespacesStatusState. Filter by consistency_groups.namespaces.status.state */ ConsistencyGroupsNamespacesStatusState *string /* ConsistencyGroupsNamespacesSubsystemMapAnagrpid. Filter by consistency_groups.namespaces.subsystem_map.anagrpid */ ConsistencyGroupsNamespacesSubsystemMapAnagrpid *string /* ConsistencyGroupsNamespacesSubsystemMapNsid. Filter by consistency_groups.namespaces.subsystem_map.nsid */ ConsistencyGroupsNamespacesSubsystemMapNsid *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemComment. Filter by consistency_groups.namespaces.subsystem_map.subsystem.comment */ ConsistencyGroupsNamespacesSubsystemMapSubsystemComment *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemHostsNqn. Filter by consistency_groups.namespaces.subsystem_map.subsystem.hosts.nqn */ ConsistencyGroupsNamespacesSubsystemMapSubsystemHostsNqn *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemName. Filter by consistency_groups.namespaces.subsystem_map.subsystem.name */ ConsistencyGroupsNamespacesSubsystemMapSubsystemName *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemOsType. Filter by consistency_groups.namespaces.subsystem_map.subsystem.os_type */ ConsistencyGroupsNamespacesSubsystemMapSubsystemOsType *string /* ConsistencyGroupsNamespacesSubsystemMapSubsystemUUID. Filter by consistency_groups.namespaces.subsystem_map.subsystem.uuid */ ConsistencyGroupsNamespacesSubsystemMapSubsystemUUID *string /* ConsistencyGroupsNamespacesUUID. Filter by consistency_groups.namespaces.uuid */ ConsistencyGroupsNamespacesUUID *string /* ConsistencyGroupsParentConsistencyGroupName. Filter by consistency_groups.parent_consistency_group.name */ ConsistencyGroupsParentConsistencyGroupName *string /* ConsistencyGroupsParentConsistencyGroupUUID. Filter by consistency_groups.parent_consistency_group.uuid */ ConsistencyGroupsParentConsistencyGroupUUID *string /* ConsistencyGroupsQosPolicyMaxThroughputIops. Filter by consistency_groups.qos.policy.max_throughput_iops */ ConsistencyGroupsQosPolicyMaxThroughputIops *int64 /* ConsistencyGroupsQosPolicyMaxThroughputMbps. Filter by consistency_groups.qos.policy.max_throughput_mbps */ ConsistencyGroupsQosPolicyMaxThroughputMbps *int64 /* ConsistencyGroupsQosPolicyMinThroughputIops. Filter by consistency_groups.qos.policy.min_throughput_iops */ ConsistencyGroupsQosPolicyMinThroughputIops *int64 /* ConsistencyGroupsQosPolicyMinThroughputMbps. Filter by consistency_groups.qos.policy.min_throughput_mbps */ ConsistencyGroupsQosPolicyMinThroughputMbps *int64 /* ConsistencyGroupsQosPolicyName. Filter by consistency_groups.qos.policy.name */ ConsistencyGroupsQosPolicyName *string /* ConsistencyGroupsQosPolicyUUID. Filter by consistency_groups.qos.policy.uuid */ ConsistencyGroupsQosPolicyUUID *string /* ConsistencyGroupsSnapshotPolicyName. Filter by consistency_groups.snapshot_policy.name */ ConsistencyGroupsSnapshotPolicyName *string /* ConsistencyGroupsSnapshotPolicyUUID. Filter by consistency_groups.snapshot_policy.uuid */ ConsistencyGroupsSnapshotPolicyUUID *string /* ConsistencyGroupsSpaceAvailable. Filter by consistency_groups.space.available */ ConsistencyGroupsSpaceAvailable *int64 /* ConsistencyGroupsSpaceSize. Filter by consistency_groups.space.size */ ConsistencyGroupsSpaceSize *int64 /* ConsistencyGroupsSpaceUsed. Filter by consistency_groups.space.used */ ConsistencyGroupsSpaceUsed *int64 /* ConsistencyGroupsSvmName. Filter by consistency_groups.svm.name */ ConsistencyGroupsSvmName *string /* ConsistencyGroupsSvmUUID. Filter by consistency_groups.svm.uuid */ ConsistencyGroupsSvmUUID *string /* ConsistencyGroupsTieringPolicy. Filter by consistency_groups.tiering.policy */ ConsistencyGroupsTieringPolicy *string /* ConsistencyGroupsUUID. Filter by consistency_groups.uuid */ ConsistencyGroupsUUID *string /* ConsistencyGroupsVolumesComment. Filter by consistency_groups.volumes.comment */ ConsistencyGroupsVolumesComment *string /* ConsistencyGroupsVolumesLanguage. Filter by consistency_groups.volumes.language */ ConsistencyGroupsVolumesLanguage *string /* ConsistencyGroupsVolumesName. Filter by consistency_groups.volumes.name */ ConsistencyGroupsVolumesName *string /* ConsistencyGroupsVolumesNasCifsSharesAccessBasedEnumeration. Filter by consistency_groups.volumes.nas.cifs.shares.access_based_enumeration */ ConsistencyGroupsVolumesNasCifsSharesAccessBasedEnumeration *bool /* ConsistencyGroupsVolumesNasCifsSharesAclsPermission. Filter by consistency_groups.volumes.nas.cifs.shares.acls.permission */ ConsistencyGroupsVolumesNasCifsSharesAclsPermission *string /* ConsistencyGroupsVolumesNasCifsSharesAclsType. Filter by consistency_groups.volumes.nas.cifs.shares.acls.type */ ConsistencyGroupsVolumesNasCifsSharesAclsType *string /* ConsistencyGroupsVolumesNasCifsSharesAclsUserOrGroup. Filter by consistency_groups.volumes.nas.cifs.shares.acls.user_or_group */ ConsistencyGroupsVolumesNasCifsSharesAclsUserOrGroup *string /* ConsistencyGroupsVolumesNasCifsSharesAllowUnencryptedAccess. Filter by consistency_groups.volumes.nas.cifs.shares.allow_unencrypted_access */ ConsistencyGroupsVolumesNasCifsSharesAllowUnencryptedAccess *bool /* ConsistencyGroupsVolumesNasCifsSharesChangeNotify. Filter by consistency_groups.volumes.nas.cifs.shares.change_notify */ ConsistencyGroupsVolumesNasCifsSharesChangeNotify *bool /* ConsistencyGroupsVolumesNasCifsSharesComment. Filter by consistency_groups.volumes.nas.cifs.shares.comment */ ConsistencyGroupsVolumesNasCifsSharesComment *string /* ConsistencyGroupsVolumesNasCifsSharesContinuouslyAvailable. Filter by consistency_groups.volumes.nas.cifs.shares.continuously_available */ ConsistencyGroupsVolumesNasCifsSharesContinuouslyAvailable *bool /* ConsistencyGroupsVolumesNasCifsSharesDirUmask. Filter by consistency_groups.volumes.nas.cifs.shares.dir_umask */ ConsistencyGroupsVolumesNasCifsSharesDirUmask *int64 /* ConsistencyGroupsVolumesNasCifsSharesEncryption. Filter by consistency_groups.volumes.nas.cifs.shares.encryption */ ConsistencyGroupsVolumesNasCifsSharesEncryption *bool /* ConsistencyGroupsVolumesNasCifsSharesFileUmask. Filter by consistency_groups.volumes.nas.cifs.shares.file_umask */ ConsistencyGroupsVolumesNasCifsSharesFileUmask *int64 /* ConsistencyGroupsVolumesNasCifsSharesHomeDirectory. Filter by consistency_groups.volumes.nas.cifs.shares.home_directory */ ConsistencyGroupsVolumesNasCifsSharesHomeDirectory *bool /* ConsistencyGroupsVolumesNasCifsSharesName. Filter by consistency_groups.volumes.nas.cifs.shares.name */ ConsistencyGroupsVolumesNasCifsSharesName *string /* ConsistencyGroupsVolumesNasCifsSharesNamespaceCaching. Filter by consistency_groups.volumes.nas.cifs.shares.namespace_caching */ ConsistencyGroupsVolumesNasCifsSharesNamespaceCaching *bool /* ConsistencyGroupsVolumesNasCifsSharesNoStrictSecurity. Filter by consistency_groups.volumes.nas.cifs.shares.no_strict_security */ ConsistencyGroupsVolumesNasCifsSharesNoStrictSecurity *bool /* ConsistencyGroupsVolumesNasCifsSharesOfflineFiles. Filter by consistency_groups.volumes.nas.cifs.shares.offline_files */ ConsistencyGroupsVolumesNasCifsSharesOfflineFiles *string /* ConsistencyGroupsVolumesNasCifsSharesOplocks. Filter by consistency_groups.volumes.nas.cifs.shares.oplocks */ ConsistencyGroupsVolumesNasCifsSharesOplocks *bool /* ConsistencyGroupsVolumesNasCifsSharesShowSnapshot. Filter by consistency_groups.volumes.nas.cifs.shares.show_snapshot */ ConsistencyGroupsVolumesNasCifsSharesShowSnapshot *bool /* ConsistencyGroupsVolumesNasCifsSharesUnixSymlink. Filter by consistency_groups.volumes.nas.cifs.shares.unix_symlink */ ConsistencyGroupsVolumesNasCifsSharesUnixSymlink *string /* ConsistencyGroupsVolumesNasCifsSharesVscanProfile. Filter by consistency_groups.volumes.nas.cifs.shares.vscan_profile */ ConsistencyGroupsVolumesNasCifsSharesVscanProfile *string /* ConsistencyGroupsVolumesNasExportPolicyName. Filter by consistency_groups.volumes.nas.export_policy.name */ ConsistencyGroupsVolumesNasExportPolicyName *string /* ConsistencyGroupsVolumesNasExportPolicyRulesAllowDeviceCreation. Filter by consistency_groups.volumes.nas.export_policy.rules.allow_device_creation */ ConsistencyGroupsVolumesNasExportPolicyRulesAllowDeviceCreation *bool /* ConsistencyGroupsVolumesNasExportPolicyRulesAllowSuid. Filter by consistency_groups.volumes.nas.export_policy.rules.allow_suid */ ConsistencyGroupsVolumesNasExportPolicyRulesAllowSuid *bool /* ConsistencyGroupsVolumesNasExportPolicyRulesAnonymousUser. Filter by consistency_groups.volumes.nas.export_policy.rules.anonymous_user */ ConsistencyGroupsVolumesNasExportPolicyRulesAnonymousUser *string /* ConsistencyGroupsVolumesNasExportPolicyRulesChownMode. Filter by consistency_groups.volumes.nas.export_policy.rules.chown_mode */ ConsistencyGroupsVolumesNasExportPolicyRulesChownMode *string /* ConsistencyGroupsVolumesNasExportPolicyRulesClientsMatch. Filter by consistency_groups.volumes.nas.export_policy.rules.clients.match */ ConsistencyGroupsVolumesNasExportPolicyRulesClientsMatch *string /* ConsistencyGroupsVolumesNasExportPolicyRulesIndex. Filter by consistency_groups.volumes.nas.export_policy.rules.index */ ConsistencyGroupsVolumesNasExportPolicyRulesIndex *int64 /* ConsistencyGroupsVolumesNasExportPolicyRulesNtfsUnixSecurity. Filter by consistency_groups.volumes.nas.export_policy.rules.ntfs_unix_security */ ConsistencyGroupsVolumesNasExportPolicyRulesNtfsUnixSecurity *string /* ConsistencyGroupsVolumesNasExportPolicyRulesProtocols. Filter by consistency_groups.volumes.nas.export_policy.rules.protocols */ ConsistencyGroupsVolumesNasExportPolicyRulesProtocols *string /* ConsistencyGroupsVolumesNasExportPolicyRulesRoRule. Filter by consistency_groups.volumes.nas.export_policy.rules.ro_rule */ ConsistencyGroupsVolumesNasExportPolicyRulesRoRule *string /* ConsistencyGroupsVolumesNasExportPolicyRulesRwRule. Filter by consistency_groups.volumes.nas.export_policy.rules.rw_rule */ ConsistencyGroupsVolumesNasExportPolicyRulesRwRule *string /* ConsistencyGroupsVolumesNasExportPolicyRulesSuperuser. Filter by consistency_groups.volumes.nas.export_policy.rules.superuser */ ConsistencyGroupsVolumesNasExportPolicyRulesSuperuser *string /* ConsistencyGroupsVolumesNasExportPolicyUUID. Filter by consistency_groups.volumes.nas.export_policy.uuid */ ConsistencyGroupsVolumesNasExportPolicyUUID *string /* ConsistencyGroupsVolumesNasGid. Filter by consistency_groups.volumes.nas.gid */ ConsistencyGroupsVolumesNasGid *int64 /* ConsistencyGroupsVolumesNasJunctionParentName. Filter by consistency_groups.volumes.nas.junction_parent.name */ ConsistencyGroupsVolumesNasJunctionParentName *string /* ConsistencyGroupsVolumesNasJunctionParentUUID. Filter by consistency_groups.volumes.nas.junction_parent.uuid */ ConsistencyGroupsVolumesNasJunctionParentUUID *string /* ConsistencyGroupsVolumesNasPath. Filter by consistency_groups.volumes.nas.path */ ConsistencyGroupsVolumesNasPath *string /* ConsistencyGroupsVolumesNasSecurityStyle. Filter by consistency_groups.volumes.nas.security_style */ ConsistencyGroupsVolumesNasSecurityStyle *string /* ConsistencyGroupsVolumesNasUID. Filter by consistency_groups.volumes.nas.uid */ ConsistencyGroupsVolumesNasUID *int64 /* ConsistencyGroupsVolumesNasUnixPermissions. Filter by consistency_groups.volumes.nas.unix_permissions */ ConsistencyGroupsVolumesNasUnixPermissions *int64 /* ConsistencyGroupsVolumesQosPolicyMaxThroughputIops. Filter by consistency_groups.volumes.qos.policy.max_throughput_iops */ ConsistencyGroupsVolumesQosPolicyMaxThroughputIops *int64 /* ConsistencyGroupsVolumesQosPolicyMaxThroughputMbps. Filter by consistency_groups.volumes.qos.policy.max_throughput_mbps */ ConsistencyGroupsVolumesQosPolicyMaxThroughputMbps *int64 /* ConsistencyGroupsVolumesQosPolicyMinThroughputIops. Filter by consistency_groups.volumes.qos.policy.min_throughput_iops */ ConsistencyGroupsVolumesQosPolicyMinThroughputIops *int64 /* ConsistencyGroupsVolumesQosPolicyMinThroughputMbps. Filter by consistency_groups.volumes.qos.policy.min_throughput_mbps */ ConsistencyGroupsVolumesQosPolicyMinThroughputMbps *int64 /* ConsistencyGroupsVolumesQosPolicyName. Filter by consistency_groups.volumes.qos.policy.name */ ConsistencyGroupsVolumesQosPolicyName *string /* ConsistencyGroupsVolumesQosPolicyUUID. Filter by consistency_groups.volumes.qos.policy.uuid */ ConsistencyGroupsVolumesQosPolicyUUID *string /* ConsistencyGroupsVolumesSnapshotPolicyName. Filter by consistency_groups.volumes.snapshot_policy.name */ ConsistencyGroupsVolumesSnapshotPolicyName *string /* ConsistencyGroupsVolumesSnapshotPolicyUUID. Filter by consistency_groups.volumes.snapshot_policy.uuid */ ConsistencyGroupsVolumesSnapshotPolicyUUID *string /* ConsistencyGroupsVolumesSpaceAvailable. Filter by consistency_groups.volumes.space.available */ ConsistencyGroupsVolumesSpaceAvailable *int64 /* ConsistencyGroupsVolumesSpaceSize. Filter by consistency_groups.volumes.space.size */ ConsistencyGroupsVolumesSpaceSize *int64 /* ConsistencyGroupsVolumesSpaceUsed. Filter by consistency_groups.volumes.space.used */ ConsistencyGroupsVolumesSpaceUsed *int64 /* ConsistencyGroupsVolumesTieringPolicy. Filter by consistency_groups.volumes.tiering.policy */ ConsistencyGroupsVolumesTieringPolicy *string /* ConsistencyGroupsVolumesUUID. Filter by consistency_groups.volumes.uuid */ ConsistencyGroupsVolumesUUID *string /* Fields. Specify the fields to return. */ Fields []string /* LunsComment. Filter by luns.comment */ LunsComment *string /* LunsCreateTime. Filter by luns.create_time */ LunsCreateTime *string /* LunsEnabled. Filter by luns.enabled */ LunsEnabled *bool /* LunsLunMapsIgroupComment. Filter by luns.lun_maps.igroup.comment */ LunsLunMapsIgroupComment *string /* LunsLunMapsIgroupIgroupsName. Filter by luns.lun_maps.igroup.igroups.name */ LunsLunMapsIgroupIgroupsName *string /* LunsLunMapsIgroupIgroupsUUID. Filter by luns.lun_maps.igroup.igroups.uuid */ LunsLunMapsIgroupIgroupsUUID *string /* LunsLunMapsIgroupInitiatorsComment. Filter by luns.lun_maps.igroup.initiators.comment */ LunsLunMapsIgroupInitiatorsComment *string /* LunsLunMapsIgroupInitiatorsName. Filter by luns.lun_maps.igroup.initiators.name */ LunsLunMapsIgroupInitiatorsName *string /* LunsLunMapsIgroupName. Filter by luns.lun_maps.igroup.name */ LunsLunMapsIgroupName *string /* LunsLunMapsIgroupOsType. Filter by luns.lun_maps.igroup.os_type */ LunsLunMapsIgroupOsType *string /* LunsLunMapsIgroupProtocol. Filter by luns.lun_maps.igroup.protocol */ LunsLunMapsIgroupProtocol *string /* LunsLunMapsIgroupUUID. Filter by luns.lun_maps.igroup.uuid */ LunsLunMapsIgroupUUID *string /* LunsLunMapsLogicalUnitNumber. Filter by luns.lun_maps.logical_unit_number */ LunsLunMapsLogicalUnitNumber *int64 /* LunsName. Filter by luns.name */ LunsName *string /* LunsOsType. Filter by luns.os_type */ LunsOsType *string /* LunsQosPolicyMaxThroughputIops. Filter by luns.qos.policy.max_throughput_iops */ LunsQosPolicyMaxThroughputIops *int64 /* LunsQosPolicyMaxThroughputMbps. Filter by luns.qos.policy.max_throughput_mbps */ LunsQosPolicyMaxThroughputMbps *int64 /* LunsQosPolicyMinThroughputIops. Filter by luns.qos.policy.min_throughput_iops */ LunsQosPolicyMinThroughputIops *int64 /* LunsQosPolicyMinThroughputMbps. Filter by luns.qos.policy.min_throughput_mbps */ LunsQosPolicyMinThroughputMbps *int64 /* LunsQosPolicyName. Filter by luns.qos.policy.name */ LunsQosPolicyName *string /* LunsQosPolicyUUID. Filter by luns.qos.policy.uuid */ LunsQosPolicyUUID *string /* LunsSerialNumber. Filter by luns.serial_number */ LunsSerialNumber *string /* LunsSpaceGuaranteeRequested. Filter by luns.space.guarantee.requested */ LunsSpaceGuaranteeRequested *bool /* LunsSpaceGuaranteeReserved. Filter by luns.space.guarantee.reserved */ LunsSpaceGuaranteeReserved *bool /* LunsSpaceSize. Filter by luns.space.size */ LunsSpaceSize *int64 /* LunsSpaceUsed. Filter by luns.space.used */ LunsSpaceUsed *int64 /* LunsUUID. Filter by luns.uuid */ LunsUUID *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Name. Filter by name */ Name *string /* NamespacesAutoDelete. Filter by namespaces.auto_delete */ NamespacesAutoDelete *bool /* NamespacesComment. Filter by namespaces.comment */ NamespacesComment *string /* NamespacesCreateTime. Filter by namespaces.create_time */ NamespacesCreateTime *string /* NamespacesEnabled. Filter by namespaces.enabled */ NamespacesEnabled *bool /* NamespacesName. Filter by namespaces.name */ NamespacesName *string /* NamespacesOsType. Filter by namespaces.os_type */ NamespacesOsType *string /* NamespacesSpaceBlockSize. Filter by namespaces.space.block_size */ NamespacesSpaceBlockSize *int64 /* NamespacesSpaceGuaranteeRequested. Filter by namespaces.space.guarantee.requested */ NamespacesSpaceGuaranteeRequested *bool /* NamespacesSpaceGuaranteeReserved. Filter by namespaces.space.guarantee.reserved */ NamespacesSpaceGuaranteeReserved *bool /* NamespacesSpaceSize. Filter by namespaces.space.size */ NamespacesSpaceSize *int64 /* NamespacesSpaceUsed. Filter by namespaces.space.used */ NamespacesSpaceUsed *int64 /* NamespacesStatusContainerState. Filter by namespaces.status.container_state */ NamespacesStatusContainerState *string /* NamespacesStatusMapped. Filter by namespaces.status.mapped */ NamespacesStatusMapped *bool /* NamespacesStatusReadOnly. Filter by namespaces.status.read_only */ NamespacesStatusReadOnly *bool /* NamespacesStatusState. Filter by namespaces.status.state */ NamespacesStatusState *string /* NamespacesSubsystemMapAnagrpid. Filter by namespaces.subsystem_map.anagrpid */ NamespacesSubsystemMapAnagrpid *string /* NamespacesSubsystemMapNsid. Filter by namespaces.subsystem_map.nsid */ NamespacesSubsystemMapNsid *string /* NamespacesSubsystemMapSubsystemComment. Filter by namespaces.subsystem_map.subsystem.comment */ NamespacesSubsystemMapSubsystemComment *string /* NamespacesSubsystemMapSubsystemHostsNqn. Filter by namespaces.subsystem_map.subsystem.hosts.nqn */ NamespacesSubsystemMapSubsystemHostsNqn *string /* NamespacesSubsystemMapSubsystemName. Filter by namespaces.subsystem_map.subsystem.name */ NamespacesSubsystemMapSubsystemName *string /* NamespacesSubsystemMapSubsystemOsType. Filter by namespaces.subsystem_map.subsystem.os_type */ NamespacesSubsystemMapSubsystemOsType *string /* NamespacesSubsystemMapSubsystemUUID. Filter by namespaces.subsystem_map.subsystem.uuid */ NamespacesSubsystemMapSubsystemUUID *string /* NamespacesUUID. Filter by namespaces.uuid */ NamespacesUUID *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ParentConsistencyGroupName. Filter by parent_consistency_group.name */ ParentConsistencyGroupName *string /* ParentConsistencyGroupUUID. Filter by parent_consistency_group.uuid */ ParentConsistencyGroupUUID *string /* QosPolicyMaxThroughputIops. Filter by qos.policy.max_throughput_iops */ QosPolicyMaxThroughputIops *int64 /* QosPolicyMaxThroughputMbps. Filter by qos.policy.max_throughput_mbps */ QosPolicyMaxThroughputMbps *int64 /* QosPolicyMinThroughputIops. Filter by qos.policy.min_throughput_iops */ QosPolicyMinThroughputIops *int64 /* QosPolicyMinThroughputMbps. Filter by qos.policy.min_throughput_mbps */ QosPolicyMinThroughputMbps *int64 /* QosPolicyName. Filter by qos.policy.name */ QosPolicyName *string /* QosPolicyUUID. Filter by qos.policy.uuid */ QosPolicyUUID *string /* Replicated. Filter by replicated */ Replicated *bool /* ReplicationSource. Filter by replication_source */ ReplicationSource *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 /* SnapshotPolicyName. Filter by snapshot_policy.name */ SnapshotPolicyName *string /* SnapshotPolicyUUID. Filter by snapshot_policy.uuid */ SnapshotPolicyUUID *string /* SpaceAvailable. Filter by space.available */ SpaceAvailable *int64 /* SpaceSize. Filter by space.size */ SpaceSize *int64 /* SpaceUsed. Filter by space.used */ SpaceUsed *int64 /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* TieringPolicy. Filter by tiering.policy */ TieringPolicy *string /* UUID. Filter by uuid */ UUID *string /* VolumesComment. Filter by volumes.comment */ VolumesComment *string /* VolumesLanguage. Filter by volumes.language */ VolumesLanguage *string /* VolumesName. Filter by volumes.name */ VolumesName *string /* VolumesNasCifsSharesAccessBasedEnumeration. Filter by volumes.nas.cifs.shares.access_based_enumeration */ VolumesNasCifsSharesAccessBasedEnumeration *bool /* VolumesNasCifsSharesAclsPermission. Filter by volumes.nas.cifs.shares.acls.permission */ VolumesNasCifsSharesAclsPermission *string /* VolumesNasCifsSharesAclsType. Filter by volumes.nas.cifs.shares.acls.type */ VolumesNasCifsSharesAclsType *string /* VolumesNasCifsSharesAclsUserOrGroup.
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/application/application_template_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_template_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationTemplateCollectionGetReader is a Reader for the ApplicationTemplateCollectionGet structure. type ApplicationTemplateCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationTemplateCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewApplicationTemplateCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationTemplateCollectionGetDefault(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 } } // NewApplicationTemplateCollectionGetOK creates a ApplicationTemplateCollectionGetOK with default headers values func NewApplicationTemplateCollectionGetOK() *ApplicationTemplateCollectionGetOK { return &ApplicationTemplateCollectionGetOK{} } /* ApplicationTemplateCollectionGetOK describes a response with status code 200, with default header values. OK */ type ApplicationTemplateCollectionGetOK struct { Payload *models.ApplicationTemplateResponse } // IsSuccess returns true when this application template collection get o k response has a 2xx status code func (o *ApplicationTemplateCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this application template collection get o k response has a 3xx status code func (o *ApplicationTemplateCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this application template collection get o k response has a 4xx status code func (o *ApplicationTemplateCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this application template collection get o k response has a 5xx status code func (o *ApplicationTemplateCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this application template collection get o k response a status code equal to that given func (o *ApplicationTemplateCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *ApplicationTemplateCollectionGetOK) Error() string { return fmt.Sprintf("[GET /application/templates][%d] applicationTemplateCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationTemplateCollectionGetOK) String() string { return fmt.Sprintf("[GET /application/templates][%d] applicationTemplateCollectionGetOK %+v", 200, o.Payload) } func (o *ApplicationTemplateCollectionGetOK) GetPayload() *models.ApplicationTemplateResponse { return o.Payload } func (o *ApplicationTemplateCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ApplicationTemplateResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewApplicationTemplateCollectionGetDefault creates a ApplicationTemplateCollectionGetDefault with default headers values func NewApplicationTemplateCollectionGetDefault(code int) *ApplicationTemplateCollectionGetDefault { return &ApplicationTemplateCollectionGetDefault{ _statusCode: code, } } /* ApplicationTemplateCollectionGetDefault describes a response with status code -1, with default header values. Error */ type ApplicationTemplateCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application template collection get default response func (o *ApplicationTemplateCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application template collection get default response has a 2xx status code func (o *ApplicationTemplateCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application template collection get default response has a 3xx status code func (o *ApplicationTemplateCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application template collection get default response has a 4xx status code func (o *ApplicationTemplateCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application template collection get default response has a 5xx status code func (o *ApplicationTemplateCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application template collection get default response a status code equal to that given func (o *ApplicationTemplateCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationTemplateCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /application/templates][%d] application_template_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationTemplateCollectionGetDefault) String() string { return fmt.Sprintf("[GET /application/templates][%d] application_template_collection_get default %+v", o._statusCode, o.Payload) } func (o *ApplicationTemplateCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationTemplateCollectionGetDefault) 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/application/application_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/application/application_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package application // 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" ) // ApplicationDeleteReader is a Reader for the ApplicationDelete structure. type ApplicationDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ApplicationDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewApplicationDeleteAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewApplicationDeleteDefault(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 } } // NewApplicationDeleteAccepted creates a ApplicationDeleteAccepted with default headers values func NewApplicationDeleteAccepted() *ApplicationDeleteAccepted { return &ApplicationDeleteAccepted{} } /* ApplicationDeleteAccepted describes a response with status code 202, with default header values. Accepted */ type ApplicationDeleteAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this application delete accepted response has a 2xx status code func (o *ApplicationDeleteAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this application delete accepted response has a 3xx status code func (o *ApplicationDeleteAccepted) IsRedirect() bool { return false } // IsClientError returns true when this application delete accepted response has a 4xx status code func (o *ApplicationDeleteAccepted) IsClientError() bool { return false } // IsServerError returns true when this application delete accepted response has a 5xx status code func (o *ApplicationDeleteAccepted) IsServerError() bool { return false } // IsCode returns true when this application delete accepted response a status code equal to that given func (o *ApplicationDeleteAccepted) IsCode(code int) bool { return code == 202 } func (o *ApplicationDeleteAccepted) Error() string { return fmt.Sprintf("[DELETE /application/applications/{uuid}][%d] applicationDeleteAccepted %+v", 202, o.Payload) } func (o *ApplicationDeleteAccepted) String() string { return fmt.Sprintf("[DELETE /application/applications/{uuid}][%d] applicationDeleteAccepted %+v", 202, o.Payload) } func (o *ApplicationDeleteAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *ApplicationDeleteAccepted) 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 } // NewApplicationDeleteDefault creates a ApplicationDeleteDefault with default headers values func NewApplicationDeleteDefault(code int) *ApplicationDeleteDefault { return &ApplicationDeleteDefault{ _statusCode: code, } } /* ApplicationDeleteDefault describes a response with status code -1, with default header values. Error */ type ApplicationDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the application delete default response func (o *ApplicationDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this application delete default response has a 2xx status code func (o *ApplicationDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this application delete default response has a 3xx status code func (o *ApplicationDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this application delete default response has a 4xx status code func (o *ApplicationDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this application delete default response has a 5xx status code func (o *ApplicationDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this application delete default response a status code equal to that given func (o *ApplicationDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ApplicationDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /application/applications/{uuid}][%d] application_delete default %+v", o._statusCode, o.Payload) } func (o *ApplicationDeleteDefault) String() string { return fmt.Sprintf("[DELETE /application/applications/{uuid}][%d] application_delete default %+v", o._statusCode, o.Payload) } func (o *ApplicationDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ApplicationDeleteDefault) 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/s_a_n/fcp_service_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/fcp_service_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // FcpServiceGetReader is a Reader for the FcpServiceGet structure. type FcpServiceGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcpServiceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcpServiceGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcpServiceGetDefault(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 } } // NewFcpServiceGetOK creates a FcpServiceGetOK with default headers values func NewFcpServiceGetOK() *FcpServiceGetOK { return &FcpServiceGetOK{} } /* FcpServiceGetOK describes a response with status code 200, with default header values. OK */ type FcpServiceGetOK struct { Payload *models.FcpService } // IsSuccess returns true when this fcp service get o k response has a 2xx status code func (o *FcpServiceGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fcp service get o k response has a 3xx status code func (o *FcpServiceGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fcp service get o k response has a 4xx status code func (o *FcpServiceGetOK) IsClientError() bool { return false } // IsServerError returns true when this fcp service get o k response has a 5xx status code func (o *FcpServiceGetOK) IsServerError() bool { return false } // IsCode returns true when this fcp service get o k response a status code equal to that given func (o *FcpServiceGetOK) IsCode(code int) bool { return code == 200 } func (o *FcpServiceGetOK) Error() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}][%d] fcpServiceGetOK %+v", 200, o.Payload) } func (o *FcpServiceGetOK) String() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}][%d] fcpServiceGetOK %+v", 200, o.Payload) } func (o *FcpServiceGetOK) GetPayload() *models.FcpService { return o.Payload } func (o *FcpServiceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FcpService) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcpServiceGetDefault creates a FcpServiceGetDefault with default headers values func NewFcpServiceGetDefault(code int) *FcpServiceGetDefault { return &FcpServiceGetDefault{ _statusCode: code, } } /* FcpServiceGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2621462 | An SVM with the specified UUID does not exist. | | 5374083 | There is no Fibre Channel Protocol service for the specified SVM. | */ type FcpServiceGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fcp service get default response func (o *FcpServiceGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fcp service get default response has a 2xx status code func (o *FcpServiceGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fcp service get default response has a 3xx status code func (o *FcpServiceGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fcp service get default response has a 4xx status code func (o *FcpServiceGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fcp service get default response has a 5xx status code func (o *FcpServiceGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fcp service get default response a status code equal to that given func (o *FcpServiceGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcpServiceGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}][%d] fcp_service_get default %+v", o._statusCode, o.Payload) } func (o *FcpServiceGetDefault) String() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}][%d] fcp_service_get default %+v", o._statusCode, o.Payload) } func (o *FcpServiceGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcpServiceGetDefault) 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/s_a_n/vvol_binding_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/vvol_binding_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewVvolBindingCreateParams creates a new VvolBindingCreateParams 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 NewVvolBindingCreateParams() *VvolBindingCreateParams { return &VvolBindingCreateParams{ timeout: cr.DefaultTimeout, } } // NewVvolBindingCreateParamsWithTimeout creates a new VvolBindingCreateParams object // with the ability to set a timeout on a request. func NewVvolBindingCreateParamsWithTimeout(timeout time.Duration) *VvolBindingCreateParams { return &VvolBindingCreateParams{ timeout: timeout, } } // NewVvolBindingCreateParamsWithContext creates a new VvolBindingCreateParams object // with the ability to set a context for a request. func NewVvolBindingCreateParamsWithContext(ctx context.Context) *VvolBindingCreateParams { return &VvolBindingCreateParams{ Context: ctx, } } // NewVvolBindingCreateParamsWithHTTPClient creates a new VvolBindingCreateParams object // with the ability to set a custom HTTPClient for a request. func NewVvolBindingCreateParamsWithHTTPClient(client *http.Client) *VvolBindingCreateParams { return &VvolBindingCreateParams{ HTTPClient: client, } } /* VvolBindingCreateParams contains all the parameters to send to the API endpoint for the vvol binding create operation. Typically these are written to a http.Request. */ type VvolBindingCreateParams struct { /* Info. The property values for the new vVol binding. */ Info *models.VvolBinding /* 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 vvol binding create params (not the query body). // // All values with no default are reset to their zero value. func (o *VvolBindingCreateParams) WithDefaults() *VvolBindingCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the vvol binding create params (not the query body). // // All values with no default are reset to their zero value. func (o *VvolBindingCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := VvolBindingCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the vvol binding create params func (o *VvolBindingCreateParams) WithTimeout(timeout time.Duration) *VvolBindingCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the vvol binding create params func (o *VvolBindingCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the vvol binding create params func (o *VvolBindingCreateParams) WithContext(ctx context.Context) *VvolBindingCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the vvol binding create params func (o *VvolBindingCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the vvol binding create params func (o *VvolBindingCreateParams) WithHTTPClient(client *http.Client) *VvolBindingCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the vvol binding create params func (o *VvolBindingCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the vvol binding create params func (o *VvolBindingCreateParams) WithInfo(info *models.VvolBinding) *VvolBindingCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the vvol binding create params func (o *VvolBindingCreateParams) SetInfo(info *models.VvolBinding) { o.Info = info } // WithReturnRecords adds the returnRecords to the vvol binding create params func (o *VvolBindingCreateParams) WithReturnRecords(returnRecords *bool) *VvolBindingCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the vvol binding create params func (o *VvolBindingCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *VvolBindingCreateParams) 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/s_a_n/lun_map_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/lun_map_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // LunMapDeleteReader is a Reader for the LunMapDelete structure. type LunMapDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LunMapDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLunMapDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLunMapDeleteDefault(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 } } // NewLunMapDeleteOK creates a LunMapDeleteOK with default headers values func NewLunMapDeleteOK() *LunMapDeleteOK { return &LunMapDeleteOK{} } /* LunMapDeleteOK describes a response with status code 200, with default header values. OK */ type LunMapDeleteOK struct { } // IsSuccess returns true when this lun map delete o k response has a 2xx status code func (o *LunMapDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this lun map delete o k response has a 3xx status code func (o *LunMapDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this lun map delete o k response has a 4xx status code func (o *LunMapDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this lun map delete o k response has a 5xx status code func (o *LunMapDeleteOK) IsServerError() bool { return false } // IsCode returns true when this lun map delete o k response a status code equal to that given func (o *LunMapDeleteOK) IsCode(code int) bool { return code == 200 } func (o *LunMapDeleteOK) Error() string { return fmt.Sprintf("[DELETE /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}][%d] lunMapDeleteOK ", 200) } func (o *LunMapDeleteOK) String() string { return fmt.Sprintf("[DELETE /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}][%d] lunMapDeleteOK ", 200) } func (o *LunMapDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewLunMapDeleteDefault creates a LunMapDeleteDefault with default headers values func NewLunMapDeleteDefault(code int) *LunMapDeleteDefault { return &LunMapDeleteDefault{ _statusCode: code, } } /* LunMapDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 5374875 | The specified LUN does not exist or is not accessible to the caller. | | 5374878 | The specified initiator group does not exist, is not accessible to the caller, or is not in the same SVM as the specified LUN. | | 5374922 | The specified LUN map does not exist. | */ type LunMapDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the lun map delete default response func (o *LunMapDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this lun map delete default response has a 2xx status code func (o *LunMapDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this lun map delete default response has a 3xx status code func (o *LunMapDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this lun map delete default response has a 4xx status code func (o *LunMapDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this lun map delete default response has a 5xx status code func (o *LunMapDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this lun map delete default response a status code equal to that given func (o *LunMapDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LunMapDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}][%d] lun_map_delete default %+v", o._statusCode, o.Payload) } func (o *LunMapDeleteDefault) String() string { return fmt.Sprintf("[DELETE /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}][%d] lun_map_delete default %+v", o._statusCode, o.Payload) } func (o *LunMapDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LunMapDeleteDefault) 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/s_a_n/lun_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/lun_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewLunDeleteParams creates a new LunDeleteParams 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 NewLunDeleteParams() *LunDeleteParams { return &LunDeleteParams{ timeout: cr.DefaultTimeout, } } // NewLunDeleteParamsWithTimeout creates a new LunDeleteParams object // with the ability to set a timeout on a request. func NewLunDeleteParamsWithTimeout(timeout time.Duration) *LunDeleteParams { return &LunDeleteParams{ timeout: timeout, } } // NewLunDeleteParamsWithContext creates a new LunDeleteParams object // with the ability to set a context for a request. func NewLunDeleteParamsWithContext(ctx context.Context) *LunDeleteParams { return &LunDeleteParams{ Context: ctx, } } // NewLunDeleteParamsWithHTTPClient creates a new LunDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewLunDeleteParamsWithHTTPClient(client *http.Client) *LunDeleteParams { return &LunDeleteParams{ HTTPClient: client, } } /* LunDeleteParams contains all the parameters to send to the API endpoint for the lun delete operation. Typically these are written to a http.Request. */ type LunDeleteParams struct { /* AllowDeleteWhileMapped. Allows deletion of a mapped LUN.</br> A mapped LUN might be in use. Deleting a mapped LUN also deletes the LUN map and makes the data no longer available. This might cause a disruption in the availability of data.</br> **This parameter should be used with caution.** */ AllowDeleteWhileMapped *bool /* UUID. The unique identifier of the LUN to retrieve. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the lun delete params (not the query body). // // All values with no default are reset to their zero value. func (o *LunDeleteParams) WithDefaults() *LunDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the lun delete params (not the query body). // // All values with no default are reset to their zero value. func (o *LunDeleteParams) SetDefaults() { var ( allowDeleteWhileMappedDefault = bool(false) ) val := LunDeleteParams{ AllowDeleteWhileMapped: &allowDeleteWhileMappedDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the lun delete params func (o *LunDeleteParams) WithTimeout(timeout time.Duration) *LunDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the lun delete params func (o *LunDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the lun delete params func (o *LunDeleteParams) WithContext(ctx context.Context) *LunDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the lun delete params func (o *LunDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the lun delete params func (o *LunDeleteParams) WithHTTPClient(client *http.Client) *LunDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the lun delete params func (o *LunDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAllowDeleteWhileMapped adds the allowDeleteWhileMapped to the lun delete params func (o *LunDeleteParams) WithAllowDeleteWhileMapped(allowDeleteWhileMapped *bool) *LunDeleteParams { o.SetAllowDeleteWhileMapped(allowDeleteWhileMapped) return o } // SetAllowDeleteWhileMapped adds the allowDeleteWhileMapped to the lun delete params func (o *LunDeleteParams) SetAllowDeleteWhileMapped(allowDeleteWhileMapped *bool) { o.AllowDeleteWhileMapped = allowDeleteWhileMapped } // WithUUID adds the uuid to the lun delete params func (o *LunDeleteParams) WithUUID(uuid string) *LunDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the lun delete params func (o *LunDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *LunDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AllowDeleteWhileMapped != nil { // query param allow_delete_while_mapped var qrAllowDeleteWhileMapped bool if o.AllowDeleteWhileMapped != nil { qrAllowDeleteWhileMapped = *o.AllowDeleteWhileMapped } qAllowDeleteWhileMapped := swag.FormatBool(qrAllowDeleteWhileMapped) if qAllowDeleteWhileMapped != "" { if err := r.SetQueryParam("allow_delete_while_mapped", qAllowDeleteWhileMapped); 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/s_a_n/fcp_collection_performance_metrics_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/fcp_collection_performance_metrics_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // FcpCollectionPerformanceMetricsGetReader is a Reader for the FcpCollectionPerformanceMetricsGet structure. type FcpCollectionPerformanceMetricsGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcpCollectionPerformanceMetricsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcpCollectionPerformanceMetricsGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcpCollectionPerformanceMetricsGetDefault(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 } } // NewFcpCollectionPerformanceMetricsGetOK creates a FcpCollectionPerformanceMetricsGetOK with default headers values func NewFcpCollectionPerformanceMetricsGetOK() *FcpCollectionPerformanceMetricsGetOK { return &FcpCollectionPerformanceMetricsGetOK{} } /* FcpCollectionPerformanceMetricsGetOK describes a response with status code 200, with default header values. OK */ type FcpCollectionPerformanceMetricsGetOK struct { Payload *models.PerformanceFcpMetricResponse } // IsSuccess returns true when this fcp collection performance metrics get o k response has a 2xx status code func (o *FcpCollectionPerformanceMetricsGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fcp collection performance metrics get o k response has a 3xx status code func (o *FcpCollectionPerformanceMetricsGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fcp collection performance metrics get o k response has a 4xx status code func (o *FcpCollectionPerformanceMetricsGetOK) IsClientError() bool { return false } // IsServerError returns true when this fcp collection performance metrics get o k response has a 5xx status code func (o *FcpCollectionPerformanceMetricsGetOK) IsServerError() bool { return false } // IsCode returns true when this fcp collection performance metrics get o k response a status code equal to that given func (o *FcpCollectionPerformanceMetricsGetOK) IsCode(code int) bool { return code == 200 } func (o *FcpCollectionPerformanceMetricsGetOK) Error() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}/metrics][%d] fcpCollectionPerformanceMetricsGetOK %+v", 200, o.Payload) } func (o *FcpCollectionPerformanceMetricsGetOK) String() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}/metrics][%d] fcpCollectionPerformanceMetricsGetOK %+v", 200, o.Payload) } func (o *FcpCollectionPerformanceMetricsGetOK) GetPayload() *models.PerformanceFcpMetricResponse { return o.Payload } func (o *FcpCollectionPerformanceMetricsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.PerformanceFcpMetricResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcpCollectionPerformanceMetricsGetDefault creates a FcpCollectionPerformanceMetricsGetDefault with default headers values func NewFcpCollectionPerformanceMetricsGetDefault(code int) *FcpCollectionPerformanceMetricsGetDefault { return &FcpCollectionPerformanceMetricsGetDefault{ _statusCode: code, } } /* FcpCollectionPerformanceMetricsGetDefault describes a response with status code -1, with default header values. Error */ type FcpCollectionPerformanceMetricsGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fcp collection performance metrics get default response func (o *FcpCollectionPerformanceMetricsGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fcp collection performance metrics get default response has a 2xx status code func (o *FcpCollectionPerformanceMetricsGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fcp collection performance metrics get default response has a 3xx status code func (o *FcpCollectionPerformanceMetricsGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fcp collection performance metrics get default response has a 4xx status code func (o *FcpCollectionPerformanceMetricsGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fcp collection performance metrics get default response has a 5xx status code func (o *FcpCollectionPerformanceMetricsGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fcp collection performance metrics get default response a status code equal to that given func (o *FcpCollectionPerformanceMetricsGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcpCollectionPerformanceMetricsGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}/metrics][%d] fcp_collection_performance_metrics_get default %+v", o._statusCode, o.Payload) } func (o *FcpCollectionPerformanceMetricsGetDefault) String() string { return fmt.Sprintf("[GET /protocols/san/fcp/services/{svm.uuid}/metrics][%d] fcp_collection_performance_metrics_get default %+v", o._statusCode, o.Payload) } func (o *FcpCollectionPerformanceMetricsGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcpCollectionPerformanceMetricsGetDefault) 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/s_a_n/iscsi_credentials_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/iscsi_credentials_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // IscsiCredentialsModifyReader is a Reader for the IscsiCredentialsModify structure. type IscsiCredentialsModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IscsiCredentialsModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIscsiCredentialsModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIscsiCredentialsModifyDefault(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 } } // NewIscsiCredentialsModifyOK creates a IscsiCredentialsModifyOK with default headers values func NewIscsiCredentialsModifyOK() *IscsiCredentialsModifyOK { return &IscsiCredentialsModifyOK{} } /* IscsiCredentialsModifyOK describes a response with status code 200, with default header values. OK */ type IscsiCredentialsModifyOK struct { } // IsSuccess returns true when this iscsi credentials modify o k response has a 2xx status code func (o *IscsiCredentialsModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this iscsi credentials modify o k response has a 3xx status code func (o *IscsiCredentialsModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this iscsi credentials modify o k response has a 4xx status code func (o *IscsiCredentialsModifyOK) IsClientError() bool { return false } // IsServerError returns true when this iscsi credentials modify o k response has a 5xx status code func (o *IscsiCredentialsModifyOK) IsServerError() bool { return false } // IsCode returns true when this iscsi credentials modify o k response a status code equal to that given func (o *IscsiCredentialsModifyOK) IsCode(code int) bool { return code == 200 } func (o *IscsiCredentialsModifyOK) Error() string { return fmt.Sprintf("[PATCH /protocols/san/iscsi/credentials/{svm.uuid}/{initiator}][%d] iscsiCredentialsModifyOK ", 200) } func (o *IscsiCredentialsModifyOK) String() string { return fmt.Sprintf("[PATCH /protocols/san/iscsi/credentials/{svm.uuid}/{initiator}][%d] iscsiCredentialsModifyOK ", 200) } func (o *IscsiCredentialsModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewIscsiCredentialsModifyDefault creates a IscsiCredentialsModifyDefault with default headers values func NewIscsiCredentialsModifyDefault(code int) *IscsiCredentialsModifyDefault { return &IscsiCredentialsModifyDefault{ _statusCode: code, } } /* IscsiCredentialsModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2621462 | An SVM with the specified UUID does not exist. | | 2621706 | Both the SVM UUID and SVM name were supplied, but they do not refer to the same SVM. | | 2621707 | No SVM was specified. Either `svm.name` or `svm.uuid` must be supplied. | | 5374145 | The iSCSI security password must contain an even number of valid hex digits. | | 5374147 | The CHAP inbound and outbound passwords must be different. | | 5374149 | The inbound user and password properties are required for CHAP authentication. | | 5374150 | Outbound CHAP authentication requires an outbound password. | | 5374155 | The functionality is not supported for the default security credential. | | 5374855 | The value for property `initiator_address.ranges.start` is greater than the value for property `initiator_address.ranges.end`. | | 5374856 | The value for property `initiator_address.ranges.start` does not belong to the same IP address family as the value for property `initiator_address.ranges.end`. | | 5374895 | The iSCSI security credential does not exist on the specified SVM. | | 5374900 | Setting the CHAP authentication properties are not supported with authentication types _none_ or _deny_. | */ type IscsiCredentialsModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the iscsi credentials modify default response func (o *IscsiCredentialsModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this iscsi credentials modify default response has a 2xx status code func (o *IscsiCredentialsModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this iscsi credentials modify default response has a 3xx status code func (o *IscsiCredentialsModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this iscsi credentials modify default response has a 4xx status code func (o *IscsiCredentialsModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this iscsi credentials modify default response has a 5xx status code func (o *IscsiCredentialsModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this iscsi credentials modify default response a status code equal to that given func (o *IscsiCredentialsModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IscsiCredentialsModifyDefault) Error() string { return fmt.Sprintf("[PATCH /protocols/san/iscsi/credentials/{svm.uuid}/{initiator}][%d] iscsi_credentials_modify default %+v", o._statusCode, o.Payload) } func (o *IscsiCredentialsModifyDefault) String() string { return fmt.Sprintf("[PATCH /protocols/san/iscsi/credentials/{svm.uuid}/{initiator}][%d] iscsi_credentials_modify default %+v", o._statusCode, o.Payload) } func (o *IscsiCredentialsModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IscsiCredentialsModifyDefault) 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/s_a_n/portset_interface_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/portset_interface_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // PortsetInterfaceCollectionGetReader is a Reader for the PortsetInterfaceCollectionGet structure. type PortsetInterfaceCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *PortsetInterfaceCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewPortsetInterfaceCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewPortsetInterfaceCollectionGetDefault(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 } } // NewPortsetInterfaceCollectionGetOK creates a PortsetInterfaceCollectionGetOK with default headers values func NewPortsetInterfaceCollectionGetOK() *PortsetInterfaceCollectionGetOK { return &PortsetInterfaceCollectionGetOK{} } /* PortsetInterfaceCollectionGetOK describes a response with status code 200, with default header values. OK */ type PortsetInterfaceCollectionGetOK struct { Payload *models.PortsetInterfaceResponse } // IsSuccess returns true when this portset interface collection get o k response has a 2xx status code func (o *PortsetInterfaceCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this portset interface collection get o k response has a 3xx status code func (o *PortsetInterfaceCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this portset interface collection get o k response has a 4xx status code func (o *PortsetInterfaceCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this portset interface collection get o k response has a 5xx status code func (o *PortsetInterfaceCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this portset interface collection get o k response a status code equal to that given func (o *PortsetInterfaceCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *PortsetInterfaceCollectionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/san/portsets/{portset.uuid}/interfaces][%d] portsetInterfaceCollectionGetOK %+v", 200, o.Payload) } func (o *PortsetInterfaceCollectionGetOK) String() string { return fmt.Sprintf("[GET /protocols/san/portsets/{portset.uuid}/interfaces][%d] portsetInterfaceCollectionGetOK %+v", 200, o.Payload) } func (o *PortsetInterfaceCollectionGetOK) GetPayload() *models.PortsetInterfaceResponse { return o.Payload } func (o *PortsetInterfaceCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.PortsetInterfaceResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewPortsetInterfaceCollectionGetDefault creates a PortsetInterfaceCollectionGetDefault with default headers values func NewPortsetInterfaceCollectionGetDefault(code int) *PortsetInterfaceCollectionGetDefault { return &PortsetInterfaceCollectionGetDefault{ _statusCode: code, } } /* PortsetInterfaceCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 5374908 | The portset specified in the URI does not exist. | */ type PortsetInterfaceCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the portset interface collection get default response func (o *PortsetInterfaceCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this portset interface collection get default response has a 2xx status code func (o *PortsetInterfaceCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this portset interface collection get default response has a 3xx status code func (o *PortsetInterfaceCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this portset interface collection get default response has a 4xx status code func (o *PortsetInterfaceCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this portset interface collection get default response has a 5xx status code func (o *PortsetInterfaceCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this portset interface collection get default response a status code equal to that given func (o *PortsetInterfaceCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *PortsetInterfaceCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/san/portsets/{portset.uuid}/interfaces][%d] portset_interface_collection_get default %+v", o._statusCode, o.Payload) } func (o *PortsetInterfaceCollectionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/san/portsets/{portset.uuid}/interfaces][%d] portset_interface_collection_get default %+v", o._statusCode, o.Payload) } func (o *PortsetInterfaceCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *PortsetInterfaceCollectionGetDefault) 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/s_a_n/lun_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/lun_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // LunCollectionGetReader is a Reader for the LunCollectionGet structure. type LunCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LunCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLunCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLunCollectionGetDefault(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 } } // NewLunCollectionGetOK creates a LunCollectionGetOK with default headers values func NewLunCollectionGetOK() *LunCollectionGetOK { return &LunCollectionGetOK{} } /* LunCollectionGetOK describes a response with status code 200, with default header values. OK */ type LunCollectionGetOK struct { Payload *models.LunResponse } // IsSuccess returns true when this lun collection get o k response has a 2xx status code func (o *LunCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this lun collection get o k response has a 3xx status code func (o *LunCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this lun collection get o k response has a 4xx status code func (o *LunCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this lun collection get o k response has a 5xx status code func (o *LunCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this lun collection get o k response a status code equal to that given func (o *LunCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *LunCollectionGetOK) Error() string { return fmt.Sprintf("[GET /storage/luns][%d] lunCollectionGetOK %+v", 200, o.Payload) } func (o *LunCollectionGetOK) String() string { return fmt.Sprintf("[GET /storage/luns][%d] lunCollectionGetOK %+v", 200, o.Payload) } func (o *LunCollectionGetOK) GetPayload() *models.LunResponse { return o.Payload } func (o *LunCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.LunResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLunCollectionGetDefault creates a LunCollectionGetDefault with default headers values func NewLunCollectionGetDefault(code int) *LunCollectionGetDefault { return &LunCollectionGetDefault{ _statusCode: code, } } /* LunCollectionGetDefault describes a response with status code -1, with default header values. Error */ type LunCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the lun collection get default response func (o *LunCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this lun collection get default response has a 2xx status code func (o *LunCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this lun collection get default response has a 3xx status code func (o *LunCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this lun collection get default response has a 4xx status code func (o *LunCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this lun collection get default response has a 5xx status code func (o *LunCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this lun collection get default response a status code equal to that given func (o *LunCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LunCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /storage/luns][%d] lun_collection_get default %+v", o._statusCode, o.Payload) } func (o *LunCollectionGetDefault) String() string { return fmt.Sprintf("[GET /storage/luns][%d] lun_collection_get default %+v", o._statusCode, o.Payload) } func (o *LunCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LunCollectionGetDefault) 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/s_a_n/portset_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/portset_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // PortsetCollectionGetReader is a Reader for the PortsetCollectionGet structure. type PortsetCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *PortsetCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewPortsetCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewPortsetCollectionGetDefault(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 } } // NewPortsetCollectionGetOK creates a PortsetCollectionGetOK with default headers values func NewPortsetCollectionGetOK() *PortsetCollectionGetOK { return &PortsetCollectionGetOK{} } /* PortsetCollectionGetOK describes a response with status code 200, with default header values. OK */ type PortsetCollectionGetOK struct { Payload *models.PortsetResponse } // IsSuccess returns true when this portset collection get o k response has a 2xx status code func (o *PortsetCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this portset collection get o k response has a 3xx status code func (o *PortsetCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this portset collection get o k response has a 4xx status code func (o *PortsetCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this portset collection get o k response has a 5xx status code func (o *PortsetCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this portset collection get o k response a status code equal to that given func (o *PortsetCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *PortsetCollectionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/san/portsets][%d] portsetCollectionGetOK %+v", 200, o.Payload) } func (o *PortsetCollectionGetOK) String() string { return fmt.Sprintf("[GET /protocols/san/portsets][%d] portsetCollectionGetOK %+v", 200, o.Payload) } func (o *PortsetCollectionGetOK) GetPayload() *models.PortsetResponse { return o.Payload } func (o *PortsetCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.PortsetResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewPortsetCollectionGetDefault creates a PortsetCollectionGetDefault with default headers values func NewPortsetCollectionGetDefault(code int) *PortsetCollectionGetDefault { return &PortsetCollectionGetDefault{ _statusCode: code, } } /* PortsetCollectionGetDefault describes a response with status code -1, with default header values. Error */ type PortsetCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the portset collection get default response func (o *PortsetCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this portset collection get default response has a 2xx status code func (o *PortsetCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this portset collection get default response has a 3xx status code func (o *PortsetCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this portset collection get default response has a 4xx status code func (o *PortsetCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this portset collection get default response has a 5xx status code func (o *PortsetCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this portset collection get default response a status code equal to that given func (o *PortsetCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *PortsetCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/san/portsets][%d] portset_collection_get default %+v", o._statusCode, o.Payload) } func (o *PortsetCollectionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/san/portsets][%d] portset_collection_get default %+v", o._statusCode, o.Payload) } func (o *PortsetCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *PortsetCollectionGetDefault) 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/s_a_n/fcp_service_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/fcp_service_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // FcpServiceDeleteReader is a Reader for the FcpServiceDelete structure. type FcpServiceDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcpServiceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcpServiceDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcpServiceDeleteDefault(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 } } // NewFcpServiceDeleteOK creates a FcpServiceDeleteOK with default headers values func NewFcpServiceDeleteOK() *FcpServiceDeleteOK { return &FcpServiceDeleteOK{} } /* FcpServiceDeleteOK describes a response with status code 200, with default header values. OK */ type FcpServiceDeleteOK struct { } // IsSuccess returns true when this fcp service delete o k response has a 2xx status code func (o *FcpServiceDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this fcp service delete o k response has a 3xx status code func (o *FcpServiceDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this fcp service delete o k response has a 4xx status code func (o *FcpServiceDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this fcp service delete o k response has a 5xx status code func (o *FcpServiceDeleteOK) IsServerError() bool { return false } // IsCode returns true when this fcp service delete o k response a status code equal to that given func (o *FcpServiceDeleteOK) IsCode(code int) bool { return code == 200 } func (o *FcpServiceDeleteOK) Error() string { return fmt.Sprintf("[DELETE /protocols/san/fcp/services/{svm.uuid}][%d] fcpServiceDeleteOK ", 200) } func (o *FcpServiceDeleteOK) String() string { return fmt.Sprintf("[DELETE /protocols/san/fcp/services/{svm.uuid}][%d] fcpServiceDeleteOK ", 200) } func (o *FcpServiceDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewFcpServiceDeleteDefault creates a FcpServiceDeleteDefault with default headers values func NewFcpServiceDeleteDefault(code int) *FcpServiceDeleteDefault { return &FcpServiceDeleteDefault{ _statusCode: code, } } /* FcpServiceDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2621462 | An SVM with the specified UUID does not exist. | | 5373960 | The Fibre Channel Protocol service cannot be removed while it is enabled. | | 5374083 | There is no Fibre Channel Protocol service for the specified SVM. | */ type FcpServiceDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fcp service delete default response func (o *FcpServiceDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fcp service delete default response has a 2xx status code func (o *FcpServiceDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fcp service delete default response has a 3xx status code func (o *FcpServiceDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fcp service delete default response has a 4xx status code func (o *FcpServiceDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fcp service delete default response has a 5xx status code func (o *FcpServiceDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fcp service delete default response a status code equal to that given func (o *FcpServiceDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcpServiceDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /protocols/san/fcp/services/{svm.uuid}][%d] fcp_service_delete default %+v", o._statusCode, o.Payload) } func (o *FcpServiceDeleteDefault) String() string { return fmt.Sprintf("[DELETE /protocols/san/fcp/services/{svm.uuid}][%d] fcp_service_delete default %+v", o._statusCode, o.Payload) } func (o *FcpServiceDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcpServiceDeleteDefault) 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/s_a_n/portset_interface_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/portset_interface_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewPortsetInterfaceCollectionGetParams creates a new PortsetInterfaceCollectionGetParams 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 NewPortsetInterfaceCollectionGetParams() *PortsetInterfaceCollectionGetParams { return &PortsetInterfaceCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewPortsetInterfaceCollectionGetParamsWithTimeout creates a new PortsetInterfaceCollectionGetParams object // with the ability to set a timeout on a request. func NewPortsetInterfaceCollectionGetParamsWithTimeout(timeout time.Duration) *PortsetInterfaceCollectionGetParams { return &PortsetInterfaceCollectionGetParams{ timeout: timeout, } } // NewPortsetInterfaceCollectionGetParamsWithContext creates a new PortsetInterfaceCollectionGetParams object // with the ability to set a context for a request. func NewPortsetInterfaceCollectionGetParamsWithContext(ctx context.Context) *PortsetInterfaceCollectionGetParams { return &PortsetInterfaceCollectionGetParams{ Context: ctx, } } // NewPortsetInterfaceCollectionGetParamsWithHTTPClient creates a new PortsetInterfaceCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewPortsetInterfaceCollectionGetParamsWithHTTPClient(client *http.Client) *PortsetInterfaceCollectionGetParams { return &PortsetInterfaceCollectionGetParams{ HTTPClient: client, } } /* PortsetInterfaceCollectionGetParams contains all the parameters to send to the API endpoint for the portset interface collection get operation. Typically these are written to a http.Request. */ type PortsetInterfaceCollectionGetParams 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 /* PortsetUUID. The unique identifier of the portset. */ PortsetUUID 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 portset interface collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *PortsetInterfaceCollectionGetParams) WithDefaults() *PortsetInterfaceCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the portset interface collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *PortsetInterfaceCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := PortsetInterfaceCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithTimeout(timeout time.Duration) *PortsetInterfaceCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithContext(ctx context.Context) *PortsetInterfaceCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithHTTPClient(client *http.Client) *PortsetInterfaceCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithFields(fields []string) *PortsetInterfaceCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithMaxRecords(maxRecords *int64) *PortsetInterfaceCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithOrderBy(orderBy []string) *PortsetInterfaceCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPortsetUUID adds the portsetUUID to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithPortsetUUID(portsetUUID string) *PortsetInterfaceCollectionGetParams { o.SetPortsetUUID(portsetUUID) return o } // SetPortsetUUID adds the portsetUuid to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetPortsetUUID(portsetUUID string) { o.PortsetUUID = portsetUUID } // WithReturnRecords adds the returnRecords to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithReturnRecords(returnRecords *bool) *PortsetInterfaceCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *PortsetInterfaceCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the portset interface collection get params func (o *PortsetInterfaceCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *PortsetInterfaceCollectionGetParams) 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 } } // path param portset.uuid if err := r.SetPathParam("portset.uuid", o.PortsetUUID); 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 } // bindParamPortsetInterfaceCollectionGet binds the parameter fields func (o *PortsetInterfaceCollectionGetParams) 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 } // bindParamPortsetInterfaceCollectionGet binds the parameter order_by func (o *PortsetInterfaceCollectionGetParams) 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/s_a_n/lun_map_reporting_node_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/lun_map_reporting_node_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // LunMapReportingNodeCollectionGetReader is a Reader for the LunMapReportingNodeCollectionGet structure. type LunMapReportingNodeCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LunMapReportingNodeCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLunMapReportingNodeCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLunMapReportingNodeCollectionGetDefault(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 } } // NewLunMapReportingNodeCollectionGetOK creates a LunMapReportingNodeCollectionGetOK with default headers values func NewLunMapReportingNodeCollectionGetOK() *LunMapReportingNodeCollectionGetOK { return &LunMapReportingNodeCollectionGetOK{} } /* LunMapReportingNodeCollectionGetOK describes a response with status code 200, with default header values. OK */ type LunMapReportingNodeCollectionGetOK struct { Payload *models.LunMapReportingNodeResponse } // IsSuccess returns true when this lun map reporting node collection get o k response has a 2xx status code func (o *LunMapReportingNodeCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this lun map reporting node collection get o k response has a 3xx status code func (o *LunMapReportingNodeCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this lun map reporting node collection get o k response has a 4xx status code func (o *LunMapReportingNodeCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this lun map reporting node collection get o k response has a 5xx status code func (o *LunMapReportingNodeCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this lun map reporting node collection get o k response a status code equal to that given func (o *LunMapReportingNodeCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *LunMapReportingNodeCollectionGetOK) Error() string { return fmt.Sprintf("[GET /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}/reporting-nodes][%d] lunMapReportingNodeCollectionGetOK %+v", 200, o.Payload) } func (o *LunMapReportingNodeCollectionGetOK) String() string { return fmt.Sprintf("[GET /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}/reporting-nodes][%d] lunMapReportingNodeCollectionGetOK %+v", 200, o.Payload) } func (o *LunMapReportingNodeCollectionGetOK) GetPayload() *models.LunMapReportingNodeResponse { return o.Payload } func (o *LunMapReportingNodeCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.LunMapReportingNodeResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewLunMapReportingNodeCollectionGetDefault creates a LunMapReportingNodeCollectionGetDefault with default headers values func NewLunMapReportingNodeCollectionGetDefault(code int) *LunMapReportingNodeCollectionGetDefault { return &LunMapReportingNodeCollectionGetDefault{ _statusCode: code, } } /* LunMapReportingNodeCollectionGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 5374875 | The specified LUN does not exist or is not accessible to the caller. | | 5374878 | The specified initiator group does not exist, is not accessible to the caller, or is not in the same SVM as the specified LUN. | | 5374922 | The specified LUN map does not exist. | */ type LunMapReportingNodeCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the lun map reporting node collection get default response func (o *LunMapReportingNodeCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this lun map reporting node collection get default response has a 2xx status code func (o *LunMapReportingNodeCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this lun map reporting node collection get default response has a 3xx status code func (o *LunMapReportingNodeCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this lun map reporting node collection get default response has a 4xx status code func (o *LunMapReportingNodeCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this lun map reporting node collection get default response has a 5xx status code func (o *LunMapReportingNodeCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this lun map reporting node collection get default response a status code equal to that given func (o *LunMapReportingNodeCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LunMapReportingNodeCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}/reporting-nodes][%d] lun_map_reporting_node_collection_get default %+v", o._statusCode, o.Payload) } func (o *LunMapReportingNodeCollectionGetDefault) String() string { return fmt.Sprintf("[GET /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}/reporting-nodes][%d] lun_map_reporting_node_collection_get default %+v", o._statusCode, o.Payload) } func (o *LunMapReportingNodeCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LunMapReportingNodeCollectionGetDefault) 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/s_a_n/igroup_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/igroup_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewIgroupModifyParams creates a new IgroupModifyParams 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 NewIgroupModifyParams() *IgroupModifyParams { return &IgroupModifyParams{ timeout: cr.DefaultTimeout, } } // NewIgroupModifyParamsWithTimeout creates a new IgroupModifyParams object // with the ability to set a timeout on a request. func NewIgroupModifyParamsWithTimeout(timeout time.Duration) *IgroupModifyParams { return &IgroupModifyParams{ timeout: timeout, } } // NewIgroupModifyParamsWithContext creates a new IgroupModifyParams object // with the ability to set a context for a request. func NewIgroupModifyParamsWithContext(ctx context.Context) *IgroupModifyParams { return &IgroupModifyParams{ Context: ctx, } } // NewIgroupModifyParamsWithHTTPClient creates a new IgroupModifyParams object // with the ability to set a custom HTTPClient for a request. func NewIgroupModifyParamsWithHTTPClient(client *http.Client) *IgroupModifyParams { return &IgroupModifyParams{ HTTPClient: client, } } /* IgroupModifyParams contains all the parameters to send to the API endpoint for the igroup modify operation. Typically these are written to a http.Request. */ type IgroupModifyParams struct { /* Info. The new property values for the initiator group. */ Info *models.Igroup /* UUID. The unique identifier of the initiator group. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the igroup modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IgroupModifyParams) WithDefaults() *IgroupModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the igroup modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IgroupModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the igroup modify params func (o *IgroupModifyParams) WithTimeout(timeout time.Duration) *IgroupModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the igroup modify params func (o *IgroupModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the igroup modify params func (o *IgroupModifyParams) WithContext(ctx context.Context) *IgroupModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the igroup modify params func (o *IgroupModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the igroup modify params func (o *IgroupModifyParams) WithHTTPClient(client *http.Client) *IgroupModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the igroup modify params func (o *IgroupModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the igroup modify params func (o *IgroupModifyParams) WithInfo(info *models.Igroup) *IgroupModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the igroup modify params func (o *IgroupModifyParams) SetInfo(info *models.Igroup) { o.Info = info } // WithUUID adds the uuid to the igroup modify params func (o *IgroupModifyParams) WithUUID(uuid string) *IgroupModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the igroup modify params func (o *IgroupModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IgroupModifyParams) 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/s_a_n/igroup_nested_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/igroup_nested_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewIgroupNestedDeleteParams creates a new IgroupNestedDeleteParams 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 NewIgroupNestedDeleteParams() *IgroupNestedDeleteParams { return &IgroupNestedDeleteParams{ timeout: cr.DefaultTimeout, } } // NewIgroupNestedDeleteParamsWithTimeout creates a new IgroupNestedDeleteParams object // with the ability to set a timeout on a request. func NewIgroupNestedDeleteParamsWithTimeout(timeout time.Duration) *IgroupNestedDeleteParams { return &IgroupNestedDeleteParams{ timeout: timeout, } } // NewIgroupNestedDeleteParamsWithContext creates a new IgroupNestedDeleteParams object // with the ability to set a context for a request. func NewIgroupNestedDeleteParamsWithContext(ctx context.Context) *IgroupNestedDeleteParams { return &IgroupNestedDeleteParams{ Context: ctx, } } // NewIgroupNestedDeleteParamsWithHTTPClient creates a new IgroupNestedDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewIgroupNestedDeleteParamsWithHTTPClient(client *http.Client) *IgroupNestedDeleteParams { return &IgroupNestedDeleteParams{ HTTPClient: client, } } /* IgroupNestedDeleteParams contains all the parameters to send to the API endpoint for the igroup nested delete operation. Typically these are written to a http.Request. */ type IgroupNestedDeleteParams struct { /* AllowDeleteWhileMapped. Allows the deletion of a nested initiator group from of a mapped initiator group.<br/> Deleting a nested initiator group from a mapped initiator group means that the LUNs, to which the initiator group is mapped, are no longer available to the initiators nested below the initiator group being removed. This might cause a disruption in the availability of data.<br/> <b>This parameter should be used with caution.</b> */ AllowDeleteWhileMapped *bool /* IgroupUUID. The unique identifier of the parent initiator group. */ IgroupUUID string /* UUID. The unique identifier of the nested initiator group. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the igroup nested delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IgroupNestedDeleteParams) WithDefaults() *IgroupNestedDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the igroup nested delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IgroupNestedDeleteParams) SetDefaults() { var ( allowDeleteWhileMappedDefault = bool(false) ) val := IgroupNestedDeleteParams{ AllowDeleteWhileMapped: &allowDeleteWhileMappedDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the igroup nested delete params func (o *IgroupNestedDeleteParams) WithTimeout(timeout time.Duration) *IgroupNestedDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the igroup nested delete params func (o *IgroupNestedDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the igroup nested delete params func (o *IgroupNestedDeleteParams) WithContext(ctx context.Context) *IgroupNestedDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the igroup nested delete params func (o *IgroupNestedDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the igroup nested delete params func (o *IgroupNestedDeleteParams) WithHTTPClient(client *http.Client) *IgroupNestedDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the igroup nested delete params func (o *IgroupNestedDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAllowDeleteWhileMapped adds the allowDeleteWhileMapped to the igroup nested delete params func (o *IgroupNestedDeleteParams) WithAllowDeleteWhileMapped(allowDeleteWhileMapped *bool) *IgroupNestedDeleteParams { o.SetAllowDeleteWhileMapped(allowDeleteWhileMapped) return o } // SetAllowDeleteWhileMapped adds the allowDeleteWhileMapped to the igroup nested delete params func (o *IgroupNestedDeleteParams) SetAllowDeleteWhileMapped(allowDeleteWhileMapped *bool) { o.AllowDeleteWhileMapped = allowDeleteWhileMapped } // WithIgroupUUID adds the igroupUUID to the igroup nested delete params func (o *IgroupNestedDeleteParams) WithIgroupUUID(igroupUUID string) *IgroupNestedDeleteParams { o.SetIgroupUUID(igroupUUID) return o } // SetIgroupUUID adds the igroupUuid to the igroup nested delete params func (o *IgroupNestedDeleteParams) SetIgroupUUID(igroupUUID string) { o.IgroupUUID = igroupUUID } // WithUUID adds the uuid to the igroup nested delete params func (o *IgroupNestedDeleteParams) WithUUID(uuid string) *IgroupNestedDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the igroup nested delete params func (o *IgroupNestedDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IgroupNestedDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AllowDeleteWhileMapped != nil { // query param allow_delete_while_mapped var qrAllowDeleteWhileMapped bool if o.AllowDeleteWhileMapped != nil { qrAllowDeleteWhileMapped = *o.AllowDeleteWhileMapped } qAllowDeleteWhileMapped := swag.FormatBool(qrAllowDeleteWhileMapped) if qAllowDeleteWhileMapped != "" { if err := r.SetQueryParam("allow_delete_while_mapped", qAllowDeleteWhileMapped); err != nil { return err } } } // path param igroup.uuid if err := r.SetPathParam("igroup.uuid", o.IgroupUUID); 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/s_a_n/fcp_service_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/fcp_service_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewFcpServiceGetParams creates a new FcpServiceGetParams 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 NewFcpServiceGetParams() *FcpServiceGetParams { return &FcpServiceGetParams{ timeout: cr.DefaultTimeout, } } // NewFcpServiceGetParamsWithTimeout creates a new FcpServiceGetParams object // with the ability to set a timeout on a request. func NewFcpServiceGetParamsWithTimeout(timeout time.Duration) *FcpServiceGetParams { return &FcpServiceGetParams{ timeout: timeout, } } // NewFcpServiceGetParamsWithContext creates a new FcpServiceGetParams object // with the ability to set a context for a request. func NewFcpServiceGetParamsWithContext(ctx context.Context) *FcpServiceGetParams { return &FcpServiceGetParams{ Context: ctx, } } // NewFcpServiceGetParamsWithHTTPClient creates a new FcpServiceGetParams object // with the ability to set a custom HTTPClient for a request. func NewFcpServiceGetParamsWithHTTPClient(client *http.Client) *FcpServiceGetParams { return &FcpServiceGetParams{ HTTPClient: client, } } /* FcpServiceGetParams contains all the parameters to send to the API endpoint for the fcp service get operation. Typically these are written to a http.Request. */ type FcpServiceGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* SvmUUID. The unique identifier of the SVM for which to retrieve the FC Protocol service. */ SvmUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the fcp service get params (not the query body). // // All values with no default are reset to their zero value. func (o *FcpServiceGetParams) WithDefaults() *FcpServiceGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the fcp service get params (not the query body). // // All values with no default are reset to their zero value. func (o *FcpServiceGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the fcp service get params func (o *FcpServiceGetParams) WithTimeout(timeout time.Duration) *FcpServiceGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the fcp service get params func (o *FcpServiceGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the fcp service get params func (o *FcpServiceGetParams) WithContext(ctx context.Context) *FcpServiceGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the fcp service get params func (o *FcpServiceGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the fcp service get params func (o *FcpServiceGetParams) WithHTTPClient(client *http.Client) *FcpServiceGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the fcp service get params func (o *FcpServiceGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the fcp service get params func (o *FcpServiceGetParams) WithFields(fields []string) *FcpServiceGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the fcp service get params func (o *FcpServiceGetParams) SetFields(fields []string) { o.Fields = fields } // WithSvmUUID adds the svmUUID to the fcp service get params func (o *FcpServiceGetParams) WithSvmUUID(svmUUID string) *FcpServiceGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the fcp service get params func (o *FcpServiceGetParams) SetSvmUUID(svmUUID string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *FcpServiceGetParams) 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 svm.uuid if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamFcpServiceGet binds the parameter fields func (o *FcpServiceGetParams) 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/s_a_n/lun_attribute_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/lun_attribute_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewLunAttributeCollectionGetParams creates a new LunAttributeCollectionGetParams 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 NewLunAttributeCollectionGetParams() *LunAttributeCollectionGetParams { return &LunAttributeCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewLunAttributeCollectionGetParamsWithTimeout creates a new LunAttributeCollectionGetParams object // with the ability to set a timeout on a request. func NewLunAttributeCollectionGetParamsWithTimeout(timeout time.Duration) *LunAttributeCollectionGetParams { return &LunAttributeCollectionGetParams{ timeout: timeout, } } // NewLunAttributeCollectionGetParamsWithContext creates a new LunAttributeCollectionGetParams object // with the ability to set a context for a request. func NewLunAttributeCollectionGetParamsWithContext(ctx context.Context) *LunAttributeCollectionGetParams { return &LunAttributeCollectionGetParams{ Context: ctx, } } // NewLunAttributeCollectionGetParamsWithHTTPClient creates a new LunAttributeCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewLunAttributeCollectionGetParamsWithHTTPClient(client *http.Client) *LunAttributeCollectionGetParams { return &LunAttributeCollectionGetParams{ HTTPClient: client, } } /* LunAttributeCollectionGetParams contains all the parameters to send to the API endpoint for the lun attribute collection get operation. Typically these are written to a http.Request. */ type LunAttributeCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* LunUUID. The unique identifier of the LUN. */ LunUUID 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 /* Value. Filter by value */ Value *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the lun attribute collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *LunAttributeCollectionGetParams) WithDefaults() *LunAttributeCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the lun attribute collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *LunAttributeCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := LunAttributeCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithTimeout(timeout time.Duration) *LunAttributeCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithContext(ctx context.Context) *LunAttributeCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithHTTPClient(client *http.Client) *LunAttributeCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithFields(fields []string) *LunAttributeCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithLunUUID adds the lunUUID to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithLunUUID(lunUUID string) *LunAttributeCollectionGetParams { o.SetLunUUID(lunUUID) return o } // SetLunUUID adds the lunUuid to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetLunUUID(lunUUID string) { o.LunUUID = lunUUID } // WithMaxRecords adds the maxRecords to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithMaxRecords(maxRecords *int64) *LunAttributeCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithName(name *string) *LunAttributeCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithOrderBy(orderBy []string) *LunAttributeCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithReturnRecords(returnRecords *bool) *LunAttributeCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *LunAttributeCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithValue adds the value to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) WithValue(value *string) *LunAttributeCollectionGetParams { o.SetValue(value) return o } // SetValue adds the value to the lun attribute collection get params func (o *LunAttributeCollectionGetParams) SetValue(value *string) { o.Value = value } // WriteToRequest writes these params to a swagger request func (o *LunAttributeCollectionGetParams) 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 lun.uuid if err := r.SetPathParam("lun.uuid", o.LunUUID); 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.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 } // bindParamLunAttributeCollectionGet binds the parameter fields func (o *LunAttributeCollectionGetParams) 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 } // bindParamLunAttributeCollectionGet binds the parameter order_by func (o *LunAttributeCollectionGetParams) 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/s_a_n/lun_map_reporting_node_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/lun_map_reporting_node_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // NewLunMapReportingNodeDeleteParams creates a new LunMapReportingNodeDeleteParams 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 NewLunMapReportingNodeDeleteParams() *LunMapReportingNodeDeleteParams { return &LunMapReportingNodeDeleteParams{ timeout: cr.DefaultTimeout, } } // NewLunMapReportingNodeDeleteParamsWithTimeout creates a new LunMapReportingNodeDeleteParams object // with the ability to set a timeout on a request. func NewLunMapReportingNodeDeleteParamsWithTimeout(timeout time.Duration) *LunMapReportingNodeDeleteParams { return &LunMapReportingNodeDeleteParams{ timeout: timeout, } } // NewLunMapReportingNodeDeleteParamsWithContext creates a new LunMapReportingNodeDeleteParams object // with the ability to set a context for a request. func NewLunMapReportingNodeDeleteParamsWithContext(ctx context.Context) *LunMapReportingNodeDeleteParams { return &LunMapReportingNodeDeleteParams{ Context: ctx, } } // NewLunMapReportingNodeDeleteParamsWithHTTPClient creates a new LunMapReportingNodeDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewLunMapReportingNodeDeleteParamsWithHTTPClient(client *http.Client) *LunMapReportingNodeDeleteParams { return &LunMapReportingNodeDeleteParams{ HTTPClient: client, } } /* LunMapReportingNodeDeleteParams contains all the parameters to send to the API endpoint for the lun map reporting node delete operation. Typically these are written to a http.Request. */ type LunMapReportingNodeDeleteParams struct { /* IgroupUUID. The unique identifier of the igroup. */ IgroupUUID string /* LunUUID. The unique identifier of the LUN. */ LunUUID string /* UUID. The unique identifier of the node. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the lun map reporting node delete params (not the query body). // // All values with no default are reset to their zero value. func (o *LunMapReportingNodeDeleteParams) WithDefaults() *LunMapReportingNodeDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the lun map reporting node delete params (not the query body). // // All values with no default are reset to their zero value. func (o *LunMapReportingNodeDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) WithTimeout(timeout time.Duration) *LunMapReportingNodeDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) WithContext(ctx context.Context) *LunMapReportingNodeDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) WithHTTPClient(client *http.Client) *LunMapReportingNodeDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithIgroupUUID adds the igroupUUID to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) WithIgroupUUID(igroupUUID string) *LunMapReportingNodeDeleteParams { o.SetIgroupUUID(igroupUUID) return o } // SetIgroupUUID adds the igroupUuid to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) SetIgroupUUID(igroupUUID string) { o.IgroupUUID = igroupUUID } // WithLunUUID adds the lunUUID to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) WithLunUUID(lunUUID string) *LunMapReportingNodeDeleteParams { o.SetLunUUID(lunUUID) return o } // SetLunUUID adds the lunUuid to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) SetLunUUID(lunUUID string) { o.LunUUID = lunUUID } // WithUUID adds the uuid to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) WithUUID(uuid string) *LunMapReportingNodeDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the lun map reporting node delete params func (o *LunMapReportingNodeDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *LunMapReportingNodeDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param igroup.uuid if err := r.SetPathParam("igroup.uuid", o.IgroupUUID); err != nil { return err } // path param lun.uuid if err := r.SetPathParam("lun.uuid", o.LunUUID); 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/s_a_n/fc_login_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/s_a_n/fc_login_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // 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" ) // FcLoginGetReader is a Reader for the FcLoginGet structure. type FcLoginGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *FcLoginGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewFcLoginGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewFcLoginGetDefault(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 } } // NewFcLoginGetOK creates a FcLoginGetOK with default headers values func NewFcLoginGetOK() *FcLoginGetOK { return &FcLoginGetOK{} } /* FcLoginGetOK describes a response with status code 200, with default header values. OK */ type FcLoginGetOK struct { Payload *models.FcLogin } // IsSuccess returns true when this fc login get o k response has a 2xx status code func (o *FcLoginGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this fc login get o k response has a 3xx status code func (o *FcLoginGetOK) IsRedirect() bool { return false } // IsClientError returns true when this fc login get o k response has a 4xx status code func (o *FcLoginGetOK) IsClientError() bool { return false } // IsServerError returns true when this fc login get o k response has a 5xx status code func (o *FcLoginGetOK) IsServerError() bool { return false } // IsCode returns true when this fc login get o k response a status code equal to that given func (o *FcLoginGetOK) IsCode(code int) bool { return code == 200 } func (o *FcLoginGetOK) Error() string { return fmt.Sprintf("[GET /network/fc/logins/{interface.uuid}/{initiator.wwpn}][%d] fcLoginGetOK %+v", 200, o.Payload) } func (o *FcLoginGetOK) String() string { return fmt.Sprintf("[GET /network/fc/logins/{interface.uuid}/{initiator.wwpn}][%d] fcLoginGetOK %+v", 200, o.Payload) } func (o *FcLoginGetOK) GetPayload() *models.FcLogin { return o.Payload } func (o *FcLoginGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.FcLogin) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewFcLoginGetDefault creates a FcLoginGetDefault with default headers values func NewFcLoginGetDefault(code int) *FcLoginGetDefault { return &FcLoginGetDefault{ _statusCode: code, } } /* FcLoginGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 4 | The Fibre Channel login specified does not exist. | | 5373983 | An invalid WWPN was supplied. | | 5374881 | The Fibre Channel interface specified does not exist. | */ type FcLoginGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the fc login get default response func (o *FcLoginGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this fc login get default response has a 2xx status code func (o *FcLoginGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this fc login get default response has a 3xx status code func (o *FcLoginGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this fc login get default response has a 4xx status code func (o *FcLoginGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this fc login get default response has a 5xx status code func (o *FcLoginGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this fc login get default response a status code equal to that given func (o *FcLoginGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *FcLoginGetDefault) Error() string { return fmt.Sprintf("[GET /network/fc/logins/{interface.uuid}/{initiator.wwpn}][%d] fc_login_get default %+v", o._statusCode, o.Payload) } func (o *FcLoginGetDefault) String() string { return fmt.Sprintf("[GET /network/fc/logins/{interface.uuid}/{initiator.wwpn}][%d] fc_login_get default %+v", o._statusCode, o.Payload) } func (o *FcLoginGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *FcLoginGetDefault) 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