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/shadowcopy_set_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/shadowcopy_set_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"
)
// ShadowcopySetGetReader is a Reader for the ShadowcopySetGet structure.
type ShadowcopySetGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ShadowcopySetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewShadowcopySetGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewShadowcopySetGetDefault(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
}
}
// NewShadowcopySetGetOK creates a ShadowcopySetGetOK with default headers values
func NewShadowcopySetGetOK() *ShadowcopySetGetOK {
return &ShadowcopySetGetOK{}
}
/*
ShadowcopySetGetOK describes a response with status code 200, with default header values.
OK
*/
type ShadowcopySetGetOK struct {
Payload *models.ShadowcopySet
}
// IsSuccess returns true when this shadowcopy set get o k response has a 2xx status code
func (o *ShadowcopySetGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this shadowcopy set get o k response has a 3xx status code
func (o *ShadowcopySetGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this shadowcopy set get o k response has a 4xx status code
func (o *ShadowcopySetGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this shadowcopy set get o k response has a 5xx status code
func (o *ShadowcopySetGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this shadowcopy set get o k response a status code equal to that given
func (o *ShadowcopySetGetOK) IsCode(code int) bool {
return code == 200
}
func (o *ShadowcopySetGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopySetGetOK %+v", 200, o.Payload)
}
func (o *ShadowcopySetGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopySetGetOK %+v", 200, o.Payload)
}
func (o *ShadowcopySetGetOK) GetPayload() *models.ShadowcopySet {
return o.Payload
}
func (o *ShadowcopySetGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ShadowcopySet)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewShadowcopySetGetDefault creates a ShadowcopySetGetDefault with default headers values
func NewShadowcopySetGetDefault(code int) *ShadowcopySetGetDefault {
return &ShadowcopySetGetDefault{
_statusCode: code,
}
}
/*
ShadowcopySetGetDefault describes a response with status code -1, with default header values.
Error
*/
type ShadowcopySetGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the shadowcopy set get default response
func (o *ShadowcopySetGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this shadowcopy set get default response has a 2xx status code
func (o *ShadowcopySetGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this shadowcopy set get default response has a 3xx status code
func (o *ShadowcopySetGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this shadowcopy set get default response has a 4xx status code
func (o *ShadowcopySetGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this shadowcopy set get default response has a 5xx status code
func (o *ShadowcopySetGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this shadowcopy set get default response a status code equal to that given
func (o *ShadowcopySetGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ShadowcopySetGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopy_set_get default %+v", o._statusCode, o.Payload)
}
func (o *ShadowcopySetGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopy_set_get default %+v", o._statusCode, o.Payload)
}
func (o *ShadowcopySetGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ShadowcopySetGetDefault) 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_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_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"
)
// FpolicyCollectionGetReader is a Reader for the FpolicyCollectionGet structure.
type FpolicyCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewFpolicyCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyCollectionGetDefault(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
}
}
// NewFpolicyCollectionGetOK creates a FpolicyCollectionGetOK with default headers values
func NewFpolicyCollectionGetOK() *FpolicyCollectionGetOK {
return &FpolicyCollectionGetOK{}
}
/*
FpolicyCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type FpolicyCollectionGetOK struct {
Payload *models.FpolicyResponse
}
// IsSuccess returns true when this fpolicy collection get o k response has a 2xx status code
func (o *FpolicyCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy collection get o k response has a 3xx status code
func (o *FpolicyCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy collection get o k response has a 4xx status code
func (o *FpolicyCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy collection get o k response has a 5xx status code
func (o *FpolicyCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy collection get o k response a status code equal to that given
func (o *FpolicyCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *FpolicyCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/fpolicy][%d] fpolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *FpolicyCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/fpolicy][%d] fpolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *FpolicyCollectionGetOK) GetPayload() *models.FpolicyResponse {
return o.Payload
}
func (o *FpolicyCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.FpolicyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewFpolicyCollectionGetDefault creates a FpolicyCollectionGetDefault with default headers values
func NewFpolicyCollectionGetDefault(code int) *FpolicyCollectionGetDefault {
return &FpolicyCollectionGetDefault{
_statusCode: code,
}
}
/*
FpolicyCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type FpolicyCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy collection get default response
func (o *FpolicyCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy collection get default response has a 2xx status code
func (o *FpolicyCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy collection get default response has a 3xx status code
func (o *FpolicyCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy collection get default response has a 4xx status code
func (o *FpolicyCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy collection get default response has a 5xx status code
func (o *FpolicyCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy collection get default response a status code equal to that given
func (o *FpolicyCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/fpolicy][%d] fpolicy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/fpolicy][%d] fpolicy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyCollectionGetDefault) 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_event_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_event_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"
)
// FpolicyEventModifyReader is a Reader for the FpolicyEventModify structure.
type FpolicyEventModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyEventModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewFpolicyEventModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyEventModifyDefault(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
}
}
// NewFpolicyEventModifyOK creates a FpolicyEventModifyOK with default headers values
func NewFpolicyEventModifyOK() *FpolicyEventModifyOK {
return &FpolicyEventModifyOK{}
}
/*
FpolicyEventModifyOK describes a response with status code 200, with default header values.
OK
*/
type FpolicyEventModifyOK struct {
}
// IsSuccess returns true when this fpolicy event modify o k response has a 2xx status code
func (o *FpolicyEventModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy event modify o k response has a 3xx status code
func (o *FpolicyEventModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy event modify o k response has a 4xx status code
func (o *FpolicyEventModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy event modify o k response has a 5xx status code
func (o *FpolicyEventModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy event modify o k response a status code equal to that given
func (o *FpolicyEventModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *FpolicyEventModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/events/{name}][%d] fpolicyEventModifyOK ", 200)
}
func (o *FpolicyEventModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/events/{name}][%d] fpolicyEventModifyOK ", 200)
}
func (o *FpolicyEventModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewFpolicyEventModifyDefault creates a FpolicyEventModifyDefault with default headers values
func NewFpolicyEventModifyDefault(code int) *FpolicyEventModifyDefault {
return &FpolicyEventModifyDefault{
_statusCode: code,
}
}
/*
FpolicyEventModifyDefault describes a response with status code -1, with default header values.
| Error Code | Description |
| ---------- | ----------- |
| 9764873 | The event is a cluster event |
| 9764929 | The file operation is not supported by the protocol |
| 9764955 | The filter is not supported by the protocol |
| 9764930 | The filter is not supported by any of the file operations |
| 9764946 | The protocol is specifed without file operation or a file operation and filter pair |
*/
type FpolicyEventModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy event modify default response
func (o *FpolicyEventModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy event modify default response has a 2xx status code
func (o *FpolicyEventModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy event modify default response has a 3xx status code
func (o *FpolicyEventModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy event modify default response has a 4xx status code
func (o *FpolicyEventModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy event modify default response has a 5xx status code
func (o *FpolicyEventModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy event modify default response a status code equal to that given
func (o *FpolicyEventModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyEventModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/events/{name}][%d] fpolicy_event_modify default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyEventModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/events/{name}][%d] fpolicy_event_modify default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyEventModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyEventModifyDefault) 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_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_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"
)
// NewFileDirectorySecurityDeleteParams creates a new FileDirectorySecurityDeleteParams 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 NewFileDirectorySecurityDeleteParams() *FileDirectorySecurityDeleteParams {
return &FileDirectorySecurityDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewFileDirectorySecurityDeleteParamsWithTimeout creates a new FileDirectorySecurityDeleteParams object
// with the ability to set a timeout on a request.
func NewFileDirectorySecurityDeleteParamsWithTimeout(timeout time.Duration) *FileDirectorySecurityDeleteParams {
return &FileDirectorySecurityDeleteParams{
timeout: timeout,
}
}
// NewFileDirectorySecurityDeleteParamsWithContext creates a new FileDirectorySecurityDeleteParams object
// with the ability to set a context for a request.
func NewFileDirectorySecurityDeleteParamsWithContext(ctx context.Context) *FileDirectorySecurityDeleteParams {
return &FileDirectorySecurityDeleteParams{
Context: ctx,
}
}
// NewFileDirectorySecurityDeleteParamsWithHTTPClient creates a new FileDirectorySecurityDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewFileDirectorySecurityDeleteParamsWithHTTPClient(client *http.Client) *FileDirectorySecurityDeleteParams {
return &FileDirectorySecurityDeleteParams{
HTTPClient: client,
}
}
/*
FileDirectorySecurityDeleteParams contains all the parameters to send to the API endpoint
for the file directory security delete operation.
Typically these are written to a http.Request.
*/
type FileDirectorySecurityDeleteParams struct {
/* AccessControl.
Remove all SLAG ACLs. Currently bulk deletion of file-directory ACLs is not supported.
*/
AccessControl *string
/* Path.
target path
*/
Path 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 file directory security delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FileDirectorySecurityDeleteParams) WithDefaults() *FileDirectorySecurityDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the file directory security delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FileDirectorySecurityDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) WithTimeout(timeout time.Duration) *FileDirectorySecurityDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) WithContext(ctx context.Context) *FileDirectorySecurityDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) WithHTTPClient(client *http.Client) *FileDirectorySecurityDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccessControl adds the accessControl to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) WithAccessControl(accessControl *string) *FileDirectorySecurityDeleteParams {
o.SetAccessControl(accessControl)
return o
}
// SetAccessControl adds the accessControl to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) SetAccessControl(accessControl *string) {
o.AccessControl = accessControl
}
// WithPath adds the path to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) WithPath(path string) *FileDirectorySecurityDeleteParams {
o.SetPath(path)
return o
}
// SetPath adds the path to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) SetPath(path string) {
o.Path = path
}
// WithSvmUUID adds the svmUUID to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) WithSvmUUID(svmUUID string) *FileDirectorySecurityDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the file directory security delete params
func (o *FileDirectorySecurityDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *FileDirectorySecurityDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.AccessControl != nil {
// query param access_control
var qrAccessControl string
if o.AccessControl != nil {
qrAccessControl = *o.AccessControl
}
qAccessControl := qrAccessControl
if qAccessControl != "" {
if err := r.SetQueryParam("access_control", qAccessControl); err != nil {
return err
}
}
}
// path param path
if err := r.SetPathParam("path", o.Path); 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/nfs_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/nfs_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"
)
// NfsModifyReader is a Reader for the NfsModify structure.
type NfsModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *NfsModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewNfsModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewNfsModifyDefault(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
}
}
// NewNfsModifyOK creates a NfsModifyOK with default headers values
func NewNfsModifyOK() *NfsModifyOK {
return &NfsModifyOK{}
}
/*
NfsModifyOK describes a response with status code 200, with default header values.
OK
*/
type NfsModifyOK struct {
}
// IsSuccess returns true when this nfs modify o k response has a 2xx status code
func (o *NfsModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this nfs modify o k response has a 3xx status code
func (o *NfsModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this nfs modify o k response has a 4xx status code
func (o *NfsModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this nfs modify o k response has a 5xx status code
func (o *NfsModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this nfs modify o k response a status code equal to that given
func (o *NfsModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *NfsModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/nfs/services/{svm.uuid}][%d] nfsModifyOK ", 200)
}
func (o *NfsModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/nfs/services/{svm.uuid}][%d] nfsModifyOK ", 200)
}
func (o *NfsModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewNfsModifyDefault creates a NfsModifyDefault with default headers values
func NewNfsModifyDefault(code int) *NfsModifyDefault {
return &NfsModifyDefault{
_statusCode: code,
}
}
/*
NfsModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 3276916 | Vserver is not running |
| 3277069 | Cannot disable TCP because the SnapDiff RPC server is in the \\\"on\\\" state |
| 3277087 | Attempting to reduce the number of bits used for NFSv3 FSIDs and File IDs from 64 to 32 on Vserver. This could result in collisions between different File IDs and is not recommended |
| 3277088 | Attempting to increase the number of bits used for NFSv3 FSIDs and File IDs from 32 to 64 on Vserver. This could result in older client software no longer working with the volumes owned by Vserver |
| 3277090 | Attempting to disallow multiple FSIDs per mount point on Vserver. Since this Vserver currently uses 32-bit NFSv3 FSIDs and File IDs, this could result in collisions between different File IDs and is not recommended |
| 3277099 | Domain name contains invalid characters or its too short. Allowed characters are: alphabetical characters (A-Za-z), numeric characters (0-9), minus sign (-), and the period (.). The first character must be alphabetical or numeric, last character must not be a minus sign or a period. Minimum supported length: 2 characters, maximum of 256 characters |
*/
type NfsModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the nfs modify default response
func (o *NfsModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this nfs modify default response has a 2xx status code
func (o *NfsModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this nfs modify default response has a 3xx status code
func (o *NfsModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this nfs modify default response has a 4xx status code
func (o *NfsModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this nfs modify default response has a 5xx status code
func (o *NfsModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this nfs modify default response a status code equal to that given
func (o *NfsModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *NfsModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/nfs/services/{svm.uuid}][%d] nfs_modify default %+v", o._statusCode, o.Payload)
}
func (o *NfsModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/nfs/services/{svm.uuid}][%d] nfs_modify default %+v", o._statusCode, o.Payload)
}
func (o *NfsModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *NfsModifyDefault) 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/user_group_privileges_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/user_group_privileges_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"
)
// UserGroupPrivilegesGetReader is a Reader for the UserGroupPrivilegesGet structure.
type UserGroupPrivilegesGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *UserGroupPrivilegesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewUserGroupPrivilegesGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewUserGroupPrivilegesGetDefault(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
}
}
// NewUserGroupPrivilegesGetOK creates a UserGroupPrivilegesGetOK with default headers values
func NewUserGroupPrivilegesGetOK() *UserGroupPrivilegesGetOK {
return &UserGroupPrivilegesGetOK{}
}
/*
UserGroupPrivilegesGetOK describes a response with status code 200, with default header values.
OK
*/
type UserGroupPrivilegesGetOK struct {
Payload *models.UserGroupPrivileges
}
// IsSuccess returns true when this user group privileges get o k response has a 2xx status code
func (o *UserGroupPrivilegesGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this user group privileges get o k response has a 3xx status code
func (o *UserGroupPrivilegesGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this user group privileges get o k response has a 4xx status code
func (o *UserGroupPrivilegesGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this user group privileges get o k response has a 5xx status code
func (o *UserGroupPrivilegesGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this user group privileges get o k response a status code equal to that given
func (o *UserGroupPrivilegesGetOK) IsCode(code int) bool {
return code == 200
}
func (o *UserGroupPrivilegesGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] userGroupPrivilegesGetOK %+v", 200, o.Payload)
}
func (o *UserGroupPrivilegesGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] userGroupPrivilegesGetOK %+v", 200, o.Payload)
}
func (o *UserGroupPrivilegesGetOK) GetPayload() *models.UserGroupPrivileges {
return o.Payload
}
func (o *UserGroupPrivilegesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.UserGroupPrivileges)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewUserGroupPrivilegesGetDefault creates a UserGroupPrivilegesGetDefault with default headers values
func NewUserGroupPrivilegesGetDefault(code int) *UserGroupPrivilegesGetDefault {
return &UserGroupPrivilegesGetDefault{
_statusCode: code,
}
}
/*
UserGroupPrivilegesGetDefault describes a response with status code -1, with default header values.
Error
*/
type UserGroupPrivilegesGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the user group privileges get default response
func (o *UserGroupPrivilegesGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this user group privileges get default response has a 2xx status code
func (o *UserGroupPrivilegesGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this user group privileges get default response has a 3xx status code
func (o *UserGroupPrivilegesGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this user group privileges get default response has a 4xx status code
func (o *UserGroupPrivilegesGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this user group privileges get default response has a 5xx status code
func (o *UserGroupPrivilegesGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this user group privileges get default response a status code equal to that given
func (o *UserGroupPrivilegesGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *UserGroupPrivilegesGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] user_group_privileges_get default %+v", o._statusCode, o.Payload)
}
func (o *UserGroupPrivilegesGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] user_group_privileges_get default %+v", o._statusCode, o.Payload)
}
func (o *UserGroupPrivilegesGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *UserGroupPrivilegesGetDefault) 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/group_policy_object_central_access_policy_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/group_policy_object_central_access_policy_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"
)
// GroupPolicyObjectCentralAccessPolicyCollectionGetReader is a Reader for the GroupPolicyObjectCentralAccessPolicyCollectionGet structure.
type GroupPolicyObjectCentralAccessPolicyCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGroupPolicyObjectCentralAccessPolicyCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewGroupPolicyObjectCentralAccessPolicyCollectionGetDefault(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
}
}
// NewGroupPolicyObjectCentralAccessPolicyCollectionGetOK creates a GroupPolicyObjectCentralAccessPolicyCollectionGetOK with default headers values
func NewGroupPolicyObjectCentralAccessPolicyCollectionGetOK() *GroupPolicyObjectCentralAccessPolicyCollectionGetOK {
return &GroupPolicyObjectCentralAccessPolicyCollectionGetOK{}
}
/*
GroupPolicyObjectCentralAccessPolicyCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type GroupPolicyObjectCentralAccessPolicyCollectionGetOK struct {
Payload *models.GroupPolicyObjectCentralAccessPolicyResponse
}
// IsSuccess returns true when this group policy object central access policy collection get o k response has a 2xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this group policy object central access policy collection get o k response has a 3xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this group policy object central access policy collection get o k response has a 4xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this group policy object central access policy collection get o k response has a 5xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this group policy object central access policy collection get o k response a status code equal to that given
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-policies][%d] groupPolicyObjectCentralAccessPolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-policies][%d] groupPolicyObjectCentralAccessPolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) GetPayload() *models.GroupPolicyObjectCentralAccessPolicyResponse {
return o.Payload
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.GroupPolicyObjectCentralAccessPolicyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewGroupPolicyObjectCentralAccessPolicyCollectionGetDefault creates a GroupPolicyObjectCentralAccessPolicyCollectionGetDefault with default headers values
func NewGroupPolicyObjectCentralAccessPolicyCollectionGetDefault(code int) *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault {
return &GroupPolicyObjectCentralAccessPolicyCollectionGetDefault{
_statusCode: code,
}
}
/*
GroupPolicyObjectCentralAccessPolicyCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type GroupPolicyObjectCentralAccessPolicyCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the group policy object central access policy collection get default response
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this group policy object central access policy collection get default response has a 2xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this group policy object central access policy collection get default response has a 3xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this group policy object central access policy collection get default response has a 4xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this group policy object central access policy collection get default response has a 5xx status code
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this group policy object central access policy collection get default response a status code equal to that given
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-policies][%d] group_policy_object_central_access_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-policies][%d] group_policy_object_central_access_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *GroupPolicyObjectCentralAccessPolicyCollectionGetDefault) 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_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_domain_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"
)
// CifsDomainCollectionGetReader is a Reader for the CifsDomainCollectionGet structure.
type CifsDomainCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsDomainCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewCifsDomainCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsDomainCollectionGetDefault(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
}
}
// NewCifsDomainCollectionGetOK creates a CifsDomainCollectionGetOK with default headers values
func NewCifsDomainCollectionGetOK() *CifsDomainCollectionGetOK {
return &CifsDomainCollectionGetOK{}
}
/*
CifsDomainCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type CifsDomainCollectionGetOK struct {
Payload *models.CifsDomainResponse
}
// IsSuccess returns true when this cifs domain collection get o k response has a 2xx status code
func (o *CifsDomainCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs domain collection get o k response has a 3xx status code
func (o *CifsDomainCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs domain collection get o k response has a 4xx status code
func (o *CifsDomainCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs domain collection get o k response has a 5xx status code
func (o *CifsDomainCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this cifs domain collection get o k response a status code equal to that given
func (o *CifsDomainCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *CifsDomainCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/domains][%d] cifsDomainCollectionGetOK %+v", 200, o.Payload)
}
func (o *CifsDomainCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/domains][%d] cifsDomainCollectionGetOK %+v", 200, o.Payload)
}
func (o *CifsDomainCollectionGetOK) GetPayload() *models.CifsDomainResponse {
return o.Payload
}
func (o *CifsDomainCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.CifsDomainResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCifsDomainCollectionGetDefault creates a CifsDomainCollectionGetDefault with default headers values
func NewCifsDomainCollectionGetDefault(code int) *CifsDomainCollectionGetDefault {
return &CifsDomainCollectionGetDefault{
_statusCode: code,
}
}
/*
CifsDomainCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type CifsDomainCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs domain collection get default response
func (o *CifsDomainCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs domain collection get default response has a 2xx status code
func (o *CifsDomainCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs domain collection get default response has a 3xx status code
func (o *CifsDomainCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs domain collection get default response has a 4xx status code
func (o *CifsDomainCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs domain collection get default response has a 5xx status code
func (o *CifsDomainCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs domain collection get default response a status code equal to that given
func (o *CifsDomainCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsDomainCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/domains][%d] cifs_domain_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *CifsDomainCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/domains][%d] cifs_domain_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *CifsDomainCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsDomainCollectionGetDefault) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_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"
)
// NewFpolicyGetParams creates a new FpolicyGetParams 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 NewFpolicyGetParams() *FpolicyGetParams {
return &FpolicyGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewFpolicyGetParamsWithTimeout creates a new FpolicyGetParams object
// with the ability to set a timeout on a request.
func NewFpolicyGetParamsWithTimeout(timeout time.Duration) *FpolicyGetParams {
return &FpolicyGetParams{
timeout: timeout,
}
}
// NewFpolicyGetParamsWithContext creates a new FpolicyGetParams object
// with the ability to set a context for a request.
func NewFpolicyGetParamsWithContext(ctx context.Context) *FpolicyGetParams {
return &FpolicyGetParams{
Context: ctx,
}
}
// NewFpolicyGetParamsWithHTTPClient creates a new FpolicyGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewFpolicyGetParamsWithHTTPClient(client *http.Client) *FpolicyGetParams {
return &FpolicyGetParams{
HTTPClient: client,
}
}
/*
FpolicyGetParams contains all the parameters to send to the API endpoint
for the fpolicy get operation.
Typically these are written to a http.Request.
*/
type FpolicyGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []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 get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyGetParams) WithDefaults() *FpolicyGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the fpolicy get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the fpolicy get params
func (o *FpolicyGetParams) WithTimeout(timeout time.Duration) *FpolicyGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the fpolicy get params
func (o *FpolicyGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the fpolicy get params
func (o *FpolicyGetParams) WithContext(ctx context.Context) *FpolicyGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the fpolicy get params
func (o *FpolicyGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the fpolicy get params
func (o *FpolicyGetParams) WithHTTPClient(client *http.Client) *FpolicyGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the fpolicy get params
func (o *FpolicyGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the fpolicy get params
func (o *FpolicyGetParams) WithFields(fields []string) *FpolicyGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the fpolicy get params
func (o *FpolicyGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithSvmUUID adds the svmUUID to the fpolicy get params
func (o *FpolicyGetParams) WithSvmUUID(svmUUID string) *FpolicyGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the fpolicy get params
func (o *FpolicyGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *FpolicyGetParams) 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
}
// bindParamFpolicyGet binds the parameter fields
func (o *FpolicyGetParams) 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/user_group_privileges_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/user_group_privileges_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"
)
// UserGroupPrivilegesModifyReader is a Reader for the UserGroupPrivilegesModify structure.
type UserGroupPrivilegesModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *UserGroupPrivilegesModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewUserGroupPrivilegesModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewUserGroupPrivilegesModifyDefault(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
}
}
// NewUserGroupPrivilegesModifyOK creates a UserGroupPrivilegesModifyOK with default headers values
func NewUserGroupPrivilegesModifyOK() *UserGroupPrivilegesModifyOK {
return &UserGroupPrivilegesModifyOK{}
}
/*
UserGroupPrivilegesModifyOK describes a response with status code 200, with default header values.
OK
*/
type UserGroupPrivilegesModifyOK struct {
}
// IsSuccess returns true when this user group privileges modify o k response has a 2xx status code
func (o *UserGroupPrivilegesModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this user group privileges modify o k response has a 3xx status code
func (o *UserGroupPrivilegesModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this user group privileges modify o k response has a 4xx status code
func (o *UserGroupPrivilegesModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this user group privileges modify o k response has a 5xx status code
func (o *UserGroupPrivilegesModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this user group privileges modify o k response a status code equal to that given
func (o *UserGroupPrivilegesModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *UserGroupPrivilegesModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] userGroupPrivilegesModifyOK ", 200)
}
func (o *UserGroupPrivilegesModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] userGroupPrivilegesModifyOK ", 200)
}
func (o *UserGroupPrivilegesModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewUserGroupPrivilegesModifyDefault creates a UserGroupPrivilegesModifyDefault with default headers values
func NewUserGroupPrivilegesModifyDefault(code int) *UserGroupPrivilegesModifyDefault {
return &UserGroupPrivilegesModifyDefault{
_statusCode: code,
}
}
/*
UserGroupPrivilegesModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 655673 | Failed to resolve the user or group. |
| 655730 | The specified local user to which privileges are to be associated to does not exist. |
*/
type UserGroupPrivilegesModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the user group privileges modify default response
func (o *UserGroupPrivilegesModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this user group privileges modify default response has a 2xx status code
func (o *UserGroupPrivilegesModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this user group privileges modify default response has a 3xx status code
func (o *UserGroupPrivilegesModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this user group privileges modify default response has a 4xx status code
func (o *UserGroupPrivilegesModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this user group privileges modify default response has a 5xx status code
func (o *UserGroupPrivilegesModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this user group privileges modify default response a status code equal to that given
func (o *UserGroupPrivilegesModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *UserGroupPrivilegesModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] user_group_privileges_modify default %+v", o._statusCode, o.Payload)
}
func (o *UserGroupPrivilegesModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/users-and-groups/privileges/{svm.uuid}/{name}][%d] user_group_privileges_modify default %+v", o._statusCode, o.Payload)
}
func (o *UserGroupPrivilegesModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *UserGroupPrivilegesModifyDefault) 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/group_policy_object_restricted_group_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/group_policy_object_restricted_group_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"
)
// NewGroupPolicyObjectRestrictedGroupCollectionGetParams creates a new GroupPolicyObjectRestrictedGroupCollectionGetParams 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 NewGroupPolicyObjectRestrictedGroupCollectionGetParams() *GroupPolicyObjectRestrictedGroupCollectionGetParams {
return &GroupPolicyObjectRestrictedGroupCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewGroupPolicyObjectRestrictedGroupCollectionGetParamsWithTimeout creates a new GroupPolicyObjectRestrictedGroupCollectionGetParams object
// with the ability to set a timeout on a request.
func NewGroupPolicyObjectRestrictedGroupCollectionGetParamsWithTimeout(timeout time.Duration) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
return &GroupPolicyObjectRestrictedGroupCollectionGetParams{
timeout: timeout,
}
}
// NewGroupPolicyObjectRestrictedGroupCollectionGetParamsWithContext creates a new GroupPolicyObjectRestrictedGroupCollectionGetParams object
// with the ability to set a context for a request.
func NewGroupPolicyObjectRestrictedGroupCollectionGetParamsWithContext(ctx context.Context) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
return &GroupPolicyObjectRestrictedGroupCollectionGetParams{
Context: ctx,
}
}
// NewGroupPolicyObjectRestrictedGroupCollectionGetParamsWithHTTPClient creates a new GroupPolicyObjectRestrictedGroupCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewGroupPolicyObjectRestrictedGroupCollectionGetParamsWithHTTPClient(client *http.Client) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
return &GroupPolicyObjectRestrictedGroupCollectionGetParams{
HTTPClient: client,
}
}
/*
GroupPolicyObjectRestrictedGroupCollectionGetParams contains all the parameters to send to the API endpoint
for the group policy object restricted group collection get operation.
Typically these are written to a http.Request.
*/
type GroupPolicyObjectRestrictedGroupCollectionGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* GroupName.
Filter by group_name
*/
GroupName *string
/* Link.
Filter by link
*/
Link *string
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Members.
Filter by members
*/
Members *string
/* Memberships.
Filter by memberships
*/
Memberships *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* PolicyName.
Filter by policy_name
*/
PolicyName *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
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* Version.
Filter by version
*/
Version *int64
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the group policy object restricted group collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithDefaults() *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the group policy object restricted group collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := GroupPolicyObjectRestrictedGroupCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithTimeout(timeout time.Duration) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithContext(ctx context.Context) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithHTTPClient(client *http.Client) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithFields(fields []string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithGroupName adds the groupName to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithGroupName(groupName *string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetGroupName(groupName)
return o
}
// SetGroupName adds the groupName to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetGroupName(groupName *string) {
o.GroupName = groupName
}
// WithLink adds the link to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithLink(link *string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetLink(link)
return o
}
// SetLink adds the link to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetLink(link *string) {
o.Link = link
}
// WithMaxRecords adds the maxRecords to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithMaxRecords(maxRecords *int64) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithMembers adds the members to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithMembers(members *string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetMembers(members)
return o
}
// SetMembers adds the members to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetMembers(members *string) {
o.Members = members
}
// WithMemberships adds the memberships to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithMemberships(memberships *string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetMemberships(memberships)
return o
}
// SetMemberships adds the memberships to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetMemberships(memberships *string) {
o.Memberships = memberships
}
// WithOrderBy adds the orderBy to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithOrderBy(orderBy []string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPolicyName adds the policyName to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithPolicyName(policyName *string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetPolicyName(policyName)
return o
}
// SetPolicyName adds the policyName to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetPolicyName(policyName *string) {
o.PolicyName = policyName
}
// WithReturnRecords adds the returnRecords to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithReturnRecords(returnRecords *bool) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmName adds the svmName to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithSvmName(svmName *string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithSvmUUID(svmUUID string) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithVersion adds the version to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) WithVersion(version *int64) *GroupPolicyObjectRestrictedGroupCollectionGetParams {
o.SetVersion(version)
return o
}
// SetVersion adds the version to the group policy object restricted group collection get params
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) SetVersion(version *int64) {
o.Version = version
}
// WriteToRequest writes these params to a swagger request
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) 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.GroupName != nil {
// query param group_name
var qrGroupName string
if o.GroupName != nil {
qrGroupName = *o.GroupName
}
qGroupName := qrGroupName
if qGroupName != "" {
if err := r.SetQueryParam("group_name", qGroupName); err != nil {
return err
}
}
}
if o.Link != nil {
// query param link
var qrLink string
if o.Link != nil {
qrLink = *o.Link
}
qLink := qrLink
if qLink != "" {
if err := r.SetQueryParam("link", qLink); 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.Members != nil {
// query param members
var qrMembers string
if o.Members != nil {
qrMembers = *o.Members
}
qMembers := qrMembers
if qMembers != "" {
if err := r.SetQueryParam("members", qMembers); err != nil {
return err
}
}
}
if o.Memberships != nil {
// query param memberships
var qrMemberships string
if o.Memberships != nil {
qrMemberships = *o.Memberships
}
qMemberships := qrMemberships
if qMemberships != "" {
if err := r.SetQueryParam("memberships", qMemberships); 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.PolicyName != nil {
// query param policy_name
var qrPolicyName string
if o.PolicyName != nil {
qrPolicyName = *o.PolicyName
}
qPolicyName := qrPolicyName
if qPolicyName != "" {
if err := r.SetQueryParam("policy_name", qPolicyName); 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.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
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if o.Version != nil {
// query param version
var qrVersion int64
if o.Version != nil {
qrVersion = *o.Version
}
qVersion := swag.FormatInt64(qrVersion)
if qVersion != "" {
if err := r.SetQueryParam("version", qVersion); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamGroupPolicyObjectRestrictedGroupCollectionGet binds the parameter fields
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) 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
}
// bindParamGroupPolicyObjectRestrictedGroupCollectionGet binds the parameter order_by
func (o *GroupPolicyObjectRestrictedGroupCollectionGetParams) 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/local_cifs_user_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_user_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"
)
// NewLocalCifsUserCollectionGetParams creates a new LocalCifsUserCollectionGetParams 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 NewLocalCifsUserCollectionGetParams() *LocalCifsUserCollectionGetParams {
return &LocalCifsUserCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewLocalCifsUserCollectionGetParamsWithTimeout creates a new LocalCifsUserCollectionGetParams object
// with the ability to set a timeout on a request.
func NewLocalCifsUserCollectionGetParamsWithTimeout(timeout time.Duration) *LocalCifsUserCollectionGetParams {
return &LocalCifsUserCollectionGetParams{
timeout: timeout,
}
}
// NewLocalCifsUserCollectionGetParamsWithContext creates a new LocalCifsUserCollectionGetParams object
// with the ability to set a context for a request.
func NewLocalCifsUserCollectionGetParamsWithContext(ctx context.Context) *LocalCifsUserCollectionGetParams {
return &LocalCifsUserCollectionGetParams{
Context: ctx,
}
}
// NewLocalCifsUserCollectionGetParamsWithHTTPClient creates a new LocalCifsUserCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewLocalCifsUserCollectionGetParamsWithHTTPClient(client *http.Client) *LocalCifsUserCollectionGetParams {
return &LocalCifsUserCollectionGetParams{
HTTPClient: client,
}
}
/*
LocalCifsUserCollectionGetParams contains all the parameters to send to the API endpoint
for the local cifs user collection get operation.
Typically these are written to a http.Request.
*/
type LocalCifsUserCollectionGetParams struct {
/* AccountDisabled.
Filter by account_disabled
*/
AccountDisabled *bool
/* Description.
Filter by description
*/
Description *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* FullName.
Filter by full_name
*/
FullName *string
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* MembershipName.
Filter by membership.name
*/
MembershipName *string
/* MembershipSid.
Filter by membership.sid
*/
MembershipSid *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
/* Sid.
Filter by sid
*/
Sid *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 local cifs user collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsUserCollectionGetParams) WithDefaults() *LocalCifsUserCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the local cifs user collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsUserCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := LocalCifsUserCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithTimeout(timeout time.Duration) *LocalCifsUserCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithContext(ctx context.Context) *LocalCifsUserCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithHTTPClient(client *http.Client) *LocalCifsUserCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccountDisabled adds the accountDisabled to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithAccountDisabled(accountDisabled *bool) *LocalCifsUserCollectionGetParams {
o.SetAccountDisabled(accountDisabled)
return o
}
// SetAccountDisabled adds the accountDisabled to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetAccountDisabled(accountDisabled *bool) {
o.AccountDisabled = accountDisabled
}
// WithDescription adds the description to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithDescription(description *string) *LocalCifsUserCollectionGetParams {
o.SetDescription(description)
return o
}
// SetDescription adds the description to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetDescription(description *string) {
o.Description = description
}
// WithFields adds the fields to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithFields(fields []string) *LocalCifsUserCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithFullName adds the fullName to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithFullName(fullName *string) *LocalCifsUserCollectionGetParams {
o.SetFullName(fullName)
return o
}
// SetFullName adds the fullName to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetFullName(fullName *string) {
o.FullName = fullName
}
// WithMaxRecords adds the maxRecords to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithMaxRecords(maxRecords *int64) *LocalCifsUserCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithMembershipName adds the membershipName to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithMembershipName(membershipName *string) *LocalCifsUserCollectionGetParams {
o.SetMembershipName(membershipName)
return o
}
// SetMembershipName adds the membershipName to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetMembershipName(membershipName *string) {
o.MembershipName = membershipName
}
// WithMembershipSid adds the membershipSid to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithMembershipSid(membershipSid *string) *LocalCifsUserCollectionGetParams {
o.SetMembershipSid(membershipSid)
return o
}
// SetMembershipSid adds the membershipSid to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetMembershipSid(membershipSid *string) {
o.MembershipSid = membershipSid
}
// WithName adds the name to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithName(name *string) *LocalCifsUserCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithOrderBy(orderBy []string) *LocalCifsUserCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithReturnRecords(returnRecords *bool) *LocalCifsUserCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *LocalCifsUserCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSid adds the sid to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithSid(sid *string) *LocalCifsUserCollectionGetParams {
o.SetSid(sid)
return o
}
// SetSid adds the sid to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetSid(sid *string) {
o.Sid = sid
}
// WithSvmName adds the svmName to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithSvmName(svmName *string) *LocalCifsUserCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) WithSvmUUID(svmUUID *string) *LocalCifsUserCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the local cifs user collection get params
func (o *LocalCifsUserCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *LocalCifsUserCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.AccountDisabled != nil {
// query param account_disabled
var qrAccountDisabled bool
if o.AccountDisabled != nil {
qrAccountDisabled = *o.AccountDisabled
}
qAccountDisabled := swag.FormatBool(qrAccountDisabled)
if qAccountDisabled != "" {
if err := r.SetQueryParam("account_disabled", qAccountDisabled); err != nil {
return err
}
}
}
if o.Description != nil {
// query param description
var qrDescription string
if o.Description != nil {
qrDescription = *o.Description
}
qDescription := qrDescription
if qDescription != "" {
if err := r.SetQueryParam("description", qDescription); err != nil {
return err
}
}
}
if o.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.FullName != nil {
// query param full_name
var qrFullName string
if o.FullName != nil {
qrFullName = *o.FullName
}
qFullName := qrFullName
if qFullName != "" {
if err := r.SetQueryParam("full_name", qFullName); 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.MembershipName != nil {
// query param membership.name
var qrMembershipName string
if o.MembershipName != nil {
qrMembershipName = *o.MembershipName
}
qMembershipName := qrMembershipName
if qMembershipName != "" {
if err := r.SetQueryParam("membership.name", qMembershipName); err != nil {
return err
}
}
}
if o.MembershipSid != nil {
// query param membership.sid
var qrMembershipSid string
if o.MembershipSid != nil {
qrMembershipSid = *o.MembershipSid
}
qMembershipSid := qrMembershipSid
if qMembershipSid != "" {
if err := r.SetQueryParam("membership.sid", qMembershipSid); 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.Sid != nil {
// query param sid
var qrSid string
if o.Sid != nil {
qrSid = *o.Sid
}
qSid := qrSid
if qSid != "" {
if err := r.SetQueryParam("sid", qSid); 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
}
// bindParamLocalCifsUserCollectionGet binds the parameter fields
func (o *LocalCifsUserCollectionGetParams) 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
}
// bindParamLocalCifsUserCollectionGet binds the parameter order_by
func (o *LocalCifsUserCollectionGetParams) 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/audit_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/audit_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"
)
// NewAuditCollectionGetParams creates a new AuditCollectionGetParams 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 NewAuditCollectionGetParams() *AuditCollectionGetParams {
return &AuditCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewAuditCollectionGetParamsWithTimeout creates a new AuditCollectionGetParams object
// with the ability to set a timeout on a request.
func NewAuditCollectionGetParamsWithTimeout(timeout time.Duration) *AuditCollectionGetParams {
return &AuditCollectionGetParams{
timeout: timeout,
}
}
// NewAuditCollectionGetParamsWithContext creates a new AuditCollectionGetParams object
// with the ability to set a context for a request.
func NewAuditCollectionGetParamsWithContext(ctx context.Context) *AuditCollectionGetParams {
return &AuditCollectionGetParams{
Context: ctx,
}
}
// NewAuditCollectionGetParamsWithHTTPClient creates a new AuditCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewAuditCollectionGetParamsWithHTTPClient(client *http.Client) *AuditCollectionGetParams {
return &AuditCollectionGetParams{
HTTPClient: client,
}
}
/*
AuditCollectionGetParams contains all the parameters to send to the API endpoint
for the audit collection get operation.
Typically these are written to a http.Request.
*/
type AuditCollectionGetParams struct {
/* Enabled.
Filter by enabled
*/
Enabled *bool
/* EventsAuthorizationPolicy.
Filter by events.authorization_policy
*/
EventsAuthorizationPolicy *bool
/* EventsCapStaging.
Filter by events.cap_staging
*/
EventsCapStaging *bool
/* EventsCifsLogonLogoff.
Filter by events.cifs_logon_logoff
*/
EventsCifsLogonLogoff *bool
/* EventsFileOperations.
Filter by events.file_operations
*/
EventsFileOperations *bool
/* EventsFileShare.
Filter by events.file_share
*/
EventsFileShare *bool
/* EventsSecurityGroup.
Filter by events.security_group
*/
EventsSecurityGroup *bool
/* EventsUserAccount.
Filter by events.user_account
*/
EventsUserAccount *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Guarantee.
Filter by guarantee
*/
Guarantee *bool
/* LogFormat.
Filter by log.format
*/
LogFormat *string
/* LogRetentionCount.
Filter by log.retention.count
*/
LogRetentionCount *int64
/* LogRetentionDuration.
Filter by log.retention.duration
*/
LogRetentionDuration *string
/* LogRotationScheduleDays.
Filter by log.rotation.schedule.days
*/
LogRotationScheduleDays *int64
/* LogRotationScheduleHours.
Filter by log.rotation.schedule.hours
*/
LogRotationScheduleHours *int64
/* LogRotationScheduleMinutes.
Filter by log.rotation.schedule.minutes
*/
LogRotationScheduleMinutes *int64
/* LogRotationScheduleMonths.
Filter by log.rotation.schedule.months
*/
LogRotationScheduleMonths *int64
/* LogRotationScheduleWeekdays.
Filter by log.rotation.schedule.weekdays
*/
LogRotationScheduleWeekdays *int64
/* LogRotationSize.
Filter by log.rotation.size
*/
LogRotationSize *int64
/* LogPath.
Filter by log_path
*/
LogPath *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
/* 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 audit collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AuditCollectionGetParams) WithDefaults() *AuditCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the audit collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AuditCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := AuditCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the audit collection get params
func (o *AuditCollectionGetParams) WithTimeout(timeout time.Duration) *AuditCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the audit collection get params
func (o *AuditCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the audit collection get params
func (o *AuditCollectionGetParams) WithContext(ctx context.Context) *AuditCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the audit collection get params
func (o *AuditCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the audit collection get params
func (o *AuditCollectionGetParams) WithHTTPClient(client *http.Client) *AuditCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the audit collection get params
func (o *AuditCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithEnabled adds the enabled to the audit collection get params
func (o *AuditCollectionGetParams) WithEnabled(enabled *bool) *AuditCollectionGetParams {
o.SetEnabled(enabled)
return o
}
// SetEnabled adds the enabled to the audit collection get params
func (o *AuditCollectionGetParams) SetEnabled(enabled *bool) {
o.Enabled = enabled
}
// WithEventsAuthorizationPolicy adds the eventsAuthorizationPolicy to the audit collection get params
func (o *AuditCollectionGetParams) WithEventsAuthorizationPolicy(eventsAuthorizationPolicy *bool) *AuditCollectionGetParams {
o.SetEventsAuthorizationPolicy(eventsAuthorizationPolicy)
return o
}
// SetEventsAuthorizationPolicy adds the eventsAuthorizationPolicy to the audit collection get params
func (o *AuditCollectionGetParams) SetEventsAuthorizationPolicy(eventsAuthorizationPolicy *bool) {
o.EventsAuthorizationPolicy = eventsAuthorizationPolicy
}
// WithEventsCapStaging adds the eventsCapStaging to the audit collection get params
func (o *AuditCollectionGetParams) WithEventsCapStaging(eventsCapStaging *bool) *AuditCollectionGetParams {
o.SetEventsCapStaging(eventsCapStaging)
return o
}
// SetEventsCapStaging adds the eventsCapStaging to the audit collection get params
func (o *AuditCollectionGetParams) SetEventsCapStaging(eventsCapStaging *bool) {
o.EventsCapStaging = eventsCapStaging
}
// WithEventsCifsLogonLogoff adds the eventsCifsLogonLogoff to the audit collection get params
func (o *AuditCollectionGetParams) WithEventsCifsLogonLogoff(eventsCifsLogonLogoff *bool) *AuditCollectionGetParams {
o.SetEventsCifsLogonLogoff(eventsCifsLogonLogoff)
return o
}
// SetEventsCifsLogonLogoff adds the eventsCifsLogonLogoff to the audit collection get params
func (o *AuditCollectionGetParams) SetEventsCifsLogonLogoff(eventsCifsLogonLogoff *bool) {
o.EventsCifsLogonLogoff = eventsCifsLogonLogoff
}
// WithEventsFileOperations adds the eventsFileOperations to the audit collection get params
func (o *AuditCollectionGetParams) WithEventsFileOperations(eventsFileOperations *bool) *AuditCollectionGetParams {
o.SetEventsFileOperations(eventsFileOperations)
return o
}
// SetEventsFileOperations adds the eventsFileOperations to the audit collection get params
func (o *AuditCollectionGetParams) SetEventsFileOperations(eventsFileOperations *bool) {
o.EventsFileOperations = eventsFileOperations
}
// WithEventsFileShare adds the eventsFileShare to the audit collection get params
func (o *AuditCollectionGetParams) WithEventsFileShare(eventsFileShare *bool) *AuditCollectionGetParams {
o.SetEventsFileShare(eventsFileShare)
return o
}
// SetEventsFileShare adds the eventsFileShare to the audit collection get params
func (o *AuditCollectionGetParams) SetEventsFileShare(eventsFileShare *bool) {
o.EventsFileShare = eventsFileShare
}
// WithEventsSecurityGroup adds the eventsSecurityGroup to the audit collection get params
func (o *AuditCollectionGetParams) WithEventsSecurityGroup(eventsSecurityGroup *bool) *AuditCollectionGetParams {
o.SetEventsSecurityGroup(eventsSecurityGroup)
return o
}
// SetEventsSecurityGroup adds the eventsSecurityGroup to the audit collection get params
func (o *AuditCollectionGetParams) SetEventsSecurityGroup(eventsSecurityGroup *bool) {
o.EventsSecurityGroup = eventsSecurityGroup
}
// WithEventsUserAccount adds the eventsUserAccount to the audit collection get params
func (o *AuditCollectionGetParams) WithEventsUserAccount(eventsUserAccount *bool) *AuditCollectionGetParams {
o.SetEventsUserAccount(eventsUserAccount)
return o
}
// SetEventsUserAccount adds the eventsUserAccount to the audit collection get params
func (o *AuditCollectionGetParams) SetEventsUserAccount(eventsUserAccount *bool) {
o.EventsUserAccount = eventsUserAccount
}
// WithFields adds the fields to the audit collection get params
func (o *AuditCollectionGetParams) WithFields(fields []string) *AuditCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the audit collection get params
func (o *AuditCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithGuarantee adds the guarantee to the audit collection get params
func (o *AuditCollectionGetParams) WithGuarantee(guarantee *bool) *AuditCollectionGetParams {
o.SetGuarantee(guarantee)
return o
}
// SetGuarantee adds the guarantee to the audit collection get params
func (o *AuditCollectionGetParams) SetGuarantee(guarantee *bool) {
o.Guarantee = guarantee
}
// WithLogFormat adds the logFormat to the audit collection get params
func (o *AuditCollectionGetParams) WithLogFormat(logFormat *string) *AuditCollectionGetParams {
o.SetLogFormat(logFormat)
return o
}
// SetLogFormat adds the logFormat to the audit collection get params
func (o *AuditCollectionGetParams) SetLogFormat(logFormat *string) {
o.LogFormat = logFormat
}
// WithLogRetentionCount adds the logRetentionCount to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRetentionCount(logRetentionCount *int64) *AuditCollectionGetParams {
o.SetLogRetentionCount(logRetentionCount)
return o
}
// SetLogRetentionCount adds the logRetentionCount to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRetentionCount(logRetentionCount *int64) {
o.LogRetentionCount = logRetentionCount
}
// WithLogRetentionDuration adds the logRetentionDuration to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRetentionDuration(logRetentionDuration *string) *AuditCollectionGetParams {
o.SetLogRetentionDuration(logRetentionDuration)
return o
}
// SetLogRetentionDuration adds the logRetentionDuration to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRetentionDuration(logRetentionDuration *string) {
o.LogRetentionDuration = logRetentionDuration
}
// WithLogRotationScheduleDays adds the logRotationScheduleDays to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRotationScheduleDays(logRotationScheduleDays *int64) *AuditCollectionGetParams {
o.SetLogRotationScheduleDays(logRotationScheduleDays)
return o
}
// SetLogRotationScheduleDays adds the logRotationScheduleDays to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRotationScheduleDays(logRotationScheduleDays *int64) {
o.LogRotationScheduleDays = logRotationScheduleDays
}
// WithLogRotationScheduleHours adds the logRotationScheduleHours to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRotationScheduleHours(logRotationScheduleHours *int64) *AuditCollectionGetParams {
o.SetLogRotationScheduleHours(logRotationScheduleHours)
return o
}
// SetLogRotationScheduleHours adds the logRotationScheduleHours to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRotationScheduleHours(logRotationScheduleHours *int64) {
o.LogRotationScheduleHours = logRotationScheduleHours
}
// WithLogRotationScheduleMinutes adds the logRotationScheduleMinutes to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRotationScheduleMinutes(logRotationScheduleMinutes *int64) *AuditCollectionGetParams {
o.SetLogRotationScheduleMinutes(logRotationScheduleMinutes)
return o
}
// SetLogRotationScheduleMinutes adds the logRotationScheduleMinutes to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRotationScheduleMinutes(logRotationScheduleMinutes *int64) {
o.LogRotationScheduleMinutes = logRotationScheduleMinutes
}
// WithLogRotationScheduleMonths adds the logRotationScheduleMonths to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRotationScheduleMonths(logRotationScheduleMonths *int64) *AuditCollectionGetParams {
o.SetLogRotationScheduleMonths(logRotationScheduleMonths)
return o
}
// SetLogRotationScheduleMonths adds the logRotationScheduleMonths to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRotationScheduleMonths(logRotationScheduleMonths *int64) {
o.LogRotationScheduleMonths = logRotationScheduleMonths
}
// WithLogRotationScheduleWeekdays adds the logRotationScheduleWeekdays to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRotationScheduleWeekdays(logRotationScheduleWeekdays *int64) *AuditCollectionGetParams {
o.SetLogRotationScheduleWeekdays(logRotationScheduleWeekdays)
return o
}
// SetLogRotationScheduleWeekdays adds the logRotationScheduleWeekdays to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRotationScheduleWeekdays(logRotationScheduleWeekdays *int64) {
o.LogRotationScheduleWeekdays = logRotationScheduleWeekdays
}
// WithLogRotationSize adds the logRotationSize to the audit collection get params
func (o *AuditCollectionGetParams) WithLogRotationSize(logRotationSize *int64) *AuditCollectionGetParams {
o.SetLogRotationSize(logRotationSize)
return o
}
// SetLogRotationSize adds the logRotationSize to the audit collection get params
func (o *AuditCollectionGetParams) SetLogRotationSize(logRotationSize *int64) {
o.LogRotationSize = logRotationSize
}
// WithLogPath adds the logPath to the audit collection get params
func (o *AuditCollectionGetParams) WithLogPath(logPath *string) *AuditCollectionGetParams {
o.SetLogPath(logPath)
return o
}
// SetLogPath adds the logPath to the audit collection get params
func (o *AuditCollectionGetParams) SetLogPath(logPath *string) {
o.LogPath = logPath
}
// WithMaxRecords adds the maxRecords to the audit collection get params
func (o *AuditCollectionGetParams) WithMaxRecords(maxRecords *int64) *AuditCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the audit collection get params
func (o *AuditCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the audit collection get params
func (o *AuditCollectionGetParams) WithOrderBy(orderBy []string) *AuditCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the audit collection get params
func (o *AuditCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the audit collection get params
func (o *AuditCollectionGetParams) WithReturnRecords(returnRecords *bool) *AuditCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the audit collection get params
func (o *AuditCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the audit collection get params
func (o *AuditCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *AuditCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the audit collection get params
func (o *AuditCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmName adds the svmName to the audit collection get params
func (o *AuditCollectionGetParams) WithSvmName(svmName *string) *AuditCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the audit collection get params
func (o *AuditCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the audit collection get params
func (o *AuditCollectionGetParams) WithSvmUUID(svmUUID *string) *AuditCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the audit collection get params
func (o *AuditCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *AuditCollectionGetParams) 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.EventsAuthorizationPolicy != nil {
// query param events.authorization_policy
var qrEventsAuthorizationPolicy bool
if o.EventsAuthorizationPolicy != nil {
qrEventsAuthorizationPolicy = *o.EventsAuthorizationPolicy
}
qEventsAuthorizationPolicy := swag.FormatBool(qrEventsAuthorizationPolicy)
if qEventsAuthorizationPolicy != "" {
if err := r.SetQueryParam("events.authorization_policy", qEventsAuthorizationPolicy); err != nil {
return err
}
}
}
if o.EventsCapStaging != nil {
// query param events.cap_staging
var qrEventsCapStaging bool
if o.EventsCapStaging != nil {
qrEventsCapStaging = *o.EventsCapStaging
}
qEventsCapStaging := swag.FormatBool(qrEventsCapStaging)
if qEventsCapStaging != "" {
if err := r.SetQueryParam("events.cap_staging", qEventsCapStaging); err != nil {
return err
}
}
}
if o.EventsCifsLogonLogoff != nil {
// query param events.cifs_logon_logoff
var qrEventsCifsLogonLogoff bool
if o.EventsCifsLogonLogoff != nil {
qrEventsCifsLogonLogoff = *o.EventsCifsLogonLogoff
}
qEventsCifsLogonLogoff := swag.FormatBool(qrEventsCifsLogonLogoff)
if qEventsCifsLogonLogoff != "" {
if err := r.SetQueryParam("events.cifs_logon_logoff", qEventsCifsLogonLogoff); err != nil {
return err
}
}
}
if o.EventsFileOperations != nil {
// query param events.file_operations
var qrEventsFileOperations bool
if o.EventsFileOperations != nil {
qrEventsFileOperations = *o.EventsFileOperations
}
qEventsFileOperations := swag.FormatBool(qrEventsFileOperations)
if qEventsFileOperations != "" {
if err := r.SetQueryParam("events.file_operations", qEventsFileOperations); err != nil {
return err
}
}
}
if o.EventsFileShare != nil {
// query param events.file_share
var qrEventsFileShare bool
if o.EventsFileShare != nil {
qrEventsFileShare = *o.EventsFileShare
}
qEventsFileShare := swag.FormatBool(qrEventsFileShare)
if qEventsFileShare != "" {
if err := r.SetQueryParam("events.file_share", qEventsFileShare); err != nil {
return err
}
}
}
if o.EventsSecurityGroup != nil {
// query param events.security_group
var qrEventsSecurityGroup bool
if o.EventsSecurityGroup != nil {
qrEventsSecurityGroup = *o.EventsSecurityGroup
}
qEventsSecurityGroup := swag.FormatBool(qrEventsSecurityGroup)
if qEventsSecurityGroup != "" {
if err := r.SetQueryParam("events.security_group", qEventsSecurityGroup); err != nil {
return err
}
}
}
if o.EventsUserAccount != nil {
// query param events.user_account
var qrEventsUserAccount bool
if o.EventsUserAccount != nil {
qrEventsUserAccount = *o.EventsUserAccount
}
qEventsUserAccount := swag.FormatBool(qrEventsUserAccount)
if qEventsUserAccount != "" {
if err := r.SetQueryParam("events.user_account", qEventsUserAccount); 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.Guarantee != nil {
// query param guarantee
var qrGuarantee bool
if o.Guarantee != nil {
qrGuarantee = *o.Guarantee
}
qGuarantee := swag.FormatBool(qrGuarantee)
if qGuarantee != "" {
if err := r.SetQueryParam("guarantee", qGuarantee); err != nil {
return err
}
}
}
if o.LogFormat != nil {
// query param log.format
var qrLogFormat string
if o.LogFormat != nil {
qrLogFormat = *o.LogFormat
}
qLogFormat := qrLogFormat
if qLogFormat != "" {
if err := r.SetQueryParam("log.format", qLogFormat); err != nil {
return err
}
}
}
if o.LogRetentionCount != nil {
// query param log.retention.count
var qrLogRetentionCount int64
if o.LogRetentionCount != nil {
qrLogRetentionCount = *o.LogRetentionCount
}
qLogRetentionCount := swag.FormatInt64(qrLogRetentionCount)
if qLogRetentionCount != "" {
if err := r.SetQueryParam("log.retention.count", qLogRetentionCount); err != nil {
return err
}
}
}
if o.LogRetentionDuration != nil {
// query param log.retention.duration
var qrLogRetentionDuration string
if o.LogRetentionDuration != nil {
qrLogRetentionDuration = *o.LogRetentionDuration
}
qLogRetentionDuration := qrLogRetentionDuration
if qLogRetentionDuration != "" {
if err := r.SetQueryParam("log.retention.duration", qLogRetentionDuration); err != nil {
return err
}
}
}
if o.LogRotationScheduleDays != nil {
// query param log.rotation.schedule.days
var qrLogRotationScheduleDays int64
if o.LogRotationScheduleDays != nil {
qrLogRotationScheduleDays = *o.LogRotationScheduleDays
}
qLogRotationScheduleDays := swag.FormatInt64(qrLogRotationScheduleDays)
if qLogRotationScheduleDays != "" {
if err := r.SetQueryParam("log.rotation.schedule.days", qLogRotationScheduleDays); err != nil {
return err
}
}
}
if o.LogRotationScheduleHours != nil {
// query param log.rotation.schedule.hours
var qrLogRotationScheduleHours int64
if o.LogRotationScheduleHours != nil {
qrLogRotationScheduleHours = *o.LogRotationScheduleHours
}
qLogRotationScheduleHours := swag.FormatInt64(qrLogRotationScheduleHours)
if qLogRotationScheduleHours != "" {
if err := r.SetQueryParam("log.rotation.schedule.hours", qLogRotationScheduleHours); err != nil {
return err
}
}
}
if o.LogRotationScheduleMinutes != nil {
// query param log.rotation.schedule.minutes
var qrLogRotationScheduleMinutes int64
if o.LogRotationScheduleMinutes != nil {
qrLogRotationScheduleMinutes = *o.LogRotationScheduleMinutes
}
qLogRotationScheduleMinutes := swag.FormatInt64(qrLogRotationScheduleMinutes)
if qLogRotationScheduleMinutes != "" {
if err := r.SetQueryParam("log.rotation.schedule.minutes", qLogRotationScheduleMinutes); err != nil {
return err
}
}
}
if o.LogRotationScheduleMonths != nil {
// query param log.rotation.schedule.months
var qrLogRotationScheduleMonths int64
if o.LogRotationScheduleMonths != nil {
qrLogRotationScheduleMonths = *o.LogRotationScheduleMonths
}
qLogRotationScheduleMonths := swag.FormatInt64(qrLogRotationScheduleMonths)
if qLogRotationScheduleMonths != "" {
if err := r.SetQueryParam("log.rotation.schedule.months", qLogRotationScheduleMonths); err != nil {
return err
}
}
}
if o.LogRotationScheduleWeekdays != nil {
// query param log.rotation.schedule.weekdays
var qrLogRotationScheduleWeekdays int64
if o.LogRotationScheduleWeekdays != nil {
qrLogRotationScheduleWeekdays = *o.LogRotationScheduleWeekdays
}
qLogRotationScheduleWeekdays := swag.FormatInt64(qrLogRotationScheduleWeekdays)
if qLogRotationScheduleWeekdays != "" {
if err := r.SetQueryParam("log.rotation.schedule.weekdays", qLogRotationScheduleWeekdays); err != nil {
return err
}
}
}
if o.LogRotationSize != nil {
// query param log.rotation.size
var qrLogRotationSize int64
if o.LogRotationSize != nil {
qrLogRotationSize = *o.LogRotationSize
}
qLogRotationSize := swag.FormatInt64(qrLogRotationSize)
if qLogRotationSize != "" {
if err := r.SetQueryParam("log.rotation.size", qLogRotationSize); err != nil {
return err
}
}
}
if o.LogPath != nil {
// query param log_path
var qrLogPath string
if o.LogPath != nil {
qrLogPath = *o.LogPath
}
qLogPath := qrLogPath
if qLogPath != "" {
if err := r.SetQueryParam("log_path", qLogPath); 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.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
}
// bindParamAuditCollectionGet binds the parameter fields
func (o *AuditCollectionGetParams) 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
}
// bindParamAuditCollectionGet binds the parameter order_by
func (o *AuditCollectionGetParams) 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/active_directory_preferred_dc_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/active_directory_preferred_dc_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"
)
// ActiveDirectoryPreferredDcCollectionGetReader is a Reader for the ActiveDirectoryPreferredDcCollectionGet structure.
type ActiveDirectoryPreferredDcCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ActiveDirectoryPreferredDcCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewActiveDirectoryPreferredDcCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewActiveDirectoryPreferredDcCollectionGetDefault(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
}
}
// NewActiveDirectoryPreferredDcCollectionGetOK creates a ActiveDirectoryPreferredDcCollectionGetOK with default headers values
func NewActiveDirectoryPreferredDcCollectionGetOK() *ActiveDirectoryPreferredDcCollectionGetOK {
return &ActiveDirectoryPreferredDcCollectionGetOK{}
}
/*
ActiveDirectoryPreferredDcCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type ActiveDirectoryPreferredDcCollectionGetOK struct {
Payload *models.ActiveDirectoryPreferredDcResponse
}
// IsSuccess returns true when this active directory preferred dc collection get o k response has a 2xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this active directory preferred dc collection get o k response has a 3xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this active directory preferred dc collection get o k response has a 4xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this active directory preferred dc collection get o k response has a 5xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this active directory preferred dc collection get o k response a status code equal to that given
func (o *ActiveDirectoryPreferredDcCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *ActiveDirectoryPreferredDcCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/active-directory/{svm.uuid}/preferred-domain-controllers][%d] activeDirectoryPreferredDcCollectionGetOK %+v", 200, o.Payload)
}
func (o *ActiveDirectoryPreferredDcCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/active-directory/{svm.uuid}/preferred-domain-controllers][%d] activeDirectoryPreferredDcCollectionGetOK %+v", 200, o.Payload)
}
func (o *ActiveDirectoryPreferredDcCollectionGetOK) GetPayload() *models.ActiveDirectoryPreferredDcResponse {
return o.Payload
}
func (o *ActiveDirectoryPreferredDcCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ActiveDirectoryPreferredDcResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewActiveDirectoryPreferredDcCollectionGetDefault creates a ActiveDirectoryPreferredDcCollectionGetDefault with default headers values
func NewActiveDirectoryPreferredDcCollectionGetDefault(code int) *ActiveDirectoryPreferredDcCollectionGetDefault {
return &ActiveDirectoryPreferredDcCollectionGetDefault{
_statusCode: code,
}
}
/*
ActiveDirectoryPreferredDcCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type ActiveDirectoryPreferredDcCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the active directory preferred dc collection get default response
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this active directory preferred dc collection get default response has a 2xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this active directory preferred dc collection get default response has a 3xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this active directory preferred dc collection get default response has a 4xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this active directory preferred dc collection get default response has a 5xx status code
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this active directory preferred dc collection get default response a status code equal to that given
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/active-directory/{svm.uuid}/preferred-domain-controllers][%d] active_directory_preferred_dc_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/active-directory/{svm.uuid}/preferred-domain-controllers][%d] active_directory_preferred_dc_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ActiveDirectoryPreferredDcCollectionGetDefault) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_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"
)
// NewLocalCifsGroupGetParams creates a new LocalCifsGroupGetParams 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 NewLocalCifsGroupGetParams() *LocalCifsGroupGetParams {
return &LocalCifsGroupGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewLocalCifsGroupGetParamsWithTimeout creates a new LocalCifsGroupGetParams object
// with the ability to set a timeout on a request.
func NewLocalCifsGroupGetParamsWithTimeout(timeout time.Duration) *LocalCifsGroupGetParams {
return &LocalCifsGroupGetParams{
timeout: timeout,
}
}
// NewLocalCifsGroupGetParamsWithContext creates a new LocalCifsGroupGetParams object
// with the ability to set a context for a request.
func NewLocalCifsGroupGetParamsWithContext(ctx context.Context) *LocalCifsGroupGetParams {
return &LocalCifsGroupGetParams{
Context: ctx,
}
}
// NewLocalCifsGroupGetParamsWithHTTPClient creates a new LocalCifsGroupGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewLocalCifsGroupGetParamsWithHTTPClient(client *http.Client) *LocalCifsGroupGetParams {
return &LocalCifsGroupGetParams{
HTTPClient: client,
}
}
/*
LocalCifsGroupGetParams contains all the parameters to send to the API endpoint
for the local cifs group get operation.
Typically these are written to a http.Request.
*/
type LocalCifsGroupGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Sid.
Local group SID
*/
Sid 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 local cifs group get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupGetParams) WithDefaults() *LocalCifsGroupGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the local cifs group get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the local cifs group get params
func (o *LocalCifsGroupGetParams) WithTimeout(timeout time.Duration) *LocalCifsGroupGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the local cifs group get params
func (o *LocalCifsGroupGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the local cifs group get params
func (o *LocalCifsGroupGetParams) WithContext(ctx context.Context) *LocalCifsGroupGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the local cifs group get params
func (o *LocalCifsGroupGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the local cifs group get params
func (o *LocalCifsGroupGetParams) WithHTTPClient(client *http.Client) *LocalCifsGroupGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the local cifs group get params
func (o *LocalCifsGroupGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the local cifs group get params
func (o *LocalCifsGroupGetParams) WithFields(fields []string) *LocalCifsGroupGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the local cifs group get params
func (o *LocalCifsGroupGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithSid adds the sid to the local cifs group get params
func (o *LocalCifsGroupGetParams) WithSid(sid string) *LocalCifsGroupGetParams {
o.SetSid(sid)
return o
}
// SetSid adds the sid to the local cifs group get params
func (o *LocalCifsGroupGetParams) SetSid(sid string) {
o.Sid = sid
}
// WithSvmUUID adds the svmUUID to the local cifs group get params
func (o *LocalCifsGroupGetParams) WithSvmUUID(svmUUID string) *LocalCifsGroupGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the local cifs group get params
func (o *LocalCifsGroupGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *LocalCifsGroupGetParams) 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 sid
if err := r.SetPathParam("sid", o.Sid); 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
}
// bindParamLocalCifsGroupGet binds the parameter fields
func (o *LocalCifsGroupGetParams) 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_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_policy_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"
)
// ExportPolicyDeleteReader is a Reader for the ExportPolicyDelete structure.
type ExportPolicyDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ExportPolicyDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewExportPolicyDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewExportPolicyDeleteDefault(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
}
}
// NewExportPolicyDeleteOK creates a ExportPolicyDeleteOK with default headers values
func NewExportPolicyDeleteOK() *ExportPolicyDeleteOK {
return &ExportPolicyDeleteOK{}
}
/*
ExportPolicyDeleteOK describes a response with status code 200, with default header values.
OK
*/
type ExportPolicyDeleteOK struct {
}
// IsSuccess returns true when this export policy delete o k response has a 2xx status code
func (o *ExportPolicyDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this export policy delete o k response has a 3xx status code
func (o *ExportPolicyDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this export policy delete o k response has a 4xx status code
func (o *ExportPolicyDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this export policy delete o k response has a 5xx status code
func (o *ExportPolicyDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this export policy delete o k response a status code equal to that given
func (o *ExportPolicyDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *ExportPolicyDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/nfs/export-policies/{id}][%d] exportPolicyDeleteOK ", 200)
}
func (o *ExportPolicyDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/nfs/export-policies/{id}][%d] exportPolicyDeleteOK ", 200)
}
func (o *ExportPolicyDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewExportPolicyDeleteDefault creates a ExportPolicyDeleteDefault with default headers values
func NewExportPolicyDeleteDefault(code int) *ExportPolicyDeleteDefault {
return &ExportPolicyDeleteDefault{
_statusCode: code,
}
}
/*
ExportPolicyDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 1703944 | Failed to delete rule |
| 1703945 | Ruleset is in use by a volume. It cannot be deleted until all volumes that refer to it are first deleted|
| 1703946 | Cannot determine if the ruleset is in use by a volume. It cannot be deleted until all volumes that refer to it are first deleted|
| 1703947 | Cannot delete default ruleset. This ruleset will be deleted when the owning Vserver is deleted|
| 1703952 | Invalid ruleset name provided. No spaces are allowed in a ruleset name|
| 1703953 | This ruleset is in use by a qtree export policy. It cannot be deleted until all qtree policies that refer to it are first deleted|
*/
type ExportPolicyDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the export policy delete default response
func (o *ExportPolicyDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this export policy delete default response has a 2xx status code
func (o *ExportPolicyDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this export policy delete default response has a 3xx status code
func (o *ExportPolicyDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this export policy delete default response has a 4xx status code
func (o *ExportPolicyDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this export policy delete default response has a 5xx status code
func (o *ExportPolicyDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this export policy delete default response a status code equal to that given
func (o *ExportPolicyDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ExportPolicyDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/nfs/export-policies/{id}][%d] export_policy_delete default %+v", o._statusCode, o.Payload)
}
func (o *ExportPolicyDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/nfs/export-policies/{id}][%d] export_policy_delete default %+v", o._statusCode, o.Payload)
}
func (o *ExportPolicyDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ExportPolicyDeleteDefault) 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_homedir_search_path_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_homedir_search_path_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"
)
// NewCifsHomedirSearchPathGetParams creates a new CifsHomedirSearchPathGetParams 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 NewCifsHomedirSearchPathGetParams() *CifsHomedirSearchPathGetParams {
return &CifsHomedirSearchPathGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsHomedirSearchPathGetParamsWithTimeout creates a new CifsHomedirSearchPathGetParams object
// with the ability to set a timeout on a request.
func NewCifsHomedirSearchPathGetParamsWithTimeout(timeout time.Duration) *CifsHomedirSearchPathGetParams {
return &CifsHomedirSearchPathGetParams{
timeout: timeout,
}
}
// NewCifsHomedirSearchPathGetParamsWithContext creates a new CifsHomedirSearchPathGetParams object
// with the ability to set a context for a request.
func NewCifsHomedirSearchPathGetParamsWithContext(ctx context.Context) *CifsHomedirSearchPathGetParams {
return &CifsHomedirSearchPathGetParams{
Context: ctx,
}
}
// NewCifsHomedirSearchPathGetParamsWithHTTPClient creates a new CifsHomedirSearchPathGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsHomedirSearchPathGetParamsWithHTTPClient(client *http.Client) *CifsHomedirSearchPathGetParams {
return &CifsHomedirSearchPathGetParams{
HTTPClient: client,
}
}
/*
CifsHomedirSearchPathGetParams contains all the parameters to send to the API endpoint
for the cifs homedir search path get operation.
Typically these are written to a http.Request.
*/
type CifsHomedirSearchPathGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Index.
Home directory search path index
*/
Index int64
/* 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 homedir search path get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsHomedirSearchPathGetParams) WithDefaults() *CifsHomedirSearchPathGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs homedir search path get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsHomedirSearchPathGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) WithTimeout(timeout time.Duration) *CifsHomedirSearchPathGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) WithContext(ctx context.Context) *CifsHomedirSearchPathGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) WithHTTPClient(client *http.Client) *CifsHomedirSearchPathGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) WithFields(fields []string) *CifsHomedirSearchPathGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIndex adds the index to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) WithIndex(index int64) *CifsHomedirSearchPathGetParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) SetIndex(index int64) {
o.Index = index
}
// WithSvmUUID adds the svmUUID to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) WithSvmUUID(svmUUID string) *CifsHomedirSearchPathGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs homedir search path get params
func (o *CifsHomedirSearchPathGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsHomedirSearchPathGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param index
if err := r.SetPathParam("index", swag.FormatInt64(o.Index)); 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
}
// bindParamCifsHomedirSearchPathGet binds the parameter fields
func (o *CifsHomedirSearchPathGetParams) 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/vscan_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_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"
)
// VscanGetReader is a Reader for the VscanGet structure.
type VscanGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *VscanGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewVscanGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewVscanGetDefault(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
}
}
// NewVscanGetOK creates a VscanGetOK with default headers values
func NewVscanGetOK() *VscanGetOK {
return &VscanGetOK{}
}
/*
VscanGetOK describes a response with status code 200, with default header values.
OK
*/
type VscanGetOK struct {
Payload *models.Vscan
}
// IsSuccess returns true when this vscan get o k response has a 2xx status code
func (o *VscanGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this vscan get o k response has a 3xx status code
func (o *VscanGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this vscan get o k response has a 4xx status code
func (o *VscanGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this vscan get o k response has a 5xx status code
func (o *VscanGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this vscan get o k response a status code equal to that given
func (o *VscanGetOK) IsCode(code int) bool {
return code == 200
}
func (o *VscanGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}][%d] vscanGetOK %+v", 200, o.Payload)
}
func (o *VscanGetOK) String() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}][%d] vscanGetOK %+v", 200, o.Payload)
}
func (o *VscanGetOK) GetPayload() *models.Vscan {
return o.Payload
}
func (o *VscanGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.Vscan)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewVscanGetDefault creates a VscanGetDefault with default headers values
func NewVscanGetDefault(code int) *VscanGetDefault {
return &VscanGetDefault{
_statusCode: code,
}
}
/*
VscanGetDefault describes a response with status code -1, with default header values.
Error
*/
type VscanGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the vscan get default response
func (o *VscanGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this vscan get default response has a 2xx status code
func (o *VscanGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this vscan get default response has a 3xx status code
func (o *VscanGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this vscan get default response has a 4xx status code
func (o *VscanGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this vscan get default response has a 5xx status code
func (o *VscanGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this vscan get default response a status code equal to that given
func (o *VscanGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *VscanGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}][%d] vscan_get default %+v", o._statusCode, o.Payload)
}
func (o *VscanGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}][%d] vscan_get default %+v", o._statusCode, o.Payload)
}
func (o *VscanGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *VscanGetDefault) 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_share_acl_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_acl_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"
)
// NewCifsShareACLGetParams creates a new CifsShareACLGetParams 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 NewCifsShareACLGetParams() *CifsShareACLGetParams {
return &CifsShareACLGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsShareACLGetParamsWithTimeout creates a new CifsShareACLGetParams object
// with the ability to set a timeout on a request.
func NewCifsShareACLGetParamsWithTimeout(timeout time.Duration) *CifsShareACLGetParams {
return &CifsShareACLGetParams{
timeout: timeout,
}
}
// NewCifsShareACLGetParamsWithContext creates a new CifsShareACLGetParams object
// with the ability to set a context for a request.
func NewCifsShareACLGetParamsWithContext(ctx context.Context) *CifsShareACLGetParams {
return &CifsShareACLGetParams{
Context: ctx,
}
}
// NewCifsShareACLGetParamsWithHTTPClient creates a new CifsShareACLGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsShareACLGetParamsWithHTTPClient(client *http.Client) *CifsShareACLGetParams {
return &CifsShareACLGetParams{
HTTPClient: client,
}
}
/*
CifsShareACLGetParams contains all the parameters to send to the API endpoint
for the cifs share acl get operation.
Typically these are written to a http.Request.
*/
type CifsShareACLGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* 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 get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareACLGetParams) WithDefaults() *CifsShareACLGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs share acl get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareACLGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs share acl get params
func (o *CifsShareACLGetParams) WithTimeout(timeout time.Duration) *CifsShareACLGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs share acl get params
func (o *CifsShareACLGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs share acl get params
func (o *CifsShareACLGetParams) WithContext(ctx context.Context) *CifsShareACLGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs share acl get params
func (o *CifsShareACLGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs share acl get params
func (o *CifsShareACLGetParams) WithHTTPClient(client *http.Client) *CifsShareACLGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs share acl get params
func (o *CifsShareACLGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the cifs share acl get params
func (o *CifsShareACLGetParams) WithFields(fields []string) *CifsShareACLGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs share acl get params
func (o *CifsShareACLGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithShare adds the share to the cifs share acl get params
func (o *CifsShareACLGetParams) WithShare(share string) *CifsShareACLGetParams {
o.SetShare(share)
return o
}
// SetShare adds the share to the cifs share acl get params
func (o *CifsShareACLGetParams) SetShare(share string) {
o.Share = share
}
// WithSvmUUID adds the svmUUID to the cifs share acl get params
func (o *CifsShareACLGetParams) WithSvmUUID(svmUUID string) *CifsShareACLGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs share acl get params
func (o *CifsShareACLGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithType adds the typeVar to the cifs share acl get params
func (o *CifsShareACLGetParams) WithType(typeVar string) *CifsShareACLGetParams {
o.SetType(typeVar)
return o
}
// SetType adds the type to the cifs share acl get params
func (o *CifsShareACLGetParams) SetType(typeVar string) {
o.Type = typeVar
}
// WithUserOrGroup adds the userOrGroup to the cifs share acl get params
func (o *CifsShareACLGetParams) WithUserOrGroup(userOrGroup string) *CifsShareACLGetParams {
o.SetUserOrGroup(userOrGroup)
return o
}
// SetUserOrGroup adds the userOrGroup to the cifs share acl get params
func (o *CifsShareACLGetParams) SetUserOrGroup(userOrGroup string) {
o.UserOrGroup = userOrGroup
}
// WriteToRequest writes these params to a swagger request
func (o *CifsShareACLGetParams) 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 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
}
// bindParamCifsShareACLGet binds the parameter fields
func (o *CifsShareACLGetParams) 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/cifs_symlink_mapping_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_symlink_mapping_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"
)
// CifsSymlinkMappingCollectionGetReader is a Reader for the CifsSymlinkMappingCollectionGet structure.
type CifsSymlinkMappingCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsSymlinkMappingCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewCifsSymlinkMappingCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsSymlinkMappingCollectionGetDefault(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
}
}
// NewCifsSymlinkMappingCollectionGetOK creates a CifsSymlinkMappingCollectionGetOK with default headers values
func NewCifsSymlinkMappingCollectionGetOK() *CifsSymlinkMappingCollectionGetOK {
return &CifsSymlinkMappingCollectionGetOK{}
}
/*
CifsSymlinkMappingCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type CifsSymlinkMappingCollectionGetOK struct {
Payload *models.CifsSymlinkMappingResponse
}
// IsSuccess returns true when this cifs symlink mapping collection get o k response has a 2xx status code
func (o *CifsSymlinkMappingCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs symlink mapping collection get o k response has a 3xx status code
func (o *CifsSymlinkMappingCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs symlink mapping collection get o k response has a 4xx status code
func (o *CifsSymlinkMappingCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs symlink mapping collection get o k response has a 5xx status code
func (o *CifsSymlinkMappingCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this cifs symlink mapping collection get o k response a status code equal to that given
func (o *CifsSymlinkMappingCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *CifsSymlinkMappingCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/unix-symlink-mapping][%d] cifsSymlinkMappingCollectionGetOK %+v", 200, o.Payload)
}
func (o *CifsSymlinkMappingCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/unix-symlink-mapping][%d] cifsSymlinkMappingCollectionGetOK %+v", 200, o.Payload)
}
func (o *CifsSymlinkMappingCollectionGetOK) GetPayload() *models.CifsSymlinkMappingResponse {
return o.Payload
}
func (o *CifsSymlinkMappingCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.CifsSymlinkMappingResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCifsSymlinkMappingCollectionGetDefault creates a CifsSymlinkMappingCollectionGetDefault with default headers values
func NewCifsSymlinkMappingCollectionGetDefault(code int) *CifsSymlinkMappingCollectionGetDefault {
return &CifsSymlinkMappingCollectionGetDefault{
_statusCode: code,
}
}
/*
CifsSymlinkMappingCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type CifsSymlinkMappingCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs symlink mapping collection get default response
func (o *CifsSymlinkMappingCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs symlink mapping collection get default response has a 2xx status code
func (o *CifsSymlinkMappingCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs symlink mapping collection get default response has a 3xx status code
func (o *CifsSymlinkMappingCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs symlink mapping collection get default response has a 4xx status code
func (o *CifsSymlinkMappingCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs symlink mapping collection get default response has a 5xx status code
func (o *CifsSymlinkMappingCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs symlink mapping collection get default response a status code equal to that given
func (o *CifsSymlinkMappingCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsSymlinkMappingCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/unix-symlink-mapping][%d] cifs_symlink_mapping_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *CifsSymlinkMappingCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/unix-symlink-mapping][%d] cifs_symlink_mapping_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *CifsSymlinkMappingCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsSymlinkMappingCollectionGetDefault) 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/effective_permission_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/effective_permission_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"
)
// EffectivePermissionGetReader is a Reader for the EffectivePermissionGet structure.
type EffectivePermissionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *EffectivePermissionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewEffectivePermissionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewEffectivePermissionGetDefault(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
}
}
// NewEffectivePermissionGetOK creates a EffectivePermissionGetOK with default headers values
func NewEffectivePermissionGetOK() *EffectivePermissionGetOK {
return &EffectivePermissionGetOK{}
}
/*
EffectivePermissionGetOK describes a response with status code 200, with default header values.
OK
*/
type EffectivePermissionGetOK struct {
Payload *models.EffectivePermission
}
// IsSuccess returns true when this effective permission get o k response has a 2xx status code
func (o *EffectivePermissionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this effective permission get o k response has a 3xx status code
func (o *EffectivePermissionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this effective permission get o k response has a 4xx status code
func (o *EffectivePermissionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this effective permission get o k response has a 5xx status code
func (o *EffectivePermissionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this effective permission get o k response a status code equal to that given
func (o *EffectivePermissionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *EffectivePermissionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/file-security/effective-permissions/{svm.uuid}/{path}][%d] effectivePermissionGetOK %+v", 200, o.Payload)
}
func (o *EffectivePermissionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/file-security/effective-permissions/{svm.uuid}/{path}][%d] effectivePermissionGetOK %+v", 200, o.Payload)
}
func (o *EffectivePermissionGetOK) GetPayload() *models.EffectivePermission {
return o.Payload
}
func (o *EffectivePermissionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.EffectivePermission)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewEffectivePermissionGetDefault creates a EffectivePermissionGetDefault with default headers values
func NewEffectivePermissionGetDefault(code int) *EffectivePermissionGetDefault {
return &EffectivePermissionGetDefault{
_statusCode: code,
}
}
/*
EffectivePermissionGetDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 655865 | The specified path cannot be used, if the file does not exist.|
*/
type EffectivePermissionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the effective permission get default response
func (o *EffectivePermissionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this effective permission get default response has a 2xx status code
func (o *EffectivePermissionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this effective permission get default response has a 3xx status code
func (o *EffectivePermissionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this effective permission get default response has a 4xx status code
func (o *EffectivePermissionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this effective permission get default response has a 5xx status code
func (o *EffectivePermissionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this effective permission get default response a status code equal to that given
func (o *EffectivePermissionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *EffectivePermissionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/file-security/effective-permissions/{svm.uuid}/{path}][%d] effective_permission_get default %+v", o._statusCode, o.Payload)
}
func (o *EffectivePermissionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/file-security/effective-permissions/{svm.uuid}/{path}][%d] effective_permission_get default %+v", o._statusCode, o.Payload)
}
func (o *EffectivePermissionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *EffectivePermissionGetDefault) 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/active_directory_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/active_directory_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"
)
// ActiveDirectoryCollectionGetReader is a Reader for the ActiveDirectoryCollectionGet structure.
type ActiveDirectoryCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ActiveDirectoryCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewActiveDirectoryCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewActiveDirectoryCollectionGetDefault(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
}
}
// NewActiveDirectoryCollectionGetOK creates a ActiveDirectoryCollectionGetOK with default headers values
func NewActiveDirectoryCollectionGetOK() *ActiveDirectoryCollectionGetOK {
return &ActiveDirectoryCollectionGetOK{}
}
/*
ActiveDirectoryCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type ActiveDirectoryCollectionGetOK struct {
Payload *models.ActiveDirectoryResponse
}
// IsSuccess returns true when this active directory collection get o k response has a 2xx status code
func (o *ActiveDirectoryCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this active directory collection get o k response has a 3xx status code
func (o *ActiveDirectoryCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this active directory collection get o k response has a 4xx status code
func (o *ActiveDirectoryCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this active directory collection get o k response has a 5xx status code
func (o *ActiveDirectoryCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this active directory collection get o k response a status code equal to that given
func (o *ActiveDirectoryCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *ActiveDirectoryCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/active-directory][%d] activeDirectoryCollectionGetOK %+v", 200, o.Payload)
}
func (o *ActiveDirectoryCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/active-directory][%d] activeDirectoryCollectionGetOK %+v", 200, o.Payload)
}
func (o *ActiveDirectoryCollectionGetOK) GetPayload() *models.ActiveDirectoryResponse {
return o.Payload
}
func (o *ActiveDirectoryCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ActiveDirectoryResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewActiveDirectoryCollectionGetDefault creates a ActiveDirectoryCollectionGetDefault with default headers values
func NewActiveDirectoryCollectionGetDefault(code int) *ActiveDirectoryCollectionGetDefault {
return &ActiveDirectoryCollectionGetDefault{
_statusCode: code,
}
}
/*
ActiveDirectoryCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type ActiveDirectoryCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the active directory collection get default response
func (o *ActiveDirectoryCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this active directory collection get default response has a 2xx status code
func (o *ActiveDirectoryCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this active directory collection get default response has a 3xx status code
func (o *ActiveDirectoryCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this active directory collection get default response has a 4xx status code
func (o *ActiveDirectoryCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this active directory collection get default response has a 5xx status code
func (o *ActiveDirectoryCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this active directory collection get default response a status code equal to that given
func (o *ActiveDirectoryCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ActiveDirectoryCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/active-directory][%d] active_directory_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *ActiveDirectoryCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/active-directory][%d] active_directory_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *ActiveDirectoryCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ActiveDirectoryCollectionGetDefault) 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_on_demand_policy_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_on_demand_policy_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"
)
// VscanOnDemandPolicyCollectionGetReader is a Reader for the VscanOnDemandPolicyCollectionGet structure.
type VscanOnDemandPolicyCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *VscanOnDemandPolicyCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewVscanOnDemandPolicyCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewVscanOnDemandPolicyCollectionGetDefault(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
}
}
// NewVscanOnDemandPolicyCollectionGetOK creates a VscanOnDemandPolicyCollectionGetOK with default headers values
func NewVscanOnDemandPolicyCollectionGetOK() *VscanOnDemandPolicyCollectionGetOK {
return &VscanOnDemandPolicyCollectionGetOK{}
}
/*
VscanOnDemandPolicyCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type VscanOnDemandPolicyCollectionGetOK struct {
Payload *models.VscanOnDemandResponse
}
// IsSuccess returns true when this vscan on demand policy collection get o k response has a 2xx status code
func (o *VscanOnDemandPolicyCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this vscan on demand policy collection get o k response has a 3xx status code
func (o *VscanOnDemandPolicyCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this vscan on demand policy collection get o k response has a 4xx status code
func (o *VscanOnDemandPolicyCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this vscan on demand policy collection get o k response has a 5xx status code
func (o *VscanOnDemandPolicyCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this vscan on demand policy collection get o k response a status code equal to that given
func (o *VscanOnDemandPolicyCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *VscanOnDemandPolicyCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-demand-policies][%d] vscanOnDemandPolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *VscanOnDemandPolicyCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-demand-policies][%d] vscanOnDemandPolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *VscanOnDemandPolicyCollectionGetOK) GetPayload() *models.VscanOnDemandResponse {
return o.Payload
}
func (o *VscanOnDemandPolicyCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.VscanOnDemandResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewVscanOnDemandPolicyCollectionGetDefault creates a VscanOnDemandPolicyCollectionGetDefault with default headers values
func NewVscanOnDemandPolicyCollectionGetDefault(code int) *VscanOnDemandPolicyCollectionGetDefault {
return &VscanOnDemandPolicyCollectionGetDefault{
_statusCode: code,
}
}
/*
VscanOnDemandPolicyCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type VscanOnDemandPolicyCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the vscan on demand policy collection get default response
func (o *VscanOnDemandPolicyCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this vscan on demand policy collection get default response has a 2xx status code
func (o *VscanOnDemandPolicyCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this vscan on demand policy collection get default response has a 3xx status code
func (o *VscanOnDemandPolicyCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this vscan on demand policy collection get default response has a 4xx status code
func (o *VscanOnDemandPolicyCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this vscan on demand policy collection get default response has a 5xx status code
func (o *VscanOnDemandPolicyCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this vscan on demand policy collection get default response a status code equal to that given
func (o *VscanOnDemandPolicyCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *VscanOnDemandPolicyCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-demand-policies][%d] vscan_on_demand_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *VscanOnDemandPolicyCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-demand-policies][%d] vscan_on_demand_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *VscanOnDemandPolicyCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *VscanOnDemandPolicyCollectionGetDefault) 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/group_policy_object_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/group_policy_object_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"
)
// GroupPolicyObjectCollectionGetReader is a Reader for the GroupPolicyObjectCollectionGet structure.
type GroupPolicyObjectCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GroupPolicyObjectCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGroupPolicyObjectCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewGroupPolicyObjectCollectionGetDefault(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
}
}
// NewGroupPolicyObjectCollectionGetOK creates a GroupPolicyObjectCollectionGetOK with default headers values
func NewGroupPolicyObjectCollectionGetOK() *GroupPolicyObjectCollectionGetOK {
return &GroupPolicyObjectCollectionGetOK{}
}
/*
GroupPolicyObjectCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type GroupPolicyObjectCollectionGetOK struct {
Payload *models.GroupPolicyObjectResponse
}
// IsSuccess returns true when this group policy object collection get o k response has a 2xx status code
func (o *GroupPolicyObjectCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this group policy object collection get o k response has a 3xx status code
func (o *GroupPolicyObjectCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this group policy object collection get o k response has a 4xx status code
func (o *GroupPolicyObjectCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this group policy object collection get o k response has a 5xx status code
func (o *GroupPolicyObjectCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this group policy object collection get o k response a status code equal to that given
func (o *GroupPolicyObjectCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *GroupPolicyObjectCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/objects][%d] groupPolicyObjectCollectionGetOK %+v", 200, o.Payload)
}
func (o *GroupPolicyObjectCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/objects][%d] groupPolicyObjectCollectionGetOK %+v", 200, o.Payload)
}
func (o *GroupPolicyObjectCollectionGetOK) GetPayload() *models.GroupPolicyObjectResponse {
return o.Payload
}
func (o *GroupPolicyObjectCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.GroupPolicyObjectResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewGroupPolicyObjectCollectionGetDefault creates a GroupPolicyObjectCollectionGetDefault with default headers values
func NewGroupPolicyObjectCollectionGetDefault(code int) *GroupPolicyObjectCollectionGetDefault {
return &GroupPolicyObjectCollectionGetDefault{
_statusCode: code,
}
}
/*
GroupPolicyObjectCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type GroupPolicyObjectCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the group policy object collection get default response
func (o *GroupPolicyObjectCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this group policy object collection get default response has a 2xx status code
func (o *GroupPolicyObjectCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this group policy object collection get default response has a 3xx status code
func (o *GroupPolicyObjectCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this group policy object collection get default response has a 4xx status code
func (o *GroupPolicyObjectCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this group policy object collection get default response has a 5xx status code
func (o *GroupPolicyObjectCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this group policy object collection get default response a status code equal to that given
func (o *GroupPolicyObjectCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *GroupPolicyObjectCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/objects][%d] group_policy_object_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GroupPolicyObjectCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/objects][%d] group_policy_object_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GroupPolicyObjectCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *GroupPolicyObjectCollectionGetDefault) 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_bulk_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_members_bulk_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"
)
// NewLocalCifsGroupMembersBulkDeleteParams creates a new LocalCifsGroupMembersBulkDeleteParams 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 NewLocalCifsGroupMembersBulkDeleteParams() *LocalCifsGroupMembersBulkDeleteParams {
return &LocalCifsGroupMembersBulkDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewLocalCifsGroupMembersBulkDeleteParamsWithTimeout creates a new LocalCifsGroupMembersBulkDeleteParams object
// with the ability to set a timeout on a request.
func NewLocalCifsGroupMembersBulkDeleteParamsWithTimeout(timeout time.Duration) *LocalCifsGroupMembersBulkDeleteParams {
return &LocalCifsGroupMembersBulkDeleteParams{
timeout: timeout,
}
}
// NewLocalCifsGroupMembersBulkDeleteParamsWithContext creates a new LocalCifsGroupMembersBulkDeleteParams object
// with the ability to set a context for a request.
func NewLocalCifsGroupMembersBulkDeleteParamsWithContext(ctx context.Context) *LocalCifsGroupMembersBulkDeleteParams {
return &LocalCifsGroupMembersBulkDeleteParams{
Context: ctx,
}
}
// NewLocalCifsGroupMembersBulkDeleteParamsWithHTTPClient creates a new LocalCifsGroupMembersBulkDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewLocalCifsGroupMembersBulkDeleteParamsWithHTTPClient(client *http.Client) *LocalCifsGroupMembersBulkDeleteParams {
return &LocalCifsGroupMembersBulkDeleteParams{
HTTPClient: client,
}
}
/*
LocalCifsGroupMembersBulkDeleteParams contains all the parameters to send to the API endpoint
for the local cifs group members bulk delete operation.
Typically these are written to a http.Request.
*/
type LocalCifsGroupMembersBulkDeleteParams struct {
/* Info.
Info specification
*/
Info *models.LocalCifsGroupMembers
/* LocalCifsGroupSid.
Local group SID
*/
LocalCifsGroupSid string
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *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 local cifs group members bulk delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupMembersBulkDeleteParams) WithDefaults() *LocalCifsGroupMembersBulkDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the local cifs group members bulk delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupMembersBulkDeleteParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := LocalCifsGroupMembersBulkDeleteParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) WithTimeout(timeout time.Duration) *LocalCifsGroupMembersBulkDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) WithContext(ctx context.Context) *LocalCifsGroupMembersBulkDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) WithHTTPClient(client *http.Client) *LocalCifsGroupMembersBulkDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) WithInfo(info *models.LocalCifsGroupMembers) *LocalCifsGroupMembersBulkDeleteParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) SetInfo(info *models.LocalCifsGroupMembers) {
o.Info = info
}
// WithLocalCifsGroupSid adds the localCifsGroupSid to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) WithLocalCifsGroupSid(localCifsGroupSid string) *LocalCifsGroupMembersBulkDeleteParams {
o.SetLocalCifsGroupSid(localCifsGroupSid)
return o
}
// SetLocalCifsGroupSid adds the localCifsGroupSid to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) SetLocalCifsGroupSid(localCifsGroupSid string) {
o.LocalCifsGroupSid = localCifsGroupSid
}
// WithReturnRecords adds the returnRecords to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) WithReturnRecords(returnRecords *bool) *LocalCifsGroupMembersBulkDeleteParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSvmUUID adds the svmUUID to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) WithSvmUUID(svmUUID string) *LocalCifsGroupMembersBulkDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the local cifs group members bulk delete params
func (o *LocalCifsGroupMembersBulkDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *LocalCifsGroupMembersBulkDeleteParams) 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 local_cifs_group.sid
if err := r.SetPathParam("local_cifs_group.sid", o.LocalCifsGroupSid); 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
}
}
}
// 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_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_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"
)
// NewCifsShareDeleteParams creates a new CifsShareDeleteParams 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 NewCifsShareDeleteParams() *CifsShareDeleteParams {
return &CifsShareDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsShareDeleteParamsWithTimeout creates a new CifsShareDeleteParams object
// with the ability to set a timeout on a request.
func NewCifsShareDeleteParamsWithTimeout(timeout time.Duration) *CifsShareDeleteParams {
return &CifsShareDeleteParams{
timeout: timeout,
}
}
// NewCifsShareDeleteParamsWithContext creates a new CifsShareDeleteParams object
// with the ability to set a context for a request.
func NewCifsShareDeleteParamsWithContext(ctx context.Context) *CifsShareDeleteParams {
return &CifsShareDeleteParams{
Context: ctx,
}
}
// NewCifsShareDeleteParamsWithHTTPClient creates a new CifsShareDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsShareDeleteParamsWithHTTPClient(client *http.Client) *CifsShareDeleteParams {
return &CifsShareDeleteParams{
HTTPClient: client,
}
}
/*
CifsShareDeleteParams contains all the parameters to send to the API endpoint
for the cifs share delete operation.
Typically these are written to a http.Request.
*/
type CifsShareDeleteParams struct {
/* Name.
Share 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 cifs share delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareDeleteParams) WithDefaults() *CifsShareDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs share delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs share delete params
func (o *CifsShareDeleteParams) WithTimeout(timeout time.Duration) *CifsShareDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs share delete params
func (o *CifsShareDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs share delete params
func (o *CifsShareDeleteParams) WithContext(ctx context.Context) *CifsShareDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs share delete params
func (o *CifsShareDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs share delete params
func (o *CifsShareDeleteParams) WithHTTPClient(client *http.Client) *CifsShareDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs share delete params
func (o *CifsShareDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithName adds the name to the cifs share delete params
func (o *CifsShareDeleteParams) WithName(name string) *CifsShareDeleteParams {
o.SetName(name)
return o
}
// SetName adds the name to the cifs share delete params
func (o *CifsShareDeleteParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the cifs share delete params
func (o *CifsShareDeleteParams) WithSvmUUID(svmUUID string) *CifsShareDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs share delete params
func (o *CifsShareDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsShareDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// 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
}
| 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/shadowcopy_set_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/shadowcopy_set_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"
)
// ShadowcopySetModifyReader is a Reader for the ShadowcopySetModify structure.
type ShadowcopySetModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ShadowcopySetModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewShadowcopySetModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewShadowcopySetModifyDefault(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
}
}
// NewShadowcopySetModifyOK creates a ShadowcopySetModifyOK with default headers values
func NewShadowcopySetModifyOK() *ShadowcopySetModifyOK {
return &ShadowcopySetModifyOK{}
}
/*
ShadowcopySetModifyOK describes a response with status code 200, with default header values.
OK
*/
type ShadowcopySetModifyOK struct {
}
// IsSuccess returns true when this shadowcopy set modify o k response has a 2xx status code
func (o *ShadowcopySetModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this shadowcopy set modify o k response has a 3xx status code
func (o *ShadowcopySetModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this shadowcopy set modify o k response has a 4xx status code
func (o *ShadowcopySetModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this shadowcopy set modify o k response has a 5xx status code
func (o *ShadowcopySetModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this shadowcopy set modify o k response a status code equal to that given
func (o *ShadowcopySetModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *ShadowcopySetModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopySetModifyOK ", 200)
}
func (o *ShadowcopySetModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopySetModifyOK ", 200)
}
func (o *ShadowcopySetModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewShadowcopySetModifyDefault creates a ShadowcopySetModifyDefault with default headers values
func NewShadowcopySetModifyDefault(code int) *ShadowcopySetModifyDefault {
return &ShadowcopySetModifyDefault{
_statusCode: code,
}
}
/*
ShadowcopySetModifyDefault describes a response with status code -1, with default header values.
Error
*/
type ShadowcopySetModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the shadowcopy set modify default response
func (o *ShadowcopySetModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this shadowcopy set modify default response has a 2xx status code
func (o *ShadowcopySetModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this shadowcopy set modify default response has a 3xx status code
func (o *ShadowcopySetModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this shadowcopy set modify default response has a 4xx status code
func (o *ShadowcopySetModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this shadowcopy set modify default response has a 5xx status code
func (o *ShadowcopySetModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this shadowcopy set modify default response a status code equal to that given
func (o *ShadowcopySetModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ShadowcopySetModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopy_set_modify default %+v", o._statusCode, o.Payload)
}
func (o *ShadowcopySetModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shadowcopy-sets/{uuid}][%d] shadowcopy_set_modify default %+v", o._statusCode, o.Payload)
}
func (o *ShadowcopySetModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ShadowcopySetModifyDefault) 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_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_search_path_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"
)
// NewCifsSearchPathCreateParams creates a new CifsSearchPathCreateParams 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 NewCifsSearchPathCreateParams() *CifsSearchPathCreateParams {
return &CifsSearchPathCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsSearchPathCreateParamsWithTimeout creates a new CifsSearchPathCreateParams object
// with the ability to set a timeout on a request.
func NewCifsSearchPathCreateParamsWithTimeout(timeout time.Duration) *CifsSearchPathCreateParams {
return &CifsSearchPathCreateParams{
timeout: timeout,
}
}
// NewCifsSearchPathCreateParamsWithContext creates a new CifsSearchPathCreateParams object
// with the ability to set a context for a request.
func NewCifsSearchPathCreateParamsWithContext(ctx context.Context) *CifsSearchPathCreateParams {
return &CifsSearchPathCreateParams{
Context: ctx,
}
}
// NewCifsSearchPathCreateParamsWithHTTPClient creates a new CifsSearchPathCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsSearchPathCreateParamsWithHTTPClient(client *http.Client) *CifsSearchPathCreateParams {
return &CifsSearchPathCreateParams{
HTTPClient: client,
}
}
/*
CifsSearchPathCreateParams contains all the parameters to send to the API endpoint
for the cifs search path create operation.
Typically these are written to a http.Request.
*/
type CifsSearchPathCreateParams struct {
/* Info.
Info specification
*/
Info *models.CifsSearchPath
/* 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 search path create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSearchPathCreateParams) WithDefaults() *CifsSearchPathCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs search path create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSearchPathCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := CifsSearchPathCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs search path create params
func (o *CifsSearchPathCreateParams) WithTimeout(timeout time.Duration) *CifsSearchPathCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs search path create params
func (o *CifsSearchPathCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs search path create params
func (o *CifsSearchPathCreateParams) WithContext(ctx context.Context) *CifsSearchPathCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs search path create params
func (o *CifsSearchPathCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs search path create params
func (o *CifsSearchPathCreateParams) WithHTTPClient(client *http.Client) *CifsSearchPathCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs search path create params
func (o *CifsSearchPathCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cifs search path create params
func (o *CifsSearchPathCreateParams) WithInfo(info *models.CifsSearchPath) *CifsSearchPathCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cifs search path create params
func (o *CifsSearchPathCreateParams) SetInfo(info *models.CifsSearchPath) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the cifs search path create params
func (o *CifsSearchPathCreateParams) WithReturnRecords(returnRecords *bool) *CifsSearchPathCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs search path create params
func (o *CifsSearchPathCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *CifsSearchPathCreateParams) 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/fpolicy_engine_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_engine_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"
)
// FpolicyEngineGetReader is a Reader for the FpolicyEngineGet structure.
type FpolicyEngineGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyEngineGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewFpolicyEngineGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyEngineGetDefault(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
}
}
// NewFpolicyEngineGetOK creates a FpolicyEngineGetOK with default headers values
func NewFpolicyEngineGetOK() *FpolicyEngineGetOK {
return &FpolicyEngineGetOK{}
}
/*
FpolicyEngineGetOK describes a response with status code 200, with default header values.
OK
*/
type FpolicyEngineGetOK struct {
Payload *models.FpolicyEngine
}
// IsSuccess returns true when this fpolicy engine get o k response has a 2xx status code
func (o *FpolicyEngineGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy engine get o k response has a 3xx status code
func (o *FpolicyEngineGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy engine get o k response has a 4xx status code
func (o *FpolicyEngineGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy engine get o k response has a 5xx status code
func (o *FpolicyEngineGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy engine get o k response a status code equal to that given
func (o *FpolicyEngineGetOK) IsCode(code int) bool {
return code == 200
}
func (o *FpolicyEngineGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicyEngineGetOK %+v", 200, o.Payload)
}
func (o *FpolicyEngineGetOK) String() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicyEngineGetOK %+v", 200, o.Payload)
}
func (o *FpolicyEngineGetOK) GetPayload() *models.FpolicyEngine {
return o.Payload
}
func (o *FpolicyEngineGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.FpolicyEngine)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewFpolicyEngineGetDefault creates a FpolicyEngineGetDefault with default headers values
func NewFpolicyEngineGetDefault(code int) *FpolicyEngineGetDefault {
return &FpolicyEngineGetDefault{
_statusCode: code,
}
}
/*
FpolicyEngineGetDefault describes a response with status code -1, with default header values.
Error
*/
type FpolicyEngineGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy engine get default response
func (o *FpolicyEngineGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy engine get default response has a 2xx status code
func (o *FpolicyEngineGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy engine get default response has a 3xx status code
func (o *FpolicyEngineGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy engine get default response has a 4xx status code
func (o *FpolicyEngineGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy engine get default response has a 5xx status code
func (o *FpolicyEngineGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy engine get default response a status code equal to that given
func (o *FpolicyEngineGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyEngineGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicy_engine_get default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyEngineGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicy_engine_get default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyEngineGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyEngineGetDefault) 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/export_rule_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_rule_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"
)
// ExportRuleCreateReader is a Reader for the ExportRuleCreate structure.
type ExportRuleCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ExportRuleCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewExportRuleCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewExportRuleCreateDefault(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
}
}
// NewExportRuleCreateCreated creates a ExportRuleCreateCreated with default headers values
func NewExportRuleCreateCreated() *ExportRuleCreateCreated {
return &ExportRuleCreateCreated{}
}
/*
ExportRuleCreateCreated describes a response with status code 201, with default header values.
Created
*/
type ExportRuleCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.ExportRuleResponse
}
// IsSuccess returns true when this export rule create created response has a 2xx status code
func (o *ExportRuleCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this export rule create created response has a 3xx status code
func (o *ExportRuleCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this export rule create created response has a 4xx status code
func (o *ExportRuleCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this export rule create created response has a 5xx status code
func (o *ExportRuleCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this export rule create created response a status code equal to that given
func (o *ExportRuleCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *ExportRuleCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/nfs/export-policies/{policy.id}/rules][%d] exportRuleCreateCreated %+v", 201, o.Payload)
}
func (o *ExportRuleCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/nfs/export-policies/{policy.id}/rules][%d] exportRuleCreateCreated %+v", 201, o.Payload)
}
func (o *ExportRuleCreateCreated) GetPayload() *models.ExportRuleResponse {
return o.Payload
}
func (o *ExportRuleCreateCreated) 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.ExportRuleResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewExportRuleCreateDefault creates a ExportRuleCreateDefault with default headers values
func NewExportRuleCreateDefault(code int) *ExportRuleCreateDefault {
return &ExportRuleCreateDefault{
_statusCode: code,
}
}
/*
ExportRuleCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 1703954 | Export policy does not exist |
| 1704036 | Invalid clientmatch: missing domain name |
| 1704037 | Invalid clientmatch: missing network name |
| 1704038 | Invalid clientmatch: missing netgroup name |
| 1704039 | Invalid clientmatch |
| 1704040 | Invalid clientmatch: address bytes masked out by netmask are non-zero |
| 1704041 | Invalid clientmatch: address bytes masked to zero by netmask |
| 1704042 | Invalid clientmatch: too many bits in netmask |
| 1704043 | Invalid clientmatch: invalid netmask |
| 1704044 | Invalid clientmatch: invalid characters in host name |
| 1704045 | Invalid clientmatch: invalid characters in domain name |
| 1704050 | Invalid clientmatch: clientmatch list contains a duplicate string. Duplicate strings in a clientmatch list are not supported |
| 1704051 | Warning: Not adding any new strings to the clientmatch field for ruleindex. All of the match strings are already in the clientmatch list |
| 1704064 | Clientmatch host name too long |
| 1704065 | Clientmatch domain name too long |
| 3277000 | Upgrade all nodes to Data ONTAP 9.0.0 or above to use krb5p as a security flavor in export-policy rules |
| 3277083 | User ID is not valid. Enter a value for User ID from 0 to 4294967295 |
*/
type ExportRuleCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the export rule create default response
func (o *ExportRuleCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this export rule create default response has a 2xx status code
func (o *ExportRuleCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this export rule create default response has a 3xx status code
func (o *ExportRuleCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this export rule create default response has a 4xx status code
func (o *ExportRuleCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this export rule create default response has a 5xx status code
func (o *ExportRuleCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this export rule create default response a status code equal to that given
func (o *ExportRuleCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ExportRuleCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/nfs/export-policies/{policy.id}/rules][%d] export_rule_create default %+v", o._statusCode, o.Payload)
}
func (o *ExportRuleCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/nfs/export-policies/{policy.id}/rules][%d] export_rule_create default %+v", o._statusCode, o.Payload)
}
func (o *ExportRuleCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ExportRuleCreateDefault) 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_policy_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_policy_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"
)
// FpolicyPolicyModifyReader is a Reader for the FpolicyPolicyModify structure.
type FpolicyPolicyModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyPolicyModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewFpolicyPolicyModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyPolicyModifyDefault(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
}
}
// NewFpolicyPolicyModifyOK creates a FpolicyPolicyModifyOK with default headers values
func NewFpolicyPolicyModifyOK() *FpolicyPolicyModifyOK {
return &FpolicyPolicyModifyOK{}
}
/*
FpolicyPolicyModifyOK describes a response with status code 200, with default header values.
OK
*/
type FpolicyPolicyModifyOK struct {
}
// IsSuccess returns true when this fpolicy policy modify o k response has a 2xx status code
func (o *FpolicyPolicyModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy policy modify o k response has a 3xx status code
func (o *FpolicyPolicyModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy policy modify o k response has a 4xx status code
func (o *FpolicyPolicyModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy policy modify o k response has a 5xx status code
func (o *FpolicyPolicyModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy policy modify o k response a status code equal to that given
func (o *FpolicyPolicyModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *FpolicyPolicyModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicyPolicyModifyOK ", 200)
}
func (o *FpolicyPolicyModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicyPolicyModifyOK ", 200)
}
func (o *FpolicyPolicyModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewFpolicyPolicyModifyDefault creates a FpolicyPolicyModifyDefault with default headers values
func NewFpolicyPolicyModifyDefault(code int) *FpolicyPolicyModifyDefault {
return &FpolicyPolicyModifyDefault{
_statusCode: code,
}
}
/*
FpolicyPolicyModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 9765026 | The priority must be specified when enabling the FPolicy policy |
| 9765025 | Cannot disable an FPolicy policy when the priority is specified |
| 9764899 | Cannot modify an FPolicy engine when the policy is enabled |
| 9764899 | Deletion of a cluster policy is not supported |
| 9764908 | An FPolicy policy is already enabled |
| 9764907 | An FPolicy policy is already disabled |
| 9765029 | An FPolicy was modified but disable/enable failed as the policy is already disabled/enabled |
| 9765036 | Cannot modify an FPolicy policy as passthrough-read policies are not supported without privileged user |
| 9765038 | Passthrough-read policies are not supported with an external engine of type "asynchronous" |
| 9765039 | Passthrough-read policies are not supported with native engine |
| 9765040 | Cannot modify an FPolicy policy as passthrough-read could not be enabled/disabled when the policy is enabled |
*/
type FpolicyPolicyModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy policy modify default response
func (o *FpolicyPolicyModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy policy modify default response has a 2xx status code
func (o *FpolicyPolicyModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy policy modify default response has a 3xx status code
func (o *FpolicyPolicyModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy policy modify default response has a 4xx status code
func (o *FpolicyPolicyModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy policy modify default response has a 5xx status code
func (o *FpolicyPolicyModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy policy modify default response a status code equal to that given
func (o *FpolicyPolicyModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyPolicyModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicy_policy_modify default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyPolicyModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicy_policy_modify default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyPolicyModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyPolicyModifyDefault) 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_connection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_connection_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"
)
// NewFpolicyConnectionGetParams creates a new FpolicyConnectionGetParams 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 NewFpolicyConnectionGetParams() *FpolicyConnectionGetParams {
return &FpolicyConnectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewFpolicyConnectionGetParamsWithTimeout creates a new FpolicyConnectionGetParams object
// with the ability to set a timeout on a request.
func NewFpolicyConnectionGetParamsWithTimeout(timeout time.Duration) *FpolicyConnectionGetParams {
return &FpolicyConnectionGetParams{
timeout: timeout,
}
}
// NewFpolicyConnectionGetParamsWithContext creates a new FpolicyConnectionGetParams object
// with the ability to set a context for a request.
func NewFpolicyConnectionGetParamsWithContext(ctx context.Context) *FpolicyConnectionGetParams {
return &FpolicyConnectionGetParams{
Context: ctx,
}
}
// NewFpolicyConnectionGetParamsWithHTTPClient creates a new FpolicyConnectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewFpolicyConnectionGetParamsWithHTTPClient(client *http.Client) *FpolicyConnectionGetParams {
return &FpolicyConnectionGetParams{
HTTPClient: client,
}
}
/*
FpolicyConnectionGetParams contains all the parameters to send to the API endpoint
for the fpolicy connection get operation.
Typically these are written to a http.Request.
*/
type FpolicyConnectionGetParams struct {
/* NodeUUID.
Node UUID.
*/
NodeUUID string
/* PolicyName.
Policy name
*/
PolicyName string
/* Server.
FPolicy Server IP address
*/
Server 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 connection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyConnectionGetParams) WithDefaults() *FpolicyConnectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the fpolicy connection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyConnectionGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) WithTimeout(timeout time.Duration) *FpolicyConnectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) WithContext(ctx context.Context) *FpolicyConnectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) WithHTTPClient(client *http.Client) *FpolicyConnectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithNodeUUID adds the nodeUUID to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) WithNodeUUID(nodeUUID string) *FpolicyConnectionGetParams {
o.SetNodeUUID(nodeUUID)
return o
}
// SetNodeUUID adds the nodeUuid to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) SetNodeUUID(nodeUUID string) {
o.NodeUUID = nodeUUID
}
// WithPolicyName adds the policyName to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) WithPolicyName(policyName string) *FpolicyConnectionGetParams {
o.SetPolicyName(policyName)
return o
}
// SetPolicyName adds the policyName to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) SetPolicyName(policyName string) {
o.PolicyName = policyName
}
// WithServer adds the server to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) WithServer(server string) *FpolicyConnectionGetParams {
o.SetServer(server)
return o
}
// SetServer adds the server to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) SetServer(server string) {
o.Server = server
}
// WithSvmUUID adds the svmUUID to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) WithSvmUUID(svmUUID string) *FpolicyConnectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the fpolicy connection get params
func (o *FpolicyConnectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *FpolicyConnectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param node.uuid
if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil {
return err
}
// path param policy.name
if err := r.SetPathParam("policy.name", o.PolicyName); err != nil {
return err
}
// path param server
if err := r.SetPathParam("server", o.Server); 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_service_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_service_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/go-openapi/swag"
"github.com/netapp/trident/storage_drivers/ontap/api/rest/models"
)
// NewCifsServiceModifyParams creates a new CifsServiceModifyParams 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 NewCifsServiceModifyParams() *CifsServiceModifyParams {
return &CifsServiceModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsServiceModifyParamsWithTimeout creates a new CifsServiceModifyParams object
// with the ability to set a timeout on a request.
func NewCifsServiceModifyParamsWithTimeout(timeout time.Duration) *CifsServiceModifyParams {
return &CifsServiceModifyParams{
timeout: timeout,
}
}
// NewCifsServiceModifyParamsWithContext creates a new CifsServiceModifyParams object
// with the ability to set a context for a request.
func NewCifsServiceModifyParamsWithContext(ctx context.Context) *CifsServiceModifyParams {
return &CifsServiceModifyParams{
Context: ctx,
}
}
// NewCifsServiceModifyParamsWithHTTPClient creates a new CifsServiceModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsServiceModifyParamsWithHTTPClient(client *http.Client) *CifsServiceModifyParams {
return &CifsServiceModifyParams{
HTTPClient: client,
}
}
/*
CifsServiceModifyParams contains all the parameters to send to the API endpoint
for the cifs service modify operation.
Typically these are written to a http.Request.
*/
type CifsServiceModifyParams struct {
/* Force.
If this is set and a machine account with the same name as specified in 'cifs-server name' exists in the Active Directory, existing machine account will be overwritten and reused. The default value for this field is false.
*/
Force *bool
/* Info.
Info specification
*/
Info *models.CifsService
/* 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
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cifs service modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsServiceModifyParams) WithDefaults() *CifsServiceModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs service modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsServiceModifyParams) SetDefaults() {
var (
returnTimeoutDefault = int64(0)
)
val := CifsServiceModifyParams{
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs service modify params
func (o *CifsServiceModifyParams) WithTimeout(timeout time.Duration) *CifsServiceModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs service modify params
func (o *CifsServiceModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs service modify params
func (o *CifsServiceModifyParams) WithContext(ctx context.Context) *CifsServiceModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs service modify params
func (o *CifsServiceModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs service modify params
func (o *CifsServiceModifyParams) WithHTTPClient(client *http.Client) *CifsServiceModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs service modify params
func (o *CifsServiceModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithForce adds the force to the cifs service modify params
func (o *CifsServiceModifyParams) WithForce(force *bool) *CifsServiceModifyParams {
o.SetForce(force)
return o
}
// SetForce adds the force to the cifs service modify params
func (o *CifsServiceModifyParams) SetForce(force *bool) {
o.Force = force
}
// WithInfo adds the info to the cifs service modify params
func (o *CifsServiceModifyParams) WithInfo(info *models.CifsService) *CifsServiceModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cifs service modify params
func (o *CifsServiceModifyParams) SetInfo(info *models.CifsService) {
o.Info = info
}
// WithReturnTimeout adds the returnTimeout to the cifs service modify params
func (o *CifsServiceModifyParams) WithReturnTimeout(returnTimeout *int64) *CifsServiceModifyParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cifs service modify params
func (o *CifsServiceModifyParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the cifs service modify params
func (o *CifsServiceModifyParams) WithSvmUUID(svmUUID string) *CifsServiceModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs service modify params
func (o *CifsServiceModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsServiceModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Force != nil {
// query param force
var qrForce bool
if o.Force != nil {
qrForce = *o.Force
}
qForce := swag.FormatBool(qrForce)
if qForce != "" {
if err := r.SetQueryParam("force", qForce); err != nil {
return err
}
}
}
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 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_acl_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"
)
// CifsShareACLModifyReader is a Reader for the CifsShareACLModify structure.
type CifsShareACLModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsShareACLModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewCifsShareACLModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsShareACLModifyDefault(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
}
}
// NewCifsShareACLModifyOK creates a CifsShareACLModifyOK with default headers values
func NewCifsShareACLModifyOK() *CifsShareACLModifyOK {
return &CifsShareACLModifyOK{}
}
/*
CifsShareACLModifyOK describes a response with status code 200, with default header values.
OK
*/
type CifsShareACLModifyOK struct {
}
// IsSuccess returns true when this cifs share Acl modify o k response has a 2xx status code
func (o *CifsShareACLModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs share Acl modify o k response has a 3xx status code
func (o *CifsShareACLModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs share Acl modify o k response has a 4xx status code
func (o *CifsShareACLModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs share Acl modify o k response has a 5xx status code
func (o *CifsShareACLModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this cifs share Acl modify o k response a status code equal to that given
func (o *CifsShareACLModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *CifsShareACLModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifsShareAclModifyOK ", 200)
}
func (o *CifsShareACLModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifsShareAclModifyOK ", 200)
}
func (o *CifsShareACLModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewCifsShareACLModifyDefault creates a CifsShareACLModifyDefault with default headers values
func NewCifsShareACLModifyDefault(code int) *CifsShareACLModifyDefault {
return &CifsShareACLModifyDefault{
_statusCode: code,
}
}
/*
CifsShareACLModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 655516 | The share ACL does not exist for given user and share |
*/
type CifsShareACLModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs share acl modify default response
func (o *CifsShareACLModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs share acl modify default response has a 2xx status code
func (o *CifsShareACLModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs share acl modify default response has a 3xx status code
func (o *CifsShareACLModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs share acl modify default response has a 4xx status code
func (o *CifsShareACLModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs share acl modify default response has a 5xx status code
func (o *CifsShareACLModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs share acl modify default response a status code equal to that given
func (o *CifsShareACLModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsShareACLModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifs_share_acl_modify default %+v", o._statusCode, o.Payload)
}
func (o *CifsShareACLModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/shares/{svm.uuid}/{share}/acls/{user_or_group}/{type}][%d] cifs_share_acl_modify default %+v", o._statusCode, o.Payload)
}
func (o *CifsShareACLModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsShareACLModifyDefault) 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_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_search_path_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"
)
// NewCifsSearchPathCollectionGetParams creates a new CifsSearchPathCollectionGetParams 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 NewCifsSearchPathCollectionGetParams() *CifsSearchPathCollectionGetParams {
return &CifsSearchPathCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsSearchPathCollectionGetParamsWithTimeout creates a new CifsSearchPathCollectionGetParams object
// with the ability to set a timeout on a request.
func NewCifsSearchPathCollectionGetParamsWithTimeout(timeout time.Duration) *CifsSearchPathCollectionGetParams {
return &CifsSearchPathCollectionGetParams{
timeout: timeout,
}
}
// NewCifsSearchPathCollectionGetParamsWithContext creates a new CifsSearchPathCollectionGetParams object
// with the ability to set a context for a request.
func NewCifsSearchPathCollectionGetParamsWithContext(ctx context.Context) *CifsSearchPathCollectionGetParams {
return &CifsSearchPathCollectionGetParams{
Context: ctx,
}
}
// NewCifsSearchPathCollectionGetParamsWithHTTPClient creates a new CifsSearchPathCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsSearchPathCollectionGetParamsWithHTTPClient(client *http.Client) *CifsSearchPathCollectionGetParams {
return &CifsSearchPathCollectionGetParams{
HTTPClient: client,
}
}
/*
CifsSearchPathCollectionGetParams contains all the parameters to send to the API endpoint
for the cifs search path collection get operation.
Typically these are written to a http.Request.
*/
type CifsSearchPathCollectionGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Index.
Filter by index
*/
Index *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* Path.
Filter by path
*/
Path *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
/* 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 cifs search path collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSearchPathCollectionGetParams) WithDefaults() *CifsSearchPathCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs search path collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSearchPathCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := CifsSearchPathCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithTimeout(timeout time.Duration) *CifsSearchPathCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithContext(ctx context.Context) *CifsSearchPathCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithHTTPClient(client *http.Client) *CifsSearchPathCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithFields(fields []string) *CifsSearchPathCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIndex adds the index to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithIndex(index *int64) *CifsSearchPathCollectionGetParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetIndex(index *int64) {
o.Index = index
}
// WithMaxRecords adds the maxRecords to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithMaxRecords(maxRecords *int64) *CifsSearchPathCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithOrderBy(orderBy []string) *CifsSearchPathCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPath adds the path to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithPath(path *string) *CifsSearchPathCollectionGetParams {
o.SetPath(path)
return o
}
// SetPath adds the path to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetPath(path *string) {
o.Path = path
}
// WithReturnRecords adds the returnRecords to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithReturnRecords(returnRecords *bool) *CifsSearchPathCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *CifsSearchPathCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmName adds the svmName to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithSvmName(svmName *string) *CifsSearchPathCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) WithSvmUUID(svmUUID *string) *CifsSearchPathCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs search path collection get params
func (o *CifsSearchPathCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsSearchPathCollectionGetParams) 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.Index != nil {
// query param index
var qrIndex int64
if o.Index != nil {
qrIndex = *o.Index
}
qIndex := swag.FormatInt64(qrIndex)
if qIndex != "" {
if err := r.SetQueryParam("index", qIndex); 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.Path != nil {
// query param path
var qrPath string
if o.Path != nil {
qrPath = *o.Path
}
qPath := qrPath
if qPath != "" {
if err := r.SetQueryParam("path", qPath); 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.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
}
// bindParamCifsSearchPathCollectionGet binds the parameter fields
func (o *CifsSearchPathCollectionGetParams) 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
}
// bindParamCifsSearchPathCollectionGet binds the parameter order_by
func (o *CifsSearchPathCollectionGetParams) 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/export_rule_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_rule_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/go-openapi/swag"
"github.com/netapp/trident/storage_drivers/ontap/api/rest/models"
)
// NewExportRuleModifyParams creates a new ExportRuleModifyParams 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 NewExportRuleModifyParams() *ExportRuleModifyParams {
return &ExportRuleModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewExportRuleModifyParamsWithTimeout creates a new ExportRuleModifyParams object
// with the ability to set a timeout on a request.
func NewExportRuleModifyParamsWithTimeout(timeout time.Duration) *ExportRuleModifyParams {
return &ExportRuleModifyParams{
timeout: timeout,
}
}
// NewExportRuleModifyParamsWithContext creates a new ExportRuleModifyParams object
// with the ability to set a context for a request.
func NewExportRuleModifyParamsWithContext(ctx context.Context) *ExportRuleModifyParams {
return &ExportRuleModifyParams{
Context: ctx,
}
}
// NewExportRuleModifyParamsWithHTTPClient creates a new ExportRuleModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewExportRuleModifyParamsWithHTTPClient(client *http.Client) *ExportRuleModifyParams {
return &ExportRuleModifyParams{
HTTPClient: client,
}
}
/*
ExportRuleModifyParams contains all the parameters to send to the API endpoint
for the export rule modify operation.
Typically these are written to a http.Request.
*/
type ExportRuleModifyParams struct {
/* Index.
Export Rule Index
*/
Index int64
/* Info.
Info specification
*/
Info *models.ExportRule
/* NewIndex.
New Export Rule Index
*/
NewIndex *int64
/* PolicyID.
Export Policy ID
*/
PolicyID int64
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the export rule modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportRuleModifyParams) WithDefaults() *ExportRuleModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the export rule modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportRuleModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the export rule modify params
func (o *ExportRuleModifyParams) WithTimeout(timeout time.Duration) *ExportRuleModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the export rule modify params
func (o *ExportRuleModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the export rule modify params
func (o *ExportRuleModifyParams) WithContext(ctx context.Context) *ExportRuleModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the export rule modify params
func (o *ExportRuleModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the export rule modify params
func (o *ExportRuleModifyParams) WithHTTPClient(client *http.Client) *ExportRuleModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the export rule modify params
func (o *ExportRuleModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithIndex adds the index to the export rule modify params
func (o *ExportRuleModifyParams) WithIndex(index int64) *ExportRuleModifyParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the export rule modify params
func (o *ExportRuleModifyParams) SetIndex(index int64) {
o.Index = index
}
// WithInfo adds the info to the export rule modify params
func (o *ExportRuleModifyParams) WithInfo(info *models.ExportRule) *ExportRuleModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the export rule modify params
func (o *ExportRuleModifyParams) SetInfo(info *models.ExportRule) {
o.Info = info
}
// WithNewIndex adds the newIndex to the export rule modify params
func (o *ExportRuleModifyParams) WithNewIndex(newIndex *int64) *ExportRuleModifyParams {
o.SetNewIndex(newIndex)
return o
}
// SetNewIndex adds the newIndex to the export rule modify params
func (o *ExportRuleModifyParams) SetNewIndex(newIndex *int64) {
o.NewIndex = newIndex
}
// WithPolicyID adds the policyID to the export rule modify params
func (o *ExportRuleModifyParams) WithPolicyID(policyID int64) *ExportRuleModifyParams {
o.SetPolicyID(policyID)
return o
}
// SetPolicyID adds the policyId to the export rule modify params
func (o *ExportRuleModifyParams) SetPolicyID(policyID int64) {
o.PolicyID = policyID
}
// WriteToRequest writes these params to a swagger request
func (o *ExportRuleModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param index
if err := r.SetPathParam("index", swag.FormatInt64(o.Index)); err != nil {
return err
}
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.NewIndex != nil {
// query param new_index
var qrNewIndex int64
if o.NewIndex != nil {
qrNewIndex = *o.NewIndex
}
qNewIndex := swag.FormatInt64(qrNewIndex)
if qNewIndex != "" {
if err := r.SetQueryParam("new_index", qNewIndex); err != nil {
return err
}
}
}
// path param policy.id
if err := r.SetPathParam("policy.id", swag.FormatInt64(o.PolicyID)); 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/vscan_scanner_pool_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_scanner_pool_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"
)
// NewVscanScannerPoolGetParams creates a new VscanScannerPoolGetParams 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 NewVscanScannerPoolGetParams() *VscanScannerPoolGetParams {
return &VscanScannerPoolGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewVscanScannerPoolGetParamsWithTimeout creates a new VscanScannerPoolGetParams object
// with the ability to set a timeout on a request.
func NewVscanScannerPoolGetParamsWithTimeout(timeout time.Duration) *VscanScannerPoolGetParams {
return &VscanScannerPoolGetParams{
timeout: timeout,
}
}
// NewVscanScannerPoolGetParamsWithContext creates a new VscanScannerPoolGetParams object
// with the ability to set a context for a request.
func NewVscanScannerPoolGetParamsWithContext(ctx context.Context) *VscanScannerPoolGetParams {
return &VscanScannerPoolGetParams{
Context: ctx,
}
}
// NewVscanScannerPoolGetParamsWithHTTPClient creates a new VscanScannerPoolGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewVscanScannerPoolGetParamsWithHTTPClient(client *http.Client) *VscanScannerPoolGetParams {
return &VscanScannerPoolGetParams{
HTTPClient: client,
}
}
/*
VscanScannerPoolGetParams contains all the parameters to send to the API endpoint
for the vscan scanner pool get operation.
Typically these are written to a http.Request.
*/
type VscanScannerPoolGetParams 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 scanner pool get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanScannerPoolGetParams) WithDefaults() *VscanScannerPoolGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the vscan scanner pool get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanScannerPoolGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) WithTimeout(timeout time.Duration) *VscanScannerPoolGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) WithContext(ctx context.Context) *VscanScannerPoolGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) WithHTTPClient(client *http.Client) *VscanScannerPoolGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) WithFields(fields []string) *VscanScannerPoolGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithName adds the name to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) WithName(name string) *VscanScannerPoolGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) WithSvmUUID(svmUUID string) *VscanScannerPoolGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the vscan scanner pool get params
func (o *VscanScannerPoolGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *VscanScannerPoolGetParams) 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
}
// bindParamVscanScannerPoolGet binds the parameter fields
func (o *VscanScannerPoolGetParams) 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/cifs_domain_preferred_dc_get_parameters.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_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"
)
// NewCifsDomainPreferredDcGetParams creates a new CifsDomainPreferredDcGetParams 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 NewCifsDomainPreferredDcGetParams() *CifsDomainPreferredDcGetParams {
return &CifsDomainPreferredDcGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsDomainPreferredDcGetParamsWithTimeout creates a new CifsDomainPreferredDcGetParams object
// with the ability to set a timeout on a request.
func NewCifsDomainPreferredDcGetParamsWithTimeout(timeout time.Duration) *CifsDomainPreferredDcGetParams {
return &CifsDomainPreferredDcGetParams{
timeout: timeout,
}
}
// NewCifsDomainPreferredDcGetParamsWithContext creates a new CifsDomainPreferredDcGetParams object
// with the ability to set a context for a request.
func NewCifsDomainPreferredDcGetParamsWithContext(ctx context.Context) *CifsDomainPreferredDcGetParams {
return &CifsDomainPreferredDcGetParams{
Context: ctx,
}
}
// NewCifsDomainPreferredDcGetParamsWithHTTPClient creates a new CifsDomainPreferredDcGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsDomainPreferredDcGetParamsWithHTTPClient(client *http.Client) *CifsDomainPreferredDcGetParams {
return &CifsDomainPreferredDcGetParams{
HTTPClient: client,
}
}
/*
CifsDomainPreferredDcGetParams contains all the parameters to send to the API endpoint
for the cifs domain preferred dc get operation.
Typically these are written to a http.Request.
*/
type CifsDomainPreferredDcGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Fqdn.
Fully Qualified Domain Name
*/
Fqdn string
/* NeedStatus.
Retrieves the status of the specified preferred DC.
*/
NeedStatus *bool
/* ServerIP.
Domain Controller IP address
*/
ServerIP 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 domain preferred dc get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsDomainPreferredDcGetParams) WithDefaults() *CifsDomainPreferredDcGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs domain preferred dc get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsDomainPreferredDcGetParams) SetDefaults() {
var (
needStatusDefault = bool(false)
)
val := CifsDomainPreferredDcGetParams{
NeedStatus: &needStatusDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithTimeout(timeout time.Duration) *CifsDomainPreferredDcGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithContext(ctx context.Context) *CifsDomainPreferredDcGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithHTTPClient(client *http.Client) *CifsDomainPreferredDcGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithFields(fields []string) *CifsDomainPreferredDcGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithFqdn adds the fqdn to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithFqdn(fqdn string) *CifsDomainPreferredDcGetParams {
o.SetFqdn(fqdn)
return o
}
// SetFqdn adds the fqdn to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetFqdn(fqdn string) {
o.Fqdn = fqdn
}
// WithNeedStatus adds the needStatus to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithNeedStatus(needStatus *bool) *CifsDomainPreferredDcGetParams {
o.SetNeedStatus(needStatus)
return o
}
// SetNeedStatus adds the needStatus to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetNeedStatus(needStatus *bool) {
o.NeedStatus = needStatus
}
// WithServerIP adds the serverIP to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithServerIP(serverIP string) *CifsDomainPreferredDcGetParams {
o.SetServerIP(serverIP)
return o
}
// SetServerIP adds the serverIp to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetServerIP(serverIP string) {
o.ServerIP = serverIP
}
// WithSvmUUID adds the svmUUID to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) WithSvmUUID(svmUUID string) *CifsDomainPreferredDcGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs domain preferred dc get params
func (o *CifsDomainPreferredDcGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsDomainPreferredDcGetParams) 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 fqdn
if err := r.SetPathParam("fqdn", o.Fqdn); err != nil {
return err
}
if o.NeedStatus != nil {
// query param need_status
var qrNeedStatus bool
if o.NeedStatus != nil {
qrNeedStatus = *o.NeedStatus
}
qNeedStatus := swag.FormatBool(qrNeedStatus)
if qNeedStatus != "" {
if err := r.SetQueryParam("need_status", qNeedStatus); err != nil {
return err
}
}
}
// path param server_ip
if err := r.SetPathParam("server_ip", o.ServerIP); 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
}
// bindParamCifsDomainPreferredDcGet binds the parameter fields
func (o *CifsDomainPreferredDcGetParams) 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/nfs_collection_performance_metrics_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/nfs_collection_performance_metrics_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"
)
// NewNfsCollectionPerformanceMetricsGetParams creates a new NfsCollectionPerformanceMetricsGetParams 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 NewNfsCollectionPerformanceMetricsGetParams() *NfsCollectionPerformanceMetricsGetParams {
return &NfsCollectionPerformanceMetricsGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewNfsCollectionPerformanceMetricsGetParamsWithTimeout creates a new NfsCollectionPerformanceMetricsGetParams object
// with the ability to set a timeout on a request.
func NewNfsCollectionPerformanceMetricsGetParamsWithTimeout(timeout time.Duration) *NfsCollectionPerformanceMetricsGetParams {
return &NfsCollectionPerformanceMetricsGetParams{
timeout: timeout,
}
}
// NewNfsCollectionPerformanceMetricsGetParamsWithContext creates a new NfsCollectionPerformanceMetricsGetParams object
// with the ability to set a context for a request.
func NewNfsCollectionPerformanceMetricsGetParamsWithContext(ctx context.Context) *NfsCollectionPerformanceMetricsGetParams {
return &NfsCollectionPerformanceMetricsGetParams{
Context: ctx,
}
}
// NewNfsCollectionPerformanceMetricsGetParamsWithHTTPClient creates a new NfsCollectionPerformanceMetricsGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewNfsCollectionPerformanceMetricsGetParamsWithHTTPClient(client *http.Client) *NfsCollectionPerformanceMetricsGetParams {
return &NfsCollectionPerformanceMetricsGetParams{
HTTPClient: client,
}
}
/*
NfsCollectionPerformanceMetricsGetParams contains all the parameters to send to the API endpoint
for the nfs collection performance metrics get operation.
Typically these are written to a http.Request.
*/
type NfsCollectionPerformanceMetricsGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Interval.
The time range for the data. Examples can be 1h, 1d, 1m, 1w, 1y.
The period for each time range is as follows:
* 1h: Metrics over the most recent hour sampled over 15 seconds.
* 1d: Metrics over the most recent day sampled over 5 minutes.
* 1w: Metrics over the most recent week sampled over 30 minutes.
* 1m: Metrics over the most recent month sampled over 2 hours.
* 1y: Metrics over the most recent year sampled over a day.
Default: "1h"
*/
Interval *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
/* SvmUUID.
Unique identifier of the SVM.
*/
SvmUUID string
/* Timestamp.
Filter by timestamp
*/
Timestamp *string
/* V3Duration.
Filter by v3.duration
*/
V3Duration *string
/* V3IopsOther.
Filter by v3.iops.other
*/
V3IopsOther *int64
/* V3IopsRead.
Filter by v3.iops.read
*/
V3IopsRead *int64
/* V3IopsTotal.
Filter by v3.iops.total
*/
V3IopsTotal *int64
/* V3IopsWrite.
Filter by v3.iops.write
*/
V3IopsWrite *int64
/* V3LatencyOther.
Filter by v3.latency.other
*/
V3LatencyOther *int64
/* V3LatencyRead.
Filter by v3.latency.read
*/
V3LatencyRead *int64
/* V3LatencyTotal.
Filter by v3.latency.total
*/
V3LatencyTotal *int64
/* V3LatencyWrite.
Filter by v3.latency.write
*/
V3LatencyWrite *int64
/* V3Status.
Filter by v3.status
*/
V3Status *string
/* V3ThroughputRead.
Filter by v3.throughput.read
*/
V3ThroughputRead *int64
/* V3ThroughputTotal.
Filter by v3.throughput.total
*/
V3ThroughputTotal *int64
/* V3ThroughputWrite.
Filter by v3.throughput.write
*/
V3ThroughputWrite *int64
/* V4Duration.
Filter by v4.duration
*/
V4Duration *string
/* V4IopsOther.
Filter by v4.iops.other
*/
V4IopsOther *int64
/* V4IopsRead.
Filter by v4.iops.read
*/
V4IopsRead *int64
/* V4IopsTotal.
Filter by v4.iops.total
*/
V4IopsTotal *int64
/* V4IopsWrite.
Filter by v4.iops.write
*/
V4IopsWrite *int64
/* V4LatencyOther.
Filter by v4.latency.other
*/
V4LatencyOther *int64
/* V4LatencyRead.
Filter by v4.latency.read
*/
V4LatencyRead *int64
/* V4LatencyTotal.
Filter by v4.latency.total
*/
V4LatencyTotal *int64
/* V4LatencyWrite.
Filter by v4.latency.write
*/
V4LatencyWrite *int64
/* V4Status.
Filter by v4.status
*/
V4Status *string
/* V4ThroughputRead.
Filter by v4.throughput.read
*/
V4ThroughputRead *int64
/* V4ThroughputTotal.
Filter by v4.throughput.total
*/
V4ThroughputTotal *int64
/* V4ThroughputWrite.
Filter by v4.throughput.write
*/
V4ThroughputWrite *int64
/* V41Duration.
Filter by v41.duration
*/
V41Duration *string
/* V41IopsOther.
Filter by v41.iops.other
*/
V41IopsOther *int64
/* V41IopsRead.
Filter by v41.iops.read
*/
V41IopsRead *int64
/* V41IopsTotal.
Filter by v41.iops.total
*/
V41IopsTotal *int64
/* V41IopsWrite.
Filter by v41.iops.write
*/
V41IopsWrite *int64
/* V41LatencyOther.
Filter by v41.latency.other
*/
V41LatencyOther *int64
/* V41LatencyRead.
Filter by v41.latency.read
*/
V41LatencyRead *int64
/* V41LatencyTotal.
Filter by v41.latency.total
*/
V41LatencyTotal *int64
/* V41LatencyWrite.
Filter by v41.latency.write
*/
V41LatencyWrite *int64
/* V41Status.
Filter by v41.status
*/
V41Status *string
/* V41ThroughputRead.
Filter by v41.throughput.read
*/
V41ThroughputRead *int64
/* V41ThroughputTotal.
Filter by v41.throughput.total
*/
V41ThroughputTotal *int64
/* V41ThroughputWrite.
Filter by v41.throughput.write
*/
V41ThroughputWrite *int64
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the nfs collection performance metrics get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *NfsCollectionPerformanceMetricsGetParams) WithDefaults() *NfsCollectionPerformanceMetricsGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the nfs collection performance metrics get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *NfsCollectionPerformanceMetricsGetParams) SetDefaults() {
var (
intervalDefault = string("1h")
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := NfsCollectionPerformanceMetricsGetParams{
Interval: &intervalDefault,
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 collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithTimeout(timeout time.Duration) *NfsCollectionPerformanceMetricsGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithContext(ctx context.Context) *NfsCollectionPerformanceMetricsGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithHTTPClient(client *http.Client) *NfsCollectionPerformanceMetricsGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithFields(fields []string) *NfsCollectionPerformanceMetricsGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithInterval adds the interval to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithInterval(interval *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetInterval(interval)
return o
}
// SetInterval adds the interval to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetInterval(interval *string) {
o.Interval = interval
}
// WithMaxRecords adds the maxRecords to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithMaxRecords(maxRecords *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithOrderBy(orderBy []string) *NfsCollectionPerformanceMetricsGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithReturnRecords(returnRecords *bool) *NfsCollectionPerformanceMetricsGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithReturnTimeout(returnTimeout *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithSvmUUID(svmUUID string) *NfsCollectionPerformanceMetricsGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithTimestamp adds the timestamp to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithTimestamp(timestamp *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetTimestamp(timestamp)
return o
}
// SetTimestamp adds the timestamp to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetTimestamp(timestamp *string) {
o.Timestamp = timestamp
}
// WithV3Duration adds the v3Duration to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3Duration(v3Duration *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3Duration(v3Duration)
return o
}
// SetV3Duration adds the v3Duration to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3Duration(v3Duration *string) {
o.V3Duration = v3Duration
}
// WithV3IopsOther adds the v3IopsOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3IopsOther(v3IopsOther *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3IopsOther(v3IopsOther)
return o
}
// SetV3IopsOther adds the v3IopsOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3IopsOther(v3IopsOther *int64) {
o.V3IopsOther = v3IopsOther
}
// WithV3IopsRead adds the v3IopsRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3IopsRead(v3IopsRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3IopsRead(v3IopsRead)
return o
}
// SetV3IopsRead adds the v3IopsRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3IopsRead(v3IopsRead *int64) {
o.V3IopsRead = v3IopsRead
}
// WithV3IopsTotal adds the v3IopsTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3IopsTotal(v3IopsTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3IopsTotal(v3IopsTotal)
return o
}
// SetV3IopsTotal adds the v3IopsTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3IopsTotal(v3IopsTotal *int64) {
o.V3IopsTotal = v3IopsTotal
}
// WithV3IopsWrite adds the v3IopsWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3IopsWrite(v3IopsWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3IopsWrite(v3IopsWrite)
return o
}
// SetV3IopsWrite adds the v3IopsWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3IopsWrite(v3IopsWrite *int64) {
o.V3IopsWrite = v3IopsWrite
}
// WithV3LatencyOther adds the v3LatencyOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3LatencyOther(v3LatencyOther *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3LatencyOther(v3LatencyOther)
return o
}
// SetV3LatencyOther adds the v3LatencyOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3LatencyOther(v3LatencyOther *int64) {
o.V3LatencyOther = v3LatencyOther
}
// WithV3LatencyRead adds the v3LatencyRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3LatencyRead(v3LatencyRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3LatencyRead(v3LatencyRead)
return o
}
// SetV3LatencyRead adds the v3LatencyRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3LatencyRead(v3LatencyRead *int64) {
o.V3LatencyRead = v3LatencyRead
}
// WithV3LatencyTotal adds the v3LatencyTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3LatencyTotal(v3LatencyTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3LatencyTotal(v3LatencyTotal)
return o
}
// SetV3LatencyTotal adds the v3LatencyTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3LatencyTotal(v3LatencyTotal *int64) {
o.V3LatencyTotal = v3LatencyTotal
}
// WithV3LatencyWrite adds the v3LatencyWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3LatencyWrite(v3LatencyWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3LatencyWrite(v3LatencyWrite)
return o
}
// SetV3LatencyWrite adds the v3LatencyWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3LatencyWrite(v3LatencyWrite *int64) {
o.V3LatencyWrite = v3LatencyWrite
}
// WithV3Status adds the v3Status to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3Status(v3Status *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3Status(v3Status)
return o
}
// SetV3Status adds the v3Status to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3Status(v3Status *string) {
o.V3Status = v3Status
}
// WithV3ThroughputRead adds the v3ThroughputRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3ThroughputRead(v3ThroughputRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3ThroughputRead(v3ThroughputRead)
return o
}
// SetV3ThroughputRead adds the v3ThroughputRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3ThroughputRead(v3ThroughputRead *int64) {
o.V3ThroughputRead = v3ThroughputRead
}
// WithV3ThroughputTotal adds the v3ThroughputTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3ThroughputTotal(v3ThroughputTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3ThroughputTotal(v3ThroughputTotal)
return o
}
// SetV3ThroughputTotal adds the v3ThroughputTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3ThroughputTotal(v3ThroughputTotal *int64) {
o.V3ThroughputTotal = v3ThroughputTotal
}
// WithV3ThroughputWrite adds the v3ThroughputWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV3ThroughputWrite(v3ThroughputWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV3ThroughputWrite(v3ThroughputWrite)
return o
}
// SetV3ThroughputWrite adds the v3ThroughputWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV3ThroughputWrite(v3ThroughputWrite *int64) {
o.V3ThroughputWrite = v3ThroughputWrite
}
// WithV4Duration adds the v4Duration to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4Duration(v4Duration *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4Duration(v4Duration)
return o
}
// SetV4Duration adds the v4Duration to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4Duration(v4Duration *string) {
o.V4Duration = v4Duration
}
// WithV4IopsOther adds the v4IopsOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4IopsOther(v4IopsOther *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4IopsOther(v4IopsOther)
return o
}
// SetV4IopsOther adds the v4IopsOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4IopsOther(v4IopsOther *int64) {
o.V4IopsOther = v4IopsOther
}
// WithV4IopsRead adds the v4IopsRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4IopsRead(v4IopsRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4IopsRead(v4IopsRead)
return o
}
// SetV4IopsRead adds the v4IopsRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4IopsRead(v4IopsRead *int64) {
o.V4IopsRead = v4IopsRead
}
// WithV4IopsTotal adds the v4IopsTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4IopsTotal(v4IopsTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4IopsTotal(v4IopsTotal)
return o
}
// SetV4IopsTotal adds the v4IopsTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4IopsTotal(v4IopsTotal *int64) {
o.V4IopsTotal = v4IopsTotal
}
// WithV4IopsWrite adds the v4IopsWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4IopsWrite(v4IopsWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4IopsWrite(v4IopsWrite)
return o
}
// SetV4IopsWrite adds the v4IopsWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4IopsWrite(v4IopsWrite *int64) {
o.V4IopsWrite = v4IopsWrite
}
// WithV4LatencyOther adds the v4LatencyOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4LatencyOther(v4LatencyOther *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4LatencyOther(v4LatencyOther)
return o
}
// SetV4LatencyOther adds the v4LatencyOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4LatencyOther(v4LatencyOther *int64) {
o.V4LatencyOther = v4LatencyOther
}
// WithV4LatencyRead adds the v4LatencyRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4LatencyRead(v4LatencyRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4LatencyRead(v4LatencyRead)
return o
}
// SetV4LatencyRead adds the v4LatencyRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4LatencyRead(v4LatencyRead *int64) {
o.V4LatencyRead = v4LatencyRead
}
// WithV4LatencyTotal adds the v4LatencyTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4LatencyTotal(v4LatencyTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4LatencyTotal(v4LatencyTotal)
return o
}
// SetV4LatencyTotal adds the v4LatencyTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4LatencyTotal(v4LatencyTotal *int64) {
o.V4LatencyTotal = v4LatencyTotal
}
// WithV4LatencyWrite adds the v4LatencyWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4LatencyWrite(v4LatencyWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4LatencyWrite(v4LatencyWrite)
return o
}
// SetV4LatencyWrite adds the v4LatencyWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4LatencyWrite(v4LatencyWrite *int64) {
o.V4LatencyWrite = v4LatencyWrite
}
// WithV4Status adds the v4Status to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4Status(v4Status *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4Status(v4Status)
return o
}
// SetV4Status adds the v4Status to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4Status(v4Status *string) {
o.V4Status = v4Status
}
// WithV4ThroughputRead adds the v4ThroughputRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4ThroughputRead(v4ThroughputRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4ThroughputRead(v4ThroughputRead)
return o
}
// SetV4ThroughputRead adds the v4ThroughputRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4ThroughputRead(v4ThroughputRead *int64) {
o.V4ThroughputRead = v4ThroughputRead
}
// WithV4ThroughputTotal adds the v4ThroughputTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4ThroughputTotal(v4ThroughputTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4ThroughputTotal(v4ThroughputTotal)
return o
}
// SetV4ThroughputTotal adds the v4ThroughputTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4ThroughputTotal(v4ThroughputTotal *int64) {
o.V4ThroughputTotal = v4ThroughputTotal
}
// WithV4ThroughputWrite adds the v4ThroughputWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV4ThroughputWrite(v4ThroughputWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV4ThroughputWrite(v4ThroughputWrite)
return o
}
// SetV4ThroughputWrite adds the v4ThroughputWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV4ThroughputWrite(v4ThroughputWrite *int64) {
o.V4ThroughputWrite = v4ThroughputWrite
}
// WithV41Duration adds the v41Duration to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41Duration(v41Duration *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41Duration(v41Duration)
return o
}
// SetV41Duration adds the v41Duration to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41Duration(v41Duration *string) {
o.V41Duration = v41Duration
}
// WithV41IopsOther adds the v41IopsOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41IopsOther(v41IopsOther *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41IopsOther(v41IopsOther)
return o
}
// SetV41IopsOther adds the v41IopsOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41IopsOther(v41IopsOther *int64) {
o.V41IopsOther = v41IopsOther
}
// WithV41IopsRead adds the v41IopsRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41IopsRead(v41IopsRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41IopsRead(v41IopsRead)
return o
}
// SetV41IopsRead adds the v41IopsRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41IopsRead(v41IopsRead *int64) {
o.V41IopsRead = v41IopsRead
}
// WithV41IopsTotal adds the v41IopsTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41IopsTotal(v41IopsTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41IopsTotal(v41IopsTotal)
return o
}
// SetV41IopsTotal adds the v41IopsTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41IopsTotal(v41IopsTotal *int64) {
o.V41IopsTotal = v41IopsTotal
}
// WithV41IopsWrite adds the v41IopsWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41IopsWrite(v41IopsWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41IopsWrite(v41IopsWrite)
return o
}
// SetV41IopsWrite adds the v41IopsWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41IopsWrite(v41IopsWrite *int64) {
o.V41IopsWrite = v41IopsWrite
}
// WithV41LatencyOther adds the v41LatencyOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41LatencyOther(v41LatencyOther *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41LatencyOther(v41LatencyOther)
return o
}
// SetV41LatencyOther adds the v41LatencyOther to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41LatencyOther(v41LatencyOther *int64) {
o.V41LatencyOther = v41LatencyOther
}
// WithV41LatencyRead adds the v41LatencyRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41LatencyRead(v41LatencyRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41LatencyRead(v41LatencyRead)
return o
}
// SetV41LatencyRead adds the v41LatencyRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41LatencyRead(v41LatencyRead *int64) {
o.V41LatencyRead = v41LatencyRead
}
// WithV41LatencyTotal adds the v41LatencyTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41LatencyTotal(v41LatencyTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41LatencyTotal(v41LatencyTotal)
return o
}
// SetV41LatencyTotal adds the v41LatencyTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41LatencyTotal(v41LatencyTotal *int64) {
o.V41LatencyTotal = v41LatencyTotal
}
// WithV41LatencyWrite adds the v41LatencyWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41LatencyWrite(v41LatencyWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41LatencyWrite(v41LatencyWrite)
return o
}
// SetV41LatencyWrite adds the v41LatencyWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41LatencyWrite(v41LatencyWrite *int64) {
o.V41LatencyWrite = v41LatencyWrite
}
// WithV41Status adds the v41Status to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41Status(v41Status *string) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41Status(v41Status)
return o
}
// SetV41Status adds the v41Status to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41Status(v41Status *string) {
o.V41Status = v41Status
}
// WithV41ThroughputRead adds the v41ThroughputRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41ThroughputRead(v41ThroughputRead *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41ThroughputRead(v41ThroughputRead)
return o
}
// SetV41ThroughputRead adds the v41ThroughputRead to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41ThroughputRead(v41ThroughputRead *int64) {
o.V41ThroughputRead = v41ThroughputRead
}
// WithV41ThroughputTotal adds the v41ThroughputTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41ThroughputTotal(v41ThroughputTotal *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41ThroughputTotal(v41ThroughputTotal)
return o
}
// SetV41ThroughputTotal adds the v41ThroughputTotal to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41ThroughputTotal(v41ThroughputTotal *int64) {
o.V41ThroughputTotal = v41ThroughputTotal
}
// WithV41ThroughputWrite adds the v41ThroughputWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) WithV41ThroughputWrite(v41ThroughputWrite *int64) *NfsCollectionPerformanceMetricsGetParams {
o.SetV41ThroughputWrite(v41ThroughputWrite)
return o
}
// SetV41ThroughputWrite adds the v41ThroughputWrite to the nfs collection performance metrics get params
func (o *NfsCollectionPerformanceMetricsGetParams) SetV41ThroughputWrite(v41ThroughputWrite *int64) {
o.V41ThroughputWrite = v41ThroughputWrite
}
// WriteToRequest writes these params to a swagger request
func (o *NfsCollectionPerformanceMetricsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
| 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/n_a_s/fpolicy_policy_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_policy_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"
)
// FpolicyPolicyCreateReader is a Reader for the FpolicyPolicyCreate structure.
type FpolicyPolicyCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyPolicyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewFpolicyPolicyCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyPolicyCreateDefault(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
}
}
// NewFpolicyPolicyCreateCreated creates a FpolicyPolicyCreateCreated with default headers values
func NewFpolicyPolicyCreateCreated() *FpolicyPolicyCreateCreated {
return &FpolicyPolicyCreateCreated{}
}
/*
FpolicyPolicyCreateCreated describes a response with status code 201, with default header values.
Created
*/
type FpolicyPolicyCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.FpolicyPolicyResponse
}
// IsSuccess returns true when this fpolicy policy create created response has a 2xx status code
func (o *FpolicyPolicyCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy policy create created response has a 3xx status code
func (o *FpolicyPolicyCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy policy create created response has a 4xx status code
func (o *FpolicyPolicyCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy policy create created response has a 5xx status code
func (o *FpolicyPolicyCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy policy create created response a status code equal to that given
func (o *FpolicyPolicyCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *FpolicyPolicyCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/fpolicy/{svm.uuid}/policies][%d] fpolicyPolicyCreateCreated %+v", 201, o.Payload)
}
func (o *FpolicyPolicyCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/fpolicy/{svm.uuid}/policies][%d] fpolicyPolicyCreateCreated %+v", 201, o.Payload)
}
func (o *FpolicyPolicyCreateCreated) GetPayload() *models.FpolicyPolicyResponse {
return o.Payload
}
func (o *FpolicyPolicyCreateCreated) 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.FpolicyPolicyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewFpolicyPolicyCreateDefault creates a FpolicyPolicyCreateDefault with default headers values
func NewFpolicyPolicyCreateDefault(code int) *FpolicyPolicyCreateDefault {
return &FpolicyPolicyCreateDefault{
_statusCode: code,
}
}
/*
FpolicyPolicyCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 9765027 | FPolicy creation is successful but it cannot be enabled as the priority is already in use by another policy |
| 9764898 | An FPolicy policy cannot be created without defining its scope |
| 9765037 | FPolicy creation failed as passthrough-read cannot be enabled for policy without privileged user |
*/
type FpolicyPolicyCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy policy create default response
func (o *FpolicyPolicyCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy policy create default response has a 2xx status code
func (o *FpolicyPolicyCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy policy create default response has a 3xx status code
func (o *FpolicyPolicyCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy policy create default response has a 4xx status code
func (o *FpolicyPolicyCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy policy create default response has a 5xx status code
func (o *FpolicyPolicyCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy policy create default response a status code equal to that given
func (o *FpolicyPolicyCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyPolicyCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/fpolicy/{svm.uuid}/policies][%d] fpolicy_policy_create default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyPolicyCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/fpolicy/{svm.uuid}/policies][%d] fpolicy_policy_create default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyPolicyCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyPolicyCreateDefault) 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_connection_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_connection_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"
)
// NewFpolicyConnectionModifyParams creates a new FpolicyConnectionModifyParams 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 NewFpolicyConnectionModifyParams() *FpolicyConnectionModifyParams {
return &FpolicyConnectionModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewFpolicyConnectionModifyParamsWithTimeout creates a new FpolicyConnectionModifyParams object
// with the ability to set a timeout on a request.
func NewFpolicyConnectionModifyParamsWithTimeout(timeout time.Duration) *FpolicyConnectionModifyParams {
return &FpolicyConnectionModifyParams{
timeout: timeout,
}
}
// NewFpolicyConnectionModifyParamsWithContext creates a new FpolicyConnectionModifyParams object
// with the ability to set a context for a request.
func NewFpolicyConnectionModifyParamsWithContext(ctx context.Context) *FpolicyConnectionModifyParams {
return &FpolicyConnectionModifyParams{
Context: ctx,
}
}
// NewFpolicyConnectionModifyParamsWithHTTPClient creates a new FpolicyConnectionModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewFpolicyConnectionModifyParamsWithHTTPClient(client *http.Client) *FpolicyConnectionModifyParams {
return &FpolicyConnectionModifyParams{
HTTPClient: client,
}
}
/*
FpolicyConnectionModifyParams contains all the parameters to send to the API endpoint
for the fpolicy connection modify operation.
Typically these are written to a http.Request.
*/
type FpolicyConnectionModifyParams struct {
/* Info.
Info specification
*/
Info *models.FpolicyConnection
/* NodeUUID.
Node UUID.
*/
NodeUUID string
/* PolicyName.
Policy name
*/
PolicyName string
/* Server.
FPolicy Server IP address
*/
Server 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 connection modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyConnectionModifyParams) WithDefaults() *FpolicyConnectionModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the fpolicy connection modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyConnectionModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithTimeout(timeout time.Duration) *FpolicyConnectionModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithContext(ctx context.Context) *FpolicyConnectionModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithHTTPClient(client *http.Client) *FpolicyConnectionModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithInfo(info *models.FpolicyConnection) *FpolicyConnectionModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetInfo(info *models.FpolicyConnection) {
o.Info = info
}
// WithNodeUUID adds the nodeUUID to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithNodeUUID(nodeUUID string) *FpolicyConnectionModifyParams {
o.SetNodeUUID(nodeUUID)
return o
}
// SetNodeUUID adds the nodeUuid to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetNodeUUID(nodeUUID string) {
o.NodeUUID = nodeUUID
}
// WithPolicyName adds the policyName to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithPolicyName(policyName string) *FpolicyConnectionModifyParams {
o.SetPolicyName(policyName)
return o
}
// SetPolicyName adds the policyName to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetPolicyName(policyName string) {
o.PolicyName = policyName
}
// WithServer adds the server to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithServer(server string) *FpolicyConnectionModifyParams {
o.SetServer(server)
return o
}
// SetServer adds the server to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetServer(server string) {
o.Server = server
}
// WithSvmUUID adds the svmUUID to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) WithSvmUUID(svmUUID string) *FpolicyConnectionModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the fpolicy connection modify params
func (o *FpolicyConnectionModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *FpolicyConnectionModifyParams) 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 node.uuid
if err := r.SetPathParam("node.uuid", o.NodeUUID); err != nil {
return err
}
// path param policy.name
if err := r.SetPathParam("policy.name", o.PolicyName); err != nil {
return err
}
// path param server
if err := r.SetPathParam("server", o.Server); 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/export_policy_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_policy_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"
)
// NewExportPolicyCollectionGetParams creates a new ExportPolicyCollectionGetParams 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 NewExportPolicyCollectionGetParams() *ExportPolicyCollectionGetParams {
return &ExportPolicyCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewExportPolicyCollectionGetParamsWithTimeout creates a new ExportPolicyCollectionGetParams object
// with the ability to set a timeout on a request.
func NewExportPolicyCollectionGetParamsWithTimeout(timeout time.Duration) *ExportPolicyCollectionGetParams {
return &ExportPolicyCollectionGetParams{
timeout: timeout,
}
}
// NewExportPolicyCollectionGetParamsWithContext creates a new ExportPolicyCollectionGetParams object
// with the ability to set a context for a request.
func NewExportPolicyCollectionGetParamsWithContext(ctx context.Context) *ExportPolicyCollectionGetParams {
return &ExportPolicyCollectionGetParams{
Context: ctx,
}
}
// NewExportPolicyCollectionGetParamsWithHTTPClient creates a new ExportPolicyCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewExportPolicyCollectionGetParamsWithHTTPClient(client *http.Client) *ExportPolicyCollectionGetParams {
return &ExportPolicyCollectionGetParams{
HTTPClient: client,
}
}
/*
ExportPolicyCollectionGetParams contains all the parameters to send to the API endpoint
for the export policy collection get operation.
Typically these are written to a http.Request.
*/
type ExportPolicyCollectionGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* ID.
Filter by id
*/
ID *int64
/* 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
/* RulesAllowDeviceCreation.
Filter by rules.allow_device_creation
*/
RulesAllowDeviceCreation *bool
/* RulesAllowSuid.
Filter by rules.allow_suid
*/
RulesAllowSuid *bool
/* RulesAnonymousUser.
Filter by rules.anonymous_user
*/
RulesAnonymousUser *string
/* RulesChownMode.
Filter by rules.chown_mode
*/
RulesChownMode *string
/* RulesClientsMatch.
Filter by rules.clients.match
*/
RulesClientsMatch *string
/* RulesIndex.
Filter by rules.index
*/
RulesIndex *int64
/* RulesNtfsUnixSecurity.
Filter by rules.ntfs_unix_security
*/
RulesNtfsUnixSecurity *string
/* RulesProtocols.
Filter by rules.protocols
*/
RulesProtocols *string
/* RulesRoRule.
Filter by rules.ro_rule
*/
RulesRoRule *string
/* RulesRwRule.
Filter by rules.rw_rule
*/
RulesRwRule *string
/* RulesSuperuser.
Filter by rules.superuser
*/
RulesSuperuser *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 export policy collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportPolicyCollectionGetParams) WithDefaults() *ExportPolicyCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the export policy collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportPolicyCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := ExportPolicyCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithTimeout(timeout time.Duration) *ExportPolicyCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithContext(ctx context.Context) *ExportPolicyCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithHTTPClient(client *http.Client) *ExportPolicyCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithFields(fields []string) *ExportPolicyCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithID adds the id to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithID(id *int64) *ExportPolicyCollectionGetParams {
o.SetID(id)
return o
}
// SetID adds the id to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetID(id *int64) {
o.ID = id
}
// WithMaxRecords adds the maxRecords to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithMaxRecords(maxRecords *int64) *ExportPolicyCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithName(name *string) *ExportPolicyCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithOrderBy(orderBy []string) *ExportPolicyCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithReturnRecords(returnRecords *bool) *ExportPolicyCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *ExportPolicyCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithRulesAllowDeviceCreation adds the rulesAllowDeviceCreation to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesAllowDeviceCreation(rulesAllowDeviceCreation *bool) *ExportPolicyCollectionGetParams {
o.SetRulesAllowDeviceCreation(rulesAllowDeviceCreation)
return o
}
// SetRulesAllowDeviceCreation adds the rulesAllowDeviceCreation to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesAllowDeviceCreation(rulesAllowDeviceCreation *bool) {
o.RulesAllowDeviceCreation = rulesAllowDeviceCreation
}
// WithRulesAllowSuid adds the rulesAllowSuid to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesAllowSuid(rulesAllowSuid *bool) *ExportPolicyCollectionGetParams {
o.SetRulesAllowSuid(rulesAllowSuid)
return o
}
// SetRulesAllowSuid adds the rulesAllowSuid to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesAllowSuid(rulesAllowSuid *bool) {
o.RulesAllowSuid = rulesAllowSuid
}
// WithRulesAnonymousUser adds the rulesAnonymousUser to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesAnonymousUser(rulesAnonymousUser *string) *ExportPolicyCollectionGetParams {
o.SetRulesAnonymousUser(rulesAnonymousUser)
return o
}
// SetRulesAnonymousUser adds the rulesAnonymousUser to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesAnonymousUser(rulesAnonymousUser *string) {
o.RulesAnonymousUser = rulesAnonymousUser
}
// WithRulesChownMode adds the rulesChownMode to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesChownMode(rulesChownMode *string) *ExportPolicyCollectionGetParams {
o.SetRulesChownMode(rulesChownMode)
return o
}
// SetRulesChownMode adds the rulesChownMode to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesChownMode(rulesChownMode *string) {
o.RulesChownMode = rulesChownMode
}
// WithRulesClientsMatch adds the rulesClientsMatch to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesClientsMatch(rulesClientsMatch *string) *ExportPolicyCollectionGetParams {
o.SetRulesClientsMatch(rulesClientsMatch)
return o
}
// SetRulesClientsMatch adds the rulesClientsMatch to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesClientsMatch(rulesClientsMatch *string) {
o.RulesClientsMatch = rulesClientsMatch
}
// WithRulesIndex adds the rulesIndex to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesIndex(rulesIndex *int64) *ExportPolicyCollectionGetParams {
o.SetRulesIndex(rulesIndex)
return o
}
// SetRulesIndex adds the rulesIndex to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesIndex(rulesIndex *int64) {
o.RulesIndex = rulesIndex
}
// WithRulesNtfsUnixSecurity adds the rulesNtfsUnixSecurity to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesNtfsUnixSecurity(rulesNtfsUnixSecurity *string) *ExportPolicyCollectionGetParams {
o.SetRulesNtfsUnixSecurity(rulesNtfsUnixSecurity)
return o
}
// SetRulesNtfsUnixSecurity adds the rulesNtfsUnixSecurity to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesNtfsUnixSecurity(rulesNtfsUnixSecurity *string) {
o.RulesNtfsUnixSecurity = rulesNtfsUnixSecurity
}
// WithRulesProtocols adds the rulesProtocols to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesProtocols(rulesProtocols *string) *ExportPolicyCollectionGetParams {
o.SetRulesProtocols(rulesProtocols)
return o
}
// SetRulesProtocols adds the rulesProtocols to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesProtocols(rulesProtocols *string) {
o.RulesProtocols = rulesProtocols
}
// WithRulesRoRule adds the rulesRoRule to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesRoRule(rulesRoRule *string) *ExportPolicyCollectionGetParams {
o.SetRulesRoRule(rulesRoRule)
return o
}
// SetRulesRoRule adds the rulesRoRule to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesRoRule(rulesRoRule *string) {
o.RulesRoRule = rulesRoRule
}
// WithRulesRwRule adds the rulesRwRule to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesRwRule(rulesRwRule *string) *ExportPolicyCollectionGetParams {
o.SetRulesRwRule(rulesRwRule)
return o
}
// SetRulesRwRule adds the rulesRwRule to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesRwRule(rulesRwRule *string) {
o.RulesRwRule = rulesRwRule
}
// WithRulesSuperuser adds the rulesSuperuser to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithRulesSuperuser(rulesSuperuser *string) *ExportPolicyCollectionGetParams {
o.SetRulesSuperuser(rulesSuperuser)
return o
}
// SetRulesSuperuser adds the rulesSuperuser to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetRulesSuperuser(rulesSuperuser *string) {
o.RulesSuperuser = rulesSuperuser
}
// WithSvmName adds the svmName to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithSvmName(svmName *string) *ExportPolicyCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) WithSvmUUID(svmUUID *string) *ExportPolicyCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the export policy collection get params
func (o *ExportPolicyCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *ExportPolicyCollectionGetParams) 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.ID != nil {
// query param id
var qrID int64
if o.ID != nil {
qrID = *o.ID
}
qID := swag.FormatInt64(qrID)
if qID != "" {
if err := r.SetQueryParam("id", qID); err != nil {
return err
}
}
}
if o.MaxRecords != nil {
// query param max_records
var qrMaxRecords int64
if o.MaxRecords != nil {
qrMaxRecords = *o.MaxRecords
}
qMaxRecords := swag.FormatInt64(qrMaxRecords)
if qMaxRecords != "" {
if err := r.SetQueryParam("max_records", qMaxRecords); err != nil {
return err
}
}
}
if o.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.RulesAllowDeviceCreation != nil {
// query param rules.allow_device_creation
var qrRulesAllowDeviceCreation bool
if o.RulesAllowDeviceCreation != nil {
qrRulesAllowDeviceCreation = *o.RulesAllowDeviceCreation
}
qRulesAllowDeviceCreation := swag.FormatBool(qrRulesAllowDeviceCreation)
if qRulesAllowDeviceCreation != "" {
if err := r.SetQueryParam("rules.allow_device_creation", qRulesAllowDeviceCreation); err != nil {
return err
}
}
}
if o.RulesAllowSuid != nil {
// query param rules.allow_suid
var qrRulesAllowSuid bool
if o.RulesAllowSuid != nil {
qrRulesAllowSuid = *o.RulesAllowSuid
}
qRulesAllowSuid := swag.FormatBool(qrRulesAllowSuid)
if qRulesAllowSuid != "" {
if err := r.SetQueryParam("rules.allow_suid", qRulesAllowSuid); err != nil {
return err
}
}
}
if o.RulesAnonymousUser != nil {
// query param rules.anonymous_user
var qrRulesAnonymousUser string
if o.RulesAnonymousUser != nil {
qrRulesAnonymousUser = *o.RulesAnonymousUser
}
qRulesAnonymousUser := qrRulesAnonymousUser
if qRulesAnonymousUser != "" {
if err := r.SetQueryParam("rules.anonymous_user", qRulesAnonymousUser); err != nil {
return err
}
}
}
if o.RulesChownMode != nil {
// query param rules.chown_mode
var qrRulesChownMode string
if o.RulesChownMode != nil {
qrRulesChownMode = *o.RulesChownMode
}
qRulesChownMode := qrRulesChownMode
if qRulesChownMode != "" {
if err := r.SetQueryParam("rules.chown_mode", qRulesChownMode); err != nil {
return err
}
}
}
if o.RulesClientsMatch != nil {
// query param rules.clients.match
var qrRulesClientsMatch string
if o.RulesClientsMatch != nil {
qrRulesClientsMatch = *o.RulesClientsMatch
}
qRulesClientsMatch := qrRulesClientsMatch
if qRulesClientsMatch != "" {
if err := r.SetQueryParam("rules.clients.match", qRulesClientsMatch); err != nil {
return err
}
}
}
if o.RulesIndex != nil {
// query param rules.index
var qrRulesIndex int64
if o.RulesIndex != nil {
qrRulesIndex = *o.RulesIndex
}
qRulesIndex := swag.FormatInt64(qrRulesIndex)
if qRulesIndex != "" {
if err := r.SetQueryParam("rules.index", qRulesIndex); err != nil {
return err
}
}
}
if o.RulesNtfsUnixSecurity != nil {
// query param rules.ntfs_unix_security
var qrRulesNtfsUnixSecurity string
if o.RulesNtfsUnixSecurity != nil {
qrRulesNtfsUnixSecurity = *o.RulesNtfsUnixSecurity
}
qRulesNtfsUnixSecurity := qrRulesNtfsUnixSecurity
if qRulesNtfsUnixSecurity != "" {
if err := r.SetQueryParam("rules.ntfs_unix_security", qRulesNtfsUnixSecurity); err != nil {
return err
}
}
}
if o.RulesProtocols != nil {
// query param rules.protocols
var qrRulesProtocols string
if o.RulesProtocols != nil {
qrRulesProtocols = *o.RulesProtocols
}
qRulesProtocols := qrRulesProtocols
if qRulesProtocols != "" {
if err := r.SetQueryParam("rules.protocols", qRulesProtocols); err != nil {
return err
}
}
}
if o.RulesRoRule != nil {
// query param rules.ro_rule
var qrRulesRoRule string
if o.RulesRoRule != nil {
qrRulesRoRule = *o.RulesRoRule
}
qRulesRoRule := qrRulesRoRule
if qRulesRoRule != "" {
if err := r.SetQueryParam("rules.ro_rule", qRulesRoRule); err != nil {
return err
}
}
}
if o.RulesRwRule != nil {
// query param rules.rw_rule
var qrRulesRwRule string
if o.RulesRwRule != nil {
qrRulesRwRule = *o.RulesRwRule
}
qRulesRwRule := qrRulesRwRule
if qRulesRwRule != "" {
if err := r.SetQueryParam("rules.rw_rule", qRulesRwRule); err != nil {
return err
}
}
}
if o.RulesSuperuser != nil {
// query param rules.superuser
var qrRulesSuperuser string
if o.RulesSuperuser != nil {
qrRulesSuperuser = *o.RulesSuperuser
}
qRulesSuperuser := qrRulesSuperuser
if qRulesSuperuser != "" {
if err := r.SetQueryParam("rules.superuser", qRulesSuperuser); 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
}
// bindParamExportPolicyCollectionGet binds the parameter fields
func (o *ExportPolicyCollectionGetParams) 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
}
// bindParamExportPolicyCollectionGet binds the parameter order_by
func (o *ExportPolicyCollectionGetParams) 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/cifs_domain_preferred_dc_create_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_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"
)
// CifsDomainPreferredDcCreateReader is a Reader for the CifsDomainPreferredDcCreate structure.
type CifsDomainPreferredDcCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsDomainPreferredDcCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewCifsDomainPreferredDcCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsDomainPreferredDcCreateDefault(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
}
}
// NewCifsDomainPreferredDcCreateCreated creates a CifsDomainPreferredDcCreateCreated with default headers values
func NewCifsDomainPreferredDcCreateCreated() *CifsDomainPreferredDcCreateCreated {
return &CifsDomainPreferredDcCreateCreated{}
}
/*
CifsDomainPreferredDcCreateCreated describes a response with status code 201, with default header values.
Created
*/
type CifsDomainPreferredDcCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.CifsDomainPreferredDc
}
// IsSuccess returns true when this cifs domain preferred dc create created response has a 2xx status code
func (o *CifsDomainPreferredDcCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs domain preferred dc create created response has a 3xx status code
func (o *CifsDomainPreferredDcCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs domain preferred dc create created response has a 4xx status code
func (o *CifsDomainPreferredDcCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs domain preferred dc create created response has a 5xx status code
func (o *CifsDomainPreferredDcCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this cifs domain preferred dc create created response a status code equal to that given
func (o *CifsDomainPreferredDcCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *CifsDomainPreferredDcCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers][%d] cifsDomainPreferredDcCreateCreated %+v", 201, o.Payload)
}
func (o *CifsDomainPreferredDcCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers][%d] cifsDomainPreferredDcCreateCreated %+v", 201, o.Payload)
}
func (o *CifsDomainPreferredDcCreateCreated) GetPayload() *models.CifsDomainPreferredDc {
return o.Payload
}
func (o *CifsDomainPreferredDcCreateCreated) 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.CifsDomainPreferredDc)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCifsDomainPreferredDcCreateDefault creates a CifsDomainPreferredDcCreateDefault with default headers values
func NewCifsDomainPreferredDcCreateDefault(code int) *CifsDomainPreferredDcCreateDefault {
return &CifsDomainPreferredDcCreateDefault{
_statusCode: code,
}
}
/*
CifsDomainPreferredDcCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 2621516 | Only data SVMs allowed. |
| 655918 | The fully qualified domain name cannot be longer than 254 bytes. |
| 656408 | RPC failure occured during the CIFS preferred-dc configuration validation. |
| 656407 | Failed to validate CIFS preferred-dc for domain. Reason: Configuration not found at SecD. Contact technical support for assistance. |
| 655366 | Invalid domain controller. |
| 655506 | Failed to add preferred-dc. |
*/
type CifsDomainPreferredDcCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs domain preferred dc create default response
func (o *CifsDomainPreferredDcCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs domain preferred dc create default response has a 2xx status code
func (o *CifsDomainPreferredDcCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs domain preferred dc create default response has a 3xx status code
func (o *CifsDomainPreferredDcCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs domain preferred dc create default response has a 4xx status code
func (o *CifsDomainPreferredDcCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs domain preferred dc create default response has a 5xx status code
func (o *CifsDomainPreferredDcCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs domain preferred dc create default response a status code equal to that given
func (o *CifsDomainPreferredDcCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsDomainPreferredDcCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers][%d] cifs_domain_preferred_dc_create default %+v", o._statusCode, o.Payload)
}
func (o *CifsDomainPreferredDcCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/cifs/domains/{svm.uuid}/preferred-domain-controllers][%d] cifs_domain_preferred_dc_create default %+v", o._statusCode, o.Payload)
}
func (o *CifsDomainPreferredDcCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsDomainPreferredDcCreateDefault) 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_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"
)
// LocalCifsGroupModifyReader is a Reader for the LocalCifsGroupModify structure.
type LocalCifsGroupModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *LocalCifsGroupModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewLocalCifsGroupModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewLocalCifsGroupModifyDefault(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
}
}
// NewLocalCifsGroupModifyOK creates a LocalCifsGroupModifyOK with default headers values
func NewLocalCifsGroupModifyOK() *LocalCifsGroupModifyOK {
return &LocalCifsGroupModifyOK{}
}
/*
LocalCifsGroupModifyOK describes a response with status code 200, with default header values.
OK
*/
type LocalCifsGroupModifyOK struct {
}
// IsSuccess returns true when this local cifs group modify o k response has a 2xx status code
func (o *LocalCifsGroupModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this local cifs group modify o k response has a 3xx status code
func (o *LocalCifsGroupModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this local cifs group modify o k response has a 4xx status code
func (o *LocalCifsGroupModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this local cifs group modify o k response has a 5xx status code
func (o *LocalCifsGroupModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this local cifs group modify o k response a status code equal to that given
func (o *LocalCifsGroupModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *LocalCifsGroupModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] localCifsGroupModifyOK ", 200)
}
func (o *LocalCifsGroupModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] localCifsGroupModifyOK ", 200)
}
func (o *LocalCifsGroupModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewLocalCifsGroupModifyDefault creates a LocalCifsGroupModifyDefault with default headers values
func NewLocalCifsGroupModifyDefault(code int) *LocalCifsGroupModifyDefault {
return &LocalCifsGroupModifyDefault{
_statusCode: code,
}
}
/*
LocalCifsGroupModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 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. |
| 655682 | The group name cannot be blank. |
| 655712 | To rename an existing group, the local domain specified in name must match the local domain of the group to be renamed. |
| 655713 | Failed to rename a group. The error code returned details the failure along with the reason for the failure. Take corrective actions as per the specified reason. |
*/
type LocalCifsGroupModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the local cifs group modify default response
func (o *LocalCifsGroupModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this local cifs group modify default response has a 2xx status code
func (o *LocalCifsGroupModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this local cifs group modify default response has a 3xx status code
func (o *LocalCifsGroupModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this local cifs group modify default response has a 4xx status code
func (o *LocalCifsGroupModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this local cifs group modify default response has a 5xx status code
func (o *LocalCifsGroupModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this local cifs group modify default response a status code equal to that given
func (o *LocalCifsGroupModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *LocalCifsGroupModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] local_cifs_group_modify default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsGroupModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] local_cifs_group_modify default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsGroupModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *LocalCifsGroupModifyDefault) 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_interface_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/kerberos_interface_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"
)
// NewKerberosInterfaceModifyParams creates a new KerberosInterfaceModifyParams 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 NewKerberosInterfaceModifyParams() *KerberosInterfaceModifyParams {
return &KerberosInterfaceModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewKerberosInterfaceModifyParamsWithTimeout creates a new KerberosInterfaceModifyParams object
// with the ability to set a timeout on a request.
func NewKerberosInterfaceModifyParamsWithTimeout(timeout time.Duration) *KerberosInterfaceModifyParams {
return &KerberosInterfaceModifyParams{
timeout: timeout,
}
}
// NewKerberosInterfaceModifyParamsWithContext creates a new KerberosInterfaceModifyParams object
// with the ability to set a context for a request.
func NewKerberosInterfaceModifyParamsWithContext(ctx context.Context) *KerberosInterfaceModifyParams {
return &KerberosInterfaceModifyParams{
Context: ctx,
}
}
// NewKerberosInterfaceModifyParamsWithHTTPClient creates a new KerberosInterfaceModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewKerberosInterfaceModifyParamsWithHTTPClient(client *http.Client) *KerberosInterfaceModifyParams {
return &KerberosInterfaceModifyParams{
HTTPClient: client,
}
}
/*
KerberosInterfaceModifyParams contains all the parameters to send to the API endpoint
for the kerberos interface modify operation.
Typically these are written to a http.Request.
*/
type KerberosInterfaceModifyParams struct {
/* Info.
Info specification
*/
Info *models.KerberosInterface
/* InterfaceUUID.
Network interface UUID
*/
InterfaceUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the kerberos interface modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KerberosInterfaceModifyParams) WithDefaults() *KerberosInterfaceModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the kerberos interface modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KerberosInterfaceModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) WithTimeout(timeout time.Duration) *KerberosInterfaceModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) WithContext(ctx context.Context) *KerberosInterfaceModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) WithHTTPClient(client *http.Client) *KerberosInterfaceModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) WithInfo(info *models.KerberosInterface) *KerberosInterfaceModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) SetInfo(info *models.KerberosInterface) {
o.Info = info
}
// WithInterfaceUUID adds the interfaceUUID to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) WithInterfaceUUID(interfaceUUID string) *KerberosInterfaceModifyParams {
o.SetInterfaceUUID(interfaceUUID)
return o
}
// SetInterfaceUUID adds the interfaceUuid to the kerberos interface modify params
func (o *KerberosInterfaceModifyParams) SetInterfaceUUID(interfaceUUID string) {
o.InterfaceUUID = interfaceUUID
}
// WriteToRequest writes these params to a swagger request
func (o *KerberosInterfaceModifyParams) 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 interface.uuid
if err := r.SetPathParam("interface.uuid", o.InterfaceUUID); 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_open_file_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_open_file_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"
)
// NewCifsOpenFileGetParams creates a new CifsOpenFileGetParams 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 NewCifsOpenFileGetParams() *CifsOpenFileGetParams {
return &CifsOpenFileGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsOpenFileGetParamsWithTimeout creates a new CifsOpenFileGetParams object
// with the ability to set a timeout on a request.
func NewCifsOpenFileGetParamsWithTimeout(timeout time.Duration) *CifsOpenFileGetParams {
return &CifsOpenFileGetParams{
timeout: timeout,
}
}
// NewCifsOpenFileGetParamsWithContext creates a new CifsOpenFileGetParams object
// with the ability to set a context for a request.
func NewCifsOpenFileGetParamsWithContext(ctx context.Context) *CifsOpenFileGetParams {
return &CifsOpenFileGetParams{
Context: ctx,
}
}
// NewCifsOpenFileGetParamsWithHTTPClient creates a new CifsOpenFileGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsOpenFileGetParamsWithHTTPClient(client *http.Client) *CifsOpenFileGetParams {
return &CifsOpenFileGetParams{
HTTPClient: client,
}
}
/*
CifsOpenFileGetParams contains all the parameters to send to the API endpoint
for the cifs open file get operation.
Typically these are written to a http.Request.
*/
type CifsOpenFileGetParams struct {
/* ConnectionIdentifier.
Connection ID
*/
ConnectionIdentifier int64
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Identifier.
File ID
Format: int64
*/
Identifier int64
/* NodeUUID.
Node UUID.
*/
NodeUUID string
/* SessionIdentifier.
Session ID
Format: int64
*/
SessionIdentifier int64
/* 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 open file get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsOpenFileGetParams) WithDefaults() *CifsOpenFileGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs open file get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsOpenFileGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs open file get params
func (o *CifsOpenFileGetParams) WithTimeout(timeout time.Duration) *CifsOpenFileGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs open file get params
func (o *CifsOpenFileGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs open file get params
func (o *CifsOpenFileGetParams) WithContext(ctx context.Context) *CifsOpenFileGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs open file get params
func (o *CifsOpenFileGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs open file get params
func (o *CifsOpenFileGetParams) WithHTTPClient(client *http.Client) *CifsOpenFileGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs open file get params
func (o *CifsOpenFileGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithConnectionIdentifier adds the connectionIdentifier to the cifs open file get params
func (o *CifsOpenFileGetParams) WithConnectionIdentifier(connectionIdentifier int64) *CifsOpenFileGetParams {
o.SetConnectionIdentifier(connectionIdentifier)
return o
}
// SetConnectionIdentifier adds the connectionIdentifier to the cifs open file get params
func (o *CifsOpenFileGetParams) SetConnectionIdentifier(connectionIdentifier int64) {
o.ConnectionIdentifier = connectionIdentifier
}
// WithFields adds the fields to the cifs open file get params
func (o *CifsOpenFileGetParams) WithFields(fields []string) *CifsOpenFileGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs open file get params
func (o *CifsOpenFileGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIdentifier adds the identifier to the cifs open file get params
func (o *CifsOpenFileGetParams) WithIdentifier(identifier int64) *CifsOpenFileGetParams {
o.SetIdentifier(identifier)
return o
}
// SetIdentifier adds the identifier to the cifs open file get params
func (o *CifsOpenFileGetParams) SetIdentifier(identifier int64) {
o.Identifier = identifier
}
// WithNodeUUID adds the nodeUUID to the cifs open file get params
func (o *CifsOpenFileGetParams) WithNodeUUID(nodeUUID string) *CifsOpenFileGetParams {
o.SetNodeUUID(nodeUUID)
return o
}
// SetNodeUUID adds the nodeUuid to the cifs open file get params
func (o *CifsOpenFileGetParams) SetNodeUUID(nodeUUID string) {
o.NodeUUID = nodeUUID
}
// WithSessionIdentifier adds the sessionIdentifier to the cifs open file get params
func (o *CifsOpenFileGetParams) WithSessionIdentifier(sessionIdentifier int64) *CifsOpenFileGetParams {
o.SetSessionIdentifier(sessionIdentifier)
return o
}
// SetSessionIdentifier adds the sessionIdentifier to the cifs open file get params
func (o *CifsOpenFileGetParams) SetSessionIdentifier(sessionIdentifier int64) {
o.SessionIdentifier = sessionIdentifier
}
// WithSvmUUID adds the svmUUID to the cifs open file get params
func (o *CifsOpenFileGetParams) WithSvmUUID(svmUUID string) *CifsOpenFileGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs open file get params
func (o *CifsOpenFileGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsOpenFileGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param connection.identifier
if err := r.SetPathParam("connection.identifier", swag.FormatInt64(o.ConnectionIdentifier)); 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 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 session.identifier
if err := r.SetPathParam("session.identifier", swag.FormatInt64(o.SessionIdentifier)); 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
}
// bindParamCifsOpenFileGet binds the parameter fields
func (o *CifsOpenFileGetParams) 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/vscan_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_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"
)
// VscanCreateReader is a Reader for the VscanCreate structure.
type VscanCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *VscanCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewVscanCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewVscanCreateDefault(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
}
}
// NewVscanCreateCreated creates a VscanCreateCreated with default headers values
func NewVscanCreateCreated() *VscanCreateCreated {
return &VscanCreateCreated{}
}
/*
VscanCreateCreated describes a response with status code 201, with default header values.
Created
*/
type VscanCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.VscanResponse
}
// IsSuccess returns true when this vscan create created response has a 2xx status code
func (o *VscanCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this vscan create created response has a 3xx status code
func (o *VscanCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this vscan create created response has a 4xx status code
func (o *VscanCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this vscan create created response has a 5xx status code
func (o *VscanCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this vscan create created response a status code equal to that given
func (o *VscanCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *VscanCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/vscan][%d] vscanCreateCreated %+v", 201, o.Payload)
}
func (o *VscanCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/vscan][%d] vscanCreateCreated %+v", 201, o.Payload)
}
func (o *VscanCreateCreated) GetPayload() *models.VscanResponse {
return o.Payload
}
func (o *VscanCreateCreated) 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.VscanResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewVscanCreateDefault creates a VscanCreateDefault with default headers values
func NewVscanCreateDefault(code int) *VscanCreateDefault {
return &VscanCreateDefault{
_statusCode: code,
}
}
/*
VscanCreateDefault 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 created 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, if a scanner-pool fails due to an incorrect cluster name, then the error might read: \"Failed to create scanner-pool \"scanner-1\". Reason: \"Cluster uuid points to different cluster name instead of the cluster-name supplied.\". Retry the operation.\"
| 10027260 | If a scanner-pool, an On-Access policy or an On-Demand policy specified in the input already exists, then a duplicate error is returned. For example, if a scanner-pool \"scanner-1\" already exists for an SVM and is again specified in the input, the error message will read: \" Failed to create scanner-pool \"scanner-1\" as the specified entry already exists. Delete the entry and retry the POST operation.\"
| 2621462 | The specified SVM name is invalid
| 2621706 | The specified svm.uuid is either invalid or belongs to a different SVM
| 10027015 | Attempting to enable a Vscan but no active scanner-pool exists for the specified SVM
| 10027011 | Attempting to enable a Vscan for an SVM for which no CIFS server exists
| 10027023 | Attempting to enable a Vscan for an SVM for which no active Vscan On-Access policy exist
*/
type VscanCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the vscan create default response
func (o *VscanCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this vscan create default response has a 2xx status code
func (o *VscanCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this vscan create default response has a 3xx status code
func (o *VscanCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this vscan create default response has a 4xx status code
func (o *VscanCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this vscan create default response has a 5xx status code
func (o *VscanCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this vscan create default response a status code equal to that given
func (o *VscanCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *VscanCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/vscan][%d] vscan_create default %+v", o._statusCode, o.Payload)
}
func (o *VscanCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/vscan][%d] vscan_create default %+v", o._statusCode, o.Payload)
}
func (o *VscanCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *VscanCreateDefault) 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_connection_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_connection_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"
)
// NewCifsConnectionCollectionGetParams creates a new CifsConnectionCollectionGetParams 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 NewCifsConnectionCollectionGetParams() *CifsConnectionCollectionGetParams {
return &CifsConnectionCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsConnectionCollectionGetParamsWithTimeout creates a new CifsConnectionCollectionGetParams object
// with the ability to set a timeout on a request.
func NewCifsConnectionCollectionGetParamsWithTimeout(timeout time.Duration) *CifsConnectionCollectionGetParams {
return &CifsConnectionCollectionGetParams{
timeout: timeout,
}
}
// NewCifsConnectionCollectionGetParamsWithContext creates a new CifsConnectionCollectionGetParams object
// with the ability to set a context for a request.
func NewCifsConnectionCollectionGetParamsWithContext(ctx context.Context) *CifsConnectionCollectionGetParams {
return &CifsConnectionCollectionGetParams{
Context: ctx,
}
}
// NewCifsConnectionCollectionGetParamsWithHTTPClient creates a new CifsConnectionCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsConnectionCollectionGetParamsWithHTTPClient(client *http.Client) *CifsConnectionCollectionGetParams {
return &CifsConnectionCollectionGetParams{
HTTPClient: client,
}
}
/*
CifsConnectionCollectionGetParams contains all the parameters to send to the API endpoint
for the cifs connection collection get operation.
Typically these are written to a http.Request.
*/
type CifsConnectionCollectionGetParams struct {
/* ClientIP.
Filter by client_ip
*/
ClientIP *string
/* ClientPort.
Filter by client_port
*/
ClientPort *int64
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Identifier.
Filter by identifier
*/
Identifier *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* NetworkContextID.
Filter by network_context_id
*/
NetworkContextID *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
/* SessionsIdentifier.
Filter by sessions.identifier
*/
SessionsIdentifier *int64
/* 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 cifs connection collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsConnectionCollectionGetParams) WithDefaults() *CifsConnectionCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs connection collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsConnectionCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := CifsConnectionCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithTimeout(timeout time.Duration) *CifsConnectionCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithContext(ctx context.Context) *CifsConnectionCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithHTTPClient(client *http.Client) *CifsConnectionCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithClientIP adds the clientIP to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithClientIP(clientIP *string) *CifsConnectionCollectionGetParams {
o.SetClientIP(clientIP)
return o
}
// SetClientIP adds the clientIp to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetClientIP(clientIP *string) {
o.ClientIP = clientIP
}
// WithClientPort adds the clientPort to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithClientPort(clientPort *int64) *CifsConnectionCollectionGetParams {
o.SetClientPort(clientPort)
return o
}
// SetClientPort adds the clientPort to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetClientPort(clientPort *int64) {
o.ClientPort = clientPort
}
// WithFields adds the fields to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithFields(fields []string) *CifsConnectionCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIdentifier adds the identifier to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithIdentifier(identifier *int64) *CifsConnectionCollectionGetParams {
o.SetIdentifier(identifier)
return o
}
// SetIdentifier adds the identifier to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetIdentifier(identifier *int64) {
o.Identifier = identifier
}
// WithMaxRecords adds the maxRecords to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithMaxRecords(maxRecords *int64) *CifsConnectionCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithNetworkContextID adds the networkContextID to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithNetworkContextID(networkContextID *int64) *CifsConnectionCollectionGetParams {
o.SetNetworkContextID(networkContextID)
return o
}
// SetNetworkContextID adds the networkContextId to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetNetworkContextID(networkContextID *int64) {
o.NetworkContextID = networkContextID
}
// WithNodeName adds the nodeName to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithNodeName(nodeName *string) *CifsConnectionCollectionGetParams {
o.SetNodeName(nodeName)
return o
}
// SetNodeName adds the nodeName to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetNodeName(nodeName *string) {
o.NodeName = nodeName
}
// WithNodeUUID adds the nodeUUID to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithNodeUUID(nodeUUID *string) *CifsConnectionCollectionGetParams {
o.SetNodeUUID(nodeUUID)
return o
}
// SetNodeUUID adds the nodeUuid to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetNodeUUID(nodeUUID *string) {
o.NodeUUID = nodeUUID
}
// WithOrderBy adds the orderBy to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithOrderBy(orderBy []string) *CifsConnectionCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithReturnRecords(returnRecords *bool) *CifsConnectionCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *CifsConnectionCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithServerIP adds the serverIP to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithServerIP(serverIP *string) *CifsConnectionCollectionGetParams {
o.SetServerIP(serverIP)
return o
}
// SetServerIP adds the serverIp to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetServerIP(serverIP *string) {
o.ServerIP = serverIP
}
// WithSessionsIdentifier adds the sessionsIdentifier to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithSessionsIdentifier(sessionsIdentifier *int64) *CifsConnectionCollectionGetParams {
o.SetSessionsIdentifier(sessionsIdentifier)
return o
}
// SetSessionsIdentifier adds the sessionsIdentifier to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetSessionsIdentifier(sessionsIdentifier *int64) {
o.SessionsIdentifier = sessionsIdentifier
}
// WithSvmName adds the svmName to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithSvmName(svmName *string) *CifsConnectionCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) WithSvmUUID(svmUUID *string) *CifsConnectionCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs connection collection get params
func (o *CifsConnectionCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsConnectionCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.ClientIP != nil {
// query param client_ip
var qrClientIP string
if o.ClientIP != nil {
qrClientIP = *o.ClientIP
}
qClientIP := qrClientIP
if qClientIP != "" {
if err := r.SetQueryParam("client_ip", qClientIP); err != nil {
return err
}
}
}
if o.ClientPort != nil {
// query param client_port
var qrClientPort int64
if o.ClientPort != nil {
qrClientPort = *o.ClientPort
}
qClientPort := swag.FormatInt64(qrClientPort)
if qClientPort != "" {
if err := r.SetQueryParam("client_port", qClientPort); 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.Identifier != nil {
// query param identifier
var qrIdentifier int64
if o.Identifier != nil {
qrIdentifier = *o.Identifier
}
qIdentifier := swag.FormatInt64(qrIdentifier)
if qIdentifier != "" {
if err := r.SetQueryParam("identifier", qIdentifier); 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.NetworkContextID != nil {
// query param network_context_id
var qrNetworkContextID int64
if o.NetworkContextID != nil {
qrNetworkContextID = *o.NetworkContextID
}
qNetworkContextID := swag.FormatInt64(qrNetworkContextID)
if qNetworkContextID != "" {
if err := r.SetQueryParam("network_context_id", qNetworkContextID); 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.SessionsIdentifier != nil {
// query param sessions.identifier
var qrSessionsIdentifier int64
if o.SessionsIdentifier != nil {
qrSessionsIdentifier = *o.SessionsIdentifier
}
qSessionsIdentifier := swag.FormatInt64(qrSessionsIdentifier)
if qSessionsIdentifier != "" {
if err := r.SetQueryParam("sessions.identifier", qSessionsIdentifier); 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
}
// bindParamCifsConnectionCollectionGet binds the parameter fields
func (o *CifsConnectionCollectionGetParams) 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
}
// bindParamCifsConnectionCollectionGet binds the parameter order_by
func (o *CifsConnectionCollectionGetParams) 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/client_lock_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/client_lock_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"
)
// ClientLockDeleteReader is a Reader for the ClientLockDelete structure.
type ClientLockDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ClientLockDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewClientLockDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewClientLockDeleteDefault(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
}
}
// NewClientLockDeleteOK creates a ClientLockDeleteOK with default headers values
func NewClientLockDeleteOK() *ClientLockDeleteOK {
return &ClientLockDeleteOK{}
}
/*
ClientLockDeleteOK describes a response with status code 200, with default header values.
OK
*/
type ClientLockDeleteOK struct {
}
// IsSuccess returns true when this client lock delete o k response has a 2xx status code
func (o *ClientLockDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this client lock delete o k response has a 3xx status code
func (o *ClientLockDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this client lock delete o k response has a 4xx status code
func (o *ClientLockDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this client lock delete o k response has a 5xx status code
func (o *ClientLockDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this client lock delete o k response a status code equal to that given
func (o *ClientLockDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *ClientLockDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/locks/{uuid}][%d] clientLockDeleteOK ", 200)
}
func (o *ClientLockDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/locks/{uuid}][%d] clientLockDeleteOK ", 200)
}
func (o *ClientLockDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewClientLockDeleteDefault creates a ClientLockDeleteDefault with default headers values
func NewClientLockDeleteDefault(code int) *ClientLockDeleteDefault {
return &ClientLockDeleteDefault{
_statusCode: code,
}
}
/*
ClientLockDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type ClientLockDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the client lock delete default response
func (o *ClientLockDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this client lock delete default response has a 2xx status code
func (o *ClientLockDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this client lock delete default response has a 3xx status code
func (o *ClientLockDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this client lock delete default response has a 4xx status code
func (o *ClientLockDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this client lock delete default response has a 5xx status code
func (o *ClientLockDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this client lock delete default response a status code equal to that given
func (o *ClientLockDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ClientLockDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/locks/{uuid}][%d] client_lock_delete default %+v", o._statusCode, o.Payload)
}
func (o *ClientLockDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/locks/{uuid}][%d] client_lock_delete default %+v", o._statusCode, o.Payload)
}
func (o *ClientLockDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ClientLockDeleteDefault) 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/export_policy_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_policy_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"
)
// ExportPolicyModifyReader is a Reader for the ExportPolicyModify structure.
type ExportPolicyModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ExportPolicyModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewExportPolicyModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewExportPolicyModifyDefault(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
}
}
// NewExportPolicyModifyOK creates a ExportPolicyModifyOK with default headers values
func NewExportPolicyModifyOK() *ExportPolicyModifyOK {
return &ExportPolicyModifyOK{}
}
/*
ExportPolicyModifyOK describes a response with status code 200, with default header values.
OK
*/
type ExportPolicyModifyOK struct {
}
// IsSuccess returns true when this export policy modify o k response has a 2xx status code
func (o *ExportPolicyModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this export policy modify o k response has a 3xx status code
func (o *ExportPolicyModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this export policy modify o k response has a 4xx status code
func (o *ExportPolicyModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this export policy modify o k response has a 5xx status code
func (o *ExportPolicyModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this export policy modify o k response a status code equal to that given
func (o *ExportPolicyModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *ExportPolicyModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/nfs/export-policies/{id}][%d] exportPolicyModifyOK ", 200)
}
func (o *ExportPolicyModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/nfs/export-policies/{id}][%d] exportPolicyModifyOK ", 200)
}
func (o *ExportPolicyModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewExportPolicyModifyDefault creates a ExportPolicyModifyDefault with default headers values
func NewExportPolicyModifyDefault(code int) *ExportPolicyModifyDefault {
return &ExportPolicyModifyDefault{
_statusCode: code,
}
}
/*
ExportPolicyModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 1703950 | Failed to rename ruleset |
| 1703952 | Invalid ruleset name provided. No spaces are allowed in a ruleset name|
*/
type ExportPolicyModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the export policy modify default response
func (o *ExportPolicyModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this export policy modify default response has a 2xx status code
func (o *ExportPolicyModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this export policy modify default response has a 3xx status code
func (o *ExportPolicyModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this export policy modify default response has a 4xx status code
func (o *ExportPolicyModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this export policy modify default response has a 5xx status code
func (o *ExportPolicyModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this export policy modify default response a status code equal to that given
func (o *ExportPolicyModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ExportPolicyModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/nfs/export-policies/{id}][%d] export_policy_modify default %+v", o._statusCode, o.Payload)
}
func (o *ExportPolicyModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/nfs/export-policies/{id}][%d] export_policy_modify default %+v", o._statusCode, o.Payload)
}
func (o *ExportPolicyModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ExportPolicyModifyDefault) 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_scanner_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_scanner_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"
)
// NewVscanScannerCreateParams creates a new VscanScannerCreateParams 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 NewVscanScannerCreateParams() *VscanScannerCreateParams {
return &VscanScannerCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewVscanScannerCreateParamsWithTimeout creates a new VscanScannerCreateParams object
// with the ability to set a timeout on a request.
func NewVscanScannerCreateParamsWithTimeout(timeout time.Duration) *VscanScannerCreateParams {
return &VscanScannerCreateParams{
timeout: timeout,
}
}
// NewVscanScannerCreateParamsWithContext creates a new VscanScannerCreateParams object
// with the ability to set a context for a request.
func NewVscanScannerCreateParamsWithContext(ctx context.Context) *VscanScannerCreateParams {
return &VscanScannerCreateParams{
Context: ctx,
}
}
// NewVscanScannerCreateParamsWithHTTPClient creates a new VscanScannerCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewVscanScannerCreateParamsWithHTTPClient(client *http.Client) *VscanScannerCreateParams {
return &VscanScannerCreateParams{
HTTPClient: client,
}
}
/*
VscanScannerCreateParams contains all the parameters to send to the API endpoint
for the vscan scanner create operation.
Typically these are written to a http.Request.
*/
type VscanScannerCreateParams struct {
/* Info.
Info specification
*/
Info *models.VscanScannerPool
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *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 vscan scanner create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanScannerCreateParams) WithDefaults() *VscanScannerCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the vscan scanner create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanScannerCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := VscanScannerCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the vscan scanner create params
func (o *VscanScannerCreateParams) WithTimeout(timeout time.Duration) *VscanScannerCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the vscan scanner create params
func (o *VscanScannerCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the vscan scanner create params
func (o *VscanScannerCreateParams) WithContext(ctx context.Context) *VscanScannerCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the vscan scanner create params
func (o *VscanScannerCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the vscan scanner create params
func (o *VscanScannerCreateParams) WithHTTPClient(client *http.Client) *VscanScannerCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the vscan scanner create params
func (o *VscanScannerCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the vscan scanner create params
func (o *VscanScannerCreateParams) WithInfo(info *models.VscanScannerPool) *VscanScannerCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the vscan scanner create params
func (o *VscanScannerCreateParams) SetInfo(info *models.VscanScannerPool) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the vscan scanner create params
func (o *VscanScannerCreateParams) WithReturnRecords(returnRecords *bool) *VscanScannerCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the vscan scanner create params
func (o *VscanScannerCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSvmUUID adds the svmUUID to the vscan scanner create params
func (o *VscanScannerCreateParams) WithSvmUUID(svmUUID string) *VscanScannerCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the vscan scanner create params
func (o *VscanScannerCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *VscanScannerCreateParams) 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
}
}
}
// 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/vscan_on_access_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_on_access_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"
)
// NewVscanOnAccessCreateParams creates a new VscanOnAccessCreateParams 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 NewVscanOnAccessCreateParams() *VscanOnAccessCreateParams {
return &VscanOnAccessCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewVscanOnAccessCreateParamsWithTimeout creates a new VscanOnAccessCreateParams object
// with the ability to set a timeout on a request.
func NewVscanOnAccessCreateParamsWithTimeout(timeout time.Duration) *VscanOnAccessCreateParams {
return &VscanOnAccessCreateParams{
timeout: timeout,
}
}
// NewVscanOnAccessCreateParamsWithContext creates a new VscanOnAccessCreateParams object
// with the ability to set a context for a request.
func NewVscanOnAccessCreateParamsWithContext(ctx context.Context) *VscanOnAccessCreateParams {
return &VscanOnAccessCreateParams{
Context: ctx,
}
}
// NewVscanOnAccessCreateParamsWithHTTPClient creates a new VscanOnAccessCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewVscanOnAccessCreateParamsWithHTTPClient(client *http.Client) *VscanOnAccessCreateParams {
return &VscanOnAccessCreateParams{
HTTPClient: client,
}
}
/*
VscanOnAccessCreateParams contains all the parameters to send to the API endpoint
for the vscan on access create operation.
Typically these are written to a http.Request.
*/
type VscanOnAccessCreateParams struct {
/* Info.
Info specification
*/
Info *models.VscanOnAccess
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *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 vscan on access create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanOnAccessCreateParams) WithDefaults() *VscanOnAccessCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the vscan on access create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanOnAccessCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := VscanOnAccessCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the vscan on access create params
func (o *VscanOnAccessCreateParams) WithTimeout(timeout time.Duration) *VscanOnAccessCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the vscan on access create params
func (o *VscanOnAccessCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the vscan on access create params
func (o *VscanOnAccessCreateParams) WithContext(ctx context.Context) *VscanOnAccessCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the vscan on access create params
func (o *VscanOnAccessCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the vscan on access create params
func (o *VscanOnAccessCreateParams) WithHTTPClient(client *http.Client) *VscanOnAccessCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the vscan on access create params
func (o *VscanOnAccessCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the vscan on access create params
func (o *VscanOnAccessCreateParams) WithInfo(info *models.VscanOnAccess) *VscanOnAccessCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the vscan on access create params
func (o *VscanOnAccessCreateParams) SetInfo(info *models.VscanOnAccess) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the vscan on access create params
func (o *VscanOnAccessCreateParams) WithReturnRecords(returnRecords *bool) *VscanOnAccessCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the vscan on access create params
func (o *VscanOnAccessCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSvmUUID adds the svmUUID to the vscan on access create params
func (o *VscanOnAccessCreateParams) WithSvmUUID(svmUUID string) *VscanOnAccessCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the vscan on access create params
func (o *VscanOnAccessCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *VscanOnAccessCreateParams) 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
}
}
}
// 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_service_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_service_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"
)
// CifsServiceCollectionGetReader is a Reader for the CifsServiceCollectionGet structure.
type CifsServiceCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsServiceCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewCifsServiceCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsServiceCollectionGetDefault(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
}
}
// NewCifsServiceCollectionGetOK creates a CifsServiceCollectionGetOK with default headers values
func NewCifsServiceCollectionGetOK() *CifsServiceCollectionGetOK {
return &CifsServiceCollectionGetOK{}
}
/*
CifsServiceCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type CifsServiceCollectionGetOK struct {
Payload *models.CifsServiceResponse
}
// IsSuccess returns true when this cifs service collection get o k response has a 2xx status code
func (o *CifsServiceCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs service collection get o k response has a 3xx status code
func (o *CifsServiceCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs service collection get o k response has a 4xx status code
func (o *CifsServiceCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs service collection get o k response has a 5xx status code
func (o *CifsServiceCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this cifs service collection get o k response a status code equal to that given
func (o *CifsServiceCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *CifsServiceCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/services][%d] cifsServiceCollectionGetOK %+v", 200, o.Payload)
}
func (o *CifsServiceCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/services][%d] cifsServiceCollectionGetOK %+v", 200, o.Payload)
}
func (o *CifsServiceCollectionGetOK) GetPayload() *models.CifsServiceResponse {
return o.Payload
}
func (o *CifsServiceCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.CifsServiceResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCifsServiceCollectionGetDefault creates a CifsServiceCollectionGetDefault with default headers values
func NewCifsServiceCollectionGetDefault(code int) *CifsServiceCollectionGetDefault {
return &CifsServiceCollectionGetDefault{
_statusCode: code,
}
}
/*
CifsServiceCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type CifsServiceCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs service collection get default response
func (o *CifsServiceCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs service collection get default response has a 2xx status code
func (o *CifsServiceCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs service collection get default response has a 3xx status code
func (o *CifsServiceCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs service collection get default response has a 4xx status code
func (o *CifsServiceCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs service collection get default response has a 5xx status code
func (o *CifsServiceCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs service collection get default response a status code equal to that given
func (o *CifsServiceCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsServiceCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/services][%d] cifs_service_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *CifsServiceCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/services][%d] cifs_service_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *CifsServiceCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsServiceCollectionGetDefault) 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_share_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_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"
)
// CifsShareDeleteReader is a Reader for the CifsShareDelete structure.
type CifsShareDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsShareDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewCifsShareDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsShareDeleteDefault(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
}
}
// NewCifsShareDeleteOK creates a CifsShareDeleteOK with default headers values
func NewCifsShareDeleteOK() *CifsShareDeleteOK {
return &CifsShareDeleteOK{}
}
/*
CifsShareDeleteOK describes a response with status code 200, with default header values.
OK
*/
type CifsShareDeleteOK struct {
}
// IsSuccess returns true when this cifs share delete o k response has a 2xx status code
func (o *CifsShareDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs share delete o k response has a 3xx status code
func (o *CifsShareDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs share delete o k response has a 4xx status code
func (o *CifsShareDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs share delete o k response has a 5xx status code
func (o *CifsShareDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this cifs share delete o k response a status code equal to that given
func (o *CifsShareDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *CifsShareDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{name}][%d] cifsShareDeleteOK ", 200)
}
func (o *CifsShareDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{name}][%d] cifsShareDeleteOK ", 200)
}
func (o *CifsShareDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewCifsShareDeleteDefault creates a CifsShareDeleteDefault with default headers values
func NewCifsShareDeleteDefault(code int) *CifsShareDeleteDefault {
return &CifsShareDeleteDefault{
_statusCode: code,
}
}
/*
CifsShareDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 655393 | Standard admin shares cannot be removed |
*/
type CifsShareDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs share delete default response
func (o *CifsShareDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs share delete default response has a 2xx status code
func (o *CifsShareDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs share delete default response has a 3xx status code
func (o *CifsShareDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs share delete default response has a 4xx status code
func (o *CifsShareDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs share delete default response has a 5xx status code
func (o *CifsShareDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs share delete default response a status code equal to that given
func (o *CifsShareDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsShareDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{name}][%d] cifs_share_delete default %+v", o._statusCode, o.Payload)
}
func (o *CifsShareDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/cifs/shares/{svm.uuid}/{name}][%d] cifs_share_delete default %+v", o._statusCode, o.Payload)
}
func (o *CifsShareDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsShareDeleteDefault) 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/netbios_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/netbios_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"
)
// NetbiosCollectionGetReader is a Reader for the NetbiosCollectionGet structure.
type NetbiosCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *NetbiosCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewNetbiosCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewNetbiosCollectionGetDefault(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
}
}
// NewNetbiosCollectionGetOK creates a NetbiosCollectionGetOK with default headers values
func NewNetbiosCollectionGetOK() *NetbiosCollectionGetOK {
return &NetbiosCollectionGetOK{}
}
/*
NetbiosCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type NetbiosCollectionGetOK struct {
Payload *models.NetbiosResponse
}
// IsSuccess returns true when this netbios collection get o k response has a 2xx status code
func (o *NetbiosCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this netbios collection get o k response has a 3xx status code
func (o *NetbiosCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this netbios collection get o k response has a 4xx status code
func (o *NetbiosCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this netbios collection get o k response has a 5xx status code
func (o *NetbiosCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this netbios collection get o k response a status code equal to that given
func (o *NetbiosCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *NetbiosCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/netbios][%d] netbiosCollectionGetOK %+v", 200, o.Payload)
}
func (o *NetbiosCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/netbios][%d] netbiosCollectionGetOK %+v", 200, o.Payload)
}
func (o *NetbiosCollectionGetOK) GetPayload() *models.NetbiosResponse {
return o.Payload
}
func (o *NetbiosCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.NetbiosResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewNetbiosCollectionGetDefault creates a NetbiosCollectionGetDefault with default headers values
func NewNetbiosCollectionGetDefault(code int) *NetbiosCollectionGetDefault {
return &NetbiosCollectionGetDefault{
_statusCode: code,
}
}
/*
NetbiosCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type NetbiosCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the netbios collection get default response
func (o *NetbiosCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this netbios collection get default response has a 2xx status code
func (o *NetbiosCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this netbios collection get default response has a 3xx status code
func (o *NetbiosCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this netbios collection get default response has a 4xx status code
func (o *NetbiosCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this netbios collection get default response has a 5xx status code
func (o *NetbiosCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this netbios collection get default response a status code equal to that given
func (o *NetbiosCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *NetbiosCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/netbios][%d] netbios_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *NetbiosCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/netbios][%d] netbios_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *NetbiosCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *NetbiosCollectionGetDefault) 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_responses.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_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"
)
// FileDirectorySecurityACLDeleteReader is a Reader for the FileDirectorySecurityACLDelete structure.
type FileDirectorySecurityACLDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FileDirectorySecurityACLDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewFileDirectorySecurityACLDeleteAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFileDirectorySecurityACLDeleteDefault(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
}
}
// NewFileDirectorySecurityACLDeleteAccepted creates a FileDirectorySecurityACLDeleteAccepted with default headers values
func NewFileDirectorySecurityACLDeleteAccepted() *FileDirectorySecurityACLDeleteAccepted {
return &FileDirectorySecurityACLDeleteAccepted{}
}
/*
FileDirectorySecurityACLDeleteAccepted describes a response with status code 202, with default header values.
Accepted
*/
type FileDirectorySecurityACLDeleteAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this file directory security Acl delete accepted response has a 2xx status code
func (o *FileDirectorySecurityACLDeleteAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this file directory security Acl delete accepted response has a 3xx status code
func (o *FileDirectorySecurityACLDeleteAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this file directory security Acl delete accepted response has a 4xx status code
func (o *FileDirectorySecurityACLDeleteAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this file directory security Acl delete accepted response has a 5xx status code
func (o *FileDirectorySecurityACLDeleteAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this file directory security Acl delete accepted response a status code equal to that given
func (o *FileDirectorySecurityACLDeleteAccepted) IsCode(code int) bool {
return code == 202
}
func (o *FileDirectorySecurityACLDeleteAccepted) Error() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}/acl/{user}][%d] fileDirectorySecurityAclDeleteAccepted %+v", 202, o.Payload)
}
func (o *FileDirectorySecurityACLDeleteAccepted) String() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}/acl/{user}][%d] fileDirectorySecurityAclDeleteAccepted %+v", 202, o.Payload)
}
func (o *FileDirectorySecurityACLDeleteAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *FileDirectorySecurityACLDeleteAccepted) 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
}
// NewFileDirectorySecurityACLDeleteDefault creates a FileDirectorySecurityACLDeleteDefault with default headers values
func NewFileDirectorySecurityACLDeleteDefault(code int) *FileDirectorySecurityACLDeleteDefault {
return &FileDirectorySecurityACLDeleteDefault{
_statusCode: code,
}
}
/*
FileDirectorySecurityACLDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type FileDirectorySecurityACLDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the file directory security acl delete default response
func (o *FileDirectorySecurityACLDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this file directory security acl delete default response has a 2xx status code
func (o *FileDirectorySecurityACLDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this file directory security acl delete default response has a 3xx status code
func (o *FileDirectorySecurityACLDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this file directory security acl delete default response has a 4xx status code
func (o *FileDirectorySecurityACLDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this file directory security acl delete default response has a 5xx status code
func (o *FileDirectorySecurityACLDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this file directory security acl delete default response a status code equal to that given
func (o *FileDirectorySecurityACLDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FileDirectorySecurityACLDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}/acl/{user}][%d] file_directory_security_acl_delete default %+v", o._statusCode, o.Payload)
}
func (o *FileDirectorySecurityACLDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}/acl/{user}][%d] file_directory_security_acl_delete default %+v", o._statusCode, o.Payload)
}
func (o *FileDirectorySecurityACLDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FileDirectorySecurityACLDeleteDefault) 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_share_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_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"
)
// NewCifsShareModifyParams creates a new CifsShareModifyParams 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 NewCifsShareModifyParams() *CifsShareModifyParams {
return &CifsShareModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsShareModifyParamsWithTimeout creates a new CifsShareModifyParams object
// with the ability to set a timeout on a request.
func NewCifsShareModifyParamsWithTimeout(timeout time.Duration) *CifsShareModifyParams {
return &CifsShareModifyParams{
timeout: timeout,
}
}
// NewCifsShareModifyParamsWithContext creates a new CifsShareModifyParams object
// with the ability to set a context for a request.
func NewCifsShareModifyParamsWithContext(ctx context.Context) *CifsShareModifyParams {
return &CifsShareModifyParams{
Context: ctx,
}
}
// NewCifsShareModifyParamsWithHTTPClient creates a new CifsShareModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsShareModifyParamsWithHTTPClient(client *http.Client) *CifsShareModifyParams {
return &CifsShareModifyParams{
HTTPClient: client,
}
}
/*
CifsShareModifyParams contains all the parameters to send to the API endpoint
for the cifs share modify operation.
Typically these are written to a http.Request.
*/
type CifsShareModifyParams struct {
/* Info.
Info specification
*/
Info *models.CifsShare
/* Name.
Share 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 cifs share modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareModifyParams) WithDefaults() *CifsShareModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs share modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs share modify params
func (o *CifsShareModifyParams) WithTimeout(timeout time.Duration) *CifsShareModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs share modify params
func (o *CifsShareModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs share modify params
func (o *CifsShareModifyParams) WithContext(ctx context.Context) *CifsShareModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs share modify params
func (o *CifsShareModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs share modify params
func (o *CifsShareModifyParams) WithHTTPClient(client *http.Client) *CifsShareModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs share modify params
func (o *CifsShareModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cifs share modify params
func (o *CifsShareModifyParams) WithInfo(info *models.CifsShare) *CifsShareModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cifs share modify params
func (o *CifsShareModifyParams) SetInfo(info *models.CifsShare) {
o.Info = info
}
// WithName adds the name to the cifs share modify params
func (o *CifsShareModifyParams) WithName(name string) *CifsShareModifyParams {
o.SetName(name)
return o
}
// SetName adds the name to the cifs share modify params
func (o *CifsShareModifyParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the cifs share modify params
func (o *CifsShareModifyParams) WithSvmUUID(svmUUID string) *CifsShareModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs share modify params
func (o *CifsShareModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsShareModifyParams) 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 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
}
| 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_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/nfs_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"
)
// NfsCollectionGetReader is a Reader for the NfsCollectionGet structure.
type NfsCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *NfsCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewNfsCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewNfsCollectionGetDefault(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
}
}
// NewNfsCollectionGetOK creates a NfsCollectionGetOK with default headers values
func NewNfsCollectionGetOK() *NfsCollectionGetOK {
return &NfsCollectionGetOK{}
}
/*
NfsCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type NfsCollectionGetOK struct {
Payload *models.NfsServiceResponse
}
// IsSuccess returns true when this nfs collection get o k response has a 2xx status code
func (o *NfsCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this nfs collection get o k response has a 3xx status code
func (o *NfsCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this nfs collection get o k response has a 4xx status code
func (o *NfsCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this nfs collection get o k response has a 5xx status code
func (o *NfsCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this nfs collection get o k response a status code equal to that given
func (o *NfsCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *NfsCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/nfs/services][%d] nfsCollectionGetOK %+v", 200, o.Payload)
}
func (o *NfsCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/nfs/services][%d] nfsCollectionGetOK %+v", 200, o.Payload)
}
func (o *NfsCollectionGetOK) GetPayload() *models.NfsServiceResponse {
return o.Payload
}
func (o *NfsCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.NfsServiceResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewNfsCollectionGetDefault creates a NfsCollectionGetDefault with default headers values
func NewNfsCollectionGetDefault(code int) *NfsCollectionGetDefault {
return &NfsCollectionGetDefault{
_statusCode: code,
}
}
/*
NfsCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type NfsCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the nfs collection get default response
func (o *NfsCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this nfs collection get default response has a 2xx status code
func (o *NfsCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this nfs collection get default response has a 3xx status code
func (o *NfsCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this nfs collection get default response has a 4xx status code
func (o *NfsCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this nfs collection get default response has a 5xx status code
func (o *NfsCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this nfs collection get default response a status code equal to that given
func (o *NfsCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *NfsCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/nfs/services][%d] nfs_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *NfsCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/nfs/services][%d] nfs_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *NfsCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *NfsCollectionGetDefault) 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_service_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_service_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"
)
// NewCifsServiceCreateParams creates a new CifsServiceCreateParams 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 NewCifsServiceCreateParams() *CifsServiceCreateParams {
return &CifsServiceCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsServiceCreateParamsWithTimeout creates a new CifsServiceCreateParams object
// with the ability to set a timeout on a request.
func NewCifsServiceCreateParamsWithTimeout(timeout time.Duration) *CifsServiceCreateParams {
return &CifsServiceCreateParams{
timeout: timeout,
}
}
// NewCifsServiceCreateParamsWithContext creates a new CifsServiceCreateParams object
// with the ability to set a context for a request.
func NewCifsServiceCreateParamsWithContext(ctx context.Context) *CifsServiceCreateParams {
return &CifsServiceCreateParams{
Context: ctx,
}
}
// NewCifsServiceCreateParamsWithHTTPClient creates a new CifsServiceCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsServiceCreateParamsWithHTTPClient(client *http.Client) *CifsServiceCreateParams {
return &CifsServiceCreateParams{
HTTPClient: client,
}
}
/*
CifsServiceCreateParams contains all the parameters to send to the API endpoint
for the cifs service create operation.
Typically these are written to a http.Request.
*/
type CifsServiceCreateParams struct {
/* Force.
If this is set and a machine account with the same name as specified in 'cifs-server name' exists in the Active Directory, existing machine account will be overwritten and reused.
*/
Force *bool
/* Info.
Info specification
*/
Info *models.CifsService
/* 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 cifs service create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsServiceCreateParams) WithDefaults() *CifsServiceCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs service create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsServiceCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := CifsServiceCreateParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs service create params
func (o *CifsServiceCreateParams) WithTimeout(timeout time.Duration) *CifsServiceCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs service create params
func (o *CifsServiceCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs service create params
func (o *CifsServiceCreateParams) WithContext(ctx context.Context) *CifsServiceCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs service create params
func (o *CifsServiceCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs service create params
func (o *CifsServiceCreateParams) WithHTTPClient(client *http.Client) *CifsServiceCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs service create params
func (o *CifsServiceCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithForce adds the force to the cifs service create params
func (o *CifsServiceCreateParams) WithForce(force *bool) *CifsServiceCreateParams {
o.SetForce(force)
return o
}
// SetForce adds the force to the cifs service create params
func (o *CifsServiceCreateParams) SetForce(force *bool) {
o.Force = force
}
// WithInfo adds the info to the cifs service create params
func (o *CifsServiceCreateParams) WithInfo(info *models.CifsService) *CifsServiceCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cifs service create params
func (o *CifsServiceCreateParams) SetInfo(info *models.CifsService) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the cifs service create params
func (o *CifsServiceCreateParams) WithReturnRecords(returnRecords *bool) *CifsServiceCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs service create params
func (o *CifsServiceCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the cifs service create params
func (o *CifsServiceCreateParams) WithReturnTimeout(returnTimeout *int64) *CifsServiceCreateParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cifs service create params
func (o *CifsServiceCreateParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WriteToRequest writes these params to a swagger request
func (o *CifsServiceCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Force != nil {
// query param force
var qrForce bool
if o.Force != nil {
qrForce = *o.Force
}
qForce := swag.FormatBool(qrForce)
if qForce != "" {
if err := r.SetQueryParam("force", qForce); 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/n_a_s/nfs_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/nfs_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"
)
// NewNfsCollectionGetParams creates a new NfsCollectionGetParams 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 NewNfsCollectionGetParams() *NfsCollectionGetParams {
return &NfsCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewNfsCollectionGetParamsWithTimeout creates a new NfsCollectionGetParams object
// with the ability to set a timeout on a request.
func NewNfsCollectionGetParamsWithTimeout(timeout time.Duration) *NfsCollectionGetParams {
return &NfsCollectionGetParams{
timeout: timeout,
}
}
// NewNfsCollectionGetParamsWithContext creates a new NfsCollectionGetParams object
// with the ability to set a context for a request.
func NewNfsCollectionGetParamsWithContext(ctx context.Context) *NfsCollectionGetParams {
return &NfsCollectionGetParams{
Context: ctx,
}
}
// NewNfsCollectionGetParamsWithHTTPClient creates a new NfsCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewNfsCollectionGetParamsWithHTTPClient(client *http.Client) *NfsCollectionGetParams {
return &NfsCollectionGetParams{
HTTPClient: client,
}
}
/*
NfsCollectionGetParams contains all the parameters to send to the API endpoint
for the nfs collection get operation.
Typically these are written to a http.Request.
*/
type NfsCollectionGetParams struct {
/* AccessCacheConfigHarvestTimeout.
Filter by access_cache_config.harvest_timeout
*/
AccessCacheConfigHarvestTimeout *int64
/* AccessCacheConfigIsDNSTTLEnabled.
Filter by access_cache_config.isDnsTTLEnabled
*/
AccessCacheConfigIsDNSTTLEnabled *bool
/* AccessCacheConfigTTLFailure.
Filter by access_cache_config.ttl_failure
*/
AccessCacheConfigTTLFailure *int64
/* AccessCacheConfigTTLNegative.
Filter by access_cache_config.ttl_negative
*/
AccessCacheConfigTTLNegative *int64
/* AccessCacheConfigTTLPositive.
Filter by access_cache_config.ttl_positive
*/
AccessCacheConfigTTLPositive *int64
/* AuthSysExtendedGroupsEnabled.
Filter by auth_sys_extended_groups_enabled
*/
AuthSysExtendedGroupsEnabled *bool
/* CredentialCacheNegativeTTL.
Filter by credential_cache.negative_ttl
*/
CredentialCacheNegativeTTL *int64
/* CredentialCachePositiveTTL.
Filter by credential_cache.positive_ttl
*/
CredentialCachePositiveTTL *int64
/* CredentialCacheTransientErrorTTL.
Filter by credential_cache.transient_error_ttl
*/
CredentialCacheTransientErrorTTL *int64
/* Enabled.
Filter by enabled
*/
Enabled *bool
/* ExportsNameServiceLookupProtocol.
Filter by exports.name_service_lookup_protocol
*/
ExportsNameServiceLookupProtocol *string
/* ExportsNetgroupTrustAnyNsswitchNoMatch.
Filter by exports.netgroup_trust_any_nsswitch_no_match
*/
ExportsNetgroupTrustAnyNsswitchNoMatch *bool
/* ExtendedGroupsLimit.
Filter by extended_groups_limit
*/
ExtendedGroupsLimit *int64
/* Fields.
Specify the fields to return.
*/
Fields []string
/* FileSessionIoGroupingCount.
Filter by file_session_io_grouping_count
*/
FileSessionIoGroupingCount *int64
/* FileSessionIoGroupingDuration.
Filter by file_session_io_grouping_duration
*/
FileSessionIoGroupingDuration *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* MetricV3Duration.
Filter by metric.v3.duration
*/
MetricV3Duration *string
/* MetricV3IopsOther.
Filter by metric.v3.iops.other
*/
MetricV3IopsOther *int64
/* MetricV3IopsRead.
Filter by metric.v3.iops.read
*/
MetricV3IopsRead *int64
/* MetricV3IopsTotal.
Filter by metric.v3.iops.total
*/
MetricV3IopsTotal *int64
/* MetricV3IopsWrite.
Filter by metric.v3.iops.write
*/
MetricV3IopsWrite *int64
/* MetricV3LatencyOther.
Filter by metric.v3.latency.other
*/
MetricV3LatencyOther *int64
/* MetricV3LatencyRead.
Filter by metric.v3.latency.read
*/
MetricV3LatencyRead *int64
/* MetricV3LatencyTotal.
Filter by metric.v3.latency.total
*/
MetricV3LatencyTotal *int64
/* MetricV3LatencyWrite.
Filter by metric.v3.latency.write
*/
MetricV3LatencyWrite *int64
/* MetricV3Status.
Filter by metric.v3.status
*/
MetricV3Status *string
/* MetricV3ThroughputRead.
Filter by metric.v3.throughput.read
*/
MetricV3ThroughputRead *int64
/* MetricV3ThroughputTotal.
Filter by metric.v3.throughput.total
*/
MetricV3ThroughputTotal *int64
/* MetricV3ThroughputWrite.
Filter by metric.v3.throughput.write
*/
MetricV3ThroughputWrite *int64
/* MetricV3Timestamp.
Filter by metric.v3.timestamp
*/
MetricV3Timestamp *string
/* MetricV4Duration.
Filter by metric.v4.duration
*/
MetricV4Duration *string
/* MetricV4IopsOther.
Filter by metric.v4.iops.other
*/
MetricV4IopsOther *int64
/* MetricV4IopsRead.
Filter by metric.v4.iops.read
*/
MetricV4IopsRead *int64
/* MetricV4IopsTotal.
Filter by metric.v4.iops.total
*/
MetricV4IopsTotal *int64
/* MetricV4IopsWrite.
Filter by metric.v4.iops.write
*/
MetricV4IopsWrite *int64
/* MetricV4LatencyOther.
Filter by metric.v4.latency.other
*/
MetricV4LatencyOther *int64
/* MetricV4LatencyRead.
Filter by metric.v4.latency.read
*/
MetricV4LatencyRead *int64
/* MetricV4LatencyTotal.
Filter by metric.v4.latency.total
*/
MetricV4LatencyTotal *int64
/* MetricV4LatencyWrite.
Filter by metric.v4.latency.write
*/
MetricV4LatencyWrite *int64
/* MetricV4Status.
Filter by metric.v4.status
*/
MetricV4Status *string
/* MetricV4ThroughputRead.
Filter by metric.v4.throughput.read
*/
MetricV4ThroughputRead *int64
/* MetricV4ThroughputTotal.
Filter by metric.v4.throughput.total
*/
MetricV4ThroughputTotal *int64
/* MetricV4ThroughputWrite.
Filter by metric.v4.throughput.write
*/
MetricV4ThroughputWrite *int64
/* MetricV4Timestamp.
Filter by metric.v4.timestamp
*/
MetricV4Timestamp *string
/* MetricV41Duration.
Filter by metric.v41.duration
*/
MetricV41Duration *string
/* MetricV41IopsOther.
Filter by metric.v41.iops.other
*/
MetricV41IopsOther *int64
/* MetricV41IopsRead.
Filter by metric.v41.iops.read
*/
MetricV41IopsRead *int64
/* MetricV41IopsTotal.
Filter by metric.v41.iops.total
*/
MetricV41IopsTotal *int64
/* MetricV41IopsWrite.
Filter by metric.v41.iops.write
*/
MetricV41IopsWrite *int64
/* MetricV41LatencyOther.
Filter by metric.v41.latency.other
*/
MetricV41LatencyOther *int64
/* MetricV41LatencyRead.
Filter by metric.v41.latency.read
*/
MetricV41LatencyRead *int64
/* MetricV41LatencyTotal.
Filter by metric.v41.latency.total
*/
MetricV41LatencyTotal *int64
/* MetricV41LatencyWrite.
Filter by metric.v41.latency.write
*/
MetricV41LatencyWrite *int64
/* MetricV41Status.
Filter by metric.v41.status
*/
MetricV41Status *string
/* MetricV41ThroughputRead.
Filter by metric.v41.throughput.read
*/
MetricV41ThroughputRead *int64
/* MetricV41ThroughputTotal.
Filter by metric.v41.throughput.total
*/
MetricV41ThroughputTotal *int64
/* MetricV41ThroughputWrite.
Filter by metric.v41.throughput.write
*/
MetricV41ThroughputWrite *int64
/* MetricV41Timestamp.
Filter by metric.v41.timestamp
*/
MetricV41Timestamp *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* ProtocolV364bitIdentifiersEnabled.
Filter by protocol.v3_64bit_identifiers_enabled
*/
ProtocolV364bitIdentifiersEnabled *bool
/* ProtocolV3Enabled.
Filter by protocol.v3_enabled
*/
ProtocolV3Enabled *bool
/* ProtocolV3FeaturesConnectionDrop.
Filter by protocol.v3_features.connection_drop
*/
ProtocolV3FeaturesConnectionDrop *bool
/* ProtocolV3FeaturesEjukeboxEnabled.
Filter by protocol.v3_features.ejukebox_enabled
*/
ProtocolV3FeaturesEjukeboxEnabled *bool
/* ProtocolV3FeaturesFsidChange.
Filter by protocol.v3_features.fsid_change
*/
ProtocolV3FeaturesFsidChange *bool
/* ProtocolV3FeaturesMountDaemonPort.
Filter by protocol.v3_features.mount_daemon_port
*/
ProtocolV3FeaturesMountDaemonPort *int64
/* ProtocolV3FeaturesMountRootOnly.
Filter by protocol.v3_features.mount_root_only
*/
ProtocolV3FeaturesMountRootOnly *bool
/* ProtocolV3FeaturesNetworkLockManagerPort.
Filter by protocol.v3_features.network_lock_manager_port
*/
ProtocolV3FeaturesNetworkLockManagerPort *int64
/* ProtocolV3FeaturesNetworkStatusMonitorPort.
Filter by protocol.v3_features.network_status_monitor_port
*/
ProtocolV3FeaturesNetworkStatusMonitorPort *int64
/* ProtocolV3FeaturesRquotaDaemonPort.
Filter by protocol.v3_features.rquota_daemon_port
*/
ProtocolV3FeaturesRquotaDaemonPort *int64
/* ProtocolV40Enabled.
Filter by protocol.v40_enabled
*/
ProtocolV40Enabled *bool
/* ProtocolV40FeaturesACLEnabled.
Filter by protocol.v40_features.acl_enabled
*/
ProtocolV40FeaturesACLEnabled *bool
/* ProtocolV40FeaturesACLMaxAces.
Filter by protocol.v40_features.acl_max_aces
*/
ProtocolV40FeaturesACLMaxAces *int64
/* ProtocolV40FeaturesACLPreserve.
Filter by protocol.v40_features.acl_preserve
*/
ProtocolV40FeaturesACLPreserve *bool
/* ProtocolV40FeaturesReadDelegationEnabled.
Filter by protocol.v40_features.read_delegation_enabled
*/
ProtocolV40FeaturesReadDelegationEnabled *bool
/* ProtocolV40FeaturesWriteDelegationEnabled.
Filter by protocol.v40_features.write_delegation_enabled
*/
ProtocolV40FeaturesWriteDelegationEnabled *bool
/* ProtocolV41Enabled.
Filter by protocol.v41_enabled
*/
ProtocolV41Enabled *bool
/* ProtocolV41FeaturesACLEnabled.
Filter by protocol.v41_features.acl_enabled
*/
ProtocolV41FeaturesACLEnabled *bool
/* ProtocolV41FeaturesImplementationDomain.
Filter by protocol.v41_features.implementation_domain
*/
ProtocolV41FeaturesImplementationDomain *string
/* ProtocolV41FeaturesImplementationName.
Filter by protocol.v41_features.implementation_name
*/
ProtocolV41FeaturesImplementationName *string
/* ProtocolV41FeaturesPnfsEnabled.
Filter by protocol.v41_features.pnfs_enabled
*/
ProtocolV41FeaturesPnfsEnabled *bool
/* ProtocolV41FeaturesReadDelegationEnabled.
Filter by protocol.v41_features.read_delegation_enabled
*/
ProtocolV41FeaturesReadDelegationEnabled *bool
/* ProtocolV41FeaturesTrunkingEnabled.
Filter by protocol.v41_features.trunking_enabled
*/
ProtocolV41FeaturesTrunkingEnabled *bool
/* ProtocolV41FeaturesWriteDelegationEnabled.
Filter by protocol.v41_features.write_delegation_enabled
*/
ProtocolV41FeaturesWriteDelegationEnabled *bool
/* ProtocolV42FeaturesSeclabelEnabled.
Filter by protocol.v42_features.seclabel_enabled
*/
ProtocolV42FeaturesSeclabelEnabled *bool
/* ProtocolV42FeaturesSparsefileOpsEnabled.
Filter by protocol.v42_features.sparsefile_ops_enabled
*/
ProtocolV42FeaturesSparsefileOpsEnabled *bool
/* ProtocolV42FeaturesXattrsEnabled.
Filter by protocol.v42_features.xattrs_enabled
*/
ProtocolV42FeaturesXattrsEnabled *bool
/* ProtocolV464bitIdentifiersEnabled.
Filter by protocol.v4_64bit_identifiers_enabled
*/
ProtocolV464bitIdentifiersEnabled *bool
/* ProtocolV4IDDomain.
Filter by protocol.v4_id_domain
*/
ProtocolV4IDDomain *string
/* ProtocolAccessRulesAuthType.
Authentication method used to check the client's access to the volume.
Default: "sys"
*/
ProtocolAccessRulesAuthType *string
/* ProtocolAccessRulesCifsAccessType.
Filter by protocol_access_rules.cifs_access_type
*/
ProtocolAccessRulesCifsAccessType *string
/* ProtocolAccessRulesClientIP.
IP address for the client for which access needs to be checked.
*/
ProtocolAccessRulesClientIP *string
/* ProtocolAccessRulesNfs3AccessType.
Filter by protocol_access_rules.nfs3_access_type
*/
ProtocolAccessRulesNfs3AccessType *string
/* ProtocolAccessRulesNfs4AccessType.
Filter by protocol_access_rules.nfs4_access_type
*/
ProtocolAccessRulesNfs4AccessType *string
/* ProtocolAccessRulesVolume.
Volume on which access needs to be checked.
*/
ProtocolAccessRulesVolume *string
/* QtreeExportEnabled.
Filter by qtree.export_enabled
*/
QtreeExportEnabled *bool
/* QtreeValidateExport.
Filter by qtree.validate_export
*/
QtreeValidateExport *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
/* RootIgnoreNtACL.
Filter by root.ignore_nt_acl
*/
RootIgnoreNtACL *bool
/* RootSkipWritePermissionCheck.
Filter by root.skip_write_permission_check
*/
RootSkipWritePermissionCheck *bool
/* RquotaEnabled.
Filter by rquota_enabled
*/
RquotaEnabled *bool
/* SecurityChownMode.
Filter by security.chown_mode
*/
SecurityChownMode *string
/* SecurityNtACLDisplayPermission.
Filter by security.nt_acl_display_permission
*/
SecurityNtACLDisplayPermission *bool
/* SecurityNtfsUnixSecurity.
Filter by security.ntfs_unix_security
*/
SecurityNtfsUnixSecurity *string
/* SecurityPermittedEncryptionTypes.
Filter by security.permitted_encryption_types
*/
SecurityPermittedEncryptionTypes *string
/* SecurityRpcsecContextIdle.
Filter by security.rpcsec_context_idle
*/
SecurityRpcsecContextIdle *int64
/* ShowmountEnabled.
Filter by showmount_enabled
*/
ShowmountEnabled *bool
/* State.
Filter by state
*/
State *string
/* StatisticsV3IopsRawOther.
Filter by statistics.v3.iops_raw.other
*/
StatisticsV3IopsRawOther *int64
/* StatisticsV3IopsRawRead.
Filter by statistics.v3.iops_raw.read
*/
StatisticsV3IopsRawRead *int64
/* StatisticsV3IopsRawTotal.
Filter by statistics.v3.iops_raw.total
*/
StatisticsV3IopsRawTotal *int64
/* StatisticsV3IopsRawWrite.
Filter by statistics.v3.iops_raw.write
*/
StatisticsV3IopsRawWrite *int64
/* StatisticsV3LatencyRawOther.
Filter by statistics.v3.latency_raw.other
*/
StatisticsV3LatencyRawOther *int64
/* StatisticsV3LatencyRawRead.
Filter by statistics.v3.latency_raw.read
*/
StatisticsV3LatencyRawRead *int64
/* StatisticsV3LatencyRawTotal.
Filter by statistics.v3.latency_raw.total
*/
StatisticsV3LatencyRawTotal *int64
/* StatisticsV3LatencyRawWrite.
Filter by statistics.v3.latency_raw.write
*/
StatisticsV3LatencyRawWrite *int64
/* StatisticsV3Status.
Filter by statistics.v3.status
*/
StatisticsV3Status *string
/* StatisticsV3ThroughputRawRead.
Filter by statistics.v3.throughput_raw.read
*/
StatisticsV3ThroughputRawRead *int64
/* StatisticsV3ThroughputRawTotal.
Filter by statistics.v3.throughput_raw.total
*/
StatisticsV3ThroughputRawTotal *int64
/* StatisticsV3ThroughputRawWrite.
Filter by statistics.v3.throughput_raw.write
*/
StatisticsV3ThroughputRawWrite *int64
/* StatisticsV3Timestamp.
Filter by statistics.v3.timestamp
*/
StatisticsV3Timestamp *string
/* StatisticsV4IopsRawOther.
Filter by statistics.v4.iops_raw.other
*/
StatisticsV4IopsRawOther *int64
/* StatisticsV4IopsRawRead.
Filter by statistics.v4.iops_raw.read
*/
StatisticsV4IopsRawRead *int64
/* StatisticsV4IopsRawTotal.
Filter by statistics.v4.iops_raw.total
*/
StatisticsV4IopsRawTotal *int64
/* StatisticsV4IopsRawWrite.
Filter by statistics.v4.iops_raw.write
*/
StatisticsV4IopsRawWrite *int64
/* StatisticsV4LatencyRawOther.
Filter by statistics.v4.latency_raw.other
*/
StatisticsV4LatencyRawOther *int64
/* StatisticsV4LatencyRawRead.
Filter by statistics.v4.latency_raw.read
*/
StatisticsV4LatencyRawRead *int64
/* StatisticsV4LatencyRawTotal.
Filter by statistics.v4.latency_raw.total
*/
StatisticsV4LatencyRawTotal *int64
/* StatisticsV4LatencyRawWrite.
Filter by statistics.v4.latency_raw.write
*/
StatisticsV4LatencyRawWrite *int64
/* StatisticsV4Status.
Filter by statistics.v4.status
*/
StatisticsV4Status *string
/* StatisticsV4ThroughputRawRead.
Filter by statistics.v4.throughput_raw.read
*/
StatisticsV4ThroughputRawRead *int64
/* StatisticsV4ThroughputRawTotal.
Filter by statistics.v4.throughput_raw.total
*/
StatisticsV4ThroughputRawTotal *int64
/* StatisticsV4ThroughputRawWrite.
Filter by statistics.v4.throughput_raw.write
*/
StatisticsV4ThroughputRawWrite *int64
/* StatisticsV4Timestamp.
Filter by statistics.v4.timestamp
*/
StatisticsV4Timestamp *string
/* StatisticsV41IopsRawOther.
Filter by statistics.v41.iops_raw.other
*/
StatisticsV41IopsRawOther *int64
/* StatisticsV41IopsRawRead.
Filter by statistics.v41.iops_raw.read
*/
StatisticsV41IopsRawRead *int64
/* StatisticsV41IopsRawTotal.
Filter by statistics.v41.iops_raw.total
*/
StatisticsV41IopsRawTotal *int64
/* StatisticsV41IopsRawWrite.
Filter by statistics.v41.iops_raw.write
*/
StatisticsV41IopsRawWrite *int64
/* StatisticsV41LatencyRawOther.
Filter by statistics.v41.latency_raw.other
*/
StatisticsV41LatencyRawOther *int64
/* StatisticsV41LatencyRawRead.
Filter by statistics.v41.latency_raw.read
*/
StatisticsV41LatencyRawRead *int64
/* StatisticsV41LatencyRawTotal.
Filter by statistics.v41.latency_raw.total
*/
StatisticsV41LatencyRawTotal *int64
/* StatisticsV41LatencyRawWrite.
Filter by statistics.v41.latency_raw.write
*/
StatisticsV41LatencyRawWrite *int64
/* StatisticsV41Status.
Filter by statistics.v41.status
*/
StatisticsV41Status *string
/* StatisticsV41ThroughputRawRead.
Filter by statistics.v41.throughput_raw.read
*/
StatisticsV41ThroughputRawRead *int64
/* StatisticsV41ThroughputRawTotal.
Filter by statistics.v41.throughput_raw.total
*/
StatisticsV41ThroughputRawTotal *int64
/* StatisticsV41ThroughputRawWrite.
Filter by statistics.v41.throughput_raw.write
*/
StatisticsV41ThroughputRawWrite *int64
/* StatisticsV41Timestamp.
Filter by statistics.v41.timestamp
*/
StatisticsV41Timestamp *string
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* TransportRdmaEnabled.
Filter by transport.rdma_enabled
*/
TransportRdmaEnabled *bool
/* TransportTCPEnabled.
Filter by transport.tcp_enabled
*/
TransportTCPEnabled *bool
/* TransportTCPMaxTransferSize.
Filter by transport.tcp_max_transfer_size
*/
TransportTCPMaxTransferSize *int64
/* TransportUDPEnabled.
Filter by transport.udp_enabled
*/
TransportUDPEnabled *bool
/* VstorageEnabled.
Filter by vstorage_enabled
*/
VstorageEnabled *bool
/* WindowsDefaultUser.
Filter by windows.default_user
*/
WindowsDefaultUser *string
/* WindowsMapUnknownUIDToDefaultUser.
Filter by windows.map_unknown_uid_to_default_user
*/
WindowsMapUnknownUIDToDefaultUser *bool
/* WindowsV3MsDosClientEnabled.
Filter by windows.v3_ms_dos_client_enabled
*/
WindowsV3MsDosClientEnabled *bool
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the nfs collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *NfsCollectionGetParams) WithDefaults() *NfsCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the nfs collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *NfsCollectionGetParams) SetDefaults() {
var (
protocolAccessRulesAuthTypeDefault = string("sys")
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := NfsCollectionGetParams{
ProtocolAccessRulesAuthType: &protocolAccessRulesAuthTypeDefault,
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 collection get params
func (o *NfsCollectionGetParams) WithTimeout(timeout time.Duration) *NfsCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the nfs collection get params
func (o *NfsCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the nfs collection get params
func (o *NfsCollectionGetParams) WithContext(ctx context.Context) *NfsCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the nfs collection get params
func (o *NfsCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the nfs collection get params
func (o *NfsCollectionGetParams) WithHTTPClient(client *http.Client) *NfsCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the nfs collection get params
func (o *NfsCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccessCacheConfigHarvestTimeout adds the accessCacheConfigHarvestTimeout to the nfs collection get params
func (o *NfsCollectionGetParams) WithAccessCacheConfigHarvestTimeout(accessCacheConfigHarvestTimeout *int64) *NfsCollectionGetParams {
o.SetAccessCacheConfigHarvestTimeout(accessCacheConfigHarvestTimeout)
return o
}
// SetAccessCacheConfigHarvestTimeout adds the accessCacheConfigHarvestTimeout to the nfs collection get params
func (o *NfsCollectionGetParams) SetAccessCacheConfigHarvestTimeout(accessCacheConfigHarvestTimeout *int64) {
o.AccessCacheConfigHarvestTimeout = accessCacheConfigHarvestTimeout
}
// WithAccessCacheConfigIsDNSTTLEnabled adds the accessCacheConfigIsDNSTTLEnabled to the nfs collection get params
func (o *NfsCollectionGetParams) WithAccessCacheConfigIsDNSTTLEnabled(accessCacheConfigIsDNSTTLEnabled *bool) *NfsCollectionGetParams {
o.SetAccessCacheConfigIsDNSTTLEnabled(accessCacheConfigIsDNSTTLEnabled)
return o
}
// SetAccessCacheConfigIsDNSTTLEnabled adds the accessCacheConfigIsDnsTtlEnabled to the nfs collection get params
func (o *NfsCollectionGetParams) SetAccessCacheConfigIsDNSTTLEnabled(accessCacheConfigIsDNSTTLEnabled *bool) {
o.AccessCacheConfigIsDNSTTLEnabled = accessCacheConfigIsDNSTTLEnabled
}
// WithAccessCacheConfigTTLFailure adds the accessCacheConfigTTLFailure to the nfs collection get params
func (o *NfsCollectionGetParams) WithAccessCacheConfigTTLFailure(accessCacheConfigTTLFailure *int64) *NfsCollectionGetParams {
o.SetAccessCacheConfigTTLFailure(accessCacheConfigTTLFailure)
return o
}
// SetAccessCacheConfigTTLFailure adds the accessCacheConfigTtlFailure to the nfs collection get params
func (o *NfsCollectionGetParams) SetAccessCacheConfigTTLFailure(accessCacheConfigTTLFailure *int64) {
o.AccessCacheConfigTTLFailure = accessCacheConfigTTLFailure
}
// WithAccessCacheConfigTTLNegative adds the accessCacheConfigTTLNegative to the nfs collection get params
func (o *NfsCollectionGetParams) WithAccessCacheConfigTTLNegative(accessCacheConfigTTLNegative *int64) *NfsCollectionGetParams {
o.SetAccessCacheConfigTTLNegative(accessCacheConfigTTLNegative)
return o
}
// SetAccessCacheConfigTTLNegative adds the accessCacheConfigTtlNegative to the nfs collection get params
func (o *NfsCollectionGetParams) SetAccessCacheConfigTTLNegative(accessCacheConfigTTLNegative *int64) {
o.AccessCacheConfigTTLNegative = accessCacheConfigTTLNegative
}
// WithAccessCacheConfigTTLPositive adds the accessCacheConfigTTLPositive to the nfs collection get params
func (o *NfsCollectionGetParams) WithAccessCacheConfigTTLPositive(accessCacheConfigTTLPositive *int64) *NfsCollectionGetParams {
o.SetAccessCacheConfigTTLPositive(accessCacheConfigTTLPositive)
return o
}
// SetAccessCacheConfigTTLPositive adds the accessCacheConfigTtlPositive to the nfs collection get params
func (o *NfsCollectionGetParams) SetAccessCacheConfigTTLPositive(accessCacheConfigTTLPositive *int64) {
o.AccessCacheConfigTTLPositive = accessCacheConfigTTLPositive
}
// WithAuthSysExtendedGroupsEnabled adds the authSysExtendedGroupsEnabled to the nfs collection get params
func (o *NfsCollectionGetParams) WithAuthSysExtendedGroupsEnabled(authSysExtendedGroupsEnabled *bool) *NfsCollectionGetParams {
o.SetAuthSysExtendedGroupsEnabled(authSysExtendedGroupsEnabled)
return o
}
// SetAuthSysExtendedGroupsEnabled adds the authSysExtendedGroupsEnabled to the nfs collection get params
func (o *NfsCollectionGetParams) SetAuthSysExtendedGroupsEnabled(authSysExtendedGroupsEnabled *bool) {
o.AuthSysExtendedGroupsEnabled = authSysExtendedGroupsEnabled
}
// WithCredentialCacheNegativeTTL adds the credentialCacheNegativeTTL to the nfs collection get params
func (o *NfsCollectionGetParams) WithCredentialCacheNegativeTTL(credentialCacheNegativeTTL *int64) *NfsCollectionGetParams {
o.SetCredentialCacheNegativeTTL(credentialCacheNegativeTTL)
return o
}
// SetCredentialCacheNegativeTTL adds the credentialCacheNegativeTtl to the nfs collection get params
func (o *NfsCollectionGetParams) SetCredentialCacheNegativeTTL(credentialCacheNegativeTTL *int64) {
o.CredentialCacheNegativeTTL = credentialCacheNegativeTTL
}
// WithCredentialCachePositiveTTL adds the credentialCachePositiveTTL to the nfs collection get params
func (o *NfsCollectionGetParams) WithCredentialCachePositiveTTL(credentialCachePositiveTTL *int64) *NfsCollectionGetParams {
o.SetCredentialCachePositiveTTL(credentialCachePositiveTTL)
return o
}
// SetCredentialCachePositiveTTL adds the credentialCachePositiveTtl to the nfs collection get params
func (o *NfsCollectionGetParams) SetCredentialCachePositiveTTL(credentialCachePositiveTTL *int64) {
o.CredentialCachePositiveTTL = credentialCachePositiveTTL
}
// WithCredentialCacheTransientErrorTTL adds the credentialCacheTransientErrorTTL to the nfs collection get params
func (o *NfsCollectionGetParams) WithCredentialCacheTransientErrorTTL(credentialCacheTransientErrorTTL *int64) *NfsCollectionGetParams {
o.SetCredentialCacheTransientErrorTTL(credentialCacheTransientErrorTTL)
return o
}
// SetCredentialCacheTransientErrorTTL adds the credentialCacheTransientErrorTtl to the nfs collection get params
func (o *NfsCollectionGetParams) SetCredentialCacheTransientErrorTTL(credentialCacheTransientErrorTTL *int64) {
o.CredentialCacheTransientErrorTTL = credentialCacheTransientErrorTTL
}
// WithEnabled adds the enabled to the nfs collection get params
func (o *NfsCollectionGetParams) WithEnabled(enabled *bool) *NfsCollectionGetParams {
o.SetEnabled(enabled)
return o
}
// SetEnabled adds the enabled to the nfs collection get params
func (o *NfsCollectionGetParams) SetEnabled(enabled *bool) {
o.Enabled = enabled
}
// WithExportsNameServiceLookupProtocol adds the exportsNameServiceLookupProtocol to the nfs collection get params
func (o *NfsCollectionGetParams) WithExportsNameServiceLookupProtocol(exportsNameServiceLookupProtocol *string) *NfsCollectionGetParams {
o.SetExportsNameServiceLookupProtocol(exportsNameServiceLookupProtocol)
return o
}
// SetExportsNameServiceLookupProtocol adds the exportsNameServiceLookupProtocol to the nfs collection get params
func (o *NfsCollectionGetParams) SetExportsNameServiceLookupProtocol(exportsNameServiceLookupProtocol *string) {
o.ExportsNameServiceLookupProtocol = exportsNameServiceLookupProtocol
}
// WithExportsNetgroupTrustAnyNsswitchNoMatch adds the exportsNetgroupTrustAnyNsswitchNoMatch to the nfs collection get params
func (o *NfsCollectionGetParams) WithExportsNetgroupTrustAnyNsswitchNoMatch(exportsNetgroupTrustAnyNsswitchNoMatch *bool) *NfsCollectionGetParams {
o.SetExportsNetgroupTrustAnyNsswitchNoMatch(exportsNetgroupTrustAnyNsswitchNoMatch)
return o
}
// SetExportsNetgroupTrustAnyNsswitchNoMatch adds the exportsNetgroupTrustAnyNsswitchNoMatch to the nfs collection get params
func (o *NfsCollectionGetParams) SetExportsNetgroupTrustAnyNsswitchNoMatch(exportsNetgroupTrustAnyNsswitchNoMatch *bool) {
o.ExportsNetgroupTrustAnyNsswitchNoMatch = exportsNetgroupTrustAnyNsswitchNoMatch
}
// WithExtendedGroupsLimit adds the extendedGroupsLimit to the nfs collection get params
func (o *NfsCollectionGetParams) WithExtendedGroupsLimit(extendedGroupsLimit *int64) *NfsCollectionGetParams {
o.SetExtendedGroupsLimit(extendedGroupsLimit)
return o
}
// SetExtendedGroupsLimit adds the extendedGroupsLimit to the nfs collection get params
func (o *NfsCollectionGetParams) SetExtendedGroupsLimit(extendedGroupsLimit *int64) {
o.ExtendedGroupsLimit = extendedGroupsLimit
}
// WithFields adds the fields to the nfs collection get params
func (o *NfsCollectionGetParams) WithFields(fields []string) *NfsCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the nfs collection get params
func (o *NfsCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithFileSessionIoGroupingCount adds the fileSessionIoGroupingCount to the nfs collection get params
func (o *NfsCollectionGetParams) WithFileSessionIoGroupingCount(fileSessionIoGroupingCount *int64) *NfsCollectionGetParams {
o.SetFileSessionIoGroupingCount(fileSessionIoGroupingCount)
return o
}
// SetFileSessionIoGroupingCount adds the fileSessionIoGroupingCount to the nfs collection get params
func (o *NfsCollectionGetParams) SetFileSessionIoGroupingCount(fileSessionIoGroupingCount *int64) {
o.FileSessionIoGroupingCount = fileSessionIoGroupingCount
}
// WithFileSessionIoGroupingDuration adds the fileSessionIoGroupingDuration to the nfs collection get params
func (o *NfsCollectionGetParams) WithFileSessionIoGroupingDuration(fileSessionIoGroupingDuration *int64) *NfsCollectionGetParams {
o.SetFileSessionIoGroupingDuration(fileSessionIoGroupingDuration)
return o
}
// SetFileSessionIoGroupingDuration adds the fileSessionIoGroupingDuration to the nfs collection get params
func (o *NfsCollectionGetParams) SetFileSessionIoGroupingDuration(fileSessionIoGroupingDuration *int64) {
o.FileSessionIoGroupingDuration = fileSessionIoGroupingDuration
}
// WithMaxRecords adds the maxRecords to the nfs collection get params
func (o *NfsCollectionGetParams) WithMaxRecords(maxRecords *int64) *NfsCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the nfs collection get params
func (o *NfsCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithMetricV3Duration adds the metricV3Duration to the nfs collection get params
func (o *NfsCollectionGetParams) WithMetricV3Duration(metricV3Duration *string) *NfsCollectionGetParams {
o.SetMetricV3Duration(metricV3Duration)
return o
}
// SetMetricV3Duration adds the metricV3Duration to the nfs collection get params
func (o *NfsCollectionGetParams) SetMetricV3Duration(metricV3Duration *string) {
o.MetricV3Duration = metricV3Duration
}
// WithMetricV3IopsOther adds the metricV3IopsOther to the nfs collection get params
func (o *NfsCollectionGetParams) WithMetricV3IopsOther(metricV3IopsOther *int64) *NfsCollectionGetParams {
o.SetMetricV3IopsOther(metricV3IopsOther)
return o
}
// SetMetricV3IopsOther adds the metricV3IopsOther to the nfs collection get params
func (o *NfsCollectionGetParams) SetMetricV3IopsOther(metricV3IopsOther *int64) {
o.MetricV3IopsOther = metricV3IopsOther
}
// WithMetricV3IopsRead adds the metricV3IopsRead to the nfs collection get params
func (o *NfsCollectionGetParams) WithMetricV3IopsRead(metricV3IopsRead *int64) *NfsCollectionGetParams {
o.SetMetricV3IopsRead(metricV3IopsRead)
return o
}
// SetMetricV3IopsRead adds the metricV3IopsRead to the nfs collection get params
| 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/n_a_s/cifs_service_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_service_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"
)
// NewCifsServiceCollectionGetParams creates a new CifsServiceCollectionGetParams 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 NewCifsServiceCollectionGetParams() *CifsServiceCollectionGetParams {
return &CifsServiceCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsServiceCollectionGetParamsWithTimeout creates a new CifsServiceCollectionGetParams object
// with the ability to set a timeout on a request.
func NewCifsServiceCollectionGetParamsWithTimeout(timeout time.Duration) *CifsServiceCollectionGetParams {
return &CifsServiceCollectionGetParams{
timeout: timeout,
}
}
// NewCifsServiceCollectionGetParamsWithContext creates a new CifsServiceCollectionGetParams object
// with the ability to set a context for a request.
func NewCifsServiceCollectionGetParamsWithContext(ctx context.Context) *CifsServiceCollectionGetParams {
return &CifsServiceCollectionGetParams{
Context: ctx,
}
}
// NewCifsServiceCollectionGetParamsWithHTTPClient creates a new CifsServiceCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsServiceCollectionGetParamsWithHTTPClient(client *http.Client) *CifsServiceCollectionGetParams {
return &CifsServiceCollectionGetParams{
HTTPClient: client,
}
}
/*
CifsServiceCollectionGetParams contains all the parameters to send to the API endpoint
for the cifs service collection get operation.
Typically these are written to a http.Request.
*/
type CifsServiceCollectionGetParams struct {
/* AdDomainFqdn.
Filter by ad_domain.fqdn
*/
AdDomainFqdn *string
/* AdDomainOrganizationalUnit.
Filter by ad_domain.organizational_unit
*/
AdDomainOrganizationalUnit *string
/* Comment.
Filter by comment
*/
Comment *string
/* DefaultUnixUser.
Filter by default_unix_user
*/
DefaultUnixUser *string
/* Enabled.
Filter by enabled
*/
Enabled *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* GroupPolicyObjectEnabled.
Filter by group_policy_object_enabled
*/
GroupPolicyObjectEnabled *bool
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* MetricDuration.
Filter by metric.duration
*/
MetricDuration *string
/* MetricIopsOther.
Filter by metric.iops.other
*/
MetricIopsOther *int64
/* MetricIopsRead.
Filter by metric.iops.read
*/
MetricIopsRead *int64
/* MetricIopsTotal.
Filter by metric.iops.total
*/
MetricIopsTotal *int64
/* MetricIopsWrite.
Filter by metric.iops.write
*/
MetricIopsWrite *int64
/* MetricLatencyOther.
Filter by metric.latency.other
*/
MetricLatencyOther *int64
/* MetricLatencyRead.
Filter by metric.latency.read
*/
MetricLatencyRead *int64
/* MetricLatencyTotal.
Filter by metric.latency.total
*/
MetricLatencyTotal *int64
/* MetricLatencyWrite.
Filter by metric.latency.write
*/
MetricLatencyWrite *int64
/* MetricStatus.
Filter by metric.status
*/
MetricStatus *string
/* MetricThroughputRead.
Filter by metric.throughput.read
*/
MetricThroughputRead *int64
/* MetricThroughputTotal.
Filter by metric.throughput.total
*/
MetricThroughputTotal *int64
/* MetricThroughputWrite.
Filter by metric.throughput.write
*/
MetricThroughputWrite *int64
/* MetricTimestamp.
Filter by metric.timestamp
*/
MetricTimestamp *string
/* Name.
Filter by name
*/
Name *string
/* NetbiosAliases.
Filter by netbios.aliases
*/
NetbiosAliases *string
/* NetbiosEnabled.
Filter by netbios.enabled
*/
NetbiosEnabled *bool
/* NetbiosWinsServers.
Filter by netbios.wins_servers
*/
NetbiosWinsServers *string
/* OptionsAdminToRootMapping.
Filter by options.admin_to_root_mapping
*/
OptionsAdminToRootMapping *bool
/* OptionsAdvancedSparseFile.
Filter by options.advanced_sparse_file
*/
OptionsAdvancedSparseFile *bool
/* OptionsCopyOffload.
Filter by options.copy_offload
*/
OptionsCopyOffload *bool
/* OptionsFakeOpen.
Filter by options.fake_open
*/
OptionsFakeOpen *bool
/* OptionsFsctlTrim.
Filter by options.fsctl_trim
*/
OptionsFsctlTrim *bool
/* OptionsJunctionReparse.
Filter by options.junction_reparse
*/
OptionsJunctionReparse *bool
/* OptionsLargeMtu.
Filter by options.large_mtu
*/
OptionsLargeMtu *bool
/* OptionsMultichannel.
Filter by options.multichannel
*/
OptionsMultichannel *bool
/* OptionsNullUserWindowsName.
Filter by options.null_user_windows_name
*/
OptionsNullUserWindowsName *string
/* OptionsPathComponentCache.
Filter by options.path_component_cache
*/
OptionsPathComponentCache *bool
/* OptionsReferral.
Filter by options.referral
*/
OptionsReferral *bool
/* OptionsShadowcopy.
Filter by options.shadowcopy
*/
OptionsShadowcopy *bool
/* OptionsShadowcopyDirDepth.
Filter by options.shadowcopy_dir_depth
*/
OptionsShadowcopyDirDepth *int64
/* OptionsSmbCredits.
Filter by options.smb_credits
*/
OptionsSmbCredits *int64
/* OptionsWidelinkReparseVersions.
Filter by options.widelink_reparse_versions
*/
OptionsWidelinkReparseVersions *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
/* SecurityAdvertisedKdcEncryptions.
Filter by security.advertised_kdc_encryptions
*/
SecurityAdvertisedKdcEncryptions *string
/* SecurityAesNetlogonEnabled.
Filter by security.aes_netlogon_enabled
*/
SecurityAesNetlogonEnabled *bool
/* SecurityEncryptDcConnection.
Filter by security.encrypt_dc_connection
*/
SecurityEncryptDcConnection *bool
/* SecurityKdcEncryption.
Filter by security.kdc_encryption
*/
SecurityKdcEncryption *bool
/* SecurityLdapReferralEnabled.
Filter by security.ldap_referral_enabled
*/
SecurityLdapReferralEnabled *bool
/* SecurityLmCompatibilityLevel.
Filter by security.lm_compatibility_level
*/
SecurityLmCompatibilityLevel *string
/* SecurityRestrictAnonymous.
Filter by security.restrict_anonymous
*/
SecurityRestrictAnonymous *string
/* SecuritySessionSecurity.
Filter by security.session_security
*/
SecuritySessionSecurity *string
/* SecuritySmbEncryption.
Filter by security.smb_encryption
*/
SecuritySmbEncryption *bool
/* SecuritySmbSigning.
Filter by security.smb_signing
*/
SecuritySmbSigning *bool
/* SecurityTryLdapChannelBinding.
Filter by security.try_ldap_channel_binding
*/
SecurityTryLdapChannelBinding *bool
/* SecurityUseLdaps.
Filter by security.use_ldaps
*/
SecurityUseLdaps *bool
/* SecurityUseStartTLS.
Filter by security.use_start_tls
*/
SecurityUseStartTLS *bool
/* StatisticsIopsRawOther.
Filter by statistics.iops_raw.other
*/
StatisticsIopsRawOther *int64
/* StatisticsIopsRawRead.
Filter by statistics.iops_raw.read
*/
StatisticsIopsRawRead *int64
/* StatisticsIopsRawTotal.
Filter by statistics.iops_raw.total
*/
StatisticsIopsRawTotal *int64
/* StatisticsIopsRawWrite.
Filter by statistics.iops_raw.write
*/
StatisticsIopsRawWrite *int64
/* StatisticsLatencyRawOther.
Filter by statistics.latency_raw.other
*/
StatisticsLatencyRawOther *int64
/* StatisticsLatencyRawRead.
Filter by statistics.latency_raw.read
*/
StatisticsLatencyRawRead *int64
/* StatisticsLatencyRawTotal.
Filter by statistics.latency_raw.total
*/
StatisticsLatencyRawTotal *int64
/* StatisticsLatencyRawWrite.
Filter by statistics.latency_raw.write
*/
StatisticsLatencyRawWrite *int64
/* StatisticsStatus.
Filter by statistics.status
*/
StatisticsStatus *string
/* StatisticsThroughputRawRead.
Filter by statistics.throughput_raw.read
*/
StatisticsThroughputRawRead *int64
/* StatisticsThroughputRawTotal.
Filter by statistics.throughput_raw.total
*/
StatisticsThroughputRawTotal *int64
/* StatisticsThroughputRawWrite.
Filter by statistics.throughput_raw.write
*/
StatisticsThroughputRawWrite *int64
/* StatisticsTimestamp.
Filter by statistics.timestamp
*/
StatisticsTimestamp *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 cifs service collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsServiceCollectionGetParams) WithDefaults() *CifsServiceCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs service collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsServiceCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := CifsServiceCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithTimeout(timeout time.Duration) *CifsServiceCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithContext(ctx context.Context) *CifsServiceCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithHTTPClient(client *http.Client) *CifsServiceCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAdDomainFqdn adds the adDomainFqdn to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithAdDomainFqdn(adDomainFqdn *string) *CifsServiceCollectionGetParams {
o.SetAdDomainFqdn(adDomainFqdn)
return o
}
// SetAdDomainFqdn adds the adDomainFqdn to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetAdDomainFqdn(adDomainFqdn *string) {
o.AdDomainFqdn = adDomainFqdn
}
// WithAdDomainOrganizationalUnit adds the adDomainOrganizationalUnit to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithAdDomainOrganizationalUnit(adDomainOrganizationalUnit *string) *CifsServiceCollectionGetParams {
o.SetAdDomainOrganizationalUnit(adDomainOrganizationalUnit)
return o
}
// SetAdDomainOrganizationalUnit adds the adDomainOrganizationalUnit to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetAdDomainOrganizationalUnit(adDomainOrganizationalUnit *string) {
o.AdDomainOrganizationalUnit = adDomainOrganizationalUnit
}
// WithComment adds the comment to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithComment(comment *string) *CifsServiceCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithDefaultUnixUser adds the defaultUnixUser to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithDefaultUnixUser(defaultUnixUser *string) *CifsServiceCollectionGetParams {
o.SetDefaultUnixUser(defaultUnixUser)
return o
}
// SetDefaultUnixUser adds the defaultUnixUser to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetDefaultUnixUser(defaultUnixUser *string) {
o.DefaultUnixUser = defaultUnixUser
}
// WithEnabled adds the enabled to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithEnabled(enabled *bool) *CifsServiceCollectionGetParams {
o.SetEnabled(enabled)
return o
}
// SetEnabled adds the enabled to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetEnabled(enabled *bool) {
o.Enabled = enabled
}
// WithFields adds the fields to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithFields(fields []string) *CifsServiceCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithGroupPolicyObjectEnabled adds the groupPolicyObjectEnabled to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithGroupPolicyObjectEnabled(groupPolicyObjectEnabled *bool) *CifsServiceCollectionGetParams {
o.SetGroupPolicyObjectEnabled(groupPolicyObjectEnabled)
return o
}
// SetGroupPolicyObjectEnabled adds the groupPolicyObjectEnabled to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetGroupPolicyObjectEnabled(groupPolicyObjectEnabled *bool) {
o.GroupPolicyObjectEnabled = groupPolicyObjectEnabled
}
// WithMaxRecords adds the maxRecords to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMaxRecords(maxRecords *int64) *CifsServiceCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithMetricDuration adds the metricDuration to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricDuration(metricDuration *string) *CifsServiceCollectionGetParams {
o.SetMetricDuration(metricDuration)
return o
}
// SetMetricDuration adds the metricDuration to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricDuration(metricDuration *string) {
o.MetricDuration = metricDuration
}
// WithMetricIopsOther adds the metricIopsOther to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricIopsOther(metricIopsOther *int64) *CifsServiceCollectionGetParams {
o.SetMetricIopsOther(metricIopsOther)
return o
}
// SetMetricIopsOther adds the metricIopsOther to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricIopsOther(metricIopsOther *int64) {
o.MetricIopsOther = metricIopsOther
}
// WithMetricIopsRead adds the metricIopsRead to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricIopsRead(metricIopsRead *int64) *CifsServiceCollectionGetParams {
o.SetMetricIopsRead(metricIopsRead)
return o
}
// SetMetricIopsRead adds the metricIopsRead to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricIopsRead(metricIopsRead *int64) {
o.MetricIopsRead = metricIopsRead
}
// WithMetricIopsTotal adds the metricIopsTotal to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricIopsTotal(metricIopsTotal *int64) *CifsServiceCollectionGetParams {
o.SetMetricIopsTotal(metricIopsTotal)
return o
}
// SetMetricIopsTotal adds the metricIopsTotal to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricIopsTotal(metricIopsTotal *int64) {
o.MetricIopsTotal = metricIopsTotal
}
// WithMetricIopsWrite adds the metricIopsWrite to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricIopsWrite(metricIopsWrite *int64) *CifsServiceCollectionGetParams {
o.SetMetricIopsWrite(metricIopsWrite)
return o
}
// SetMetricIopsWrite adds the metricIopsWrite to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricIopsWrite(metricIopsWrite *int64) {
o.MetricIopsWrite = metricIopsWrite
}
// WithMetricLatencyOther adds the metricLatencyOther to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricLatencyOther(metricLatencyOther *int64) *CifsServiceCollectionGetParams {
o.SetMetricLatencyOther(metricLatencyOther)
return o
}
// SetMetricLatencyOther adds the metricLatencyOther to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricLatencyOther(metricLatencyOther *int64) {
o.MetricLatencyOther = metricLatencyOther
}
// WithMetricLatencyRead adds the metricLatencyRead to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricLatencyRead(metricLatencyRead *int64) *CifsServiceCollectionGetParams {
o.SetMetricLatencyRead(metricLatencyRead)
return o
}
// SetMetricLatencyRead adds the metricLatencyRead to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricLatencyRead(metricLatencyRead *int64) {
o.MetricLatencyRead = metricLatencyRead
}
// WithMetricLatencyTotal adds the metricLatencyTotal to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricLatencyTotal(metricLatencyTotal *int64) *CifsServiceCollectionGetParams {
o.SetMetricLatencyTotal(metricLatencyTotal)
return o
}
// SetMetricLatencyTotal adds the metricLatencyTotal to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricLatencyTotal(metricLatencyTotal *int64) {
o.MetricLatencyTotal = metricLatencyTotal
}
// WithMetricLatencyWrite adds the metricLatencyWrite to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricLatencyWrite(metricLatencyWrite *int64) *CifsServiceCollectionGetParams {
o.SetMetricLatencyWrite(metricLatencyWrite)
return o
}
// SetMetricLatencyWrite adds the metricLatencyWrite to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricLatencyWrite(metricLatencyWrite *int64) {
o.MetricLatencyWrite = metricLatencyWrite
}
// WithMetricStatus adds the metricStatus to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricStatus(metricStatus *string) *CifsServiceCollectionGetParams {
o.SetMetricStatus(metricStatus)
return o
}
// SetMetricStatus adds the metricStatus to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricStatus(metricStatus *string) {
o.MetricStatus = metricStatus
}
// WithMetricThroughputRead adds the metricThroughputRead to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricThroughputRead(metricThroughputRead *int64) *CifsServiceCollectionGetParams {
o.SetMetricThroughputRead(metricThroughputRead)
return o
}
// SetMetricThroughputRead adds the metricThroughputRead to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricThroughputRead(metricThroughputRead *int64) {
o.MetricThroughputRead = metricThroughputRead
}
// WithMetricThroughputTotal adds the metricThroughputTotal to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricThroughputTotal(metricThroughputTotal *int64) *CifsServiceCollectionGetParams {
o.SetMetricThroughputTotal(metricThroughputTotal)
return o
}
// SetMetricThroughputTotal adds the metricThroughputTotal to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricThroughputTotal(metricThroughputTotal *int64) {
o.MetricThroughputTotal = metricThroughputTotal
}
// WithMetricThroughputWrite adds the metricThroughputWrite to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricThroughputWrite(metricThroughputWrite *int64) *CifsServiceCollectionGetParams {
o.SetMetricThroughputWrite(metricThroughputWrite)
return o
}
// SetMetricThroughputWrite adds the metricThroughputWrite to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricThroughputWrite(metricThroughputWrite *int64) {
o.MetricThroughputWrite = metricThroughputWrite
}
// WithMetricTimestamp adds the metricTimestamp to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithMetricTimestamp(metricTimestamp *string) *CifsServiceCollectionGetParams {
o.SetMetricTimestamp(metricTimestamp)
return o
}
// SetMetricTimestamp adds the metricTimestamp to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetMetricTimestamp(metricTimestamp *string) {
o.MetricTimestamp = metricTimestamp
}
// WithName adds the name to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithName(name *string) *CifsServiceCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithNetbiosAliases adds the netbiosAliases to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithNetbiosAliases(netbiosAliases *string) *CifsServiceCollectionGetParams {
o.SetNetbiosAliases(netbiosAliases)
return o
}
// SetNetbiosAliases adds the netbiosAliases to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetNetbiosAliases(netbiosAliases *string) {
o.NetbiosAliases = netbiosAliases
}
// WithNetbiosEnabled adds the netbiosEnabled to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithNetbiosEnabled(netbiosEnabled *bool) *CifsServiceCollectionGetParams {
o.SetNetbiosEnabled(netbiosEnabled)
return o
}
// SetNetbiosEnabled adds the netbiosEnabled to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetNetbiosEnabled(netbiosEnabled *bool) {
o.NetbiosEnabled = netbiosEnabled
}
// WithNetbiosWinsServers adds the netbiosWinsServers to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithNetbiosWinsServers(netbiosWinsServers *string) *CifsServiceCollectionGetParams {
o.SetNetbiosWinsServers(netbiosWinsServers)
return o
}
// SetNetbiosWinsServers adds the netbiosWinsServers to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetNetbiosWinsServers(netbiosWinsServers *string) {
o.NetbiosWinsServers = netbiosWinsServers
}
// WithOptionsAdminToRootMapping adds the optionsAdminToRootMapping to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsAdminToRootMapping(optionsAdminToRootMapping *bool) *CifsServiceCollectionGetParams {
o.SetOptionsAdminToRootMapping(optionsAdminToRootMapping)
return o
}
// SetOptionsAdminToRootMapping adds the optionsAdminToRootMapping to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsAdminToRootMapping(optionsAdminToRootMapping *bool) {
o.OptionsAdminToRootMapping = optionsAdminToRootMapping
}
// WithOptionsAdvancedSparseFile adds the optionsAdvancedSparseFile to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsAdvancedSparseFile(optionsAdvancedSparseFile *bool) *CifsServiceCollectionGetParams {
o.SetOptionsAdvancedSparseFile(optionsAdvancedSparseFile)
return o
}
// SetOptionsAdvancedSparseFile adds the optionsAdvancedSparseFile to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsAdvancedSparseFile(optionsAdvancedSparseFile *bool) {
o.OptionsAdvancedSparseFile = optionsAdvancedSparseFile
}
// WithOptionsCopyOffload adds the optionsCopyOffload to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsCopyOffload(optionsCopyOffload *bool) *CifsServiceCollectionGetParams {
o.SetOptionsCopyOffload(optionsCopyOffload)
return o
}
// SetOptionsCopyOffload adds the optionsCopyOffload to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsCopyOffload(optionsCopyOffload *bool) {
o.OptionsCopyOffload = optionsCopyOffload
}
// WithOptionsFakeOpen adds the optionsFakeOpen to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsFakeOpen(optionsFakeOpen *bool) *CifsServiceCollectionGetParams {
o.SetOptionsFakeOpen(optionsFakeOpen)
return o
}
// SetOptionsFakeOpen adds the optionsFakeOpen to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsFakeOpen(optionsFakeOpen *bool) {
o.OptionsFakeOpen = optionsFakeOpen
}
// WithOptionsFsctlTrim adds the optionsFsctlTrim to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsFsctlTrim(optionsFsctlTrim *bool) *CifsServiceCollectionGetParams {
o.SetOptionsFsctlTrim(optionsFsctlTrim)
return o
}
// SetOptionsFsctlTrim adds the optionsFsctlTrim to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsFsctlTrim(optionsFsctlTrim *bool) {
o.OptionsFsctlTrim = optionsFsctlTrim
}
// WithOptionsJunctionReparse adds the optionsJunctionReparse to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsJunctionReparse(optionsJunctionReparse *bool) *CifsServiceCollectionGetParams {
o.SetOptionsJunctionReparse(optionsJunctionReparse)
return o
}
// SetOptionsJunctionReparse adds the optionsJunctionReparse to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsJunctionReparse(optionsJunctionReparse *bool) {
o.OptionsJunctionReparse = optionsJunctionReparse
}
// WithOptionsLargeMtu adds the optionsLargeMtu to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsLargeMtu(optionsLargeMtu *bool) *CifsServiceCollectionGetParams {
o.SetOptionsLargeMtu(optionsLargeMtu)
return o
}
// SetOptionsLargeMtu adds the optionsLargeMtu to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsLargeMtu(optionsLargeMtu *bool) {
o.OptionsLargeMtu = optionsLargeMtu
}
// WithOptionsMultichannel adds the optionsMultichannel to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsMultichannel(optionsMultichannel *bool) *CifsServiceCollectionGetParams {
o.SetOptionsMultichannel(optionsMultichannel)
return o
}
// SetOptionsMultichannel adds the optionsMultichannel to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsMultichannel(optionsMultichannel *bool) {
o.OptionsMultichannel = optionsMultichannel
}
// WithOptionsNullUserWindowsName adds the optionsNullUserWindowsName to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsNullUserWindowsName(optionsNullUserWindowsName *string) *CifsServiceCollectionGetParams {
o.SetOptionsNullUserWindowsName(optionsNullUserWindowsName)
return o
}
// SetOptionsNullUserWindowsName adds the optionsNullUserWindowsName to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsNullUserWindowsName(optionsNullUserWindowsName *string) {
o.OptionsNullUserWindowsName = optionsNullUserWindowsName
}
// WithOptionsPathComponentCache adds the optionsPathComponentCache to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsPathComponentCache(optionsPathComponentCache *bool) *CifsServiceCollectionGetParams {
o.SetOptionsPathComponentCache(optionsPathComponentCache)
return o
}
// SetOptionsPathComponentCache adds the optionsPathComponentCache to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsPathComponentCache(optionsPathComponentCache *bool) {
o.OptionsPathComponentCache = optionsPathComponentCache
}
// WithOptionsReferral adds the optionsReferral to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsReferral(optionsReferral *bool) *CifsServiceCollectionGetParams {
o.SetOptionsReferral(optionsReferral)
return o
}
// SetOptionsReferral adds the optionsReferral to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsReferral(optionsReferral *bool) {
o.OptionsReferral = optionsReferral
}
// WithOptionsShadowcopy adds the optionsShadowcopy to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsShadowcopy(optionsShadowcopy *bool) *CifsServiceCollectionGetParams {
o.SetOptionsShadowcopy(optionsShadowcopy)
return o
}
// SetOptionsShadowcopy adds the optionsShadowcopy to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsShadowcopy(optionsShadowcopy *bool) {
o.OptionsShadowcopy = optionsShadowcopy
}
// WithOptionsShadowcopyDirDepth adds the optionsShadowcopyDirDepth to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsShadowcopyDirDepth(optionsShadowcopyDirDepth *int64) *CifsServiceCollectionGetParams {
o.SetOptionsShadowcopyDirDepth(optionsShadowcopyDirDepth)
return o
}
// SetOptionsShadowcopyDirDepth adds the optionsShadowcopyDirDepth to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsShadowcopyDirDepth(optionsShadowcopyDirDepth *int64) {
o.OptionsShadowcopyDirDepth = optionsShadowcopyDirDepth
}
// WithOptionsSmbCredits adds the optionsSmbCredits to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsSmbCredits(optionsSmbCredits *int64) *CifsServiceCollectionGetParams {
o.SetOptionsSmbCredits(optionsSmbCredits)
return o
}
// SetOptionsSmbCredits adds the optionsSmbCredits to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsSmbCredits(optionsSmbCredits *int64) {
o.OptionsSmbCredits = optionsSmbCredits
}
// WithOptionsWidelinkReparseVersions adds the optionsWidelinkReparseVersions to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOptionsWidelinkReparseVersions(optionsWidelinkReparseVersions *string) *CifsServiceCollectionGetParams {
o.SetOptionsWidelinkReparseVersions(optionsWidelinkReparseVersions)
return o
}
// SetOptionsWidelinkReparseVersions adds the optionsWidelinkReparseVersions to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOptionsWidelinkReparseVersions(optionsWidelinkReparseVersions *string) {
o.OptionsWidelinkReparseVersions = optionsWidelinkReparseVersions
}
// WithOrderBy adds the orderBy to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithOrderBy(orderBy []string) *CifsServiceCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) WithReturnRecords(returnRecords *bool) *CifsServiceCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs service collection get params
func (o *CifsServiceCollectionGetParams) SetReturnRecords(returnRecords *bool) {
| 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/n_a_s/cifs_symlink_mapping_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_symlink_mapping_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"
)
// NewCifsSymlinkMappingDeleteParams creates a new CifsSymlinkMappingDeleteParams 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 NewCifsSymlinkMappingDeleteParams() *CifsSymlinkMappingDeleteParams {
return &CifsSymlinkMappingDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsSymlinkMappingDeleteParamsWithTimeout creates a new CifsSymlinkMappingDeleteParams object
// with the ability to set a timeout on a request.
func NewCifsSymlinkMappingDeleteParamsWithTimeout(timeout time.Duration) *CifsSymlinkMappingDeleteParams {
return &CifsSymlinkMappingDeleteParams{
timeout: timeout,
}
}
// NewCifsSymlinkMappingDeleteParamsWithContext creates a new CifsSymlinkMappingDeleteParams object
// with the ability to set a context for a request.
func NewCifsSymlinkMappingDeleteParamsWithContext(ctx context.Context) *CifsSymlinkMappingDeleteParams {
return &CifsSymlinkMappingDeleteParams{
Context: ctx,
}
}
// NewCifsSymlinkMappingDeleteParamsWithHTTPClient creates a new CifsSymlinkMappingDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsSymlinkMappingDeleteParamsWithHTTPClient(client *http.Client) *CifsSymlinkMappingDeleteParams {
return &CifsSymlinkMappingDeleteParams{
HTTPClient: client,
}
}
/*
CifsSymlinkMappingDeleteParams contains all the parameters to send to the API endpoint
for the cifs symlink mapping delete operation.
Typically these are written to a http.Request.
*/
type CifsSymlinkMappingDeleteParams struct {
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UnixPath.
UNIX symbolic link path
*/
UnixPath string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cifs symlink mapping delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSymlinkMappingDeleteParams) WithDefaults() *CifsSymlinkMappingDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs symlink mapping delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSymlinkMappingDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) WithTimeout(timeout time.Duration) *CifsSymlinkMappingDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) WithContext(ctx context.Context) *CifsSymlinkMappingDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) WithHTTPClient(client *http.Client) *CifsSymlinkMappingDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithSvmUUID adds the svmUUID to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) WithSvmUUID(svmUUID string) *CifsSymlinkMappingDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUnixPath adds the unixPath to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) WithUnixPath(unixPath string) *CifsSymlinkMappingDeleteParams {
o.SetUnixPath(unixPath)
return o
}
// SetUnixPath adds the unixPath to the cifs symlink mapping delete params
func (o *CifsSymlinkMappingDeleteParams) SetUnixPath(unixPath string) {
o.UnixPath = unixPath
}
// WriteToRequest writes these params to a swagger request
func (o *CifsSymlinkMappingDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
// path param unix_path
if err := r.SetPathParam("unix_path", o.UnixPath); 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/vscan_on_demand_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_on_demand_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"
)
// VscanOnDemandModifyReader is a Reader for the VscanOnDemandModify structure.
type VscanOnDemandModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *VscanOnDemandModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewVscanOnDemandModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewVscanOnDemandModifyDefault(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
}
}
// NewVscanOnDemandModifyOK creates a VscanOnDemandModifyOK with default headers values
func NewVscanOnDemandModifyOK() *VscanOnDemandModifyOK {
return &VscanOnDemandModifyOK{}
}
/*
VscanOnDemandModifyOK describes a response with status code 200, with default header values.
OK
*/
type VscanOnDemandModifyOK struct {
}
// IsSuccess returns true when this vscan on demand modify o k response has a 2xx status code
func (o *VscanOnDemandModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this vscan on demand modify o k response has a 3xx status code
func (o *VscanOnDemandModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this vscan on demand modify o k response has a 4xx status code
func (o *VscanOnDemandModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this vscan on demand modify o k response has a 5xx status code
func (o *VscanOnDemandModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this vscan on demand modify o k response a status code equal to that given
func (o *VscanOnDemandModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *VscanOnDemandModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/vscan/{svm.uuid}/on-demand-policies/{name}][%d] vscanOnDemandModifyOK ", 200)
}
func (o *VscanOnDemandModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/vscan/{svm.uuid}/on-demand-policies/{name}][%d] vscanOnDemandModifyOK ", 200)
}
func (o *VscanOnDemandModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewVscanOnDemandModifyDefault creates a VscanOnDemandModifyDefault with default headers values
func NewVscanOnDemandModifyDefault(code int) *VscanOnDemandModifyDefault {
return &VscanOnDemandModifyDefault{
_statusCode: code,
}
}
/*
VscanOnDemandModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 10027101 | The file size must be in the range 1KB to 1TB |
| 10027107 | The include extensions list cannot be empty. Specify at least one extension for inclusion. |
| 10027164 | An On-Demand policy cannot be scheduled, as the Vscan is disabled. Enable the Vscan and retry the operation. |
| 10027167 | The specified schedule does not exist. Create the schedule or create a policy without specifying the schedule. |
| 10027168 | The specified scan path does not exist. The scan path must be specified from the root of the SVM, and must begin with UNIX path delimiters (use “/” not “\\”) |
| 10027169 | The specified scan path is not supported for scanning. |
| 10027174 | The specified exclude path is invalid. The path must be specified from the root of the SVM, and must begin with UNIX path delimiters (use "/" not "\\") |
| 10027175 | An On-Demand policy cannot be scheduled as the SVM is not in an operational state. |
| 10027176 | The log-path specified does not exist. The log path must be specified from the root of the SVM, and must begin with UNIX path delimiters (use “/” not “\\”) |
| 10027177 | The log path specified is not supported. |
| 10027253 | The number of paths specified exceeds the configured maximum number of paths. You cannot specify more than the maximum number of configured paths. |
| 10027254 | The number of extensions specified exceeds the configured maximum number of extensions. You cannot specify more than the maximum number of configured extensions. |
| 10027255 | Another policy is already scheduled. Only one policy per SVM is allowed to be scheduled at any one time. Update a policy without specifying a schedule. |
*/
type VscanOnDemandModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the vscan on demand modify default response
func (o *VscanOnDemandModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this vscan on demand modify default response has a 2xx status code
func (o *VscanOnDemandModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this vscan on demand modify default response has a 3xx status code
func (o *VscanOnDemandModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this vscan on demand modify default response has a 4xx status code
func (o *VscanOnDemandModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this vscan on demand modify default response has a 5xx status code
func (o *VscanOnDemandModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this vscan on demand modify default response a status code equal to that given
func (o *VscanOnDemandModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *VscanOnDemandModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/vscan/{svm.uuid}/on-demand-policies/{name}][%d] vscan_on_demand_modify default %+v", o._statusCode, o.Payload)
}
func (o *VscanOnDemandModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/vscan/{svm.uuid}/on-demand-policies/{name}][%d] vscan_on_demand_modify default %+v", o._statusCode, o.Payload)
}
func (o *VscanOnDemandModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *VscanOnDemandModifyDefault) 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_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_engine_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"
)
// FpolicyEngineDeleteReader is a Reader for the FpolicyEngineDelete structure.
type FpolicyEngineDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyEngineDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewFpolicyEngineDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyEngineDeleteDefault(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
}
}
// NewFpolicyEngineDeleteOK creates a FpolicyEngineDeleteOK with default headers values
func NewFpolicyEngineDeleteOK() *FpolicyEngineDeleteOK {
return &FpolicyEngineDeleteOK{}
}
/*
FpolicyEngineDeleteOK describes a response with status code 200, with default header values.
OK
*/
type FpolicyEngineDeleteOK struct {
}
// IsSuccess returns true when this fpolicy engine delete o k response has a 2xx status code
func (o *FpolicyEngineDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy engine delete o k response has a 3xx status code
func (o *FpolicyEngineDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy engine delete o k response has a 4xx status code
func (o *FpolicyEngineDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy engine delete o k response has a 5xx status code
func (o *FpolicyEngineDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy engine delete o k response a status code equal to that given
func (o *FpolicyEngineDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *FpolicyEngineDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicyEngineDeleteOK ", 200)
}
func (o *FpolicyEngineDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicyEngineDeleteOK ", 200)
}
func (o *FpolicyEngineDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewFpolicyEngineDeleteDefault creates a FpolicyEngineDeleteDefault with default headers values
func NewFpolicyEngineDeleteDefault(code int) *FpolicyEngineDeleteDefault {
return &FpolicyEngineDeleteDefault{
_statusCode: code,
}
}
/*
FpolicyEngineDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 9764940 | At least one FPolicy policy is using the FPolicy engine |
| 9764887 | The FPolicy engine is a cluster level FPolicy engine |
*/
type FpolicyEngineDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy engine delete default response
func (o *FpolicyEngineDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy engine delete default response has a 2xx status code
func (o *FpolicyEngineDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy engine delete default response has a 3xx status code
func (o *FpolicyEngineDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy engine delete default response has a 4xx status code
func (o *FpolicyEngineDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy engine delete default response has a 5xx status code
func (o *FpolicyEngineDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy engine delete default response a status code equal to that given
func (o *FpolicyEngineDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyEngineDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicy_engine_delete default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyEngineDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/fpolicy/{svm.uuid}/engines/{name}][%d] fpolicy_engine_delete default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyEngineDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyEngineDeleteDefault) 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/shadowcopy_set_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/shadowcopy_set_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"
)
// ShadowcopySetCollectionGetReader is a Reader for the ShadowcopySetCollectionGet structure.
type ShadowcopySetCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ShadowcopySetCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewShadowcopySetCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewShadowcopySetCollectionGetDefault(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
}
}
// NewShadowcopySetCollectionGetOK creates a ShadowcopySetCollectionGetOK with default headers values
func NewShadowcopySetCollectionGetOK() *ShadowcopySetCollectionGetOK {
return &ShadowcopySetCollectionGetOK{}
}
/*
ShadowcopySetCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type ShadowcopySetCollectionGetOK struct {
Payload *models.ShadowcopySetResponse
}
// IsSuccess returns true when this shadowcopy set collection get o k response has a 2xx status code
func (o *ShadowcopySetCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this shadowcopy set collection get o k response has a 3xx status code
func (o *ShadowcopySetCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this shadowcopy set collection get o k response has a 4xx status code
func (o *ShadowcopySetCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this shadowcopy set collection get o k response has a 5xx status code
func (o *ShadowcopySetCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this shadowcopy set collection get o k response a status code equal to that given
func (o *ShadowcopySetCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *ShadowcopySetCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets][%d] shadowcopySetCollectionGetOK %+v", 200, o.Payload)
}
func (o *ShadowcopySetCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets][%d] shadowcopySetCollectionGetOK %+v", 200, o.Payload)
}
func (o *ShadowcopySetCollectionGetOK) GetPayload() *models.ShadowcopySetResponse {
return o.Payload
}
func (o *ShadowcopySetCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ShadowcopySetResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewShadowcopySetCollectionGetDefault creates a ShadowcopySetCollectionGetDefault with default headers values
func NewShadowcopySetCollectionGetDefault(code int) *ShadowcopySetCollectionGetDefault {
return &ShadowcopySetCollectionGetDefault{
_statusCode: code,
}
}
/*
ShadowcopySetCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type ShadowcopySetCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the shadowcopy set collection get default response
func (o *ShadowcopySetCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this shadowcopy set collection get default response has a 2xx status code
func (o *ShadowcopySetCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this shadowcopy set collection get default response has a 3xx status code
func (o *ShadowcopySetCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this shadowcopy set collection get default response has a 4xx status code
func (o *ShadowcopySetCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this shadowcopy set collection get default response has a 5xx status code
func (o *ShadowcopySetCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this shadowcopy set collection get default response a status code equal to that given
func (o *ShadowcopySetCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ShadowcopySetCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets][%d] shadowcopy_set_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *ShadowcopySetCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/shadowcopy-sets][%d] shadowcopy_set_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *ShadowcopySetCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ShadowcopySetCollectionGetDefault) 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_share_acl_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_acl_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"
)
// NewCifsShareACLCreateParams creates a new CifsShareACLCreateParams 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 NewCifsShareACLCreateParams() *CifsShareACLCreateParams {
return &CifsShareACLCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsShareACLCreateParamsWithTimeout creates a new CifsShareACLCreateParams object
// with the ability to set a timeout on a request.
func NewCifsShareACLCreateParamsWithTimeout(timeout time.Duration) *CifsShareACLCreateParams {
return &CifsShareACLCreateParams{
timeout: timeout,
}
}
// NewCifsShareACLCreateParamsWithContext creates a new CifsShareACLCreateParams object
// with the ability to set a context for a request.
func NewCifsShareACLCreateParamsWithContext(ctx context.Context) *CifsShareACLCreateParams {
return &CifsShareACLCreateParams{
Context: ctx,
}
}
// NewCifsShareACLCreateParamsWithHTTPClient creates a new CifsShareACLCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsShareACLCreateParamsWithHTTPClient(client *http.Client) *CifsShareACLCreateParams {
return &CifsShareACLCreateParams{
HTTPClient: client,
}
}
/*
CifsShareACLCreateParams contains all the parameters to send to the API endpoint
for the cifs share acl create operation.
Typically these are written to a http.Request.
*/
type CifsShareACLCreateParams struct {
/* Info.
Info specification
*/
Info *models.CifsShareACL
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* Share.
CIFS Share Name
*/
Share 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 share acl create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareACLCreateParams) WithDefaults() *CifsShareACLCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs share acl create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareACLCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := CifsShareACLCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs share acl create params
func (o *CifsShareACLCreateParams) WithTimeout(timeout time.Duration) *CifsShareACLCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs share acl create params
func (o *CifsShareACLCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs share acl create params
func (o *CifsShareACLCreateParams) WithContext(ctx context.Context) *CifsShareACLCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs share acl create params
func (o *CifsShareACLCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs share acl create params
func (o *CifsShareACLCreateParams) WithHTTPClient(client *http.Client) *CifsShareACLCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs share acl create params
func (o *CifsShareACLCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cifs share acl create params
func (o *CifsShareACLCreateParams) WithInfo(info *models.CifsShareACL) *CifsShareACLCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cifs share acl create params
func (o *CifsShareACLCreateParams) SetInfo(info *models.CifsShareACL) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the cifs share acl create params
func (o *CifsShareACLCreateParams) WithReturnRecords(returnRecords *bool) *CifsShareACLCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs share acl create params
func (o *CifsShareACLCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithShare adds the share to the cifs share acl create params
func (o *CifsShareACLCreateParams) WithShare(share string) *CifsShareACLCreateParams {
o.SetShare(share)
return o
}
// SetShare adds the share to the cifs share acl create params
func (o *CifsShareACLCreateParams) SetShare(share string) {
o.Share = share
}
// WithSvmUUID adds the svmUUID to the cifs share acl create params
func (o *CifsShareACLCreateParams) WithSvmUUID(svmUUID string) *CifsShareACLCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs share acl create params
func (o *CifsShareACLCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *CifsShareACLCreateParams) 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
}
}
}
// 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
}
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_user_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_user_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"
)
// LocalCifsUserCreateReader is a Reader for the LocalCifsUserCreate structure.
type LocalCifsUserCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *LocalCifsUserCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewLocalCifsUserCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewLocalCifsUserCreateDefault(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
}
}
// NewLocalCifsUserCreateCreated creates a LocalCifsUserCreateCreated with default headers values
func NewLocalCifsUserCreateCreated() *LocalCifsUserCreateCreated {
return &LocalCifsUserCreateCreated{}
}
/*
LocalCifsUserCreateCreated describes a response with status code 201, with default header values.
Created
*/
type LocalCifsUserCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.LocalCifsUserResponse
}
// IsSuccess returns true when this local cifs user create created response has a 2xx status code
func (o *LocalCifsUserCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this local cifs user create created response has a 3xx status code
func (o *LocalCifsUserCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this local cifs user create created response has a 4xx status code
func (o *LocalCifsUserCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this local cifs user create created response has a 5xx status code
func (o *LocalCifsUserCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this local cifs user create created response a status code equal to that given
func (o *LocalCifsUserCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *LocalCifsUserCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/cifs/local-users][%d] localCifsUserCreateCreated %+v", 201, o.Payload)
}
func (o *LocalCifsUserCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/cifs/local-users][%d] localCifsUserCreateCreated %+v", 201, o.Payload)
}
func (o *LocalCifsUserCreateCreated) GetPayload() *models.LocalCifsUserResponse {
return o.Payload
}
func (o *LocalCifsUserCreateCreated) 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.LocalCifsUserResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewLocalCifsUserCreateDefault creates a LocalCifsUserCreateDefault with default headers values
func NewLocalCifsUserCreateDefault(code int) *LocalCifsUserCreateDefault {
return &LocalCifsUserCreateDefault{
_statusCode: code,
}
}
/*
LocalCifsUserCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 262278 | Name and password are required fields. |
| 655399 | CIFS server must exist to create a local user. |
| 655660 | The operation is allowed only on data SVMs. |
| 655661 | The user name should not exceed 20 characters. Also full_name and description should not exceed 256 characters. |
| 655665 | The user name must not match the CIFS server name of the specified SVM. |
| 655668 | The specified user name contains illegal characters. |
| 655675 | The local domain name specified in user name doesn't exist. |
| 655682 | The user name cannot be blank. |
| 655733 | The password does not meet the password complexity requirements. |
| 655736 | The specified user name already exists. |
| 2621706 | The specified SVM UUID is incorrect for the specified SVM name. |
*/
type LocalCifsUserCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the local cifs user create default response
func (o *LocalCifsUserCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this local cifs user create default response has a 2xx status code
func (o *LocalCifsUserCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this local cifs user create default response has a 3xx status code
func (o *LocalCifsUserCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this local cifs user create default response has a 4xx status code
func (o *LocalCifsUserCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this local cifs user create default response has a 5xx status code
func (o *LocalCifsUserCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this local cifs user create default response a status code equal to that given
func (o *LocalCifsUserCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *LocalCifsUserCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/cifs/local-users][%d] local_cifs_user_create default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsUserCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/cifs/local-users][%d] local_cifs_user_create default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsUserCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *LocalCifsUserCreateDefault) 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_share_acl_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_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"
)
// NewCifsShareACLDeleteParams creates a new CifsShareACLDeleteParams 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 NewCifsShareACLDeleteParams() *CifsShareACLDeleteParams {
return &CifsShareACLDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsShareACLDeleteParamsWithTimeout creates a new CifsShareACLDeleteParams object
// with the ability to set a timeout on a request.
func NewCifsShareACLDeleteParamsWithTimeout(timeout time.Duration) *CifsShareACLDeleteParams {
return &CifsShareACLDeleteParams{
timeout: timeout,
}
}
// NewCifsShareACLDeleteParamsWithContext creates a new CifsShareACLDeleteParams object
// with the ability to set a context for a request.
func NewCifsShareACLDeleteParamsWithContext(ctx context.Context) *CifsShareACLDeleteParams {
return &CifsShareACLDeleteParams{
Context: ctx,
}
}
// NewCifsShareACLDeleteParamsWithHTTPClient creates a new CifsShareACLDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsShareACLDeleteParamsWithHTTPClient(client *http.Client) *CifsShareACLDeleteParams {
return &CifsShareACLDeleteParams{
HTTPClient: client,
}
}
/*
CifsShareACLDeleteParams contains all the parameters to send to the API endpoint
for the cifs share acl delete operation.
Typically these are written to a http.Request.
*/
type CifsShareACLDeleteParams struct {
/* 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 delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareACLDeleteParams) WithDefaults() *CifsShareACLDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs share acl delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareACLDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) WithTimeout(timeout time.Duration) *CifsShareACLDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) WithContext(ctx context.Context) *CifsShareACLDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) WithHTTPClient(client *http.Client) *CifsShareACLDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithShare adds the share to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) WithShare(share string) *CifsShareACLDeleteParams {
o.SetShare(share)
return o
}
// SetShare adds the share to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) SetShare(share string) {
o.Share = share
}
// WithSvmUUID adds the svmUUID to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) WithSvmUUID(svmUUID string) *CifsShareACLDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithType adds the typeVar to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) WithType(typeVar string) *CifsShareACLDeleteParams {
o.SetType(typeVar)
return o
}
// SetType adds the type to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) SetType(typeVar string) {
o.Type = typeVar
}
// WithUserOrGroup adds the userOrGroup to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) WithUserOrGroup(userOrGroup string) *CifsShareACLDeleteParams {
o.SetUserOrGroup(userOrGroup)
return o
}
// SetUserOrGroup adds the userOrGroup to the cifs share acl delete params
func (o *CifsShareACLDeleteParams) SetUserOrGroup(userOrGroup string) {
o.UserOrGroup = userOrGroup
}
// WriteToRequest writes these params to a swagger request
func (o *CifsShareACLDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// 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/vscan_event_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_event_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"
)
// NewVscanEventCollectionGetParams creates a new VscanEventCollectionGetParams 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 NewVscanEventCollectionGetParams() *VscanEventCollectionGetParams {
return &VscanEventCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewVscanEventCollectionGetParamsWithTimeout creates a new VscanEventCollectionGetParams object
// with the ability to set a timeout on a request.
func NewVscanEventCollectionGetParamsWithTimeout(timeout time.Duration) *VscanEventCollectionGetParams {
return &VscanEventCollectionGetParams{
timeout: timeout,
}
}
// NewVscanEventCollectionGetParamsWithContext creates a new VscanEventCollectionGetParams object
// with the ability to set a context for a request.
func NewVscanEventCollectionGetParamsWithContext(ctx context.Context) *VscanEventCollectionGetParams {
return &VscanEventCollectionGetParams{
Context: ctx,
}
}
// NewVscanEventCollectionGetParamsWithHTTPClient creates a new VscanEventCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewVscanEventCollectionGetParamsWithHTTPClient(client *http.Client) *VscanEventCollectionGetParams {
return &VscanEventCollectionGetParams{
HTTPClient: client,
}
}
/*
VscanEventCollectionGetParams contains all the parameters to send to the API endpoint
for the vscan event collection get operation.
Typically these are written to a http.Request.
*/
type VscanEventCollectionGetParams struct {
/* DisconnectReason.
Filter by disconnect_reason
*/
DisconnectReason *string
/* EventTime.
Filter by event_time
*/
EventTime *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* FilePath.
Filter by file_path
*/
FilePath *string
/* InterfaceIPAddress.
Filter by interface.ip.address
*/
InterfaceIPAddress *string
/* InterfaceName.
Filter by interface.name
*/
InterfaceName *string
/* InterfaceUUID.
Filter by interface.uuid
*/
InterfaceUUID *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
/* Server.
Filter by server
*/
Server *string
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* Type.
Filter by type
*/
Type *string
/* Vendor.
Filter by vendor
*/
Vendor *string
/* Version.
Filter by version
*/
Version *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the vscan event collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanEventCollectionGetParams) WithDefaults() *VscanEventCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the vscan event collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanEventCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := VscanEventCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithTimeout(timeout time.Duration) *VscanEventCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithContext(ctx context.Context) *VscanEventCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithHTTPClient(client *http.Client) *VscanEventCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithDisconnectReason adds the disconnectReason to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithDisconnectReason(disconnectReason *string) *VscanEventCollectionGetParams {
o.SetDisconnectReason(disconnectReason)
return o
}
// SetDisconnectReason adds the disconnectReason to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetDisconnectReason(disconnectReason *string) {
o.DisconnectReason = disconnectReason
}
// WithEventTime adds the eventTime to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithEventTime(eventTime *string) *VscanEventCollectionGetParams {
o.SetEventTime(eventTime)
return o
}
// SetEventTime adds the eventTime to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetEventTime(eventTime *string) {
o.EventTime = eventTime
}
// WithFields adds the fields to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithFields(fields []string) *VscanEventCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithFilePath adds the filePath to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithFilePath(filePath *string) *VscanEventCollectionGetParams {
o.SetFilePath(filePath)
return o
}
// SetFilePath adds the filePath to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetFilePath(filePath *string) {
o.FilePath = filePath
}
// WithInterfaceIPAddress adds the interfaceIPAddress to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithInterfaceIPAddress(interfaceIPAddress *string) *VscanEventCollectionGetParams {
o.SetInterfaceIPAddress(interfaceIPAddress)
return o
}
// SetInterfaceIPAddress adds the interfaceIpAddress to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetInterfaceIPAddress(interfaceIPAddress *string) {
o.InterfaceIPAddress = interfaceIPAddress
}
// WithInterfaceName adds the interfaceName to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithInterfaceName(interfaceName *string) *VscanEventCollectionGetParams {
o.SetInterfaceName(interfaceName)
return o
}
// SetInterfaceName adds the interfaceName to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetInterfaceName(interfaceName *string) {
o.InterfaceName = interfaceName
}
// WithInterfaceUUID adds the interfaceUUID to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithInterfaceUUID(interfaceUUID *string) *VscanEventCollectionGetParams {
o.SetInterfaceUUID(interfaceUUID)
return o
}
// SetInterfaceUUID adds the interfaceUuid to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetInterfaceUUID(interfaceUUID *string) {
o.InterfaceUUID = interfaceUUID
}
// WithMaxRecords adds the maxRecords to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithMaxRecords(maxRecords *int64) *VscanEventCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithNodeName adds the nodeName to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithNodeName(nodeName *string) *VscanEventCollectionGetParams {
o.SetNodeName(nodeName)
return o
}
// SetNodeName adds the nodeName to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetNodeName(nodeName *string) {
o.NodeName = nodeName
}
// WithNodeUUID adds the nodeUUID to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithNodeUUID(nodeUUID *string) *VscanEventCollectionGetParams {
o.SetNodeUUID(nodeUUID)
return o
}
// SetNodeUUID adds the nodeUuid to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetNodeUUID(nodeUUID *string) {
o.NodeUUID = nodeUUID
}
// WithOrderBy adds the orderBy to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithOrderBy(orderBy []string) *VscanEventCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithReturnRecords(returnRecords *bool) *VscanEventCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *VscanEventCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithServer adds the server to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithServer(server *string) *VscanEventCollectionGetParams {
o.SetServer(server)
return o
}
// SetServer adds the server to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetServer(server *string) {
o.Server = server
}
// WithSvmName adds the svmName to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithSvmName(svmName *string) *VscanEventCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithSvmUUID(svmUUID string) *VscanEventCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithType adds the typeVar to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithType(typeVar *string) *VscanEventCollectionGetParams {
o.SetType(typeVar)
return o
}
// SetType adds the type to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetType(typeVar *string) {
o.Type = typeVar
}
// WithVendor adds the vendor to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithVendor(vendor *string) *VscanEventCollectionGetParams {
o.SetVendor(vendor)
return o
}
// SetVendor adds the vendor to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetVendor(vendor *string) {
o.Vendor = vendor
}
// WithVersion adds the version to the vscan event collection get params
func (o *VscanEventCollectionGetParams) WithVersion(version *string) *VscanEventCollectionGetParams {
o.SetVersion(version)
return o
}
// SetVersion adds the version to the vscan event collection get params
func (o *VscanEventCollectionGetParams) SetVersion(version *string) {
o.Version = version
}
// WriteToRequest writes these params to a swagger request
func (o *VscanEventCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.DisconnectReason != nil {
// query param disconnect_reason
var qrDisconnectReason string
if o.DisconnectReason != nil {
qrDisconnectReason = *o.DisconnectReason
}
qDisconnectReason := qrDisconnectReason
if qDisconnectReason != "" {
if err := r.SetQueryParam("disconnect_reason", qDisconnectReason); err != nil {
return err
}
}
}
if o.EventTime != nil {
// query param event_time
var qrEventTime string
if o.EventTime != nil {
qrEventTime = *o.EventTime
}
qEventTime := qrEventTime
if qEventTime != "" {
if err := r.SetQueryParam("event_time", qEventTime); 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.FilePath != nil {
// query param file_path
var qrFilePath string
if o.FilePath != nil {
qrFilePath = *o.FilePath
}
qFilePath := qrFilePath
if qFilePath != "" {
if err := r.SetQueryParam("file_path", qFilePath); 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.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.Server != nil {
// query param server
var qrServer string
if o.Server != nil {
qrServer = *o.Server
}
qServer := qrServer
if qServer != "" {
if err := r.SetQueryParam("server", qServer); err != nil {
return err
}
}
}
if o.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
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if o.Type != nil {
// query param type
var qrType string
if o.Type != nil {
qrType = *o.Type
}
qType := qrType
if qType != "" {
if err := r.SetQueryParam("type", qType); err != nil {
return err
}
}
}
if o.Vendor != nil {
// query param vendor
var qrVendor string
if o.Vendor != nil {
qrVendor = *o.Vendor
}
qVendor := qrVendor
if qVendor != "" {
if err := r.SetQueryParam("vendor", qVendor); err != nil {
return err
}
}
}
if o.Version != nil {
// query param version
var qrVersion string
if o.Version != nil {
qrVersion = *o.Version
}
qVersion := qrVersion
if qVersion != "" {
if err := r.SetQueryParam("version", qVersion); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamVscanEventCollectionGet binds the parameter fields
func (o *VscanEventCollectionGetParams) 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
}
// bindParamVscanEventCollectionGet binds the parameter order_by
func (o *VscanEventCollectionGetParams) 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_policy_collection_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_policy_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"
)
// VscanOnAccessPolicyCollectionGetReader is a Reader for the VscanOnAccessPolicyCollectionGet structure.
type VscanOnAccessPolicyCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *VscanOnAccessPolicyCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewVscanOnAccessPolicyCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewVscanOnAccessPolicyCollectionGetDefault(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
}
}
// NewVscanOnAccessPolicyCollectionGetOK creates a VscanOnAccessPolicyCollectionGetOK with default headers values
func NewVscanOnAccessPolicyCollectionGetOK() *VscanOnAccessPolicyCollectionGetOK {
return &VscanOnAccessPolicyCollectionGetOK{}
}
/*
VscanOnAccessPolicyCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type VscanOnAccessPolicyCollectionGetOK struct {
Payload *models.VscanOnAccessResponse
}
// IsSuccess returns true when this vscan on access policy collection get o k response has a 2xx status code
func (o *VscanOnAccessPolicyCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this vscan on access policy collection get o k response has a 3xx status code
func (o *VscanOnAccessPolicyCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this vscan on access policy collection get o k response has a 4xx status code
func (o *VscanOnAccessPolicyCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this vscan on access policy collection get o k response has a 5xx status code
func (o *VscanOnAccessPolicyCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this vscan on access policy collection get o k response a status code equal to that given
func (o *VscanOnAccessPolicyCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *VscanOnAccessPolicyCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies][%d] vscanOnAccessPolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *VscanOnAccessPolicyCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies][%d] vscanOnAccessPolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *VscanOnAccessPolicyCollectionGetOK) GetPayload() *models.VscanOnAccessResponse {
return o.Payload
}
func (o *VscanOnAccessPolicyCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.VscanOnAccessResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewVscanOnAccessPolicyCollectionGetDefault creates a VscanOnAccessPolicyCollectionGetDefault with default headers values
func NewVscanOnAccessPolicyCollectionGetDefault(code int) *VscanOnAccessPolicyCollectionGetDefault {
return &VscanOnAccessPolicyCollectionGetDefault{
_statusCode: code,
}
}
/*
VscanOnAccessPolicyCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type VscanOnAccessPolicyCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the vscan on access policy collection get default response
func (o *VscanOnAccessPolicyCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this vscan on access policy collection get default response has a 2xx status code
func (o *VscanOnAccessPolicyCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this vscan on access policy collection get default response has a 3xx status code
func (o *VscanOnAccessPolicyCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this vscan on access policy collection get default response has a 4xx status code
func (o *VscanOnAccessPolicyCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this vscan on access policy collection get default response has a 5xx status code
func (o *VscanOnAccessPolicyCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this vscan on access policy collection get default response a status code equal to that given
func (o *VscanOnAccessPolicyCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *VscanOnAccessPolicyCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies][%d] vscan_on_access_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *VscanOnAccessPolicyCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/vscan/{svm.uuid}/on-access-policies][%d] vscan_on_access_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *VscanOnAccessPolicyCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *VscanOnAccessPolicyCollectionGetDefault) 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/group_policy_object_central_access_rule_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/group_policy_object_central_access_rule_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"
)
// GroupPolicyObjectCentralAccessRuleCollectionGetReader is a Reader for the GroupPolicyObjectCentralAccessRuleCollectionGet structure.
type GroupPolicyObjectCentralAccessRuleCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGroupPolicyObjectCentralAccessRuleCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewGroupPolicyObjectCentralAccessRuleCollectionGetDefault(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
}
}
// NewGroupPolicyObjectCentralAccessRuleCollectionGetOK creates a GroupPolicyObjectCentralAccessRuleCollectionGetOK with default headers values
func NewGroupPolicyObjectCentralAccessRuleCollectionGetOK() *GroupPolicyObjectCentralAccessRuleCollectionGetOK {
return &GroupPolicyObjectCentralAccessRuleCollectionGetOK{}
}
/*
GroupPolicyObjectCentralAccessRuleCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type GroupPolicyObjectCentralAccessRuleCollectionGetOK struct {
Payload *models.GroupPolicyObjectCentralAccessRuleResponse
}
// IsSuccess returns true when this group policy object central access rule collection get o k response has a 2xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this group policy object central access rule collection get o k response has a 3xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this group policy object central access rule collection get o k response has a 4xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this group policy object central access rule collection get o k response has a 5xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this group policy object central access rule collection get o k response a status code equal to that given
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-rules][%d] groupPolicyObjectCentralAccessRuleCollectionGetOK %+v", 200, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-rules][%d] groupPolicyObjectCentralAccessRuleCollectionGetOK %+v", 200, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) GetPayload() *models.GroupPolicyObjectCentralAccessRuleResponse {
return o.Payload
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.GroupPolicyObjectCentralAccessRuleResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewGroupPolicyObjectCentralAccessRuleCollectionGetDefault creates a GroupPolicyObjectCentralAccessRuleCollectionGetDefault with default headers values
func NewGroupPolicyObjectCentralAccessRuleCollectionGetDefault(code int) *GroupPolicyObjectCentralAccessRuleCollectionGetDefault {
return &GroupPolicyObjectCentralAccessRuleCollectionGetDefault{
_statusCode: code,
}
}
/*
GroupPolicyObjectCentralAccessRuleCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type GroupPolicyObjectCentralAccessRuleCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the group policy object central access rule collection get default response
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this group policy object central access rule collection get default response has a 2xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this group policy object central access rule collection get default response has a 3xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this group policy object central access rule collection get default response has a 4xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this group policy object central access rule collection get default response has a 5xx status code
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this group policy object central access rule collection get default response a status code equal to that given
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-rules][%d] group_policy_object_central_access_rule_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}/central-access-rules][%d] group_policy_object_central_access_rule_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *GroupPolicyObjectCentralAccessRuleCollectionGetDefault) 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/user_group_privileges_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/user_group_privileges_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"
)
// NewUserGroupPrivilegesCollectionGetParams creates a new UserGroupPrivilegesCollectionGetParams 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 NewUserGroupPrivilegesCollectionGetParams() *UserGroupPrivilegesCollectionGetParams {
return &UserGroupPrivilegesCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewUserGroupPrivilegesCollectionGetParamsWithTimeout creates a new UserGroupPrivilegesCollectionGetParams object
// with the ability to set a timeout on a request.
func NewUserGroupPrivilegesCollectionGetParamsWithTimeout(timeout time.Duration) *UserGroupPrivilegesCollectionGetParams {
return &UserGroupPrivilegesCollectionGetParams{
timeout: timeout,
}
}
// NewUserGroupPrivilegesCollectionGetParamsWithContext creates a new UserGroupPrivilegesCollectionGetParams object
// with the ability to set a context for a request.
func NewUserGroupPrivilegesCollectionGetParamsWithContext(ctx context.Context) *UserGroupPrivilegesCollectionGetParams {
return &UserGroupPrivilegesCollectionGetParams{
Context: ctx,
}
}
// NewUserGroupPrivilegesCollectionGetParamsWithHTTPClient creates a new UserGroupPrivilegesCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewUserGroupPrivilegesCollectionGetParamsWithHTTPClient(client *http.Client) *UserGroupPrivilegesCollectionGetParams {
return &UserGroupPrivilegesCollectionGetParams{
HTTPClient: client,
}
}
/*
UserGroupPrivilegesCollectionGetParams contains all the parameters to send to the API endpoint
for the user group privileges collection get operation.
Typically these are written to a http.Request.
*/
type UserGroupPrivilegesCollectionGetParams struct {
/* 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
/* Privileges.
Filter by privileges
*/
Privileges *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
/* 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 user group privileges collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *UserGroupPrivilegesCollectionGetParams) WithDefaults() *UserGroupPrivilegesCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the user group privileges collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *UserGroupPrivilegesCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := UserGroupPrivilegesCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithTimeout(timeout time.Duration) *UserGroupPrivilegesCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithContext(ctx context.Context) *UserGroupPrivilegesCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithHTTPClient(client *http.Client) *UserGroupPrivilegesCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithFields(fields []string) *UserGroupPrivilegesCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithMaxRecords adds the maxRecords to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithMaxRecords(maxRecords *int64) *UserGroupPrivilegesCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithName(name *string) *UserGroupPrivilegesCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithOrderBy(orderBy []string) *UserGroupPrivilegesCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPrivileges adds the privileges to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithPrivileges(privileges *string) *UserGroupPrivilegesCollectionGetParams {
o.SetPrivileges(privileges)
return o
}
// SetPrivileges adds the privileges to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetPrivileges(privileges *string) {
o.Privileges = privileges
}
// WithReturnRecords adds the returnRecords to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithReturnRecords(returnRecords *bool) *UserGroupPrivilegesCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *UserGroupPrivilegesCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmName adds the svmName to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithSvmName(svmName *string) *UserGroupPrivilegesCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) WithSvmUUID(svmUUID *string) *UserGroupPrivilegesCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the user group privileges collection get params
func (o *UserGroupPrivilegesCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *UserGroupPrivilegesCollectionGetParams) 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.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.Privileges != nil {
// query param privileges
var qrPrivileges string
if o.Privileges != nil {
qrPrivileges = *o.Privileges
}
qPrivileges := qrPrivileges
if qPrivileges != "" {
if err := r.SetQueryParam("privileges", qPrivileges); 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.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
}
// bindParamUserGroupPrivilegesCollectionGet binds the parameter fields
func (o *UserGroupPrivilegesCollectionGetParams) 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
}
// bindParamUserGroupPrivilegesCollectionGet binds the parameter order_by
func (o *UserGroupPrivilegesCollectionGetParams) 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/file_directory_security_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/file_directory_security_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"
)
// FileDirectorySecurityDeleteReader is a Reader for the FileDirectorySecurityDelete structure.
type FileDirectorySecurityDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FileDirectorySecurityDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewFileDirectorySecurityDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFileDirectorySecurityDeleteDefault(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
}
}
// NewFileDirectorySecurityDeleteOK creates a FileDirectorySecurityDeleteOK with default headers values
func NewFileDirectorySecurityDeleteOK() *FileDirectorySecurityDeleteOK {
return &FileDirectorySecurityDeleteOK{}
}
/*
FileDirectorySecurityDeleteOK describes a response with status code 200, with default header values.
OK
*/
type FileDirectorySecurityDeleteOK struct {
}
// IsSuccess returns true when this file directory security delete o k response has a 2xx status code
func (o *FileDirectorySecurityDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this file directory security delete o k response has a 3xx status code
func (o *FileDirectorySecurityDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this file directory security delete o k response has a 4xx status code
func (o *FileDirectorySecurityDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this file directory security delete o k response has a 5xx status code
func (o *FileDirectorySecurityDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this file directory security delete o k response a status code equal to that given
func (o *FileDirectorySecurityDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *FileDirectorySecurityDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}][%d] fileDirectorySecurityDeleteOK ", 200)
}
func (o *FileDirectorySecurityDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}][%d] fileDirectorySecurityDeleteOK ", 200)
}
func (o *FileDirectorySecurityDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewFileDirectorySecurityDeleteDefault creates a FileDirectorySecurityDeleteDefault with default headers values
func NewFileDirectorySecurityDeleteDefault(code int) *FileDirectorySecurityDeleteDefault {
return &FileDirectorySecurityDeleteDefault{
_statusCode: code,
}
}
/*
FileDirectorySecurityDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type FileDirectorySecurityDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the file directory security delete default response
func (o *FileDirectorySecurityDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this file directory security delete default response has a 2xx status code
func (o *FileDirectorySecurityDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this file directory security delete default response has a 3xx status code
func (o *FileDirectorySecurityDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this file directory security delete default response has a 4xx status code
func (o *FileDirectorySecurityDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this file directory security delete default response has a 5xx status code
func (o *FileDirectorySecurityDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this file directory security delete default response a status code equal to that given
func (o *FileDirectorySecurityDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FileDirectorySecurityDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}][%d] file_directory_security_delete default %+v", o._statusCode, o.Payload)
}
func (o *FileDirectorySecurityDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/file-security/permissions/{svm.uuid}/{path}][%d] file_directory_security_delete default %+v", o._statusCode, o.Payload)
}
func (o *FileDirectorySecurityDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FileDirectorySecurityDeleteDefault) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/client_lock_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"
)
// NewClientLockGetParams creates a new ClientLockGetParams 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 NewClientLockGetParams() *ClientLockGetParams {
return &ClientLockGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewClientLockGetParamsWithTimeout creates a new ClientLockGetParams object
// with the ability to set a timeout on a request.
func NewClientLockGetParamsWithTimeout(timeout time.Duration) *ClientLockGetParams {
return &ClientLockGetParams{
timeout: timeout,
}
}
// NewClientLockGetParamsWithContext creates a new ClientLockGetParams object
// with the ability to set a context for a request.
func NewClientLockGetParamsWithContext(ctx context.Context) *ClientLockGetParams {
return &ClientLockGetParams{
Context: ctx,
}
}
// NewClientLockGetParamsWithHTTPClient creates a new ClientLockGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewClientLockGetParamsWithHTTPClient(client *http.Client) *ClientLockGetParams {
return &ClientLockGetParams{
HTTPClient: client,
}
}
/*
ClientLockGetParams contains all the parameters to send to the API endpoint
for the client lock get operation.
Typically these are written to a http.Request.
*/
type ClientLockGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* UUID.
Lock ID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the client lock get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClientLockGetParams) WithDefaults() *ClientLockGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the client lock get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClientLockGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the client lock get params
func (o *ClientLockGetParams) WithTimeout(timeout time.Duration) *ClientLockGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the client lock get params
func (o *ClientLockGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the client lock get params
func (o *ClientLockGetParams) WithContext(ctx context.Context) *ClientLockGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the client lock get params
func (o *ClientLockGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the client lock get params
func (o *ClientLockGetParams) WithHTTPClient(client *http.Client) *ClientLockGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the client lock get params
func (o *ClientLockGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the client lock get params
func (o *ClientLockGetParams) WithFields(fields []string) *ClientLockGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the client lock get params
func (o *ClientLockGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithUUID adds the uuid to the client lock get params
func (o *ClientLockGetParams) WithUUID(uuid string) *ClientLockGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the client lock get params
func (o *ClientLockGetParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *ClientLockGetParams) 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
}
// bindParamClientLockGet binds the parameter fields
func (o *ClientLockGetParams) 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/fpolicy_policy_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_policy_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"
)
// NewFpolicyPolicyGetParams creates a new FpolicyPolicyGetParams 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 NewFpolicyPolicyGetParams() *FpolicyPolicyGetParams {
return &FpolicyPolicyGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewFpolicyPolicyGetParamsWithTimeout creates a new FpolicyPolicyGetParams object
// with the ability to set a timeout on a request.
func NewFpolicyPolicyGetParamsWithTimeout(timeout time.Duration) *FpolicyPolicyGetParams {
return &FpolicyPolicyGetParams{
timeout: timeout,
}
}
// NewFpolicyPolicyGetParamsWithContext creates a new FpolicyPolicyGetParams object
// with the ability to set a context for a request.
func NewFpolicyPolicyGetParamsWithContext(ctx context.Context) *FpolicyPolicyGetParams {
return &FpolicyPolicyGetParams{
Context: ctx,
}
}
// NewFpolicyPolicyGetParamsWithHTTPClient creates a new FpolicyPolicyGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewFpolicyPolicyGetParamsWithHTTPClient(client *http.Client) *FpolicyPolicyGetParams {
return &FpolicyPolicyGetParams{
HTTPClient: client,
}
}
/*
FpolicyPolicyGetParams contains all the parameters to send to the API endpoint
for the fpolicy policy get operation.
Typically these are written to a http.Request.
*/
type FpolicyPolicyGetParams 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 policy get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyPolicyGetParams) WithDefaults() *FpolicyPolicyGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the fpolicy policy get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyPolicyGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) WithTimeout(timeout time.Duration) *FpolicyPolicyGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) WithContext(ctx context.Context) *FpolicyPolicyGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) WithHTTPClient(client *http.Client) *FpolicyPolicyGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) WithFields(fields []string) *FpolicyPolicyGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithName adds the name to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) WithName(name string) *FpolicyPolicyGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) WithSvmUUID(svmUUID string) *FpolicyPolicyGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the fpolicy policy get params
func (o *FpolicyPolicyGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *FpolicyPolicyGetParams) 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
}
// bindParamFpolicyPolicyGet binds the parameter fields
func (o *FpolicyPolicyGetParams) 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/policies_and_rules_to_be_applied_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/policies_and_rules_to_be_applied_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"
)
// PoliciesAndRulesToBeAppliedCollectionGetReader is a Reader for the PoliciesAndRulesToBeAppliedCollectionGet structure.
type PoliciesAndRulesToBeAppliedCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *PoliciesAndRulesToBeAppliedCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewPoliciesAndRulesToBeAppliedCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewPoliciesAndRulesToBeAppliedCollectionGetDefault(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
}
}
// NewPoliciesAndRulesToBeAppliedCollectionGetOK creates a PoliciesAndRulesToBeAppliedCollectionGetOK with default headers values
func NewPoliciesAndRulesToBeAppliedCollectionGetOK() *PoliciesAndRulesToBeAppliedCollectionGetOK {
return &PoliciesAndRulesToBeAppliedCollectionGetOK{}
}
/*
PoliciesAndRulesToBeAppliedCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type PoliciesAndRulesToBeAppliedCollectionGetOK struct {
Payload *models.PoliciesAndRulesToBeAppliedResponse
}
// IsSuccess returns true when this policies and rules to be applied collection get o k response has a 2xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this policies and rules to be applied collection get o k response has a 3xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this policies and rules to be applied collection get o k response has a 4xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this policies and rules to be applied collection get o k response has a 5xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this policies and rules to be applied collection get o k response a status code equal to that given
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies][%d] policiesAndRulesToBeAppliedCollectionGetOK %+v", 200, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies][%d] policiesAndRulesToBeAppliedCollectionGetOK %+v", 200, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) GetPayload() *models.PoliciesAndRulesToBeAppliedResponse {
return o.Payload
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.PoliciesAndRulesToBeAppliedResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewPoliciesAndRulesToBeAppliedCollectionGetDefault creates a PoliciesAndRulesToBeAppliedCollectionGetDefault with default headers values
func NewPoliciesAndRulesToBeAppliedCollectionGetDefault(code int) *PoliciesAndRulesToBeAppliedCollectionGetDefault {
return &PoliciesAndRulesToBeAppliedCollectionGetDefault{
_statusCode: code,
}
}
/*
PoliciesAndRulesToBeAppliedCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type PoliciesAndRulesToBeAppliedCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the policies and rules to be applied collection get default response
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this policies and rules to be applied collection get default response has a 2xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this policies and rules to be applied collection get default response has a 3xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this policies and rules to be applied collection get default response has a 4xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this policies and rules to be applied collection get default response has a 5xx status code
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this policies and rules to be applied collection get default response a status code equal to that given
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies][%d] policies_and_rules_to_be_applied_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies][%d] policies_and_rules_to_be_applied_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *PoliciesAndRulesToBeAppliedCollectionGetDefault) 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/export_rule_clients_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_rule_clients_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"
)
// NewExportRuleClientsCreateParams creates a new ExportRuleClientsCreateParams 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 NewExportRuleClientsCreateParams() *ExportRuleClientsCreateParams {
return &ExportRuleClientsCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewExportRuleClientsCreateParamsWithTimeout creates a new ExportRuleClientsCreateParams object
// with the ability to set a timeout on a request.
func NewExportRuleClientsCreateParamsWithTimeout(timeout time.Duration) *ExportRuleClientsCreateParams {
return &ExportRuleClientsCreateParams{
timeout: timeout,
}
}
// NewExportRuleClientsCreateParamsWithContext creates a new ExportRuleClientsCreateParams object
// with the ability to set a context for a request.
func NewExportRuleClientsCreateParamsWithContext(ctx context.Context) *ExportRuleClientsCreateParams {
return &ExportRuleClientsCreateParams{
Context: ctx,
}
}
// NewExportRuleClientsCreateParamsWithHTTPClient creates a new ExportRuleClientsCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewExportRuleClientsCreateParamsWithHTTPClient(client *http.Client) *ExportRuleClientsCreateParams {
return &ExportRuleClientsCreateParams{
HTTPClient: client,
}
}
/*
ExportRuleClientsCreateParams contains all the parameters to send to the API endpoint
for the export rule clients create operation.
Typically these are written to a http.Request.
*/
type ExportRuleClientsCreateParams struct {
/* Index.
Export Rule Index
*/
Index int64
/* Info.
Info specification
*/
Info *models.ExportClient
/* PolicyID.
Export Policy ID
*/
PolicyID int64
/* 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 export rule clients create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportRuleClientsCreateParams) WithDefaults() *ExportRuleClientsCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the export rule clients create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportRuleClientsCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := ExportRuleClientsCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the export rule clients create params
func (o *ExportRuleClientsCreateParams) WithTimeout(timeout time.Duration) *ExportRuleClientsCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the export rule clients create params
func (o *ExportRuleClientsCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the export rule clients create params
func (o *ExportRuleClientsCreateParams) WithContext(ctx context.Context) *ExportRuleClientsCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the export rule clients create params
func (o *ExportRuleClientsCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the export rule clients create params
func (o *ExportRuleClientsCreateParams) WithHTTPClient(client *http.Client) *ExportRuleClientsCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the export rule clients create params
func (o *ExportRuleClientsCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithIndex adds the index to the export rule clients create params
func (o *ExportRuleClientsCreateParams) WithIndex(index int64) *ExportRuleClientsCreateParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the export rule clients create params
func (o *ExportRuleClientsCreateParams) SetIndex(index int64) {
o.Index = index
}
// WithInfo adds the info to the export rule clients create params
func (o *ExportRuleClientsCreateParams) WithInfo(info *models.ExportClient) *ExportRuleClientsCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the export rule clients create params
func (o *ExportRuleClientsCreateParams) SetInfo(info *models.ExportClient) {
o.Info = info
}
// WithPolicyID adds the policyID to the export rule clients create params
func (o *ExportRuleClientsCreateParams) WithPolicyID(policyID int64) *ExportRuleClientsCreateParams {
o.SetPolicyID(policyID)
return o
}
// SetPolicyID adds the policyId to the export rule clients create params
func (o *ExportRuleClientsCreateParams) SetPolicyID(policyID int64) {
o.PolicyID = policyID
}
// WithReturnRecords adds the returnRecords to the export rule clients create params
func (o *ExportRuleClientsCreateParams) WithReturnRecords(returnRecords *bool) *ExportRuleClientsCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the export rule clients create params
func (o *ExportRuleClientsCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *ExportRuleClientsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param index
if err := r.SetPathParam("index", swag.FormatInt64(o.Index)); err != nil {
return err
}
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
// path param policy.id
if err := r.SetPathParam("policy.id", swag.FormatInt64(o.PolicyID)); 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/local_cifs_group_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_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"
)
// NewLocalCifsGroupCreateParams creates a new LocalCifsGroupCreateParams 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 NewLocalCifsGroupCreateParams() *LocalCifsGroupCreateParams {
return &LocalCifsGroupCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewLocalCifsGroupCreateParamsWithTimeout creates a new LocalCifsGroupCreateParams object
// with the ability to set a timeout on a request.
func NewLocalCifsGroupCreateParamsWithTimeout(timeout time.Duration) *LocalCifsGroupCreateParams {
return &LocalCifsGroupCreateParams{
timeout: timeout,
}
}
// NewLocalCifsGroupCreateParamsWithContext creates a new LocalCifsGroupCreateParams object
// with the ability to set a context for a request.
func NewLocalCifsGroupCreateParamsWithContext(ctx context.Context) *LocalCifsGroupCreateParams {
return &LocalCifsGroupCreateParams{
Context: ctx,
}
}
// NewLocalCifsGroupCreateParamsWithHTTPClient creates a new LocalCifsGroupCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewLocalCifsGroupCreateParamsWithHTTPClient(client *http.Client) *LocalCifsGroupCreateParams {
return &LocalCifsGroupCreateParams{
HTTPClient: client,
}
}
/*
LocalCifsGroupCreateParams contains all the parameters to send to the API endpoint
for the local cifs group create operation.
Typically these are written to a http.Request.
*/
type LocalCifsGroupCreateParams struct {
/* Info.
Info specification
*/
Info *models.LocalCifsGroup
/* 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 local cifs group create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupCreateParams) WithDefaults() *LocalCifsGroupCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the local cifs group create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := LocalCifsGroupCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the local cifs group create params
func (o *LocalCifsGroupCreateParams) WithTimeout(timeout time.Duration) *LocalCifsGroupCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the local cifs group create params
func (o *LocalCifsGroupCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the local cifs group create params
func (o *LocalCifsGroupCreateParams) WithContext(ctx context.Context) *LocalCifsGroupCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the local cifs group create params
func (o *LocalCifsGroupCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the local cifs group create params
func (o *LocalCifsGroupCreateParams) WithHTTPClient(client *http.Client) *LocalCifsGroupCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the local cifs group create params
func (o *LocalCifsGroupCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the local cifs group create params
func (o *LocalCifsGroupCreateParams) WithInfo(info *models.LocalCifsGroup) *LocalCifsGroupCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the local cifs group create params
func (o *LocalCifsGroupCreateParams) SetInfo(info *models.LocalCifsGroup) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the local cifs group create params
func (o *LocalCifsGroupCreateParams) WithReturnRecords(returnRecords *bool) *LocalCifsGroupCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the local cifs group create params
func (o *LocalCifsGroupCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *LocalCifsGroupCreateParams) 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/fpolicy_policy_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_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"
)
// FpolicyPolicyGetReader is a Reader for the FpolicyPolicyGet structure.
type FpolicyPolicyGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyPolicyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewFpolicyPolicyGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyPolicyGetDefault(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
}
}
// NewFpolicyPolicyGetOK creates a FpolicyPolicyGetOK with default headers values
func NewFpolicyPolicyGetOK() *FpolicyPolicyGetOK {
return &FpolicyPolicyGetOK{}
}
/*
FpolicyPolicyGetOK describes a response with status code 200, with default header values.
OK
*/
type FpolicyPolicyGetOK struct {
Payload *models.FpolicyPolicy
}
// IsSuccess returns true when this fpolicy policy get o k response has a 2xx status code
func (o *FpolicyPolicyGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy policy get o k response has a 3xx status code
func (o *FpolicyPolicyGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy policy get o k response has a 4xx status code
func (o *FpolicyPolicyGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy policy get o k response has a 5xx status code
func (o *FpolicyPolicyGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy policy get o k response a status code equal to that given
func (o *FpolicyPolicyGetOK) IsCode(code int) bool {
return code == 200
}
func (o *FpolicyPolicyGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicyPolicyGetOK %+v", 200, o.Payload)
}
func (o *FpolicyPolicyGetOK) String() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicyPolicyGetOK %+v", 200, o.Payload)
}
func (o *FpolicyPolicyGetOK) GetPayload() *models.FpolicyPolicy {
return o.Payload
}
func (o *FpolicyPolicyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.FpolicyPolicy)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewFpolicyPolicyGetDefault creates a FpolicyPolicyGetDefault with default headers values
func NewFpolicyPolicyGetDefault(code int) *FpolicyPolicyGetDefault {
return &FpolicyPolicyGetDefault{
_statusCode: code,
}
}
/*
FpolicyPolicyGetDefault describes a response with status code -1, with default header values.
Error
*/
type FpolicyPolicyGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy policy get default response
func (o *FpolicyPolicyGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy policy get default response has a 2xx status code
func (o *FpolicyPolicyGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy policy get default response has a 3xx status code
func (o *FpolicyPolicyGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy policy get default response has a 4xx status code
func (o *FpolicyPolicyGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy policy get default response has a 5xx status code
func (o *FpolicyPolicyGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy policy get default response a status code equal to that given
func (o *FpolicyPolicyGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyPolicyGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicy_policy_get default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyPolicyGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/fpolicy/{svm.uuid}/policies/{name}][%d] fpolicy_policy_get default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyPolicyGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyPolicyGetDefault) 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_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_members_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"
)
// NewLocalCifsGroupMembersCollectionGetParams creates a new LocalCifsGroupMembersCollectionGetParams 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 NewLocalCifsGroupMembersCollectionGetParams() *LocalCifsGroupMembersCollectionGetParams {
return &LocalCifsGroupMembersCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewLocalCifsGroupMembersCollectionGetParamsWithTimeout creates a new LocalCifsGroupMembersCollectionGetParams object
// with the ability to set a timeout on a request.
func NewLocalCifsGroupMembersCollectionGetParamsWithTimeout(timeout time.Duration) *LocalCifsGroupMembersCollectionGetParams {
return &LocalCifsGroupMembersCollectionGetParams{
timeout: timeout,
}
}
// NewLocalCifsGroupMembersCollectionGetParamsWithContext creates a new LocalCifsGroupMembersCollectionGetParams object
// with the ability to set a context for a request.
func NewLocalCifsGroupMembersCollectionGetParamsWithContext(ctx context.Context) *LocalCifsGroupMembersCollectionGetParams {
return &LocalCifsGroupMembersCollectionGetParams{
Context: ctx,
}
}
// NewLocalCifsGroupMembersCollectionGetParamsWithHTTPClient creates a new LocalCifsGroupMembersCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewLocalCifsGroupMembersCollectionGetParamsWithHTTPClient(client *http.Client) *LocalCifsGroupMembersCollectionGetParams {
return &LocalCifsGroupMembersCollectionGetParams{
HTTPClient: client,
}
}
/*
LocalCifsGroupMembersCollectionGetParams contains all the parameters to send to the API endpoint
for the local cifs group members collection get operation.
Typically these are written to a http.Request.
*/
type LocalCifsGroupMembersCollectionGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* LocalCifsGroupSid.
Local group SID
*/
LocalCifsGroupSid 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
/* 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 local cifs group members collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupMembersCollectionGetParams) WithDefaults() *LocalCifsGroupMembersCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the local cifs group members collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupMembersCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := LocalCifsGroupMembersCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithTimeout(timeout time.Duration) *LocalCifsGroupMembersCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithContext(ctx context.Context) *LocalCifsGroupMembersCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithHTTPClient(client *http.Client) *LocalCifsGroupMembersCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithFields(fields []string) *LocalCifsGroupMembersCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithLocalCifsGroupSid adds the localCifsGroupSid to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithLocalCifsGroupSid(localCifsGroupSid string) *LocalCifsGroupMembersCollectionGetParams {
o.SetLocalCifsGroupSid(localCifsGroupSid)
return o
}
// SetLocalCifsGroupSid adds the localCifsGroupSid to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetLocalCifsGroupSid(localCifsGroupSid string) {
o.LocalCifsGroupSid = localCifsGroupSid
}
// WithMaxRecords adds the maxRecords to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithMaxRecords(maxRecords *int64) *LocalCifsGroupMembersCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithOrderBy(orderBy []string) *LocalCifsGroupMembersCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithReturnRecords(returnRecords *bool) *LocalCifsGroupMembersCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *LocalCifsGroupMembersCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) WithSvmUUID(svmUUID string) *LocalCifsGroupMembersCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the local cifs group members collection get params
func (o *LocalCifsGroupMembersCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *LocalCifsGroupMembersCollectionGetParams) 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 local_cifs_group.sid
if err := r.SetPathParam("local_cifs_group.sid", o.LocalCifsGroupSid); 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
}
}
}
// 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
}
// bindParamLocalCifsGroupMembersCollectionGet binds the parameter fields
func (o *LocalCifsGroupMembersCollectionGetParams) 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
}
// bindParamLocalCifsGroupMembersCollectionGet binds the parameter order_by
func (o *LocalCifsGroupMembersCollectionGetParams) 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/cifs_share_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_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"
)
// NewCifsShareCollectionGetParams creates a new CifsShareCollectionGetParams 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 NewCifsShareCollectionGetParams() *CifsShareCollectionGetParams {
return &CifsShareCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsShareCollectionGetParamsWithTimeout creates a new CifsShareCollectionGetParams object
// with the ability to set a timeout on a request.
func NewCifsShareCollectionGetParamsWithTimeout(timeout time.Duration) *CifsShareCollectionGetParams {
return &CifsShareCollectionGetParams{
timeout: timeout,
}
}
// NewCifsShareCollectionGetParamsWithContext creates a new CifsShareCollectionGetParams object
// with the ability to set a context for a request.
func NewCifsShareCollectionGetParamsWithContext(ctx context.Context) *CifsShareCollectionGetParams {
return &CifsShareCollectionGetParams{
Context: ctx,
}
}
// NewCifsShareCollectionGetParamsWithHTTPClient creates a new CifsShareCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsShareCollectionGetParamsWithHTTPClient(client *http.Client) *CifsShareCollectionGetParams {
return &CifsShareCollectionGetParams{
HTTPClient: client,
}
}
/*
CifsShareCollectionGetParams contains all the parameters to send to the API endpoint
for the cifs share collection get operation.
Typically these are written to a http.Request.
*/
type CifsShareCollectionGetParams struct {
/* AccessBasedEnumeration.
Filter by access_based_enumeration
*/
AccessBasedEnumeration *bool
/* AclsPermission.
Filter by acls.permission
*/
AclsPermission *string
/* AclsType.
Filter by acls.type
*/
AclsType *string
/* AclsUserOrGroup.
Filter by acls.user_or_group
*/
AclsUserOrGroup *string
/* AllowUnencryptedAccess.
Filter by allow_unencrypted_access
*/
AllowUnencryptedAccess *bool
/* ChangeNotify.
Filter by change_notify
*/
ChangeNotify *bool
/* Comment.
Filter by comment
*/
Comment *string
/* ContinuouslyAvailable.
Filter by continuously_available
*/
ContinuouslyAvailable *bool
/* DirUmask.
Filter by dir_umask
*/
DirUmask *int64
/* Encryption.
Filter by encryption
*/
Encryption *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* FileUmask.
Filter by file_umask
*/
FileUmask *int64
/* ForceGroupForCreate.
Filter by force_group_for_create
*/
ForceGroupForCreate *string
/* HomeDirectory.
Filter by home_directory
*/
HomeDirectory *bool
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Name.
Filter by name
*/
Name *string
/* NamespaceCaching.
Filter by namespace_caching
*/
NamespaceCaching *bool
/* NoStrictSecurity.
Filter by no_strict_security
*/
NoStrictSecurity *bool
/* OfflineFiles.
Filter by offline_files
*/
OfflineFiles *string
/* Oplocks.
Filter by oplocks
*/
Oplocks *bool
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* Path.
Filter by path
*/
Path *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
/* ShowSnapshot.
Filter by show_snapshot
*/
ShowSnapshot *bool
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* UnixSymlink.
Filter by unix_symlink
*/
UnixSymlink *string
/* VolumeName.
Filter by volume.name
*/
VolumeName *string
/* VolumeUUID.
Filter by volume.uuid
*/
VolumeUUID *string
/* VscanProfile.
Filter by vscan_profile
*/
VscanProfile *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cifs share collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareCollectionGetParams) WithDefaults() *CifsShareCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs share collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsShareCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := CifsShareCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithTimeout(timeout time.Duration) *CifsShareCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithContext(ctx context.Context) *CifsShareCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithHTTPClient(client *http.Client) *CifsShareCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccessBasedEnumeration adds the accessBasedEnumeration to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithAccessBasedEnumeration(accessBasedEnumeration *bool) *CifsShareCollectionGetParams {
o.SetAccessBasedEnumeration(accessBasedEnumeration)
return o
}
// SetAccessBasedEnumeration adds the accessBasedEnumeration to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetAccessBasedEnumeration(accessBasedEnumeration *bool) {
o.AccessBasedEnumeration = accessBasedEnumeration
}
// WithAclsPermission adds the aclsPermission to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithAclsPermission(aclsPermission *string) *CifsShareCollectionGetParams {
o.SetAclsPermission(aclsPermission)
return o
}
// SetAclsPermission adds the aclsPermission to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetAclsPermission(aclsPermission *string) {
o.AclsPermission = aclsPermission
}
// WithAclsType adds the aclsType to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithAclsType(aclsType *string) *CifsShareCollectionGetParams {
o.SetAclsType(aclsType)
return o
}
// SetAclsType adds the aclsType to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetAclsType(aclsType *string) {
o.AclsType = aclsType
}
// WithAclsUserOrGroup adds the aclsUserOrGroup to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithAclsUserOrGroup(aclsUserOrGroup *string) *CifsShareCollectionGetParams {
o.SetAclsUserOrGroup(aclsUserOrGroup)
return o
}
// SetAclsUserOrGroup adds the aclsUserOrGroup to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetAclsUserOrGroup(aclsUserOrGroup *string) {
o.AclsUserOrGroup = aclsUserOrGroup
}
// WithAllowUnencryptedAccess adds the allowUnencryptedAccess to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithAllowUnencryptedAccess(allowUnencryptedAccess *bool) *CifsShareCollectionGetParams {
o.SetAllowUnencryptedAccess(allowUnencryptedAccess)
return o
}
// SetAllowUnencryptedAccess adds the allowUnencryptedAccess to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetAllowUnencryptedAccess(allowUnencryptedAccess *bool) {
o.AllowUnencryptedAccess = allowUnencryptedAccess
}
// WithChangeNotify adds the changeNotify to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithChangeNotify(changeNotify *bool) *CifsShareCollectionGetParams {
o.SetChangeNotify(changeNotify)
return o
}
// SetChangeNotify adds the changeNotify to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetChangeNotify(changeNotify *bool) {
o.ChangeNotify = changeNotify
}
// WithComment adds the comment to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithComment(comment *string) *CifsShareCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithContinuouslyAvailable adds the continuouslyAvailable to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithContinuouslyAvailable(continuouslyAvailable *bool) *CifsShareCollectionGetParams {
o.SetContinuouslyAvailable(continuouslyAvailable)
return o
}
// SetContinuouslyAvailable adds the continuouslyAvailable to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetContinuouslyAvailable(continuouslyAvailable *bool) {
o.ContinuouslyAvailable = continuouslyAvailable
}
// WithDirUmask adds the dirUmask to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithDirUmask(dirUmask *int64) *CifsShareCollectionGetParams {
o.SetDirUmask(dirUmask)
return o
}
// SetDirUmask adds the dirUmask to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetDirUmask(dirUmask *int64) {
o.DirUmask = dirUmask
}
// WithEncryption adds the encryption to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithEncryption(encryption *bool) *CifsShareCollectionGetParams {
o.SetEncryption(encryption)
return o
}
// SetEncryption adds the encryption to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetEncryption(encryption *bool) {
o.Encryption = encryption
}
// WithFields adds the fields to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithFields(fields []string) *CifsShareCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithFileUmask adds the fileUmask to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithFileUmask(fileUmask *int64) *CifsShareCollectionGetParams {
o.SetFileUmask(fileUmask)
return o
}
// SetFileUmask adds the fileUmask to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetFileUmask(fileUmask *int64) {
o.FileUmask = fileUmask
}
// WithForceGroupForCreate adds the forceGroupForCreate to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithForceGroupForCreate(forceGroupForCreate *string) *CifsShareCollectionGetParams {
o.SetForceGroupForCreate(forceGroupForCreate)
return o
}
// SetForceGroupForCreate adds the forceGroupForCreate to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetForceGroupForCreate(forceGroupForCreate *string) {
o.ForceGroupForCreate = forceGroupForCreate
}
// WithHomeDirectory adds the homeDirectory to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithHomeDirectory(homeDirectory *bool) *CifsShareCollectionGetParams {
o.SetHomeDirectory(homeDirectory)
return o
}
// SetHomeDirectory adds the homeDirectory to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetHomeDirectory(homeDirectory *bool) {
o.HomeDirectory = homeDirectory
}
// WithMaxRecords adds the maxRecords to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithMaxRecords(maxRecords *int64) *CifsShareCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithName(name *string) *CifsShareCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithNamespaceCaching adds the namespaceCaching to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithNamespaceCaching(namespaceCaching *bool) *CifsShareCollectionGetParams {
o.SetNamespaceCaching(namespaceCaching)
return o
}
// SetNamespaceCaching adds the namespaceCaching to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetNamespaceCaching(namespaceCaching *bool) {
o.NamespaceCaching = namespaceCaching
}
// WithNoStrictSecurity adds the noStrictSecurity to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithNoStrictSecurity(noStrictSecurity *bool) *CifsShareCollectionGetParams {
o.SetNoStrictSecurity(noStrictSecurity)
return o
}
// SetNoStrictSecurity adds the noStrictSecurity to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetNoStrictSecurity(noStrictSecurity *bool) {
o.NoStrictSecurity = noStrictSecurity
}
// WithOfflineFiles adds the offlineFiles to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithOfflineFiles(offlineFiles *string) *CifsShareCollectionGetParams {
o.SetOfflineFiles(offlineFiles)
return o
}
// SetOfflineFiles adds the offlineFiles to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetOfflineFiles(offlineFiles *string) {
o.OfflineFiles = offlineFiles
}
// WithOplocks adds the oplocks to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithOplocks(oplocks *bool) *CifsShareCollectionGetParams {
o.SetOplocks(oplocks)
return o
}
// SetOplocks adds the oplocks to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetOplocks(oplocks *bool) {
o.Oplocks = oplocks
}
// WithOrderBy adds the orderBy to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithOrderBy(orderBy []string) *CifsShareCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPath adds the path to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithPath(path *string) *CifsShareCollectionGetParams {
o.SetPath(path)
return o
}
// SetPath adds the path to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetPath(path *string) {
o.Path = path
}
// WithReturnRecords adds the returnRecords to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithReturnRecords(returnRecords *bool) *CifsShareCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *CifsShareCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithShowSnapshot adds the showSnapshot to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithShowSnapshot(showSnapshot *bool) *CifsShareCollectionGetParams {
o.SetShowSnapshot(showSnapshot)
return o
}
// SetShowSnapshot adds the showSnapshot to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetShowSnapshot(showSnapshot *bool) {
o.ShowSnapshot = showSnapshot
}
// WithSvmName adds the svmName to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithSvmName(svmName *string) *CifsShareCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithSvmUUID(svmUUID *string) *CifsShareCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithUnixSymlink adds the unixSymlink to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithUnixSymlink(unixSymlink *string) *CifsShareCollectionGetParams {
o.SetUnixSymlink(unixSymlink)
return o
}
// SetUnixSymlink adds the unixSymlink to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetUnixSymlink(unixSymlink *string) {
o.UnixSymlink = unixSymlink
}
// WithVolumeName adds the volumeName to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithVolumeName(volumeName *string) *CifsShareCollectionGetParams {
o.SetVolumeName(volumeName)
return o
}
// SetVolumeName adds the volumeName to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetVolumeName(volumeName *string) {
o.VolumeName = volumeName
}
// WithVolumeUUID adds the volumeUUID to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithVolumeUUID(volumeUUID *string) *CifsShareCollectionGetParams {
o.SetVolumeUUID(volumeUUID)
return o
}
// SetVolumeUUID adds the volumeUuid to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetVolumeUUID(volumeUUID *string) {
o.VolumeUUID = volumeUUID
}
// WithVscanProfile adds the vscanProfile to the cifs share collection get params
func (o *CifsShareCollectionGetParams) WithVscanProfile(vscanProfile *string) *CifsShareCollectionGetParams {
o.SetVscanProfile(vscanProfile)
return o
}
// SetVscanProfile adds the vscanProfile to the cifs share collection get params
func (o *CifsShareCollectionGetParams) SetVscanProfile(vscanProfile *string) {
o.VscanProfile = vscanProfile
}
// WriteToRequest writes these params to a swagger request
func (o *CifsShareCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.AccessBasedEnumeration != nil {
// query param access_based_enumeration
var qrAccessBasedEnumeration bool
if o.AccessBasedEnumeration != nil {
qrAccessBasedEnumeration = *o.AccessBasedEnumeration
}
qAccessBasedEnumeration := swag.FormatBool(qrAccessBasedEnumeration)
if qAccessBasedEnumeration != "" {
if err := r.SetQueryParam("access_based_enumeration", qAccessBasedEnumeration); err != nil {
return err
}
}
}
if o.AclsPermission != nil {
// query param acls.permission
var qrAclsPermission string
if o.AclsPermission != nil {
qrAclsPermission = *o.AclsPermission
}
qAclsPermission := qrAclsPermission
if qAclsPermission != "" {
if err := r.SetQueryParam("acls.permission", qAclsPermission); err != nil {
return err
}
}
}
if o.AclsType != nil {
// query param acls.type
var qrAclsType string
if o.AclsType != nil {
qrAclsType = *o.AclsType
}
qAclsType := qrAclsType
if qAclsType != "" {
if err := r.SetQueryParam("acls.type", qAclsType); err != nil {
return err
}
}
}
if o.AclsUserOrGroup != nil {
// query param acls.user_or_group
var qrAclsUserOrGroup string
if o.AclsUserOrGroup != nil {
qrAclsUserOrGroup = *o.AclsUserOrGroup
}
qAclsUserOrGroup := qrAclsUserOrGroup
if qAclsUserOrGroup != "" {
if err := r.SetQueryParam("acls.user_or_group", qAclsUserOrGroup); err != nil {
return err
}
}
}
if o.AllowUnencryptedAccess != nil {
// query param allow_unencrypted_access
var qrAllowUnencryptedAccess bool
if o.AllowUnencryptedAccess != nil {
qrAllowUnencryptedAccess = *o.AllowUnencryptedAccess
}
qAllowUnencryptedAccess := swag.FormatBool(qrAllowUnencryptedAccess)
if qAllowUnencryptedAccess != "" {
if err := r.SetQueryParam("allow_unencrypted_access", qAllowUnencryptedAccess); err != nil {
return err
}
}
}
if o.ChangeNotify != nil {
// query param change_notify
var qrChangeNotify bool
if o.ChangeNotify != nil {
qrChangeNotify = *o.ChangeNotify
}
qChangeNotify := swag.FormatBool(qrChangeNotify)
if qChangeNotify != "" {
if err := r.SetQueryParam("change_notify", qChangeNotify); 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.ContinuouslyAvailable != nil {
// query param continuously_available
var qrContinuouslyAvailable bool
if o.ContinuouslyAvailable != nil {
qrContinuouslyAvailable = *o.ContinuouslyAvailable
}
qContinuouslyAvailable := swag.FormatBool(qrContinuouslyAvailable)
if qContinuouslyAvailable != "" {
if err := r.SetQueryParam("continuously_available", qContinuouslyAvailable); err != nil {
return err
}
}
}
if o.DirUmask != nil {
// query param dir_umask
var qrDirUmask int64
if o.DirUmask != nil {
qrDirUmask = *o.DirUmask
}
qDirUmask := swag.FormatInt64(qrDirUmask)
if qDirUmask != "" {
if err := r.SetQueryParam("dir_umask", qDirUmask); err != nil {
return err
}
}
}
if o.Encryption != nil {
// query param encryption
var qrEncryption bool
if o.Encryption != nil {
qrEncryption = *o.Encryption
}
qEncryption := swag.FormatBool(qrEncryption)
if qEncryption != "" {
if err := r.SetQueryParam("encryption", qEncryption); 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.FileUmask != nil {
// query param file_umask
var qrFileUmask int64
if o.FileUmask != nil {
qrFileUmask = *o.FileUmask
}
qFileUmask := swag.FormatInt64(qrFileUmask)
if qFileUmask != "" {
if err := r.SetQueryParam("file_umask", qFileUmask); err != nil {
return err
}
}
}
if o.ForceGroupForCreate != nil {
// query param force_group_for_create
var qrForceGroupForCreate string
if o.ForceGroupForCreate != nil {
qrForceGroupForCreate = *o.ForceGroupForCreate
}
qForceGroupForCreate := qrForceGroupForCreate
if qForceGroupForCreate != "" {
if err := r.SetQueryParam("force_group_for_create", qForceGroupForCreate); err != nil {
return err
}
}
}
if o.HomeDirectory != nil {
// query param home_directory
var qrHomeDirectory bool
if o.HomeDirectory != nil {
qrHomeDirectory = *o.HomeDirectory
}
qHomeDirectory := swag.FormatBool(qrHomeDirectory)
if qHomeDirectory != "" {
if err := r.SetQueryParam("home_directory", qHomeDirectory); 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.NamespaceCaching != nil {
// query param namespace_caching
var qrNamespaceCaching bool
if o.NamespaceCaching != nil {
qrNamespaceCaching = *o.NamespaceCaching
}
qNamespaceCaching := swag.FormatBool(qrNamespaceCaching)
if qNamespaceCaching != "" {
if err := r.SetQueryParam("namespace_caching", qNamespaceCaching); err != nil {
return err
}
}
}
if o.NoStrictSecurity != nil {
// query param no_strict_security
var qrNoStrictSecurity bool
if o.NoStrictSecurity != nil {
qrNoStrictSecurity = *o.NoStrictSecurity
}
qNoStrictSecurity := swag.FormatBool(qrNoStrictSecurity)
if qNoStrictSecurity != "" {
if err := r.SetQueryParam("no_strict_security", qNoStrictSecurity); err != nil {
return err
}
}
}
if o.OfflineFiles != nil {
// query param offline_files
var qrOfflineFiles string
if o.OfflineFiles != nil {
qrOfflineFiles = *o.OfflineFiles
}
qOfflineFiles := qrOfflineFiles
if qOfflineFiles != "" {
if err := r.SetQueryParam("offline_files", qOfflineFiles); err != nil {
return err
}
}
}
if o.Oplocks != nil {
// query param oplocks
var qrOplocks bool
if o.Oplocks != nil {
qrOplocks = *o.Oplocks
}
qOplocks := swag.FormatBool(qrOplocks)
if qOplocks != "" {
if err := r.SetQueryParam("oplocks", qOplocks); 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.Path != nil {
// query param path
var qrPath string
if o.Path != nil {
qrPath = *o.Path
}
qPath := qrPath
if qPath != "" {
if err := r.SetQueryParam("path", qPath); 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.ShowSnapshot != nil {
// query param show_snapshot
var qrShowSnapshot bool
if o.ShowSnapshot != nil {
qrShowSnapshot = *o.ShowSnapshot
}
qShowSnapshot := swag.FormatBool(qrShowSnapshot)
if qShowSnapshot != "" {
if err := r.SetQueryParam("show_snapshot", qShowSnapshot); 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.UnixSymlink != nil {
// query param unix_symlink
var qrUnixSymlink string
if o.UnixSymlink != nil {
qrUnixSymlink = *o.UnixSymlink
}
qUnixSymlink := qrUnixSymlink
if qUnixSymlink != "" {
if err := r.SetQueryParam("unix_symlink", qUnixSymlink); err != nil {
return err
}
}
}
if o.VolumeName != nil {
// query param volume.name
var qrVolumeName string
if o.VolumeName != nil {
qrVolumeName = *o.VolumeName
}
qVolumeName := qrVolumeName
if qVolumeName != "" {
if err := r.SetQueryParam("volume.name", qVolumeName); err != nil {
return err
}
}
}
if o.VolumeUUID != nil {
// query param volume.uuid
var qrVolumeUUID string
if o.VolumeUUID != nil {
qrVolumeUUID = *o.VolumeUUID
}
qVolumeUUID := qrVolumeUUID
if qVolumeUUID != "" {
if err := r.SetQueryParam("volume.uuid", qVolumeUUID); err != nil {
return err
}
}
}
if o.VscanProfile != nil {
// query param vscan_profile
var qrVscanProfile string
if o.VscanProfile != nil {
qrVscanProfile = *o.VscanProfile
}
qVscanProfile := qrVscanProfile
if qVscanProfile != "" {
if err := r.SetQueryParam("vscan_profile", qVscanProfile); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamCifsShareCollectionGet binds the parameter fields
func (o *CifsShareCollectionGetParams) 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
}
// bindParamCifsShareCollectionGet binds the parameter order_by
func (o *CifsShareCollectionGetParams) 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/cifs_collection_performance_metrics_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_collection_performance_metrics_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"
)
// NewCifsCollectionPerformanceMetricsGetParams creates a new CifsCollectionPerformanceMetricsGetParams 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 NewCifsCollectionPerformanceMetricsGetParams() *CifsCollectionPerformanceMetricsGetParams {
return &CifsCollectionPerformanceMetricsGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsCollectionPerformanceMetricsGetParamsWithTimeout creates a new CifsCollectionPerformanceMetricsGetParams object
// with the ability to set a timeout on a request.
func NewCifsCollectionPerformanceMetricsGetParamsWithTimeout(timeout time.Duration) *CifsCollectionPerformanceMetricsGetParams {
return &CifsCollectionPerformanceMetricsGetParams{
timeout: timeout,
}
}
// NewCifsCollectionPerformanceMetricsGetParamsWithContext creates a new CifsCollectionPerformanceMetricsGetParams object
// with the ability to set a context for a request.
func NewCifsCollectionPerformanceMetricsGetParamsWithContext(ctx context.Context) *CifsCollectionPerformanceMetricsGetParams {
return &CifsCollectionPerformanceMetricsGetParams{
Context: ctx,
}
}
// NewCifsCollectionPerformanceMetricsGetParamsWithHTTPClient creates a new CifsCollectionPerformanceMetricsGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsCollectionPerformanceMetricsGetParamsWithHTTPClient(client *http.Client) *CifsCollectionPerformanceMetricsGetParams {
return &CifsCollectionPerformanceMetricsGetParams{
HTTPClient: client,
}
}
/*
CifsCollectionPerformanceMetricsGetParams contains all the parameters to send to the API endpoint
for the cifs collection performance metrics get operation.
Typically these are written to a http.Request.
*/
type CifsCollectionPerformanceMetricsGetParams struct {
/* Duration.
Filter by duration
*/
Duration *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Interval.
The time range for the data. Examples can be 1h, 1d, 1m, 1w, 1y.
The period for each time range is as follows:
* 1h: Metrics over the most recent hour sampled over 15 seconds.
* 1d: Metrics over the most recent day sampled over 5 minutes.
* 1w: Metrics over the most recent week sampled over 30 minutes.
* 1m: Metrics over the most recent month sampled over 2 hours.
* 1y: Metrics over the most recent year sampled over a day.
Default: "1h"
*/
Interval *string
/* IopsOther.
Filter by iops.other
*/
IopsOther *int64
/* IopsRead.
Filter by iops.read
*/
IopsRead *int64
/* IopsTotal.
Filter by iops.total
*/
IopsTotal *int64
/* IopsWrite.
Filter by iops.write
*/
IopsWrite *int64
/* LatencyOther.
Filter by latency.other
*/
LatencyOther *int64
/* LatencyRead.
Filter by latency.read
*/
LatencyRead *int64
/* LatencyTotal.
Filter by latency.total
*/
LatencyTotal *int64
/* LatencyWrite.
Filter by latency.write
*/
LatencyWrite *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* Status.
Filter by status
*/
Status *string
/* SvmUUID.
Unique identifier of the SVM.
*/
SvmUUID string
/* ThroughputOther.
Filter by throughput.other
*/
ThroughputOther *int64
/* ThroughputRead.
Filter by throughput.read
*/
ThroughputRead *int64
/* ThroughputTotal.
Filter by throughput.total
*/
ThroughputTotal *int64
/* ThroughputWrite.
Filter by throughput.write
*/
ThroughputWrite *int64
/* Timestamp.
Filter by timestamp
*/
Timestamp *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cifs collection performance metrics get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsCollectionPerformanceMetricsGetParams) WithDefaults() *CifsCollectionPerformanceMetricsGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs collection performance metrics get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsCollectionPerformanceMetricsGetParams) SetDefaults() {
var (
intervalDefault = string("1h")
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := CifsCollectionPerformanceMetricsGetParams{
Interval: &intervalDefault,
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithTimeout(timeout time.Duration) *CifsCollectionPerformanceMetricsGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithContext(ctx context.Context) *CifsCollectionPerformanceMetricsGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithHTTPClient(client *http.Client) *CifsCollectionPerformanceMetricsGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithDuration adds the duration to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithDuration(duration *string) *CifsCollectionPerformanceMetricsGetParams {
o.SetDuration(duration)
return o
}
// SetDuration adds the duration to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetDuration(duration *string) {
o.Duration = duration
}
// WithFields adds the fields to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithFields(fields []string) *CifsCollectionPerformanceMetricsGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithInterval adds the interval to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithInterval(interval *string) *CifsCollectionPerformanceMetricsGetParams {
o.SetInterval(interval)
return o
}
// SetInterval adds the interval to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetInterval(interval *string) {
o.Interval = interval
}
// WithIopsOther adds the iopsOther to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithIopsOther(iopsOther *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetIopsOther(iopsOther)
return o
}
// SetIopsOther adds the iopsOther to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetIopsOther(iopsOther *int64) {
o.IopsOther = iopsOther
}
// WithIopsRead adds the iopsRead to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithIopsRead(iopsRead *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetIopsRead(iopsRead)
return o
}
// SetIopsRead adds the iopsRead to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetIopsRead(iopsRead *int64) {
o.IopsRead = iopsRead
}
// WithIopsTotal adds the iopsTotal to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithIopsTotal(iopsTotal *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetIopsTotal(iopsTotal)
return o
}
// SetIopsTotal adds the iopsTotal to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetIopsTotal(iopsTotal *int64) {
o.IopsTotal = iopsTotal
}
// WithIopsWrite adds the iopsWrite to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithIopsWrite(iopsWrite *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetIopsWrite(iopsWrite)
return o
}
// SetIopsWrite adds the iopsWrite to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetIopsWrite(iopsWrite *int64) {
o.IopsWrite = iopsWrite
}
// WithLatencyOther adds the latencyOther to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithLatencyOther(latencyOther *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetLatencyOther(latencyOther)
return o
}
// SetLatencyOther adds the latencyOther to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetLatencyOther(latencyOther *int64) {
o.LatencyOther = latencyOther
}
// WithLatencyRead adds the latencyRead to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithLatencyRead(latencyRead *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetLatencyRead(latencyRead)
return o
}
// SetLatencyRead adds the latencyRead to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetLatencyRead(latencyRead *int64) {
o.LatencyRead = latencyRead
}
// WithLatencyTotal adds the latencyTotal to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithLatencyTotal(latencyTotal *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetLatencyTotal(latencyTotal)
return o
}
// SetLatencyTotal adds the latencyTotal to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetLatencyTotal(latencyTotal *int64) {
o.LatencyTotal = latencyTotal
}
// WithLatencyWrite adds the latencyWrite to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithLatencyWrite(latencyWrite *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetLatencyWrite(latencyWrite)
return o
}
// SetLatencyWrite adds the latencyWrite to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetLatencyWrite(latencyWrite *int64) {
o.LatencyWrite = latencyWrite
}
// WithMaxRecords adds the maxRecords to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithMaxRecords(maxRecords *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithOrderBy(orderBy []string) *CifsCollectionPerformanceMetricsGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithReturnRecords(returnRecords *bool) *CifsCollectionPerformanceMetricsGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithReturnTimeout(returnTimeout *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithStatus adds the status to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithStatus(status *string) *CifsCollectionPerformanceMetricsGetParams {
o.SetStatus(status)
return o
}
// SetStatus adds the status to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetStatus(status *string) {
o.Status = status
}
// WithSvmUUID adds the svmUUID to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithSvmUUID(svmUUID string) *CifsCollectionPerformanceMetricsGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithThroughputOther adds the throughputOther to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithThroughputOther(throughputOther *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetThroughputOther(throughputOther)
return o
}
// SetThroughputOther adds the throughputOther to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetThroughputOther(throughputOther *int64) {
o.ThroughputOther = throughputOther
}
// WithThroughputRead adds the throughputRead to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithThroughputRead(throughputRead *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetThroughputRead(throughputRead)
return o
}
// SetThroughputRead adds the throughputRead to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetThroughputRead(throughputRead *int64) {
o.ThroughputRead = throughputRead
}
// WithThroughputTotal adds the throughputTotal to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithThroughputTotal(throughputTotal *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetThroughputTotal(throughputTotal)
return o
}
// SetThroughputTotal adds the throughputTotal to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetThroughputTotal(throughputTotal *int64) {
o.ThroughputTotal = throughputTotal
}
// WithThroughputWrite adds the throughputWrite to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithThroughputWrite(throughputWrite *int64) *CifsCollectionPerformanceMetricsGetParams {
o.SetThroughputWrite(throughputWrite)
return o
}
// SetThroughputWrite adds the throughputWrite to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetThroughputWrite(throughputWrite *int64) {
o.ThroughputWrite = throughputWrite
}
// WithTimestamp adds the timestamp to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) WithTimestamp(timestamp *string) *CifsCollectionPerformanceMetricsGetParams {
o.SetTimestamp(timestamp)
return o
}
// SetTimestamp adds the timestamp to the cifs collection performance metrics get params
func (o *CifsCollectionPerformanceMetricsGetParams) SetTimestamp(timestamp *string) {
o.Timestamp = timestamp
}
// WriteToRequest writes these params to a swagger request
func (o *CifsCollectionPerformanceMetricsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Duration != nil {
// query param duration
var qrDuration string
if o.Duration != nil {
qrDuration = *o.Duration
}
qDuration := qrDuration
if qDuration != "" {
if err := r.SetQueryParam("duration", qDuration); err != nil {
return err
}
}
}
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
if o.Interval != nil {
// query param interval
var qrInterval string
if o.Interval != nil {
qrInterval = *o.Interval
}
qInterval := qrInterval
if qInterval != "" {
if err := r.SetQueryParam("interval", qInterval); err != nil {
return err
}
}
}
if o.IopsOther != nil {
// query param iops.other
var qrIopsOther int64
if o.IopsOther != nil {
qrIopsOther = *o.IopsOther
}
qIopsOther := swag.FormatInt64(qrIopsOther)
if qIopsOther != "" {
if err := r.SetQueryParam("iops.other", qIopsOther); err != nil {
return err
}
}
}
if o.IopsRead != nil {
// query param iops.read
var qrIopsRead int64
if o.IopsRead != nil {
qrIopsRead = *o.IopsRead
}
qIopsRead := swag.FormatInt64(qrIopsRead)
if qIopsRead != "" {
if err := r.SetQueryParam("iops.read", qIopsRead); err != nil {
return err
}
}
}
if o.IopsTotal != nil {
// query param iops.total
var qrIopsTotal int64
if o.IopsTotal != nil {
qrIopsTotal = *o.IopsTotal
}
qIopsTotal := swag.FormatInt64(qrIopsTotal)
if qIopsTotal != "" {
if err := r.SetQueryParam("iops.total", qIopsTotal); err != nil {
return err
}
}
}
if o.IopsWrite != nil {
// query param iops.write
var qrIopsWrite int64
if o.IopsWrite != nil {
qrIopsWrite = *o.IopsWrite
}
qIopsWrite := swag.FormatInt64(qrIopsWrite)
if qIopsWrite != "" {
if err := r.SetQueryParam("iops.write", qIopsWrite); err != nil {
return err
}
}
}
if o.LatencyOther != nil {
// query param latency.other
var qrLatencyOther int64
if o.LatencyOther != nil {
qrLatencyOther = *o.LatencyOther
}
qLatencyOther := swag.FormatInt64(qrLatencyOther)
if qLatencyOther != "" {
if err := r.SetQueryParam("latency.other", qLatencyOther); err != nil {
return err
}
}
}
if o.LatencyRead != nil {
// query param latency.read
var qrLatencyRead int64
if o.LatencyRead != nil {
qrLatencyRead = *o.LatencyRead
}
qLatencyRead := swag.FormatInt64(qrLatencyRead)
if qLatencyRead != "" {
if err := r.SetQueryParam("latency.read", qLatencyRead); err != nil {
return err
}
}
}
if o.LatencyTotal != nil {
// query param latency.total
var qrLatencyTotal int64
if o.LatencyTotal != nil {
qrLatencyTotal = *o.LatencyTotal
}
qLatencyTotal := swag.FormatInt64(qrLatencyTotal)
if qLatencyTotal != "" {
if err := r.SetQueryParam("latency.total", qLatencyTotal); err != nil {
return err
}
}
}
if o.LatencyWrite != nil {
// query param latency.write
var qrLatencyWrite int64
if o.LatencyWrite != nil {
qrLatencyWrite = *o.LatencyWrite
}
qLatencyWrite := swag.FormatInt64(qrLatencyWrite)
if qLatencyWrite != "" {
if err := r.SetQueryParam("latency.write", qLatencyWrite); 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.Status != nil {
// query param status
var qrStatus string
if o.Status != nil {
qrStatus = *o.Status
}
qStatus := qrStatus
if qStatus != "" {
if err := r.SetQueryParam("status", qStatus); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if o.ThroughputOther != nil {
// query param throughput.other
var qrThroughputOther int64
if o.ThroughputOther != nil {
qrThroughputOther = *o.ThroughputOther
}
qThroughputOther := swag.FormatInt64(qrThroughputOther)
if qThroughputOther != "" {
if err := r.SetQueryParam("throughput.other", qThroughputOther); err != nil {
return err
}
}
}
if o.ThroughputRead != nil {
// query param throughput.read
var qrThroughputRead int64
if o.ThroughputRead != nil {
qrThroughputRead = *o.ThroughputRead
}
qThroughputRead := swag.FormatInt64(qrThroughputRead)
if qThroughputRead != "" {
if err := r.SetQueryParam("throughput.read", qThroughputRead); err != nil {
return err
}
}
}
if o.ThroughputTotal != nil {
// query param throughput.total
var qrThroughputTotal int64
if o.ThroughputTotal != nil {
qrThroughputTotal = *o.ThroughputTotal
}
qThroughputTotal := swag.FormatInt64(qrThroughputTotal)
if qThroughputTotal != "" {
if err := r.SetQueryParam("throughput.total", qThroughputTotal); err != nil {
return err
}
}
}
if o.ThroughputWrite != nil {
// query param throughput.write
var qrThroughputWrite int64
if o.ThroughputWrite != nil {
qrThroughputWrite = *o.ThroughputWrite
}
qThroughputWrite := swag.FormatInt64(qrThroughputWrite)
if qThroughputWrite != "" {
if err := r.SetQueryParam("throughput.write", qThroughputWrite); err != nil {
return err
}
}
}
if o.Timestamp != nil {
// query param timestamp
var qrTimestamp string
if o.Timestamp != nil {
qrTimestamp = *o.Timestamp
}
qTimestamp := qrTimestamp
if qTimestamp != "" {
if err := r.SetQueryParam("timestamp", qTimestamp); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamCifsCollectionPerformanceMetricsGet binds the parameter fields
func (o *CifsCollectionPerformanceMetricsGetParams) 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
}
// bindParamCifsCollectionPerformanceMetricsGet binds the parameter order_by
func (o *CifsCollectionPerformanceMetricsGetParams) 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/local_cifs_group_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_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"
)
// LocalCifsGroupGetReader is a Reader for the LocalCifsGroupGet structure.
type LocalCifsGroupGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *LocalCifsGroupGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewLocalCifsGroupGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewLocalCifsGroupGetDefault(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
}
}
// NewLocalCifsGroupGetOK creates a LocalCifsGroupGetOK with default headers values
func NewLocalCifsGroupGetOK() *LocalCifsGroupGetOK {
return &LocalCifsGroupGetOK{}
}
/*
LocalCifsGroupGetOK describes a response with status code 200, with default header values.
OK
*/
type LocalCifsGroupGetOK struct {
Payload *models.LocalCifsGroup
}
// IsSuccess returns true when this local cifs group get o k response has a 2xx status code
func (o *LocalCifsGroupGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this local cifs group get o k response has a 3xx status code
func (o *LocalCifsGroupGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this local cifs group get o k response has a 4xx status code
func (o *LocalCifsGroupGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this local cifs group get o k response has a 5xx status code
func (o *LocalCifsGroupGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this local cifs group get o k response a status code equal to that given
func (o *LocalCifsGroupGetOK) IsCode(code int) bool {
return code == 200
}
func (o *LocalCifsGroupGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] localCifsGroupGetOK %+v", 200, o.Payload)
}
func (o *LocalCifsGroupGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] localCifsGroupGetOK %+v", 200, o.Payload)
}
func (o *LocalCifsGroupGetOK) GetPayload() *models.LocalCifsGroup {
return o.Payload
}
func (o *LocalCifsGroupGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.LocalCifsGroup)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewLocalCifsGroupGetDefault creates a LocalCifsGroupGetDefault with default headers values
func NewLocalCifsGroupGetDefault(code int) *LocalCifsGroupGetDefault {
return &LocalCifsGroupGetDefault{
_statusCode: code,
}
}
/*
LocalCifsGroupGetDefault describes a response with status code -1, with default header values.
Error
*/
type LocalCifsGroupGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the local cifs group get default response
func (o *LocalCifsGroupGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this local cifs group get default response has a 2xx status code
func (o *LocalCifsGroupGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this local cifs group get default response has a 3xx status code
func (o *LocalCifsGroupGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this local cifs group get default response has a 4xx status code
func (o *LocalCifsGroupGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this local cifs group get default response has a 5xx status code
func (o *LocalCifsGroupGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this local cifs group get default response a status code equal to that given
func (o *LocalCifsGroupGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *LocalCifsGroupGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] local_cifs_group_get default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsGroupGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups/{svm.uuid}/{sid}][%d] local_cifs_group_get default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsGroupGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *LocalCifsGroupGetDefault) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_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"
)
// NewVscanGetParams creates a new VscanGetParams 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 NewVscanGetParams() *VscanGetParams {
return &VscanGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewVscanGetParamsWithTimeout creates a new VscanGetParams object
// with the ability to set a timeout on a request.
func NewVscanGetParamsWithTimeout(timeout time.Duration) *VscanGetParams {
return &VscanGetParams{
timeout: timeout,
}
}
// NewVscanGetParamsWithContext creates a new VscanGetParams object
// with the ability to set a context for a request.
func NewVscanGetParamsWithContext(ctx context.Context) *VscanGetParams {
return &VscanGetParams{
Context: ctx,
}
}
// NewVscanGetParamsWithHTTPClient creates a new VscanGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewVscanGetParamsWithHTTPClient(client *http.Client) *VscanGetParams {
return &VscanGetParams{
HTTPClient: client,
}
}
/*
VscanGetParams contains all the parameters to send to the API endpoint
for the vscan get operation.
Typically these are written to a http.Request.
*/
type VscanGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []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 get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanGetParams) WithDefaults() *VscanGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the vscan get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the vscan get params
func (o *VscanGetParams) WithTimeout(timeout time.Duration) *VscanGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the vscan get params
func (o *VscanGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the vscan get params
func (o *VscanGetParams) WithContext(ctx context.Context) *VscanGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the vscan get params
func (o *VscanGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the vscan get params
func (o *VscanGetParams) WithHTTPClient(client *http.Client) *VscanGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the vscan get params
func (o *VscanGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the vscan get params
func (o *VscanGetParams) WithFields(fields []string) *VscanGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the vscan get params
func (o *VscanGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithSvmUUID adds the svmUUID to the vscan get params
func (o *VscanGetParams) WithSvmUUID(svmUUID string) *VscanGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the vscan get params
func (o *VscanGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *VscanGetParams) 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
}
// bindParamVscanGet binds the parameter fields
func (o *VscanGetParams) 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_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_policy_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"
)
// NewExportPolicyCreateParams creates a new ExportPolicyCreateParams 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 NewExportPolicyCreateParams() *ExportPolicyCreateParams {
return &ExportPolicyCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewExportPolicyCreateParamsWithTimeout creates a new ExportPolicyCreateParams object
// with the ability to set a timeout on a request.
func NewExportPolicyCreateParamsWithTimeout(timeout time.Duration) *ExportPolicyCreateParams {
return &ExportPolicyCreateParams{
timeout: timeout,
}
}
// NewExportPolicyCreateParamsWithContext creates a new ExportPolicyCreateParams object
// with the ability to set a context for a request.
func NewExportPolicyCreateParamsWithContext(ctx context.Context) *ExportPolicyCreateParams {
return &ExportPolicyCreateParams{
Context: ctx,
}
}
// NewExportPolicyCreateParamsWithHTTPClient creates a new ExportPolicyCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewExportPolicyCreateParamsWithHTTPClient(client *http.Client) *ExportPolicyCreateParams {
return &ExportPolicyCreateParams{
HTTPClient: client,
}
}
/*
ExportPolicyCreateParams contains all the parameters to send to the API endpoint
for the export policy create operation.
Typically these are written to a http.Request.
*/
type ExportPolicyCreateParams struct {
/* Info.
Info specification
*/
Info *models.ExportPolicy
/* 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 export policy create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportPolicyCreateParams) WithDefaults() *ExportPolicyCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the export policy create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportPolicyCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := ExportPolicyCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the export policy create params
func (o *ExportPolicyCreateParams) WithTimeout(timeout time.Duration) *ExportPolicyCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the export policy create params
func (o *ExportPolicyCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the export policy create params
func (o *ExportPolicyCreateParams) WithContext(ctx context.Context) *ExportPolicyCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the export policy create params
func (o *ExportPolicyCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the export policy create params
func (o *ExportPolicyCreateParams) WithHTTPClient(client *http.Client) *ExportPolicyCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the export policy create params
func (o *ExportPolicyCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the export policy create params
func (o *ExportPolicyCreateParams) WithInfo(info *models.ExportPolicy) *ExportPolicyCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the export policy create params
func (o *ExportPolicyCreateParams) SetInfo(info *models.ExportPolicy) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the export policy create params
func (o *ExportPolicyCreateParams) WithReturnRecords(returnRecords *bool) *ExportPolicyCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the export policy create params
func (o *ExportPolicyCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *ExportPolicyCreateParams) 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/local_cifs_group_members_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/local_cifs_group_members_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"
)
// NewLocalCifsGroupMembersCreateParams creates a new LocalCifsGroupMembersCreateParams 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 NewLocalCifsGroupMembersCreateParams() *LocalCifsGroupMembersCreateParams {
return &LocalCifsGroupMembersCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewLocalCifsGroupMembersCreateParamsWithTimeout creates a new LocalCifsGroupMembersCreateParams object
// with the ability to set a timeout on a request.
func NewLocalCifsGroupMembersCreateParamsWithTimeout(timeout time.Duration) *LocalCifsGroupMembersCreateParams {
return &LocalCifsGroupMembersCreateParams{
timeout: timeout,
}
}
// NewLocalCifsGroupMembersCreateParamsWithContext creates a new LocalCifsGroupMembersCreateParams object
// with the ability to set a context for a request.
func NewLocalCifsGroupMembersCreateParamsWithContext(ctx context.Context) *LocalCifsGroupMembersCreateParams {
return &LocalCifsGroupMembersCreateParams{
Context: ctx,
}
}
// NewLocalCifsGroupMembersCreateParamsWithHTTPClient creates a new LocalCifsGroupMembersCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewLocalCifsGroupMembersCreateParamsWithHTTPClient(client *http.Client) *LocalCifsGroupMembersCreateParams {
return &LocalCifsGroupMembersCreateParams{
HTTPClient: client,
}
}
/*
LocalCifsGroupMembersCreateParams contains all the parameters to send to the API endpoint
for the local cifs group members create operation.
Typically these are written to a http.Request.
*/
type LocalCifsGroupMembersCreateParams struct {
/* Info.
Info specification
*/
Info *models.LocalCifsGroupMembers
/* LocalCifsGroupSid.
Local group SID
*/
LocalCifsGroupSid string
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *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 local cifs group members create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupMembersCreateParams) WithDefaults() *LocalCifsGroupMembersCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the local cifs group members create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *LocalCifsGroupMembersCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := LocalCifsGroupMembersCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) WithTimeout(timeout time.Duration) *LocalCifsGroupMembersCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) WithContext(ctx context.Context) *LocalCifsGroupMembersCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) WithHTTPClient(client *http.Client) *LocalCifsGroupMembersCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) WithInfo(info *models.LocalCifsGroupMembers) *LocalCifsGroupMembersCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) SetInfo(info *models.LocalCifsGroupMembers) {
o.Info = info
}
// WithLocalCifsGroupSid adds the localCifsGroupSid to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) WithLocalCifsGroupSid(localCifsGroupSid string) *LocalCifsGroupMembersCreateParams {
o.SetLocalCifsGroupSid(localCifsGroupSid)
return o
}
// SetLocalCifsGroupSid adds the localCifsGroupSid to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) SetLocalCifsGroupSid(localCifsGroupSid string) {
o.LocalCifsGroupSid = localCifsGroupSid
}
// WithReturnRecords adds the returnRecords to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) WithReturnRecords(returnRecords *bool) *LocalCifsGroupMembersCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSvmUUID adds the svmUUID to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) WithSvmUUID(svmUUID string) *LocalCifsGroupMembersCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the local cifs group members create params
func (o *LocalCifsGroupMembersCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *LocalCifsGroupMembersCreateParams) 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 local_cifs_group.sid
if err := r.SetPathParam("local_cifs_group.sid", o.LocalCifsGroupSid); 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
}
}
}
// 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_symlink_mapping_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_symlink_mapping_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"
)
// NewCifsSymlinkMappingModifyParams creates a new CifsSymlinkMappingModifyParams 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 NewCifsSymlinkMappingModifyParams() *CifsSymlinkMappingModifyParams {
return &CifsSymlinkMappingModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewCifsSymlinkMappingModifyParamsWithTimeout creates a new CifsSymlinkMappingModifyParams object
// with the ability to set a timeout on a request.
func NewCifsSymlinkMappingModifyParamsWithTimeout(timeout time.Duration) *CifsSymlinkMappingModifyParams {
return &CifsSymlinkMappingModifyParams{
timeout: timeout,
}
}
// NewCifsSymlinkMappingModifyParamsWithContext creates a new CifsSymlinkMappingModifyParams object
// with the ability to set a context for a request.
func NewCifsSymlinkMappingModifyParamsWithContext(ctx context.Context) *CifsSymlinkMappingModifyParams {
return &CifsSymlinkMappingModifyParams{
Context: ctx,
}
}
// NewCifsSymlinkMappingModifyParamsWithHTTPClient creates a new CifsSymlinkMappingModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewCifsSymlinkMappingModifyParamsWithHTTPClient(client *http.Client) *CifsSymlinkMappingModifyParams {
return &CifsSymlinkMappingModifyParams{
HTTPClient: client,
}
}
/*
CifsSymlinkMappingModifyParams contains all the parameters to send to the API endpoint
for the cifs symlink mapping modify operation.
Typically these are written to a http.Request.
*/
type CifsSymlinkMappingModifyParams struct {
/* Info.
Info specification
*/
Info *models.CifsSymlinkMapping
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UnixPath.
UNIX symbolic link path
*/
UnixPath string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cifs symlink mapping modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSymlinkMappingModifyParams) WithDefaults() *CifsSymlinkMappingModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cifs symlink mapping modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CifsSymlinkMappingModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) WithTimeout(timeout time.Duration) *CifsSymlinkMappingModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) WithContext(ctx context.Context) *CifsSymlinkMappingModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) WithHTTPClient(client *http.Client) *CifsSymlinkMappingModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) WithInfo(info *models.CifsSymlinkMapping) *CifsSymlinkMappingModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) SetInfo(info *models.CifsSymlinkMapping) {
o.Info = info
}
// WithSvmUUID adds the svmUUID to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) WithSvmUUID(svmUUID string) *CifsSymlinkMappingModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUnixPath adds the unixPath to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) WithUnixPath(unixPath string) *CifsSymlinkMappingModifyParams {
o.SetUnixPath(unixPath)
return o
}
// SetUnixPath adds the unixPath to the cifs symlink mapping modify params
func (o *CifsSymlinkMappingModifyParams) SetUnixPath(unixPath string) {
o.UnixPath = unixPath
}
// WriteToRequest writes these params to a swagger request
func (o *CifsSymlinkMappingModifyParams) 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 svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
// path param unix_path
if err := r.SetPathParam("unix_path", o.UnixPath); 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/group_policies_to_be_applied_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/group_policies_to_be_applied_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/go-openapi/swag"
)
// NewGroupPoliciesToBeAppliedModifyParams creates a new GroupPoliciesToBeAppliedModifyParams 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 NewGroupPoliciesToBeAppliedModifyParams() *GroupPoliciesToBeAppliedModifyParams {
return &GroupPoliciesToBeAppliedModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewGroupPoliciesToBeAppliedModifyParamsWithTimeout creates a new GroupPoliciesToBeAppliedModifyParams object
// with the ability to set a timeout on a request.
func NewGroupPoliciesToBeAppliedModifyParamsWithTimeout(timeout time.Duration) *GroupPoliciesToBeAppliedModifyParams {
return &GroupPoliciesToBeAppliedModifyParams{
timeout: timeout,
}
}
// NewGroupPoliciesToBeAppliedModifyParamsWithContext creates a new GroupPoliciesToBeAppliedModifyParams object
// with the ability to set a context for a request.
func NewGroupPoliciesToBeAppliedModifyParamsWithContext(ctx context.Context) *GroupPoliciesToBeAppliedModifyParams {
return &GroupPoliciesToBeAppliedModifyParams{
Context: ctx,
}
}
// NewGroupPoliciesToBeAppliedModifyParamsWithHTTPClient creates a new GroupPoliciesToBeAppliedModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewGroupPoliciesToBeAppliedModifyParamsWithHTTPClient(client *http.Client) *GroupPoliciesToBeAppliedModifyParams {
return &GroupPoliciesToBeAppliedModifyParams{
HTTPClient: client,
}
}
/*
GroupPoliciesToBeAppliedModifyParams contains all the parameters to send to the API endpoint
for the group policies to be applied modify operation.
Typically these are written to a http.Request.
*/
type GroupPoliciesToBeAppliedModifyParams struct {
/* ApplyUpdates.
Indicates whether to apply updates or not.
Default: true
*/
ApplyUpdates *bool
/* ForceReapplyAllSettings.
Indicates whether or not a re-applying of all settings is enforced.
*/
ForceReapplyAllSettings *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 group policies to be applied modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GroupPoliciesToBeAppliedModifyParams) WithDefaults() *GroupPoliciesToBeAppliedModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the group policies to be applied modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GroupPoliciesToBeAppliedModifyParams) SetDefaults() {
var (
applyUpdatesDefault = bool(true)
forceReapplyAllSettingsDefault = bool(false)
)
val := GroupPoliciesToBeAppliedModifyParams{
ApplyUpdates: &applyUpdatesDefault,
ForceReapplyAllSettings: &forceReapplyAllSettingsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) WithTimeout(timeout time.Duration) *GroupPoliciesToBeAppliedModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) WithContext(ctx context.Context) *GroupPoliciesToBeAppliedModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) WithHTTPClient(client *http.Client) *GroupPoliciesToBeAppliedModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithApplyUpdates adds the applyUpdates to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) WithApplyUpdates(applyUpdates *bool) *GroupPoliciesToBeAppliedModifyParams {
o.SetApplyUpdates(applyUpdates)
return o
}
// SetApplyUpdates adds the applyUpdates to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) SetApplyUpdates(applyUpdates *bool) {
o.ApplyUpdates = applyUpdates
}
// WithForceReapplyAllSettings adds the forceReapplyAllSettings to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) WithForceReapplyAllSettings(forceReapplyAllSettings *bool) *GroupPoliciesToBeAppliedModifyParams {
o.SetForceReapplyAllSettings(forceReapplyAllSettings)
return o
}
// SetForceReapplyAllSettings adds the forceReapplyAllSettings to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) SetForceReapplyAllSettings(forceReapplyAllSettings *bool) {
o.ForceReapplyAllSettings = forceReapplyAllSettings
}
// WithSvmUUID adds the svmUUID to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) WithSvmUUID(svmUUID string) *GroupPoliciesToBeAppliedModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the group policies to be applied modify params
func (o *GroupPoliciesToBeAppliedModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *GroupPoliciesToBeAppliedModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.ApplyUpdates != nil {
// query param apply_updates
var qrApplyUpdates bool
if o.ApplyUpdates != nil {
qrApplyUpdates = *o.ApplyUpdates
}
qApplyUpdates := swag.FormatBool(qrApplyUpdates)
if qApplyUpdates != "" {
if err := r.SetQueryParam("apply_updates", qApplyUpdates); err != nil {
return err
}
}
}
if o.ForceReapplyAllSettings != nil {
// query param force_reapply_all_settings
var qrForceReapplyAllSettings bool
if o.ForceReapplyAllSettings != nil {
qrForceReapplyAllSettings = *o.ForceReapplyAllSettings
}
qForceReapplyAllSettings := swag.FormatBool(qrForceReapplyAllSettings)
if qForceReapplyAllSettings != "" {
if err := r.SetQueryParam("force_reapply_all_settings", qForceReapplyAllSettings); 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/local_cifs_group_collection_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_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"
)
// LocalCifsGroupCollectionGetReader is a Reader for the LocalCifsGroupCollectionGet structure.
type LocalCifsGroupCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *LocalCifsGroupCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewLocalCifsGroupCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewLocalCifsGroupCollectionGetDefault(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
}
}
// NewLocalCifsGroupCollectionGetOK creates a LocalCifsGroupCollectionGetOK with default headers values
func NewLocalCifsGroupCollectionGetOK() *LocalCifsGroupCollectionGetOK {
return &LocalCifsGroupCollectionGetOK{}
}
/*
LocalCifsGroupCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type LocalCifsGroupCollectionGetOK struct {
Payload *models.LocalCifsGroupResponse
}
// IsSuccess returns true when this local cifs group collection get o k response has a 2xx status code
func (o *LocalCifsGroupCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this local cifs group collection get o k response has a 3xx status code
func (o *LocalCifsGroupCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this local cifs group collection get o k response has a 4xx status code
func (o *LocalCifsGroupCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this local cifs group collection get o k response has a 5xx status code
func (o *LocalCifsGroupCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this local cifs group collection get o k response a status code equal to that given
func (o *LocalCifsGroupCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *LocalCifsGroupCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups][%d] localCifsGroupCollectionGetOK %+v", 200, o.Payload)
}
func (o *LocalCifsGroupCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups][%d] localCifsGroupCollectionGetOK %+v", 200, o.Payload)
}
func (o *LocalCifsGroupCollectionGetOK) GetPayload() *models.LocalCifsGroupResponse {
return o.Payload
}
func (o *LocalCifsGroupCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.LocalCifsGroupResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewLocalCifsGroupCollectionGetDefault creates a LocalCifsGroupCollectionGetDefault with default headers values
func NewLocalCifsGroupCollectionGetDefault(code int) *LocalCifsGroupCollectionGetDefault {
return &LocalCifsGroupCollectionGetDefault{
_statusCode: code,
}
}
/*
LocalCifsGroupCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type LocalCifsGroupCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the local cifs group collection get default response
func (o *LocalCifsGroupCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this local cifs group collection get default response has a 2xx status code
func (o *LocalCifsGroupCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this local cifs group collection get default response has a 3xx status code
func (o *LocalCifsGroupCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this local cifs group collection get default response has a 4xx status code
func (o *LocalCifsGroupCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this local cifs group collection get default response has a 5xx status code
func (o *LocalCifsGroupCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this local cifs group collection get default response a status code equal to that given
func (o *LocalCifsGroupCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *LocalCifsGroupCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups][%d] local_cifs_group_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsGroupCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/local-groups][%d] local_cifs_group_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *LocalCifsGroupCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *LocalCifsGroupCollectionGetDefault) 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_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_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"
)
// FpolicyCreateReader is a Reader for the FpolicyCreate structure.
type FpolicyCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FpolicyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewFpolicyCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFpolicyCreateDefault(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
}
}
// NewFpolicyCreateCreated creates a FpolicyCreateCreated with default headers values
func NewFpolicyCreateCreated() *FpolicyCreateCreated {
return &FpolicyCreateCreated{}
}
/*
FpolicyCreateCreated describes a response with status code 201, with default header values.
Created
*/
type FpolicyCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.FpolicyResponse
}
// IsSuccess returns true when this fpolicy create created response has a 2xx status code
func (o *FpolicyCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this fpolicy create created response has a 3xx status code
func (o *FpolicyCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this fpolicy create created response has a 4xx status code
func (o *FpolicyCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this fpolicy create created response has a 5xx status code
func (o *FpolicyCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this fpolicy create created response a status code equal to that given
func (o *FpolicyCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *FpolicyCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/fpolicy][%d] fpolicyCreateCreated %+v", 201, o.Payload)
}
func (o *FpolicyCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/fpolicy][%d] fpolicyCreateCreated %+v", 201, o.Payload)
}
func (o *FpolicyCreateCreated) GetPayload() *models.FpolicyResponse {
return o.Payload
}
func (o *FpolicyCreateCreated) 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.FpolicyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewFpolicyCreateDefault creates a FpolicyCreateDefault with default headers values
func NewFpolicyCreateDefault(code int) *FpolicyCreateDefault {
return &FpolicyCreateDefault{
_statusCode: code,
}
}
/*
FpolicyCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 9765032 | The FPolicy engine, FPolicy event or FPolicy policy specified already exists |
| 9765031 | If any of the FPolicy engine, FPolicy event, or FPolicy policy creation fails due to a systematic error or hardware failure, the cause of the failure is detailed in the error message |
| 2621706 | The SVM UUID specified belongs to different SVM |
| 2621462 | The SVM name specified does not exist |
*/
type FpolicyCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the fpolicy create default response
func (o *FpolicyCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this fpolicy create default response has a 2xx status code
func (o *FpolicyCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this fpolicy create default response has a 3xx status code
func (o *FpolicyCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this fpolicy create default response has a 4xx status code
func (o *FpolicyCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this fpolicy create default response has a 5xx status code
func (o *FpolicyCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this fpolicy create default response a status code equal to that given
func (o *FpolicyCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FpolicyCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/fpolicy][%d] fpolicy_create default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/fpolicy][%d] fpolicy_create default %+v", o._statusCode, o.Payload)
}
func (o *FpolicyCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FpolicyCreateDefault) 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_scanner_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/vscan_scanner_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"
)
// NewVscanScannerDeleteParams creates a new VscanScannerDeleteParams 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 NewVscanScannerDeleteParams() *VscanScannerDeleteParams {
return &VscanScannerDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewVscanScannerDeleteParamsWithTimeout creates a new VscanScannerDeleteParams object
// with the ability to set a timeout on a request.
func NewVscanScannerDeleteParamsWithTimeout(timeout time.Duration) *VscanScannerDeleteParams {
return &VscanScannerDeleteParams{
timeout: timeout,
}
}
// NewVscanScannerDeleteParamsWithContext creates a new VscanScannerDeleteParams object
// with the ability to set a context for a request.
func NewVscanScannerDeleteParamsWithContext(ctx context.Context) *VscanScannerDeleteParams {
return &VscanScannerDeleteParams{
Context: ctx,
}
}
// NewVscanScannerDeleteParamsWithHTTPClient creates a new VscanScannerDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewVscanScannerDeleteParamsWithHTTPClient(client *http.Client) *VscanScannerDeleteParams {
return &VscanScannerDeleteParams{
HTTPClient: client,
}
}
/*
VscanScannerDeleteParams contains all the parameters to send to the API endpoint
for the vscan scanner delete operation.
Typically these are written to a http.Request.
*/
type VscanScannerDeleteParams struct {
// 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 scanner delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanScannerDeleteParams) WithDefaults() *VscanScannerDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the vscan scanner delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *VscanScannerDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the vscan scanner delete params
func (o *VscanScannerDeleteParams) WithTimeout(timeout time.Duration) *VscanScannerDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the vscan scanner delete params
func (o *VscanScannerDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the vscan scanner delete params
func (o *VscanScannerDeleteParams) WithContext(ctx context.Context) *VscanScannerDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the vscan scanner delete params
func (o *VscanScannerDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the vscan scanner delete params
func (o *VscanScannerDeleteParams) WithHTTPClient(client *http.Client) *VscanScannerDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the vscan scanner delete params
func (o *VscanScannerDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithName adds the name to the vscan scanner delete params
func (o *VscanScannerDeleteParams) WithName(name string) *VscanScannerDeleteParams {
o.SetName(name)
return o
}
// SetName adds the name to the vscan scanner delete params
func (o *VscanScannerDeleteParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the vscan scanner delete params
func (o *VscanScannerDeleteParams) WithSvmUUID(svmUUID string) *VscanScannerDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the vscan scanner delete params
func (o *VscanScannerDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *VscanScannerDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// 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
}
| 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_service_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_service_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"
)
// CifsServiceDeleteReader is a Reader for the CifsServiceDelete structure.
type CifsServiceDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsServiceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewCifsServiceDeleteAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsServiceDeleteDefault(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
}
}
// NewCifsServiceDeleteAccepted creates a CifsServiceDeleteAccepted with default headers values
func NewCifsServiceDeleteAccepted() *CifsServiceDeleteAccepted {
return &CifsServiceDeleteAccepted{}
}
/*
CifsServiceDeleteAccepted describes a response with status code 202, with default header values.
Accepted
*/
type CifsServiceDeleteAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this cifs service delete accepted response has a 2xx status code
func (o *CifsServiceDeleteAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs service delete accepted response has a 3xx status code
func (o *CifsServiceDeleteAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs service delete accepted response has a 4xx status code
func (o *CifsServiceDeleteAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs service delete accepted response has a 5xx status code
func (o *CifsServiceDeleteAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this cifs service delete accepted response a status code equal to that given
func (o *CifsServiceDeleteAccepted) IsCode(code int) bool {
return code == 202
}
func (o *CifsServiceDeleteAccepted) Error() string {
return fmt.Sprintf("[DELETE /protocols/cifs/services/{svm.uuid}][%d] cifsServiceDeleteAccepted %+v", 202, o.Payload)
}
func (o *CifsServiceDeleteAccepted) String() string {
return fmt.Sprintf("[DELETE /protocols/cifs/services/{svm.uuid}][%d] cifsServiceDeleteAccepted %+v", 202, o.Payload)
}
func (o *CifsServiceDeleteAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *CifsServiceDeleteAccepted) 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
}
// NewCifsServiceDeleteDefault creates a CifsServiceDeleteDefault with default headers values
func NewCifsServiceDeleteDefault(code int) *CifsServiceDeleteDefault {
return &CifsServiceDeleteDefault{
_statusCode: code,
}
}
/*
CifsServiceDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type CifsServiceDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs service delete default response
func (o *CifsServiceDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs service delete default response has a 2xx status code
func (o *CifsServiceDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs service delete default response has a 3xx status code
func (o *CifsServiceDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs service delete default response has a 4xx status code
func (o *CifsServiceDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs service delete default response has a 5xx status code
func (o *CifsServiceDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs service delete default response a status code equal to that given
func (o *CifsServiceDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsServiceDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/cifs/services/{svm.uuid}][%d] cifs_service_delete default %+v", o._statusCode, o.Payload)
}
func (o *CifsServiceDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/cifs/services/{svm.uuid}][%d] cifs_service_delete default %+v", o._statusCode, o.Payload)
}
func (o *CifsServiceDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsServiceDeleteDefault) 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/policies_and_rules_to_be_applied_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/policies_and_rules_to_be_applied_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"
)
// PoliciesAndRulesToBeAppliedGetReader is a Reader for the PoliciesAndRulesToBeAppliedGet structure.
type PoliciesAndRulesToBeAppliedGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *PoliciesAndRulesToBeAppliedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewPoliciesAndRulesToBeAppliedGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewPoliciesAndRulesToBeAppliedGetDefault(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
}
}
// NewPoliciesAndRulesToBeAppliedGetOK creates a PoliciesAndRulesToBeAppliedGetOK with default headers values
func NewPoliciesAndRulesToBeAppliedGetOK() *PoliciesAndRulesToBeAppliedGetOK {
return &PoliciesAndRulesToBeAppliedGetOK{}
}
/*
PoliciesAndRulesToBeAppliedGetOK describes a response with status code 200, with default header values.
OK
*/
type PoliciesAndRulesToBeAppliedGetOK struct {
Payload *models.PoliciesAndRulesToBeApplied
}
// IsSuccess returns true when this policies and rules to be applied get o k response has a 2xx status code
func (o *PoliciesAndRulesToBeAppliedGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this policies and rules to be applied get o k response has a 3xx status code
func (o *PoliciesAndRulesToBeAppliedGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this policies and rules to be applied get o k response has a 4xx status code
func (o *PoliciesAndRulesToBeAppliedGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this policies and rules to be applied get o k response has a 5xx status code
func (o *PoliciesAndRulesToBeAppliedGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this policies and rules to be applied get o k response a status code equal to that given
func (o *PoliciesAndRulesToBeAppliedGetOK) IsCode(code int) bool {
return code == 200
}
func (o *PoliciesAndRulesToBeAppliedGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}][%d] policiesAndRulesToBeAppliedGetOK %+v", 200, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedGetOK) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}][%d] policiesAndRulesToBeAppliedGetOK %+v", 200, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedGetOK) GetPayload() *models.PoliciesAndRulesToBeApplied {
return o.Payload
}
func (o *PoliciesAndRulesToBeAppliedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.PoliciesAndRulesToBeApplied)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewPoliciesAndRulesToBeAppliedGetDefault creates a PoliciesAndRulesToBeAppliedGetDefault with default headers values
func NewPoliciesAndRulesToBeAppliedGetDefault(code int) *PoliciesAndRulesToBeAppliedGetDefault {
return &PoliciesAndRulesToBeAppliedGetDefault{
_statusCode: code,
}
}
/*
PoliciesAndRulesToBeAppliedGetDefault describes a response with status code -1, with default header values.
Error
*/
type PoliciesAndRulesToBeAppliedGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the policies and rules to be applied get default response
func (o *PoliciesAndRulesToBeAppliedGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this policies and rules to be applied get default response has a 2xx status code
func (o *PoliciesAndRulesToBeAppliedGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this policies and rules to be applied get default response has a 3xx status code
func (o *PoliciesAndRulesToBeAppliedGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this policies and rules to be applied get default response has a 4xx status code
func (o *PoliciesAndRulesToBeAppliedGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this policies and rules to be applied get default response has a 5xx status code
func (o *PoliciesAndRulesToBeAppliedGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this policies and rules to be applied get default response a status code equal to that given
func (o *PoliciesAndRulesToBeAppliedGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *PoliciesAndRulesToBeAppliedGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}][%d] policies_and_rules_to_be_applied_get default %+v", o._statusCode, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/cifs/group-policies/{svm.uuid}][%d] policies_and_rules_to_be_applied_get default %+v", o._statusCode, o.Payload)
}
func (o *PoliciesAndRulesToBeAppliedGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *PoliciesAndRulesToBeAppliedGetDefault) 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_modify_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_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/go-openapi/swag"
"github.com/netapp/trident/storage_drivers/ontap/api/rest/models"
)
// NewFileDirectorySecurityACLModifyParams creates a new FileDirectorySecurityACLModifyParams 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 NewFileDirectorySecurityACLModifyParams() *FileDirectorySecurityACLModifyParams {
return &FileDirectorySecurityACLModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewFileDirectorySecurityACLModifyParamsWithTimeout creates a new FileDirectorySecurityACLModifyParams object
// with the ability to set a timeout on a request.
func NewFileDirectorySecurityACLModifyParamsWithTimeout(timeout time.Duration) *FileDirectorySecurityACLModifyParams {
return &FileDirectorySecurityACLModifyParams{
timeout: timeout,
}
}
// NewFileDirectorySecurityACLModifyParamsWithContext creates a new FileDirectorySecurityACLModifyParams object
// with the ability to set a context for a request.
func NewFileDirectorySecurityACLModifyParamsWithContext(ctx context.Context) *FileDirectorySecurityACLModifyParams {
return &FileDirectorySecurityACLModifyParams{
Context: ctx,
}
}
// NewFileDirectorySecurityACLModifyParamsWithHTTPClient creates a new FileDirectorySecurityACLModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewFileDirectorySecurityACLModifyParamsWithHTTPClient(client *http.Client) *FileDirectorySecurityACLModifyParams {
return &FileDirectorySecurityACLModifyParams{
HTTPClient: client,
}
}
/*
FileDirectorySecurityACLModifyParams contains all the parameters to send to the API endpoint
for the file directory security acl modify operation.
Typically these are written to a http.Request.
*/
type FileDirectorySecurityACLModifyParams struct {
/* Info.
Info specification
*/
Info *models.FileDirectorySecurityACL
/* 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 modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FileDirectorySecurityACLModifyParams) WithDefaults() *FileDirectorySecurityACLModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the file directory security acl modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FileDirectorySecurityACLModifyParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := FileDirectorySecurityACLModifyParams{
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 modify params
func (o *FileDirectorySecurityACLModifyParams) WithTimeout(timeout time.Duration) *FileDirectorySecurityACLModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithContext(ctx context.Context) *FileDirectorySecurityACLModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithHTTPClient(client *http.Client) *FileDirectorySecurityACLModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithInfo(info *models.FileDirectorySecurityACL) *FileDirectorySecurityACLModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetInfo(info *models.FileDirectorySecurityACL) {
o.Info = info
}
// WithPath adds the path to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithPath(path string) *FileDirectorySecurityACLModifyParams {
o.SetPath(path)
return o
}
// SetPath adds the path to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetPath(path string) {
o.Path = path
}
// WithReturnRecords adds the returnRecords to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithReturnRecords(returnRecords *bool) *FileDirectorySecurityACLModifyParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithReturnTimeout(returnTimeout *int64) *FileDirectorySecurityACLModifyParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithSvmUUID(svmUUID string) *FileDirectorySecurityACLModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUser adds the user to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) WithUser(user string) *FileDirectorySecurityACLModifyParams {
o.SetUser(user)
return o
}
// SetUser adds the user to the file directory security acl modify params
func (o *FileDirectorySecurityACLModifyParams) SetUser(user string) {
o.User = user
}
// WriteToRequest writes these params to a swagger request
func (o *FileDirectorySecurityACLModifyParams) 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/file_directory_security_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/file_directory_security_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"
)
// FileDirectorySecurityModifyReader is a Reader for the FileDirectorySecurityModify structure.
type FileDirectorySecurityModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *FileDirectorySecurityModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewFileDirectorySecurityModifyAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewFileDirectorySecurityModifyDefault(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
}
}
// NewFileDirectorySecurityModifyAccepted creates a FileDirectorySecurityModifyAccepted with default headers values
func NewFileDirectorySecurityModifyAccepted() *FileDirectorySecurityModifyAccepted {
return &FileDirectorySecurityModifyAccepted{}
}
/*
FileDirectorySecurityModifyAccepted describes a response with status code 202, with default header values.
Accepted
*/
type FileDirectorySecurityModifyAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this file directory security modify accepted response has a 2xx status code
func (o *FileDirectorySecurityModifyAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this file directory security modify accepted response has a 3xx status code
func (o *FileDirectorySecurityModifyAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this file directory security modify accepted response has a 4xx status code
func (o *FileDirectorySecurityModifyAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this file directory security modify accepted response has a 5xx status code
func (o *FileDirectorySecurityModifyAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this file directory security modify accepted response a status code equal to that given
func (o *FileDirectorySecurityModifyAccepted) IsCode(code int) bool {
return code == 202
}
func (o *FileDirectorySecurityModifyAccepted) Error() string {
return fmt.Sprintf("[PATCH /protocols/file-security/permissions/{svm.uuid}/{path}][%d] fileDirectorySecurityModifyAccepted %+v", 202, o.Payload)
}
func (o *FileDirectorySecurityModifyAccepted) String() string {
return fmt.Sprintf("[PATCH /protocols/file-security/permissions/{svm.uuid}/{path}][%d] fileDirectorySecurityModifyAccepted %+v", 202, o.Payload)
}
func (o *FileDirectorySecurityModifyAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *FileDirectorySecurityModifyAccepted) 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
}
// NewFileDirectorySecurityModifyDefault creates a FileDirectorySecurityModifyDefault with default headers values
func NewFileDirectorySecurityModifyDefault(code int) *FileDirectorySecurityModifyDefault {
return &FileDirectorySecurityModifyDefault{
_statusCode: code,
}
}
/*
FileDirectorySecurityModifyDefault describes a response with status code -1, with default header values.
Error
*/
type FileDirectorySecurityModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the file directory security modify default response
func (o *FileDirectorySecurityModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this file directory security modify default response has a 2xx status code
func (o *FileDirectorySecurityModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this file directory security modify default response has a 3xx status code
func (o *FileDirectorySecurityModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this file directory security modify default response has a 4xx status code
func (o *FileDirectorySecurityModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this file directory security modify default response has a 5xx status code
func (o *FileDirectorySecurityModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this file directory security modify default response a status code equal to that given
func (o *FileDirectorySecurityModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *FileDirectorySecurityModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/file-security/permissions/{svm.uuid}/{path}][%d] file_directory_security_modify default %+v", o._statusCode, o.Payload)
}
func (o *FileDirectorySecurityModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/file-security/permissions/{svm.uuid}/{path}][%d] file_directory_security_modify default %+v", o._statusCode, o.Payload)
}
func (o *FileDirectorySecurityModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *FileDirectorySecurityModifyDefault) 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/export_rule_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/export_rule_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"
)
// NewExportRuleGetParams creates a new ExportRuleGetParams 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 NewExportRuleGetParams() *ExportRuleGetParams {
return &ExportRuleGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewExportRuleGetParamsWithTimeout creates a new ExportRuleGetParams object
// with the ability to set a timeout on a request.
func NewExportRuleGetParamsWithTimeout(timeout time.Duration) *ExportRuleGetParams {
return &ExportRuleGetParams{
timeout: timeout,
}
}
// NewExportRuleGetParamsWithContext creates a new ExportRuleGetParams object
// with the ability to set a context for a request.
func NewExportRuleGetParamsWithContext(ctx context.Context) *ExportRuleGetParams {
return &ExportRuleGetParams{
Context: ctx,
}
}
// NewExportRuleGetParamsWithHTTPClient creates a new ExportRuleGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewExportRuleGetParamsWithHTTPClient(client *http.Client) *ExportRuleGetParams {
return &ExportRuleGetParams{
HTTPClient: client,
}
}
/*
ExportRuleGetParams contains all the parameters to send to the API endpoint
for the export rule get operation.
Typically these are written to a http.Request.
*/
type ExportRuleGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Index.
Export Rule Index
*/
Index int64
/* PolicyID.
Export Policy ID
*/
PolicyID int64
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the export rule get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportRuleGetParams) WithDefaults() *ExportRuleGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the export rule get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ExportRuleGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the export rule get params
func (o *ExportRuleGetParams) WithTimeout(timeout time.Duration) *ExportRuleGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the export rule get params
func (o *ExportRuleGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the export rule get params
func (o *ExportRuleGetParams) WithContext(ctx context.Context) *ExportRuleGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the export rule get params
func (o *ExportRuleGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the export rule get params
func (o *ExportRuleGetParams) WithHTTPClient(client *http.Client) *ExportRuleGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the export rule get params
func (o *ExportRuleGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the export rule get params
func (o *ExportRuleGetParams) WithFields(fields []string) *ExportRuleGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the export rule get params
func (o *ExportRuleGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIndex adds the index to the export rule get params
func (o *ExportRuleGetParams) WithIndex(index int64) *ExportRuleGetParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the export rule get params
func (o *ExportRuleGetParams) SetIndex(index int64) {
o.Index = index
}
// WithPolicyID adds the policyID to the export rule get params
func (o *ExportRuleGetParams) WithPolicyID(policyID int64) *ExportRuleGetParams {
o.SetPolicyID(policyID)
return o
}
// SetPolicyID adds the policyId to the export rule get params
func (o *ExportRuleGetParams) SetPolicyID(policyID int64) {
o.PolicyID = policyID
}
// WriteToRequest writes these params to a swagger request
func (o *ExportRuleGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param index
if err := r.SetPathParam("index", swag.FormatInt64(o.Index)); err != nil {
return err
}
// path param policy.id
if err := r.SetPathParam("policy.id", swag.FormatInt64(o.PolicyID)); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamExportRuleGet binds the parameter fields
func (o *ExportRuleGetParams) 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/fpolicy_engine_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/fpolicy_engine_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"
)
// NewFpolicyEngineModifyParams creates a new FpolicyEngineModifyParams 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 NewFpolicyEngineModifyParams() *FpolicyEngineModifyParams {
return &FpolicyEngineModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewFpolicyEngineModifyParamsWithTimeout creates a new FpolicyEngineModifyParams object
// with the ability to set a timeout on a request.
func NewFpolicyEngineModifyParamsWithTimeout(timeout time.Duration) *FpolicyEngineModifyParams {
return &FpolicyEngineModifyParams{
timeout: timeout,
}
}
// NewFpolicyEngineModifyParamsWithContext creates a new FpolicyEngineModifyParams object
// with the ability to set a context for a request.
func NewFpolicyEngineModifyParamsWithContext(ctx context.Context) *FpolicyEngineModifyParams {
return &FpolicyEngineModifyParams{
Context: ctx,
}
}
// NewFpolicyEngineModifyParamsWithHTTPClient creates a new FpolicyEngineModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewFpolicyEngineModifyParamsWithHTTPClient(client *http.Client) *FpolicyEngineModifyParams {
return &FpolicyEngineModifyParams{
HTTPClient: client,
}
}
/*
FpolicyEngineModifyParams contains all the parameters to send to the API endpoint
for the fpolicy engine modify operation.
Typically these are written to a http.Request.
*/
type FpolicyEngineModifyParams struct {
/* Info.
Info specification
*/
Info *models.FpolicyEngine
// 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 modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyEngineModifyParams) WithDefaults() *FpolicyEngineModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the fpolicy engine modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *FpolicyEngineModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) WithTimeout(timeout time.Duration) *FpolicyEngineModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) WithContext(ctx context.Context) *FpolicyEngineModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) WithHTTPClient(client *http.Client) *FpolicyEngineModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) WithInfo(info *models.FpolicyEngine) *FpolicyEngineModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) SetInfo(info *models.FpolicyEngine) {
o.Info = info
}
// WithName adds the name to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) WithName(name string) *FpolicyEngineModifyParams {
o.SetName(name)
return o
}
// SetName adds the name to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) WithSvmUUID(svmUUID string) *FpolicyEngineModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the fpolicy engine modify params
func (o *FpolicyEngineModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *FpolicyEngineModifyParams) 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 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
}
| 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/active_directory_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"
)
// ActiveDirectoryModifyReader is a Reader for the ActiveDirectoryModify structure.
type ActiveDirectoryModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ActiveDirectoryModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewActiveDirectoryModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewActiveDirectoryModifyDefault(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
}
}
// NewActiveDirectoryModifyOK creates a ActiveDirectoryModifyOK with default headers values
func NewActiveDirectoryModifyOK() *ActiveDirectoryModifyOK {
return &ActiveDirectoryModifyOK{}
}
/*
ActiveDirectoryModifyOK describes a response with status code 200, with default header values.
OK
*/
type ActiveDirectoryModifyOK struct {
Payload *models.ActiveDirectory
}
// IsSuccess returns true when this active directory modify o k response has a 2xx status code
func (o *ActiveDirectoryModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this active directory modify o k response has a 3xx status code
func (o *ActiveDirectoryModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this active directory modify o k response has a 4xx status code
func (o *ActiveDirectoryModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this active directory modify o k response has a 5xx status code
func (o *ActiveDirectoryModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this active directory modify o k response a status code equal to that given
func (o *ActiveDirectoryModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *ActiveDirectoryModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/active-directory/{svm.uuid}][%d] activeDirectoryModifyOK %+v", 200, o.Payload)
}
func (o *ActiveDirectoryModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/active-directory/{svm.uuid}][%d] activeDirectoryModifyOK %+v", 200, o.Payload)
}
func (o *ActiveDirectoryModifyOK) GetPayload() *models.ActiveDirectory {
return o.Payload
}
func (o *ActiveDirectoryModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ActiveDirectory)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewActiveDirectoryModifyDefault creates a ActiveDirectoryModifyDefault with default headers values
func NewActiveDirectoryModifyDefault(code int) *ActiveDirectoryModifyDefault {
return &ActiveDirectoryModifyDefault{
_statusCode: code,
}
}
/*
ActiveDirectoryModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 656464 | Failed to modify the Active Directory machine account. Reason: Invalid Credentials. |
| 656465 | Failed to modify the Active Directory machine account. Reason: Account with same name already exists. |
| 656466 | Failed to modify the Active Directory machine account. Reason: Domain Controller is not reachable or does not exist. |
| 656467 | Failed to modify the Active Directory machine account. Reason: Organizational-Unit not found. |
*/
type ActiveDirectoryModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the active directory modify default response
func (o *ActiveDirectoryModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this active directory modify default response has a 2xx status code
func (o *ActiveDirectoryModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this active directory modify default response has a 3xx status code
func (o *ActiveDirectoryModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this active directory modify default response has a 4xx status code
func (o *ActiveDirectoryModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this active directory modify default response has a 5xx status code
func (o *ActiveDirectoryModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this active directory modify default response a status code equal to that given
func (o *ActiveDirectoryModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ActiveDirectoryModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/active-directory/{svm.uuid}][%d] active_directory_modify default %+v", o._statusCode, o.Payload)
}
func (o *ActiveDirectoryModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/active-directory/{svm.uuid}][%d] active_directory_modify default %+v", o._statusCode, o.Payload)
}
func (o *ActiveDirectoryModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ActiveDirectoryModifyDefault) 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/s3_audit_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/s3_audit_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"
)
// S3AuditGetReader is a Reader for the S3AuditGet structure.
type S3AuditGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3AuditGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3AuditGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3AuditGetDefault(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
}
}
// NewS3AuditGetOK creates a S3AuditGetOK with default headers values
func NewS3AuditGetOK() *S3AuditGetOK {
return &S3AuditGetOK{}
}
/*
S3AuditGetOK describes a response with status code 200, with default header values.
OK
*/
type S3AuditGetOK struct {
Payload *models.S3Audit
}
// IsSuccess returns true when this s3 audit get o k response has a 2xx status code
func (o *S3AuditGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 audit get o k response has a 3xx status code
func (o *S3AuditGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 audit get o k response has a 4xx status code
func (o *S3AuditGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 audit get o k response has a 5xx status code
func (o *S3AuditGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 audit get o k response a status code equal to that given
func (o *S3AuditGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3AuditGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/audit/{svm.uuid}/object-store][%d] s3AuditGetOK %+v", 200, o.Payload)
}
func (o *S3AuditGetOK) String() string {
return fmt.Sprintf("[GET /protocols/audit/{svm.uuid}/object-store][%d] s3AuditGetOK %+v", 200, o.Payload)
}
func (o *S3AuditGetOK) GetPayload() *models.S3Audit {
return o.Payload
}
func (o *S3AuditGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3Audit)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3AuditGetDefault creates a S3AuditGetDefault with default headers values
func NewS3AuditGetDefault(code int) *S3AuditGetDefault {
return &S3AuditGetDefault{
_statusCode: code,
}
}
/*
S3AuditGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3AuditGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 audit get default response
func (o *S3AuditGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 audit get default response has a 2xx status code
func (o *S3AuditGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 audit get default response has a 3xx status code
func (o *S3AuditGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 audit get default response has a 4xx status code
func (o *S3AuditGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 audit get default response has a 5xx status code
func (o *S3AuditGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 audit get default response a status code equal to that given
func (o *S3AuditGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3AuditGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/audit/{svm.uuid}/object-store][%d] s3_audit_get default %+v", o._statusCode, o.Payload)
}
func (o *S3AuditGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/audit/{svm.uuid}/object-store][%d] s3_audit_get default %+v", o._statusCode, o.Payload)
}
func (o *S3AuditGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3AuditGetDefault) 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_share_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/n_a_s/cifs_share_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"
)
// CifsShareCreateReader is a Reader for the CifsShareCreate structure.
type CifsShareCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CifsShareCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewCifsShareCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCifsShareCreateDefault(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
}
}
// NewCifsShareCreateCreated creates a CifsShareCreateCreated with default headers values
func NewCifsShareCreateCreated() *CifsShareCreateCreated {
return &CifsShareCreateCreated{}
}
/*
CifsShareCreateCreated describes a response with status code 201, with default header values.
Created
*/
type CifsShareCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
}
// IsSuccess returns true when this cifs share create created response has a 2xx status code
func (o *CifsShareCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cifs share create created response has a 3xx status code
func (o *CifsShareCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this cifs share create created response has a 4xx status code
func (o *CifsShareCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this cifs share create created response has a 5xx status code
func (o *CifsShareCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this cifs share create created response a status code equal to that given
func (o *CifsShareCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *CifsShareCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/cifs/shares][%d] cifsShareCreateCreated ", 201)
}
func (o *CifsShareCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/cifs/shares][%d] cifsShareCreateCreated ", 201)
}
func (o *CifsShareCreateCreated) 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
}
// NewCifsShareCreateDefault creates a CifsShareCreateDefault with default headers values
func NewCifsShareCreateDefault(code int) *CifsShareCreateDefault {
return &CifsShareCreateDefault{
_statusCode: code,
}
}
/*
CifsShareCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 655628 | CIFS Share Creation with property 'SMB_ENCRYPTION' failed because the CIFS server does not support SMB3.0 |
| 655551 | CIFS Share Creation failed because the specified path does not exist |
| 655577 | The CIFS share name cannot be more than 80 characters long |
| 655399 | Failed to create CIFS share. The CIFS server does not exist for specified SVM |
| 656422 | Failed to create the home directory share because the directory shares must specify a path relative to one or more home directory search paths |
| 656423 | Failed to create CIFS share. The Shares must define an absolute share path |
| 656424 | Failed to create CIFS the administrator share 'c$' because you are not permitted to created any admin shares |
| 655625 | Failed to create CIFS share. The Shares path is not a valid file-type for CIFS share |
| 656426 | CIFS Share Creation failed because the share name is invalid |
| 655655 | no-strict-security should be set to true only if unix_symlink is configured as "local" or "widelink" |
| 655394 | Failed to create CIFS share because share cannot be made continuously available unless running SMB3 or later. |
| 4849678 | Failed to create CIFS share because the specified UNIX group does not exist |
*/
type CifsShareCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cifs share create default response
func (o *CifsShareCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cifs share create default response has a 2xx status code
func (o *CifsShareCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cifs share create default response has a 3xx status code
func (o *CifsShareCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cifs share create default response has a 4xx status code
func (o *CifsShareCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cifs share create default response has a 5xx status code
func (o *CifsShareCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cifs share create default response a status code equal to that given
func (o *CifsShareCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CifsShareCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/cifs/shares][%d] cifs_share_create default %+v", o._statusCode, o.Payload)
}
func (o *CifsShareCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/cifs/shares][%d] cifs_share_create default %+v", o._statusCode, o.Payload)
}
func (o *CifsShareCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CifsShareCreateDefault) 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.