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/security/account_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // AccountCreateReader is a Reader for the AccountCreate structure. type AccountCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *AccountCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewAccountCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewAccountCreateDefault(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 } } // NewAccountCreateCreated creates a AccountCreateCreated with default headers values func NewAccountCreateCreated() *AccountCreateCreated { return &AccountCreateCreated{} } /* AccountCreateCreated describes a response with status code 201, with default header values. Created */ type AccountCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this account create created response has a 2xx status code func (o *AccountCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this account create created response has a 3xx status code func (o *AccountCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this account create created response has a 4xx status code func (o *AccountCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this account create created response has a 5xx status code func (o *AccountCreateCreated) IsServerError() bool { return false } // IsCode returns true when this account create created response a status code equal to that given func (o *AccountCreateCreated) IsCode(code int) bool { return code == 201 } func (o *AccountCreateCreated) Error() string { return fmt.Sprintf("[POST /security/accounts][%d] accountCreateCreated ", 201) } func (o *AccountCreateCreated) String() string { return fmt.Sprintf("[POST /security/accounts][%d] accountCreateCreated ", 201) } func (o *AccountCreateCreated) 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 } // NewAccountCreateDefault creates a AccountCreateDefault with default headers values func NewAccountCreateDefault(code int) *AccountCreateDefault { return &AccountCreateDefault{ _statusCode: code, } } /* AccountCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1261215 | The role was not found. | | 1263343 | Cannot lock user with password not set or non-password authentication method. | | 5636099 | User creation with a non-admin role is not supported for service-processor application. | | 5636121 | The user account name is reserved for use by the system. | | 5636126 | Cannot create a user with the username or role as AutoSupport because it is reserved by the system. | | 5636140 | Creating a login with application console for a data Vserver is not supported. | | 5636141 | Creating a login with application service-processor for a data Vserver is not supported. | | 5636154 | The second-authentication-method parameter is supported for ssh application. | | 5636155 | The second-authentication-method parameter can be specified only if the authentication-method password or public key nsswitch. | | 5636156 | The same value cannot be specified for the second-authentication-method and the authentication-method. | | 5636157 | If the authentication-method is domain, the second-authentication-method cannot be specified. | | 5636164 | If the value for either the authentication-method second-authentication-method is nsswitch or password, the other parameter must differ. | | 5636197 | LDAP fastbind combination for application and authentication method is not supported. | | 5636198 | LDAP fastbind authentication is supported only for nsswitch. | | 7077897 | Invalid character in username. | | 7077898 | The username must contain both letters and numbers. | | 7077899 | The username does not meet length requirements. | | 7077906 | A role with that name has not been defined for the Vserver. | | 7077918 | The password cannot contain the username. | | 7077919 | The minimum length for new password does not meet the policy. | | 7077920 | A new password must have both letters and numbers. | | 7077921 | The minimum number of special characters required do not meet the policy. | | 7077929 | Cannot lock user with password not set or non-password authentication method. | | 7077940 | The password exceeds the maximum supported length. | | 7077941 | The defined password composition exceeds the maximum password length of 128 characters. | | 7078900 | An admin password is not set. Set the password by including it in the request. | */ type AccountCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the account create default response func (o *AccountCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this account create default response has a 2xx status code func (o *AccountCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this account create default response has a 3xx status code func (o *AccountCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this account create default response has a 4xx status code func (o *AccountCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this account create default response has a 5xx status code func (o *AccountCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this account create default response a status code equal to that given func (o *AccountCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *AccountCreateDefault) Error() string { return fmt.Sprintf("[POST /security/accounts][%d] account_create default %+v", o._statusCode, o.Payload) } func (o *AccountCreateDefault) String() string { return fmt.Sprintf("[POST /security/accounts][%d] account_create default %+v", o._statusCode, o.Payload) } func (o *AccountCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *AccountCreateDefault) 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/security/multi_admin_verify_request_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_request_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // MultiAdminVerifyRequestGetReader is a Reader for the MultiAdminVerifyRequestGet structure. type MultiAdminVerifyRequestGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MultiAdminVerifyRequestGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMultiAdminVerifyRequestGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMultiAdminVerifyRequestGetDefault(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 } } // NewMultiAdminVerifyRequestGetOK creates a MultiAdminVerifyRequestGetOK with default headers values func NewMultiAdminVerifyRequestGetOK() *MultiAdminVerifyRequestGetOK { return &MultiAdminVerifyRequestGetOK{} } /* MultiAdminVerifyRequestGetOK describes a response with status code 200, with default header values. OK */ type MultiAdminVerifyRequestGetOK struct { Payload *models.MultiAdminVerifyRequest } // IsSuccess returns true when this multi admin verify request get o k response has a 2xx status code func (o *MultiAdminVerifyRequestGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this multi admin verify request get o k response has a 3xx status code func (o *MultiAdminVerifyRequestGetOK) IsRedirect() bool { return false } // IsClientError returns true when this multi admin verify request get o k response has a 4xx status code func (o *MultiAdminVerifyRequestGetOK) IsClientError() bool { return false } // IsServerError returns true when this multi admin verify request get o k response has a 5xx status code func (o *MultiAdminVerifyRequestGetOK) IsServerError() bool { return false } // IsCode returns true when this multi admin verify request get o k response a status code equal to that given func (o *MultiAdminVerifyRequestGetOK) IsCode(code int) bool { return code == 200 } func (o *MultiAdminVerifyRequestGetOK) Error() string { return fmt.Sprintf("[GET /security/multi-admin-verify/requests/{index}][%d] multiAdminVerifyRequestGetOK %+v", 200, o.Payload) } func (o *MultiAdminVerifyRequestGetOK) String() string { return fmt.Sprintf("[GET /security/multi-admin-verify/requests/{index}][%d] multiAdminVerifyRequestGetOK %+v", 200, o.Payload) } func (o *MultiAdminVerifyRequestGetOK) GetPayload() *models.MultiAdminVerifyRequest { return o.Payload } func (o *MultiAdminVerifyRequestGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MultiAdminVerifyRequest) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMultiAdminVerifyRequestGetDefault creates a MultiAdminVerifyRequestGetDefault with default headers values func NewMultiAdminVerifyRequestGetDefault(code int) *MultiAdminVerifyRequestGetDefault { return &MultiAdminVerifyRequestGetDefault{ _statusCode: code, } } /* MultiAdminVerifyRequestGetDefault describes a response with status code -1, with default header values. Error */ type MultiAdminVerifyRequestGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the multi admin verify request get default response func (o *MultiAdminVerifyRequestGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this multi admin verify request get default response has a 2xx status code func (o *MultiAdminVerifyRequestGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this multi admin verify request get default response has a 3xx status code func (o *MultiAdminVerifyRequestGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this multi admin verify request get default response has a 4xx status code func (o *MultiAdminVerifyRequestGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this multi admin verify request get default response has a 5xx status code func (o *MultiAdminVerifyRequestGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this multi admin verify request get default response a status code equal to that given func (o *MultiAdminVerifyRequestGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MultiAdminVerifyRequestGetDefault) Error() string { return fmt.Sprintf("[GET /security/multi-admin-verify/requests/{index}][%d] multi_admin_verify_request_get default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRequestGetDefault) String() string { return fmt.Sprintf("[GET /security/multi-admin-verify/requests/{index}][%d] multi_admin_verify_request_get default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRequestGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MultiAdminVerifyRequestGetDefault) 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/security/account_password_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_password_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAccountPasswordCreateParams creates a new AccountPasswordCreateParams 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 NewAccountPasswordCreateParams() *AccountPasswordCreateParams { return &AccountPasswordCreateParams{ timeout: cr.DefaultTimeout, } } // NewAccountPasswordCreateParamsWithTimeout creates a new AccountPasswordCreateParams object // with the ability to set a timeout on a request. func NewAccountPasswordCreateParamsWithTimeout(timeout time.Duration) *AccountPasswordCreateParams { return &AccountPasswordCreateParams{ timeout: timeout, } } // NewAccountPasswordCreateParamsWithContext creates a new AccountPasswordCreateParams object // with the ability to set a context for a request. func NewAccountPasswordCreateParamsWithContext(ctx context.Context) *AccountPasswordCreateParams { return &AccountPasswordCreateParams{ Context: ctx, } } // NewAccountPasswordCreateParamsWithHTTPClient creates a new AccountPasswordCreateParams object // with the ability to set a custom HTTPClient for a request. func NewAccountPasswordCreateParamsWithHTTPClient(client *http.Client) *AccountPasswordCreateParams { return &AccountPasswordCreateParams{ HTTPClient: client, } } /* AccountPasswordCreateParams contains all the parameters to send to the API endpoint for the account password create operation. Typically these are written to a http.Request. */ type AccountPasswordCreateParams struct { /* Info. New password for the user account. */ Info *models.AccountPassword /* 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 account password create params (not the query body). // // All values with no default are reset to their zero value. func (o *AccountPasswordCreateParams) WithDefaults() *AccountPasswordCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the account password create params (not the query body). // // All values with no default are reset to their zero value. func (o *AccountPasswordCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := AccountPasswordCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the account password create params func (o *AccountPasswordCreateParams) WithTimeout(timeout time.Duration) *AccountPasswordCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the account password create params func (o *AccountPasswordCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the account password create params func (o *AccountPasswordCreateParams) WithContext(ctx context.Context) *AccountPasswordCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the account password create params func (o *AccountPasswordCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the account password create params func (o *AccountPasswordCreateParams) WithHTTPClient(client *http.Client) *AccountPasswordCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the account password create params func (o *AccountPasswordCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the account password create params func (o *AccountPasswordCreateParams) WithInfo(info *models.AccountPassword) *AccountPasswordCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the account password create params func (o *AccountPasswordCreateParams) SetInfo(info *models.AccountPassword) { o.Info = info } // WithReturnRecords adds the returnRecords to the account password create params func (o *AccountPasswordCreateParams) WithReturnRecords(returnRecords *bool) *AccountPasswordCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the account password create params func (o *AccountPasswordCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *AccountPasswordCreateParams) 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/security/security_key_manager_migrate_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_migrate_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "fmt" "io" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" ) // SecurityKeyManagerMigrateReader is a Reader for the SecurityKeyManagerMigrate structure. type SecurityKeyManagerMigrateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityKeyManagerMigrateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewSecurityKeyManagerMigrateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityKeyManagerMigrateDefault(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 } } // NewSecurityKeyManagerMigrateAccepted creates a SecurityKeyManagerMigrateAccepted with default headers values func NewSecurityKeyManagerMigrateAccepted() *SecurityKeyManagerMigrateAccepted { return &SecurityKeyManagerMigrateAccepted{} } /* SecurityKeyManagerMigrateAccepted describes a response with status code 202, with default header values. Accepted */ type SecurityKeyManagerMigrateAccepted struct { Payload *models.JobLinkResponse } // IsSuccess returns true when this security key manager migrate accepted response has a 2xx status code func (o *SecurityKeyManagerMigrateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this security key manager migrate accepted response has a 3xx status code func (o *SecurityKeyManagerMigrateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this security key manager migrate accepted response has a 4xx status code func (o *SecurityKeyManagerMigrateAccepted) IsClientError() bool { return false } // IsServerError returns true when this security key manager migrate accepted response has a 5xx status code func (o *SecurityKeyManagerMigrateAccepted) IsServerError() bool { return false } // IsCode returns true when this security key manager migrate accepted response a status code equal to that given func (o *SecurityKeyManagerMigrateAccepted) IsCode(code int) bool { return code == 202 } func (o *SecurityKeyManagerMigrateAccepted) Error() string { return fmt.Sprintf("[POST /security/key-managers/{source.uuid}/migrate][%d] securityKeyManagerMigrateAccepted %+v", 202, o.Payload) } func (o *SecurityKeyManagerMigrateAccepted) String() string { return fmt.Sprintf("[POST /security/key-managers/{source.uuid}/migrate][%d] securityKeyManagerMigrateAccepted %+v", 202, o.Payload) } func (o *SecurityKeyManagerMigrateAccepted) GetPayload() *models.JobLinkResponse { return o.Payload } func (o *SecurityKeyManagerMigrateAccepted) 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 } // NewSecurityKeyManagerMigrateDefault creates a SecurityKeyManagerMigrateDefault with default headers values func NewSecurityKeyManagerMigrateDefault(code int) *SecurityKeyManagerMigrateDefault { return &SecurityKeyManagerMigrateDefault{ _statusCode: code, } } /* SecurityKeyManagerMigrateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65536886 | The specified migration option is not supported in this release. | | 65536959 | The source-uuid and UUID must be different values. | | 65536968 | Check that all nodes of the cluster are healthy and retry the operation. | | 65537117 | The migrate operation cannot be started because a UUID cannot be converted to an SVM name. | | 65537117 | Cannot start migration because a key manager referenced by a provided UUID does not exist. | | 65537551 | Top-level internal key protection key (KEK) is unavailable on one or more nodes. | | 65537552 | Embedded KMIP server status is not available. | | 65537564 | Check that the Azure Key Vault Service is healthy and retry the operation. | | 65537720 | Failed to configure the Google Cloud Key Management Service for an SVM because a key manager is already configured. | | 65537736 | Check that the Google Cloud Key Management Service is healthy and retry the operation. | | 65538107 | Key migration to an IBM Key Lore key manager is not supported. | */ type SecurityKeyManagerMigrateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security key manager migrate default response func (o *SecurityKeyManagerMigrateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security key manager migrate default response has a 2xx status code func (o *SecurityKeyManagerMigrateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security key manager migrate default response has a 3xx status code func (o *SecurityKeyManagerMigrateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security key manager migrate default response has a 4xx status code func (o *SecurityKeyManagerMigrateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security key manager migrate default response has a 5xx status code func (o *SecurityKeyManagerMigrateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security key manager migrate default response a status code equal to that given func (o *SecurityKeyManagerMigrateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityKeyManagerMigrateDefault) Error() string { return fmt.Sprintf("[POST /security/key-managers/{source.uuid}/migrate][%d] security_key_manager_migrate default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerMigrateDefault) String() string { return fmt.Sprintf("[POST /security/key-managers/{source.uuid}/migrate][%d] security_key_manager_migrate default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerMigrateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityKeyManagerMigrateDefault) 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 } /* SecurityKeyManagerMigrateBody Migration destination key manager UUID swagger:model SecurityKeyManagerMigrateBody */ type SecurityKeyManagerMigrateBody struct { // links Links *SecurityKeyManagerMigrateParamsBodyLinks `json:"_links,omitempty"` // Key manager UUID // Example: 1cd8a442-86d1-11e0-ae1c-123478563434 UUID string `json:"uuid,omitempty"` } // Validate validates this security key manager migrate body func (o *SecurityKeyManagerMigrateBody) Validate(formats strfmt.Registry) error { var res []error if err := o.validateLinks(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (o *SecurityKeyManagerMigrateBody) validateLinks(formats strfmt.Registry) error { if swag.IsZero(o.Links) { // not required return nil } if o.Links != nil { if err := o.Links.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info" + "." + "_links") } return err } } return nil } // ContextValidate validate this security key manager migrate body based on the context it is used func (o *SecurityKeyManagerMigrateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := o.contextValidateLinks(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (o *SecurityKeyManagerMigrateBody) contextValidateLinks(ctx context.Context, formats strfmt.Registry) error { if o.Links != nil { if err := o.Links.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info" + "." + "_links") } return err } } return nil } // MarshalBinary interface implementation func (o *SecurityKeyManagerMigrateBody) MarshalBinary() ([]byte, error) { if o == nil { return nil, nil } return swag.WriteJSON(o) } // UnmarshalBinary interface implementation func (o *SecurityKeyManagerMigrateBody) UnmarshalBinary(b []byte) error { var res SecurityKeyManagerMigrateBody if err := swag.ReadJSON(b, &res); err != nil { return err } *o = res return nil } /* SecurityKeyManagerMigrateParamsBodyLinks security key manager migrate params body links swagger:model SecurityKeyManagerMigrateParamsBodyLinks */ type SecurityKeyManagerMigrateParamsBodyLinks struct { // self Self *models.Href `json:"self,omitempty"` } // Validate validates this security key manager migrate params body links func (o *SecurityKeyManagerMigrateParamsBodyLinks) Validate(formats strfmt.Registry) error { var res []error if err := o.validateSelf(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (o *SecurityKeyManagerMigrateParamsBodyLinks) validateSelf(formats strfmt.Registry) error { if swag.IsZero(o.Self) { // not required return nil } if o.Self != nil { if err := o.Self.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info" + "." + "_links" + "." + "self") } return err } } return nil } // ContextValidate validate this security key manager migrate params body links based on the context it is used func (o *SecurityKeyManagerMigrateParamsBodyLinks) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := o.contextValidateSelf(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (o *SecurityKeyManagerMigrateParamsBodyLinks) contextValidateSelf(ctx context.Context, formats strfmt.Registry) error { if o.Self != nil { if err := o.Self.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("info" + "." + "_links" + "." + "self") } return err } } return nil } // MarshalBinary interface implementation func (o *SecurityKeyManagerMigrateParamsBodyLinks) MarshalBinary() ([]byte, error) { if o == nil { return nil, nil } return swag.WriteJSON(o) } // UnmarshalBinary interface implementation func (o *SecurityKeyManagerMigrateParamsBodyLinks) UnmarshalBinary(b []byte) error { var res SecurityKeyManagerMigrateParamsBodyLinks if err := swag.ReadJSON(b, &res); err != nil { return err } *o = 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/security/security_log_forwarding_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityLogForwardingGetParams creates a new SecurityLogForwardingGetParams 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 NewSecurityLogForwardingGetParams() *SecurityLogForwardingGetParams { return &SecurityLogForwardingGetParams{ timeout: cr.DefaultTimeout, } } // NewSecurityLogForwardingGetParamsWithTimeout creates a new SecurityLogForwardingGetParams object // with the ability to set a timeout on a request. func NewSecurityLogForwardingGetParamsWithTimeout(timeout time.Duration) *SecurityLogForwardingGetParams { return &SecurityLogForwardingGetParams{ timeout: timeout, } } // NewSecurityLogForwardingGetParamsWithContext creates a new SecurityLogForwardingGetParams object // with the ability to set a context for a request. func NewSecurityLogForwardingGetParamsWithContext(ctx context.Context) *SecurityLogForwardingGetParams { return &SecurityLogForwardingGetParams{ Context: ctx, } } // NewSecurityLogForwardingGetParamsWithHTTPClient creates a new SecurityLogForwardingGetParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityLogForwardingGetParamsWithHTTPClient(client *http.Client) *SecurityLogForwardingGetParams { return &SecurityLogForwardingGetParams{ HTTPClient: client, } } /* SecurityLogForwardingGetParams contains all the parameters to send to the API endpoint for the security log forwarding get operation. Typically these are written to a http.Request. */ type SecurityLogForwardingGetParams struct { /* Address. IP address of remote syslog/splunk server. */ Address string /* Fields. Specify the fields to return. */ Fields []string /* Port. Port number of remote syslog/splunk server. */ Port int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the security log forwarding get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityLogForwardingGetParams) WithDefaults() *SecurityLogForwardingGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security log forwarding get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityLogForwardingGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the security log forwarding get params func (o *SecurityLogForwardingGetParams) WithTimeout(timeout time.Duration) *SecurityLogForwardingGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security log forwarding get params func (o *SecurityLogForwardingGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security log forwarding get params func (o *SecurityLogForwardingGetParams) WithContext(ctx context.Context) *SecurityLogForwardingGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the security log forwarding get params func (o *SecurityLogForwardingGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security log forwarding get params func (o *SecurityLogForwardingGetParams) WithHTTPClient(client *http.Client) *SecurityLogForwardingGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security log forwarding get params func (o *SecurityLogForwardingGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAddress adds the address to the security log forwarding get params func (o *SecurityLogForwardingGetParams) WithAddress(address string) *SecurityLogForwardingGetParams { o.SetAddress(address) return o } // SetAddress adds the address to the security log forwarding get params func (o *SecurityLogForwardingGetParams) SetAddress(address string) { o.Address = address } // WithFields adds the fields to the security log forwarding get params func (o *SecurityLogForwardingGetParams) WithFields(fields []string) *SecurityLogForwardingGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the security log forwarding get params func (o *SecurityLogForwardingGetParams) SetFields(fields []string) { o.Fields = fields } // WithPort adds the port to the security log forwarding get params func (o *SecurityLogForwardingGetParams) WithPort(port int64) *SecurityLogForwardingGetParams { o.SetPort(port) return o } // SetPort adds the port to the security log forwarding get params func (o *SecurityLogForwardingGetParams) SetPort(port int64) { o.Port = port } // WriteToRequest writes these params to a swagger request func (o *SecurityLogForwardingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param address if err := r.SetPathParam("address", o.Address); 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 port if err := r.SetPathParam("port", swag.FormatInt64(o.Port)); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSecurityLogForwardingGet binds the parameter fields func (o *SecurityLogForwardingGetParams) 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/security/publickey_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/publickey_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // PublickeyCreateReader is a Reader for the PublickeyCreate structure. type PublickeyCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *PublickeyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewPublickeyCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewPublickeyCreateDefault(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 } } // NewPublickeyCreateCreated creates a PublickeyCreateCreated with default headers values func NewPublickeyCreateCreated() *PublickeyCreateCreated { return &PublickeyCreateCreated{} } /* PublickeyCreateCreated describes a response with status code 201, with default header values. Created */ type PublickeyCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this publickey create created response has a 2xx status code func (o *PublickeyCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this publickey create created response has a 3xx status code func (o *PublickeyCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this publickey create created response has a 4xx status code func (o *PublickeyCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this publickey create created response has a 5xx status code func (o *PublickeyCreateCreated) IsServerError() bool { return false } // IsCode returns true when this publickey create created response a status code equal to that given func (o *PublickeyCreateCreated) IsCode(code int) bool { return code == 201 } func (o *PublickeyCreateCreated) Error() string { return fmt.Sprintf("[POST /security/authentication/publickeys][%d] publickeyCreateCreated ", 201) } func (o *PublickeyCreateCreated) String() string { return fmt.Sprintf("[POST /security/authentication/publickeys][%d] publickeyCreateCreated ", 201) } func (o *PublickeyCreateCreated) 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 } // NewPublickeyCreateDefault creates a PublickeyCreateDefault with default headers values func NewPublickeyCreateDefault(code int) *PublickeyCreateDefault { return &PublickeyCreateDefault{ _statusCode: code, } } /* PublickeyCreateDefault describes a response with status code -1, with default header values. Error */ type PublickeyCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the publickey create default response func (o *PublickeyCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this publickey create default response has a 2xx status code func (o *PublickeyCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this publickey create default response has a 3xx status code func (o *PublickeyCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this publickey create default response has a 4xx status code func (o *PublickeyCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this publickey create default response has a 5xx status code func (o *PublickeyCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this publickey create default response a status code equal to that given func (o *PublickeyCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *PublickeyCreateDefault) Error() string { return fmt.Sprintf("[POST /security/authentication/publickeys][%d] publickey_create default %+v", o._statusCode, o.Payload) } func (o *PublickeyCreateDefault) String() string { return fmt.Sprintf("[POST /security/authentication/publickeys][%d] publickey_create default %+v", o._statusCode, o.Payload) } func (o *PublickeyCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *PublickeyCreateDefault) 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/security/login_messages_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/login_messages_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // LoginMessagesModifyReader is a Reader for the LoginMessagesModify structure. type LoginMessagesModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *LoginMessagesModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewLoginMessagesModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewLoginMessagesModifyDefault(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 } } // NewLoginMessagesModifyOK creates a LoginMessagesModifyOK with default headers values func NewLoginMessagesModifyOK() *LoginMessagesModifyOK { return &LoginMessagesModifyOK{} } /* LoginMessagesModifyOK describes a response with status code 200, with default header values. OK */ type LoginMessagesModifyOK struct { } // IsSuccess returns true when this login messages modify o k response has a 2xx status code func (o *LoginMessagesModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this login messages modify o k response has a 3xx status code func (o *LoginMessagesModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this login messages modify o k response has a 4xx status code func (o *LoginMessagesModifyOK) IsClientError() bool { return false } // IsServerError returns true when this login messages modify o k response has a 5xx status code func (o *LoginMessagesModifyOK) IsServerError() bool { return false } // IsCode returns true when this login messages modify o k response a status code equal to that given func (o *LoginMessagesModifyOK) IsCode(code int) bool { return code == 200 } func (o *LoginMessagesModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/login/messages/{uuid}][%d] loginMessagesModifyOK ", 200) } func (o *LoginMessagesModifyOK) String() string { return fmt.Sprintf("[PATCH /security/login/messages/{uuid}][%d] loginMessagesModifyOK ", 200) } func (o *LoginMessagesModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewLoginMessagesModifyDefault creates a LoginMessagesModifyDefault with default headers values func NewLoginMessagesModifyDefault(code int) *LoginMessagesModifyDefault { return &LoginMessagesModifyDefault{ _statusCode: code, } } /* LoginMessagesModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response codes | Error codes | Description | | ----------- | ----------- | | 10225636 | Only a cluster administrator can modify the `show_cluster_message` property. | */ type LoginMessagesModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the login messages modify default response func (o *LoginMessagesModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this login messages modify default response has a 2xx status code func (o *LoginMessagesModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this login messages modify default response has a 3xx status code func (o *LoginMessagesModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this login messages modify default response has a 4xx status code func (o *LoginMessagesModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this login messages modify default response has a 5xx status code func (o *LoginMessagesModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this login messages modify default response a status code equal to that given func (o *LoginMessagesModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *LoginMessagesModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/login/messages/{uuid}][%d] login_messages_modify default %+v", o._statusCode, o.Payload) } func (o *LoginMessagesModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/login/messages/{uuid}][%d] login_messages_modify default %+v", o._statusCode, o.Payload) } func (o *LoginMessagesModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *LoginMessagesModifyDefault) 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/security/security_log_forwarding_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityLogForwardingGetReader is a Reader for the SecurityLogForwardingGet structure. type SecurityLogForwardingGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityLogForwardingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityLogForwardingGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityLogForwardingGetDefault(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 } } // NewSecurityLogForwardingGetOK creates a SecurityLogForwardingGetOK with default headers values func NewSecurityLogForwardingGetOK() *SecurityLogForwardingGetOK { return &SecurityLogForwardingGetOK{} } /* SecurityLogForwardingGetOK describes a response with status code 200, with default header values. OK */ type SecurityLogForwardingGetOK struct { Payload *models.SecurityAuditLogForward } // IsSuccess returns true when this security log forwarding get o k response has a 2xx status code func (o *SecurityLogForwardingGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this security log forwarding get o k response has a 3xx status code func (o *SecurityLogForwardingGetOK) IsRedirect() bool { return false } // IsClientError returns true when this security log forwarding get o k response has a 4xx status code func (o *SecurityLogForwardingGetOK) IsClientError() bool { return false } // IsServerError returns true when this security log forwarding get o k response has a 5xx status code func (o *SecurityLogForwardingGetOK) IsServerError() bool { return false } // IsCode returns true when this security log forwarding get o k response a status code equal to that given func (o *SecurityLogForwardingGetOK) IsCode(code int) bool { return code == 200 } func (o *SecurityLogForwardingGetOK) Error() string { return fmt.Sprintf("[GET /security/audit/destinations/{address}/{port}][%d] securityLogForwardingGetOK %+v", 200, o.Payload) } func (o *SecurityLogForwardingGetOK) String() string { return fmt.Sprintf("[GET /security/audit/destinations/{address}/{port}][%d] securityLogForwardingGetOK %+v", 200, o.Payload) } func (o *SecurityLogForwardingGetOK) GetPayload() *models.SecurityAuditLogForward { return o.Payload } func (o *SecurityLogForwardingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SecurityAuditLogForward) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSecurityLogForwardingGetDefault creates a SecurityLogForwardingGetDefault with default headers values func NewSecurityLogForwardingGetDefault(code int) *SecurityLogForwardingGetDefault { return &SecurityLogForwardingGetDefault{ _statusCode: code, } } /* SecurityLogForwardingGetDefault describes a response with status code -1, with default header values. Error */ type SecurityLogForwardingGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security log forwarding get default response func (o *SecurityLogForwardingGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security log forwarding get default response has a 2xx status code func (o *SecurityLogForwardingGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security log forwarding get default response has a 3xx status code func (o *SecurityLogForwardingGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security log forwarding get default response has a 4xx status code func (o *SecurityLogForwardingGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security log forwarding get default response has a 5xx status code func (o *SecurityLogForwardingGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security log forwarding get default response a status code equal to that given func (o *SecurityLogForwardingGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityLogForwardingGetDefault) Error() string { return fmt.Sprintf("[GET /security/audit/destinations/{address}/{port}][%d] security_log_forwarding_get default %+v", o._statusCode, o.Payload) } func (o *SecurityLogForwardingGetDefault) String() string { return fmt.Sprintf("[GET /security/audit/destinations/{address}/{port}][%d] security_log_forwarding_get default %+v", o._statusCode, o.Payload) } func (o *SecurityLogForwardingGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityLogForwardingGetDefault) 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/security/security_certificate_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_certificate_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityCertificateCollectionGetParams creates a new SecurityCertificateCollectionGetParams 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 NewSecurityCertificateCollectionGetParams() *SecurityCertificateCollectionGetParams { return &SecurityCertificateCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewSecurityCertificateCollectionGetParamsWithTimeout creates a new SecurityCertificateCollectionGetParams object // with the ability to set a timeout on a request. func NewSecurityCertificateCollectionGetParamsWithTimeout(timeout time.Duration) *SecurityCertificateCollectionGetParams { return &SecurityCertificateCollectionGetParams{ timeout: timeout, } } // NewSecurityCertificateCollectionGetParamsWithContext creates a new SecurityCertificateCollectionGetParams object // with the ability to set a context for a request. func NewSecurityCertificateCollectionGetParamsWithContext(ctx context.Context) *SecurityCertificateCollectionGetParams { return &SecurityCertificateCollectionGetParams{ Context: ctx, } } // NewSecurityCertificateCollectionGetParamsWithHTTPClient creates a new SecurityCertificateCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityCertificateCollectionGetParamsWithHTTPClient(client *http.Client) *SecurityCertificateCollectionGetParams { return &SecurityCertificateCollectionGetParams{ HTTPClient: client, } } /* SecurityCertificateCollectionGetParams contains all the parameters to send to the API endpoint for the security certificate collection get operation. Typically these are written to a http.Request. */ type SecurityCertificateCollectionGetParams struct { /* AuthorityKeyIdentifier. Filter by authority_key_identifier */ AuthorityKeyIdentifier *string /* Ca. Filter by ca */ Ca *string /* CommonName. Filter by common_name */ CommonName *string /* ExpiryTime. Filter by expiry_time */ ExpiryTime *string /* Fields. Specify the fields to return. */ Fields []string /* HashFunction. Filter by hash_function */ HashFunction *string /* IntermediateCertificates. Filter by intermediate_certificates */ IntermediateCertificates *string /* KeySize. Filter by key_size */ KeySize *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 /* PrivateKey. Filter by private_key */ PrivateKey *string /* PublicCertificate. Filter by public_certificate */ PublicCertificate *string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* Scope. Filter by scope */ Scope *string /* SerialNumber. Filter by serial_number */ SerialNumber *string /* SubjectKeyIdentifier. Filter by subject_key_identifier */ SubjectKeyIdentifier *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* Type. Filter by type */ Type *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the security certificate collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityCertificateCollectionGetParams) WithDefaults() *SecurityCertificateCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security certificate collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityCertificateCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := SecurityCertificateCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithTimeout(timeout time.Duration) *SecurityCertificateCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithContext(ctx context.Context) *SecurityCertificateCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithHTTPClient(client *http.Client) *SecurityCertificateCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAuthorityKeyIdentifier adds the authorityKeyIdentifier to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithAuthorityKeyIdentifier(authorityKeyIdentifier *string) *SecurityCertificateCollectionGetParams { o.SetAuthorityKeyIdentifier(authorityKeyIdentifier) return o } // SetAuthorityKeyIdentifier adds the authorityKeyIdentifier to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetAuthorityKeyIdentifier(authorityKeyIdentifier *string) { o.AuthorityKeyIdentifier = authorityKeyIdentifier } // WithCa adds the ca to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithCa(ca *string) *SecurityCertificateCollectionGetParams { o.SetCa(ca) return o } // SetCa adds the ca to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetCa(ca *string) { o.Ca = ca } // WithCommonName adds the commonName to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithCommonName(commonName *string) *SecurityCertificateCollectionGetParams { o.SetCommonName(commonName) return o } // SetCommonName adds the commonName to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetCommonName(commonName *string) { o.CommonName = commonName } // WithExpiryTime adds the expiryTime to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithExpiryTime(expiryTime *string) *SecurityCertificateCollectionGetParams { o.SetExpiryTime(expiryTime) return o } // SetExpiryTime adds the expiryTime to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetExpiryTime(expiryTime *string) { o.ExpiryTime = expiryTime } // WithFields adds the fields to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithFields(fields []string) *SecurityCertificateCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithHashFunction adds the hashFunction to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithHashFunction(hashFunction *string) *SecurityCertificateCollectionGetParams { o.SetHashFunction(hashFunction) return o } // SetHashFunction adds the hashFunction to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetHashFunction(hashFunction *string) { o.HashFunction = hashFunction } // WithIntermediateCertificates adds the intermediateCertificates to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithIntermediateCertificates(intermediateCertificates *string) *SecurityCertificateCollectionGetParams { o.SetIntermediateCertificates(intermediateCertificates) return o } // SetIntermediateCertificates adds the intermediateCertificates to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetIntermediateCertificates(intermediateCertificates *string) { o.IntermediateCertificates = intermediateCertificates } // WithKeySize adds the keySize to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithKeySize(keySize *int64) *SecurityCertificateCollectionGetParams { o.SetKeySize(keySize) return o } // SetKeySize adds the keySize to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetKeySize(keySize *int64) { o.KeySize = keySize } // WithMaxRecords adds the maxRecords to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithMaxRecords(maxRecords *int64) *SecurityCertificateCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithName(name *string) *SecurityCertificateCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithOrderBy(orderBy []string) *SecurityCertificateCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPrivateKey adds the privateKey to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithPrivateKey(privateKey *string) *SecurityCertificateCollectionGetParams { o.SetPrivateKey(privateKey) return o } // SetPrivateKey adds the privateKey to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetPrivateKey(privateKey *string) { o.PrivateKey = privateKey } // WithPublicCertificate adds the publicCertificate to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithPublicCertificate(publicCertificate *string) *SecurityCertificateCollectionGetParams { o.SetPublicCertificate(publicCertificate) return o } // SetPublicCertificate adds the publicCertificate to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetPublicCertificate(publicCertificate *string) { o.PublicCertificate = publicCertificate } // WithReturnRecords adds the returnRecords to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithReturnRecords(returnRecords *bool) *SecurityCertificateCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SecurityCertificateCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithScope(scope *string) *SecurityCertificateCollectionGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetScope(scope *string) { o.Scope = scope } // WithSerialNumber adds the serialNumber to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithSerialNumber(serialNumber *string) *SecurityCertificateCollectionGetParams { o.SetSerialNumber(serialNumber) return o } // SetSerialNumber adds the serialNumber to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetSerialNumber(serialNumber *string) { o.SerialNumber = serialNumber } // WithSubjectKeyIdentifier adds the subjectKeyIdentifier to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithSubjectKeyIdentifier(subjectKeyIdentifier *string) *SecurityCertificateCollectionGetParams { o.SetSubjectKeyIdentifier(subjectKeyIdentifier) return o } // SetSubjectKeyIdentifier adds the subjectKeyIdentifier to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetSubjectKeyIdentifier(subjectKeyIdentifier *string) { o.SubjectKeyIdentifier = subjectKeyIdentifier } // WithSvmName adds the svmName to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithSvmName(svmName *string) *SecurityCertificateCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithSvmUUID(svmUUID *string) *SecurityCertificateCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithType adds the typeVar to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithType(typeVar *string) *SecurityCertificateCollectionGetParams { o.SetType(typeVar) return o } // SetType adds the type to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetType(typeVar *string) { o.Type = typeVar } // WithUUID adds the uuid to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) WithUUID(uuid *string) *SecurityCertificateCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the security certificate collection get params func (o *SecurityCertificateCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *SecurityCertificateCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.AuthorityKeyIdentifier != nil { // query param authority_key_identifier var qrAuthorityKeyIdentifier string if o.AuthorityKeyIdentifier != nil { qrAuthorityKeyIdentifier = *o.AuthorityKeyIdentifier } qAuthorityKeyIdentifier := qrAuthorityKeyIdentifier if qAuthorityKeyIdentifier != "" { if err := r.SetQueryParam("authority_key_identifier", qAuthorityKeyIdentifier); err != nil { return err } } } if o.Ca != nil { // query param ca var qrCa string if o.Ca != nil { qrCa = *o.Ca } qCa := qrCa if qCa != "" { if err := r.SetQueryParam("ca", qCa); err != nil { return err } } } if o.CommonName != nil { // query param common_name var qrCommonName string if o.CommonName != nil { qrCommonName = *o.CommonName } qCommonName := qrCommonName if qCommonName != "" { if err := r.SetQueryParam("common_name", qCommonName); err != nil { return err } } } if o.ExpiryTime != nil { // query param expiry_time var qrExpiryTime string if o.ExpiryTime != nil { qrExpiryTime = *o.ExpiryTime } qExpiryTime := qrExpiryTime if qExpiryTime != "" { if err := r.SetQueryParam("expiry_time", qExpiryTime); 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.HashFunction != nil { // query param hash_function var qrHashFunction string if o.HashFunction != nil { qrHashFunction = *o.HashFunction } qHashFunction := qrHashFunction if qHashFunction != "" { if err := r.SetQueryParam("hash_function", qHashFunction); err != nil { return err } } } if o.IntermediateCertificates != nil { // query param intermediate_certificates var qrIntermediateCertificates string if o.IntermediateCertificates != nil { qrIntermediateCertificates = *o.IntermediateCertificates } qIntermediateCertificates := qrIntermediateCertificates if qIntermediateCertificates != "" { if err := r.SetQueryParam("intermediate_certificates", qIntermediateCertificates); err != nil { return err } } } if o.KeySize != nil { // query param key_size var qrKeySize int64 if o.KeySize != nil { qrKeySize = *o.KeySize } qKeySize := swag.FormatInt64(qrKeySize) if qKeySize != "" { if err := r.SetQueryParam("key_size", qKeySize); 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.PrivateKey != nil { // query param private_key var qrPrivateKey string if o.PrivateKey != nil { qrPrivateKey = *o.PrivateKey } qPrivateKey := qrPrivateKey if qPrivateKey != "" { if err := r.SetQueryParam("private_key", qPrivateKey); err != nil { return err } } } if o.PublicCertificate != nil { // query param public_certificate var qrPublicCertificate string if o.PublicCertificate != nil { qrPublicCertificate = *o.PublicCertificate } qPublicCertificate := qrPublicCertificate if qPublicCertificate != "" { if err := r.SetQueryParam("public_certificate", qPublicCertificate); err != nil { return err } } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.Scope != nil { // query param scope var qrScope string if o.Scope != nil { qrScope = *o.Scope } qScope := qrScope if qScope != "" { if err := r.SetQueryParam("scope", qScope); err != nil { return err } } } if o.SerialNumber != nil { // query param serial_number var qrSerialNumber string if o.SerialNumber != nil { qrSerialNumber = *o.SerialNumber } qSerialNumber := qrSerialNumber if qSerialNumber != "" { if err := r.SetQueryParam("serial_number", qSerialNumber); err != nil { return err } } } if o.SubjectKeyIdentifier != nil { // query param subject_key_identifier var qrSubjectKeyIdentifier string if o.SubjectKeyIdentifier != nil { qrSubjectKeyIdentifier = *o.SubjectKeyIdentifier } qSubjectKeyIdentifier := qrSubjectKeyIdentifier if qSubjectKeyIdentifier != "" { if err := r.SetQueryParam("subject_key_identifier", qSubjectKeyIdentifier); err != nil { return err } } } if o.SvmName != nil { // query param svm.name var qrSvmName string if o.SvmName != nil { qrSvmName = *o.SvmName } qSvmName := qrSvmName if qSvmName != "" { if err := r.SetQueryParam("svm.name", qSvmName); err != nil { return err } } } if o.SvmUUID != nil { // query param svm.uuid var qrSvmUUID string if o.SvmUUID != nil { qrSvmUUID = *o.SvmUUID } qSvmUUID := qrSvmUUID if qSvmUUID != "" { if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil { return err } } } if o.Type != nil { // query param type var qrType string if o.Type != nil { qrType = *o.Type } qType := qrType if qType != "" { if err := r.SetQueryParam("type", qType); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSecurityCertificateCollectionGet binds the parameter fields func (o *SecurityCertificateCollectionGetParams) 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 } // bindParamSecurityCertificateCollectionGet binds the parameter order_by func (o *SecurityCertificateCollectionGetParams) 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/security/gcp_kms_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // GcpKmsModifyReader is a Reader for the GcpKmsModify structure. type GcpKmsModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *GcpKmsModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGcpKmsModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 202: result := NewGcpKmsModifyAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewGcpKmsModifyDefault(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 } } // NewGcpKmsModifyOK creates a GcpKmsModifyOK with default headers values func NewGcpKmsModifyOK() *GcpKmsModifyOK { return &GcpKmsModifyOK{} } /* GcpKmsModifyOK describes a response with status code 200, with default header values. OK */ type GcpKmsModifyOK struct { } // IsSuccess returns true when this gcp kms modify o k response has a 2xx status code func (o *GcpKmsModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this gcp kms modify o k response has a 3xx status code func (o *GcpKmsModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this gcp kms modify o k response has a 4xx status code func (o *GcpKmsModifyOK) IsClientError() bool { return false } // IsServerError returns true when this gcp kms modify o k response has a 5xx status code func (o *GcpKmsModifyOK) IsServerError() bool { return false } // IsCode returns true when this gcp kms modify o k response a status code equal to that given func (o *GcpKmsModifyOK) IsCode(code int) bool { return code == 200 } func (o *GcpKmsModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/gcp-kms/{uuid}][%d] gcpKmsModifyOK ", 200) } func (o *GcpKmsModifyOK) String() string { return fmt.Sprintf("[PATCH /security/gcp-kms/{uuid}][%d] gcpKmsModifyOK ", 200) } func (o *GcpKmsModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewGcpKmsModifyAccepted creates a GcpKmsModifyAccepted with default headers values func NewGcpKmsModifyAccepted() *GcpKmsModifyAccepted { return &GcpKmsModifyAccepted{} } /* GcpKmsModifyAccepted describes a response with status code 202, with default header values. Accepted */ type GcpKmsModifyAccepted struct { } // IsSuccess returns true when this gcp kms modify accepted response has a 2xx status code func (o *GcpKmsModifyAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this gcp kms modify accepted response has a 3xx status code func (o *GcpKmsModifyAccepted) IsRedirect() bool { return false } // IsClientError returns true when this gcp kms modify accepted response has a 4xx status code func (o *GcpKmsModifyAccepted) IsClientError() bool { return false } // IsServerError returns true when this gcp kms modify accepted response has a 5xx status code func (o *GcpKmsModifyAccepted) IsServerError() bool { return false } // IsCode returns true when this gcp kms modify accepted response a status code equal to that given func (o *GcpKmsModifyAccepted) IsCode(code int) bool { return code == 202 } func (o *GcpKmsModifyAccepted) Error() string { return fmt.Sprintf("[PATCH /security/gcp-kms/{uuid}][%d] gcpKmsModifyAccepted ", 202) } func (o *GcpKmsModifyAccepted) String() string { return fmt.Sprintf("[PATCH /security/gcp-kms/{uuid}][%d] gcpKmsModifyAccepted ", 202) } func (o *GcpKmsModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewGcpKmsModifyDefault creates a GcpKmsModifyDefault with default headers values func NewGcpKmsModifyDefault(code int) *GcpKmsModifyDefault { return &GcpKmsModifyDefault{ _statusCode: code, } } /* GcpKmsModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65537541 | No inputs were provided for the patch request. | | 65537547 | One or more volume encryption keys for encrypted volumes of this data SVM are stored in the key manager configured for the admin SVM. Use the REST API POST method to migrate this data SVM's keys from the admin SVM's key manager to this data SVM's key manager before running the rekey operation. | | 65537713 | Internal Error. Failed to store the application credentials. | | 65537714 | The \"application_credentials\" field must be specified. | | 65537721 | The Google Cloud Key Management Service is not configured for the SVM. | | 65537724 | Failed to update the Google Cloud Key Management Service because invalid application credentials were provided. | | 65537732 | ONTAP 9.9.1 does not allow modification of the following fields, \"project_id\", \"key_ring_name\" and \"key_ring_location\". | */ type GcpKmsModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the gcp kms modify default response func (o *GcpKmsModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this gcp kms modify default response has a 2xx status code func (o *GcpKmsModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this gcp kms modify default response has a 3xx status code func (o *GcpKmsModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this gcp kms modify default response has a 4xx status code func (o *GcpKmsModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this gcp kms modify default response has a 5xx status code func (o *GcpKmsModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this gcp kms modify default response a status code equal to that given func (o *GcpKmsModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *GcpKmsModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/gcp-kms/{uuid}][%d] gcp_kms_modify default %+v", o._statusCode, o.Payload) } func (o *GcpKmsModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/gcp-kms/{uuid}][%d] gcp_kms_modify default %+v", o._statusCode, o.Payload) } func (o *GcpKmsModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *GcpKmsModifyDefault) 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/security/cluster_nis_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewClusterNisCreateParams creates a new ClusterNisCreateParams 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 NewClusterNisCreateParams() *ClusterNisCreateParams { return &ClusterNisCreateParams{ timeout: cr.DefaultTimeout, } } // NewClusterNisCreateParamsWithTimeout creates a new ClusterNisCreateParams object // with the ability to set a timeout on a request. func NewClusterNisCreateParamsWithTimeout(timeout time.Duration) *ClusterNisCreateParams { return &ClusterNisCreateParams{ timeout: timeout, } } // NewClusterNisCreateParamsWithContext creates a new ClusterNisCreateParams object // with the ability to set a context for a request. func NewClusterNisCreateParamsWithContext(ctx context.Context) *ClusterNisCreateParams { return &ClusterNisCreateParams{ Context: ctx, } } // NewClusterNisCreateParamsWithHTTPClient creates a new ClusterNisCreateParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNisCreateParamsWithHTTPClient(client *http.Client) *ClusterNisCreateParams { return &ClusterNisCreateParams{ HTTPClient: client, } } /* ClusterNisCreateParams contains all the parameters to send to the API endpoint for the cluster nis create operation. Typically these are written to a http.Request. */ type ClusterNisCreateParams struct { /* Info. Information specification */ Info *models.ClusterNisService timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster nis create params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNisCreateParams) WithDefaults() *ClusterNisCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster nis create params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNisCreateParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster nis create params func (o *ClusterNisCreateParams) WithTimeout(timeout time.Duration) *ClusterNisCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster nis create params func (o *ClusterNisCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster nis create params func (o *ClusterNisCreateParams) WithContext(ctx context.Context) *ClusterNisCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster nis create params func (o *ClusterNisCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster nis create params func (o *ClusterNisCreateParams) WithHTTPClient(client *http.Client) *ClusterNisCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster nis create params func (o *ClusterNisCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cluster nis create params func (o *ClusterNisCreateParams) WithInfo(info *models.ClusterNisService) *ClusterNisCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster nis create params func (o *ClusterNisCreateParams) SetInfo(info *models.ClusterNisService) { o.Info = info } // WriteToRequest writes these params to a swagger request func (o *ClusterNisCreateParams) 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 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/security/publickey_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/publickey_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewPublickeyGetParams creates a new PublickeyGetParams 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 NewPublickeyGetParams() *PublickeyGetParams { return &PublickeyGetParams{ timeout: cr.DefaultTimeout, } } // NewPublickeyGetParamsWithTimeout creates a new PublickeyGetParams object // with the ability to set a timeout on a request. func NewPublickeyGetParamsWithTimeout(timeout time.Duration) *PublickeyGetParams { return &PublickeyGetParams{ timeout: timeout, } } // NewPublickeyGetParamsWithContext creates a new PublickeyGetParams object // with the ability to set a context for a request. func NewPublickeyGetParamsWithContext(ctx context.Context) *PublickeyGetParams { return &PublickeyGetParams{ Context: ctx, } } // NewPublickeyGetParamsWithHTTPClient creates a new PublickeyGetParams object // with the ability to set a custom HTTPClient for a request. func NewPublickeyGetParamsWithHTTPClient(client *http.Client) *PublickeyGetParams { return &PublickeyGetParams{ HTTPClient: client, } } /* PublickeyGetParams contains all the parameters to send to the API endpoint for the publickey get operation. Typically these are written to a http.Request. */ type PublickeyGetParams struct { /* AccountName. User account name */ AccountName string /* Fields. Specify the fields to return. */ Fields []string /* Index. Index number for the public key (where there are multiple keys for the same account). */ 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 /* OwnerUUID. Account owner UUID */ OwnerUUID string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the publickey get params (not the query body). // // All values with no default are reset to their zero value. func (o *PublickeyGetParams) WithDefaults() *PublickeyGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the publickey get params (not the query body). // // All values with no default are reset to their zero value. func (o *PublickeyGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := PublickeyGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the publickey get params func (o *PublickeyGetParams) WithTimeout(timeout time.Duration) *PublickeyGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the publickey get params func (o *PublickeyGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the publickey get params func (o *PublickeyGetParams) WithContext(ctx context.Context) *PublickeyGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the publickey get params func (o *PublickeyGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the publickey get params func (o *PublickeyGetParams) WithHTTPClient(client *http.Client) *PublickeyGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the publickey get params func (o *PublickeyGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAccountName adds the accountName to the publickey get params func (o *PublickeyGetParams) WithAccountName(accountName string) *PublickeyGetParams { o.SetAccountName(accountName) return o } // SetAccountName adds the accountName to the publickey get params func (o *PublickeyGetParams) SetAccountName(accountName string) { o.AccountName = accountName } // WithFields adds the fields to the publickey get params func (o *PublickeyGetParams) WithFields(fields []string) *PublickeyGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the publickey get params func (o *PublickeyGetParams) SetFields(fields []string) { o.Fields = fields } // WithIndex adds the index to the publickey get params func (o *PublickeyGetParams) WithIndex(index int64) *PublickeyGetParams { o.SetIndex(index) return o } // SetIndex adds the index to the publickey get params func (o *PublickeyGetParams) SetIndex(index int64) { o.Index = index } // WithMaxRecords adds the maxRecords to the publickey get params func (o *PublickeyGetParams) WithMaxRecords(maxRecords *int64) *PublickeyGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the publickey get params func (o *PublickeyGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the publickey get params func (o *PublickeyGetParams) WithOrderBy(orderBy []string) *PublickeyGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the publickey get params func (o *PublickeyGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithOwnerUUID adds the ownerUUID to the publickey get params func (o *PublickeyGetParams) WithOwnerUUID(ownerUUID string) *PublickeyGetParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the publickey get params func (o *PublickeyGetParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WithReturnRecords adds the returnRecords to the publickey get params func (o *PublickeyGetParams) WithReturnRecords(returnRecords *bool) *PublickeyGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the publickey get params func (o *PublickeyGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the publickey get params func (o *PublickeyGetParams) WithReturnTimeout(returnTimeout *int64) *PublickeyGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the publickey get params func (o *PublickeyGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *PublickeyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param account.name if err := r.SetPathParam("account.name", o.AccountName); 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 index if err := r.SetPathParam("index", swag.FormatInt64(o.Index)); err != nil { return err } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } // path param owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); 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 } // bindParamPublickeyGet binds the parameter fields func (o *PublickeyGetParams) 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 } // bindParamPublickeyGet binds the parameter order_by func (o *PublickeyGetParams) 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/security/ipsec_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecModifyParams creates a new IpsecModifyParams 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 NewIpsecModifyParams() *IpsecModifyParams { return &IpsecModifyParams{ timeout: cr.DefaultTimeout, } } // NewIpsecModifyParamsWithTimeout creates a new IpsecModifyParams object // with the ability to set a timeout on a request. func NewIpsecModifyParamsWithTimeout(timeout time.Duration) *IpsecModifyParams { return &IpsecModifyParams{ timeout: timeout, } } // NewIpsecModifyParamsWithContext creates a new IpsecModifyParams object // with the ability to set a context for a request. func NewIpsecModifyParamsWithContext(ctx context.Context) *IpsecModifyParams { return &IpsecModifyParams{ Context: ctx, } } // NewIpsecModifyParamsWithHTTPClient creates a new IpsecModifyParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecModifyParamsWithHTTPClient(client *http.Client) *IpsecModifyParams { return &IpsecModifyParams{ HTTPClient: client, } } /* IpsecModifyParams contains all the parameters to send to the API endpoint for the ipsec modify operation. Typically these are written to a http.Request. */ type IpsecModifyParams struct { /* Info. Info specification */ Info *models.Ipsec timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipsec modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecModifyParams) WithDefaults() *IpsecModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ipsec modify params func (o *IpsecModifyParams) WithTimeout(timeout time.Duration) *IpsecModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec modify params func (o *IpsecModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec modify params func (o *IpsecModifyParams) WithContext(ctx context.Context) *IpsecModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec modify params func (o *IpsecModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec modify params func (o *IpsecModifyParams) WithHTTPClient(client *http.Client) *IpsecModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec modify params func (o *IpsecModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ipsec modify params func (o *IpsecModifyParams) WithInfo(info *models.Ipsec) *IpsecModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the ipsec modify params func (o *IpsecModifyParams) SetInfo(info *models.Ipsec) { o.Info = info } // WriteToRequest writes these params to a swagger request func (o *IpsecModifyParams) 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 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/security/role_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // RoleCreateReader is a Reader for the RoleCreate structure. type RoleCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *RoleCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewRoleCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewRoleCreateDefault(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 } } // NewRoleCreateCreated creates a RoleCreateCreated with default headers values func NewRoleCreateCreated() *RoleCreateCreated { return &RoleCreateCreated{} } /* RoleCreateCreated describes a response with status code 201, with default header values. Created */ type RoleCreateCreated struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this role create created response has a 2xx status code func (o *RoleCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this role create created response has a 3xx status code func (o *RoleCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this role create created response has a 4xx status code func (o *RoleCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this role create created response has a 5xx status code func (o *RoleCreateCreated) IsServerError() bool { return false } // IsCode returns true when this role create created response a status code equal to that given func (o *RoleCreateCreated) IsCode(code int) bool { return code == 201 } func (o *RoleCreateCreated) Error() string { return fmt.Sprintf("[POST /security/roles][%d] roleCreateCreated ", 201) } func (o *RoleCreateCreated) String() string { return fmt.Sprintf("[POST /security/roles][%d] roleCreateCreated ", 201) } func (o *RoleCreateCreated) 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 } // NewRoleCreateDefault creates a RoleCreateDefault with default headers values func NewRoleCreateDefault(code int) *RoleCreateDefault { return &RoleCreateDefault{ _statusCode: code, } } /* RoleCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 2621462 | The supplied SVM does not exist. | | 5636129 | Role with given name has not been defined. | | 5636143 | Vserver admin cannot use the API with this access level. | | 5636144 | Invalid value specified for access level. | | 5636169 | Invalid character in URI. | | 5636170 | URI does not exist. | | 5636171 | Role already exists in legacy role table. | | 5636184 | Expanded REST roles for granular resource control feature is currently disabled. | | 5636185 | The specified UUID was not found. | | 5636186 | Expanded REST roles for granular resource control requires an effective cluster version of 9.10.1 or later. | | 13434890 | Vserver-ID failed for Vserver roles. | | 13434891 | UUID lookup failed for Vserver roles. | | 13434892 | Roles is a required field. | */ type RoleCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the role create default response func (o *RoleCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this role create default response has a 2xx status code func (o *RoleCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this role create default response has a 3xx status code func (o *RoleCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this role create default response has a 4xx status code func (o *RoleCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this role create default response has a 5xx status code func (o *RoleCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this role create default response a status code equal to that given func (o *RoleCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *RoleCreateDefault) Error() string { return fmt.Sprintf("[POST /security/roles][%d] role_create default %+v", o._statusCode, o.Payload) } func (o *RoleCreateDefault) String() string { return fmt.Sprintf("[POST /security/roles][%d] role_create default %+v", o._statusCode, o.Payload) } func (o *RoleCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *RoleCreateDefault) 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/security/account_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // AccountCollectionGetReader is a Reader for the AccountCollectionGet structure. type AccountCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *AccountCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewAccountCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewAccountCollectionGetDefault(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 } } // NewAccountCollectionGetOK creates a AccountCollectionGetOK with default headers values func NewAccountCollectionGetOK() *AccountCollectionGetOK { return &AccountCollectionGetOK{} } /* AccountCollectionGetOK describes a response with status code 200, with default header values. OK */ type AccountCollectionGetOK struct { Payload *models.AccountResponse } // IsSuccess returns true when this account collection get o k response has a 2xx status code func (o *AccountCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this account collection get o k response has a 3xx status code func (o *AccountCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this account collection get o k response has a 4xx status code func (o *AccountCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this account collection get o k response has a 5xx status code func (o *AccountCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this account collection get o k response a status code equal to that given func (o *AccountCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *AccountCollectionGetOK) Error() string { return fmt.Sprintf("[GET /security/accounts][%d] accountCollectionGetOK %+v", 200, o.Payload) } func (o *AccountCollectionGetOK) String() string { return fmt.Sprintf("[GET /security/accounts][%d] accountCollectionGetOK %+v", 200, o.Payload) } func (o *AccountCollectionGetOK) GetPayload() *models.AccountResponse { return o.Payload } func (o *AccountCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.AccountResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewAccountCollectionGetDefault creates a AccountCollectionGetDefault with default headers values func NewAccountCollectionGetDefault(code int) *AccountCollectionGetDefault { return &AccountCollectionGetDefault{ _statusCode: code, } } /* AccountCollectionGetDefault describes a response with status code -1, with default header values. Error */ type AccountCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the account collection get default response func (o *AccountCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this account collection get default response has a 2xx status code func (o *AccountCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this account collection get default response has a 3xx status code func (o *AccountCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this account collection get default response has a 4xx status code func (o *AccountCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this account collection get default response has a 5xx status code func (o *AccountCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this account collection get default response a status code equal to that given func (o *AccountCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *AccountCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /security/accounts][%d] account_collection_get default %+v", o._statusCode, o.Payload) } func (o *AccountCollectionGetDefault) String() string { return fmt.Sprintf("[GET /security/accounts][%d] account_collection_get default %+v", o._statusCode, o.Payload) } func (o *AccountCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *AccountCollectionGetDefault) 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/security/aws_kms_rekey_external_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_rekey_external_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAwsKmsRekeyExternalParams creates a new AwsKmsRekeyExternalParams 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 NewAwsKmsRekeyExternalParams() *AwsKmsRekeyExternalParams { return &AwsKmsRekeyExternalParams{ timeout: cr.DefaultTimeout, } } // NewAwsKmsRekeyExternalParamsWithTimeout creates a new AwsKmsRekeyExternalParams object // with the ability to set a timeout on a request. func NewAwsKmsRekeyExternalParamsWithTimeout(timeout time.Duration) *AwsKmsRekeyExternalParams { return &AwsKmsRekeyExternalParams{ timeout: timeout, } } // NewAwsKmsRekeyExternalParamsWithContext creates a new AwsKmsRekeyExternalParams object // with the ability to set a context for a request. func NewAwsKmsRekeyExternalParamsWithContext(ctx context.Context) *AwsKmsRekeyExternalParams { return &AwsKmsRekeyExternalParams{ Context: ctx, } } // NewAwsKmsRekeyExternalParamsWithHTTPClient creates a new AwsKmsRekeyExternalParams object // with the ability to set a custom HTTPClient for a request. func NewAwsKmsRekeyExternalParamsWithHTTPClient(client *http.Client) *AwsKmsRekeyExternalParams { return &AwsKmsRekeyExternalParams{ HTTPClient: client, } } /* AwsKmsRekeyExternalParams contains all the parameters to send to the API endpoint for the aws kms rekey external operation. Typically these are written to a http.Request. */ type AwsKmsRekeyExternalParams struct { /* AwsKmsUUID. UUID of the existing AWS KMS configuration. */ AwsKmsUUID string /* Info. AWS KMS information. */ Info *models.AwsKmsKey /* 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 aws kms rekey external params (not the query body). // // All values with no default are reset to their zero value. func (o *AwsKmsRekeyExternalParams) WithDefaults() *AwsKmsRekeyExternalParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the aws kms rekey external params (not the query body). // // All values with no default are reset to their zero value. func (o *AwsKmsRekeyExternalParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := AwsKmsRekeyExternalParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) WithTimeout(timeout time.Duration) *AwsKmsRekeyExternalParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) WithContext(ctx context.Context) *AwsKmsRekeyExternalParams { o.SetContext(ctx) return o } // SetContext adds the context to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) WithHTTPClient(client *http.Client) *AwsKmsRekeyExternalParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithAwsKmsUUID adds the awsKmsUUID to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) WithAwsKmsUUID(awsKmsUUID string) *AwsKmsRekeyExternalParams { o.SetAwsKmsUUID(awsKmsUUID) return o } // SetAwsKmsUUID adds the awsKmsUuid to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) SetAwsKmsUUID(awsKmsUUID string) { o.AwsKmsUUID = awsKmsUUID } // WithInfo adds the info to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) WithInfo(info *models.AwsKmsKey) *AwsKmsRekeyExternalParams { o.SetInfo(info) return o } // SetInfo adds the info to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) SetInfo(info *models.AwsKmsKey) { o.Info = info } // WithReturnRecords adds the returnRecords to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) WithReturnRecords(returnRecords *bool) *AwsKmsRekeyExternalParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) WithReturnTimeout(returnTimeout *int64) *AwsKmsRekeyExternalParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the aws kms rekey external params func (o *AwsKmsRekeyExternalParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *AwsKmsRekeyExternalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param aws_kms.uuid if err := r.SetPathParam("aws_kms.uuid", o.AwsKmsUUID); 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/security/aws_kms_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // AwsKmsDeleteReader is a Reader for the AwsKmsDelete structure. type AwsKmsDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *AwsKmsDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewAwsKmsDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewAwsKmsDeleteDefault(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 } } // NewAwsKmsDeleteOK creates a AwsKmsDeleteOK with default headers values func NewAwsKmsDeleteOK() *AwsKmsDeleteOK { return &AwsKmsDeleteOK{} } /* AwsKmsDeleteOK describes a response with status code 200, with default header values. OK */ type AwsKmsDeleteOK struct { } // IsSuccess returns true when this aws kms delete o k response has a 2xx status code func (o *AwsKmsDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this aws kms delete o k response has a 3xx status code func (o *AwsKmsDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this aws kms delete o k response has a 4xx status code func (o *AwsKmsDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this aws kms delete o k response has a 5xx status code func (o *AwsKmsDeleteOK) IsServerError() bool { return false } // IsCode returns true when this aws kms delete o k response a status code equal to that given func (o *AwsKmsDeleteOK) IsCode(code int) bool { return code == 200 } func (o *AwsKmsDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/aws-kms/{uuid}][%d] awsKmsDeleteOK ", 200) } func (o *AwsKmsDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/aws-kms/{uuid}][%d] awsKmsDeleteOK ", 200) } func (o *AwsKmsDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewAwsKmsDeleteDefault creates a AwsKmsDeleteDefault with default headers values func NewAwsKmsDeleteDefault(code int) *AwsKmsDeleteDefault { return &AwsKmsDeleteDefault{ _statusCode: code, } } /* AwsKmsDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65536817 | Internal error. Failed to determine if it is safe to disable key manager. | | 65536827 | Internal error. Failed to determine if the given SVM has any encrypted volumes. | | 65536834 | Internal error. Failed to get existing key-server details for the given SVM. | | 65536883 | Internal error. Volume encryption key is missing for a volume. | | 65536884 | Internal error. Volume encryption key is invalid for a volume. | | 65537103 | Cannot remove key manager that still contains one or more authentication keys for self-encrypting drives. | | 65537104 | One or more self-encrypting drives are assigned an authentication key. | | 65537106 | Volume encryption keys (VEK) for one or more encrypted volumes are stored on the key manager configured for the given SVM. | | 65537121 | Cannot determine authentication key presence on one or more self-encrypting drives. | | 65537926 | Amazon Web Service Key Management Service is not configured for SVM. | | 196608080 | One or more nodes in the cluster have the root volume encrypted using NVE (NetApp Volume Encryption). | | 196608301 | Internal error. Failed to get encryption type. | | 196608332 | NAE aggregates found in the cluster. | | 196608351 | NetApp Aggregate Encryption (NAE) aggregates are found in the cluster. | */ type AwsKmsDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the aws kms delete default response func (o *AwsKmsDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this aws kms delete default response has a 2xx status code func (o *AwsKmsDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this aws kms delete default response has a 3xx status code func (o *AwsKmsDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this aws kms delete default response has a 4xx status code func (o *AwsKmsDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this aws kms delete default response has a 5xx status code func (o *AwsKmsDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this aws kms delete default response a status code equal to that given func (o *AwsKmsDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *AwsKmsDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/aws-kms/{uuid}][%d] aws_kms_delete default %+v", o._statusCode, o.Payload) } func (o *AwsKmsDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/aws-kms/{uuid}][%d] aws_kms_delete default %+v", o._statusCode, o.Payload) } func (o *AwsKmsDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *AwsKmsDeleteDefault) 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/security/security_log_forwarding_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityLogForwardingDeleteReader is a Reader for the SecurityLogForwardingDelete structure. type SecurityLogForwardingDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityLogForwardingDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityLogForwardingDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityLogForwardingDeleteDefault(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 } } // NewSecurityLogForwardingDeleteOK creates a SecurityLogForwardingDeleteOK with default headers values func NewSecurityLogForwardingDeleteOK() *SecurityLogForwardingDeleteOK { return &SecurityLogForwardingDeleteOK{} } /* SecurityLogForwardingDeleteOK describes a response with status code 200, with default header values. OK */ type SecurityLogForwardingDeleteOK struct { } // IsSuccess returns true when this security log forwarding delete o k response has a 2xx status code func (o *SecurityLogForwardingDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this security log forwarding delete o k response has a 3xx status code func (o *SecurityLogForwardingDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this security log forwarding delete o k response has a 4xx status code func (o *SecurityLogForwardingDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this security log forwarding delete o k response has a 5xx status code func (o *SecurityLogForwardingDeleteOK) IsServerError() bool { return false } // IsCode returns true when this security log forwarding delete o k response a status code equal to that given func (o *SecurityLogForwardingDeleteOK) IsCode(code int) bool { return code == 200 } func (o *SecurityLogForwardingDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/audit/destinations/{address}/{port}][%d] securityLogForwardingDeleteOK ", 200) } func (o *SecurityLogForwardingDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/audit/destinations/{address}/{port}][%d] securityLogForwardingDeleteOK ", 200) } func (o *SecurityLogForwardingDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewSecurityLogForwardingDeleteDefault creates a SecurityLogForwardingDeleteDefault with default headers values func NewSecurityLogForwardingDeleteDefault(code int) *SecurityLogForwardingDeleteDefault { return &SecurityLogForwardingDeleteDefault{ _statusCode: code, } } /* SecurityLogForwardingDeleteDefault describes a response with status code -1, with default header values. Error */ type SecurityLogForwardingDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security log forwarding delete default response func (o *SecurityLogForwardingDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security log forwarding delete default response has a 2xx status code func (o *SecurityLogForwardingDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security log forwarding delete default response has a 3xx status code func (o *SecurityLogForwardingDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security log forwarding delete default response has a 4xx status code func (o *SecurityLogForwardingDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security log forwarding delete default response has a 5xx status code func (o *SecurityLogForwardingDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security log forwarding delete default response a status code equal to that given func (o *SecurityLogForwardingDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityLogForwardingDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/audit/destinations/{address}/{port}][%d] security_log_forwarding_delete default %+v", o._statusCode, o.Payload) } func (o *SecurityLogForwardingDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/audit/destinations/{address}/{port}][%d] security_log_forwarding_delete default %+v", o._statusCode, o.Payload) } func (o *SecurityLogForwardingDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityLogForwardingDeleteDefault) 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/security/ipsec_policy_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecPolicyDeleteParams creates a new IpsecPolicyDeleteParams 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 NewIpsecPolicyDeleteParams() *IpsecPolicyDeleteParams { return &IpsecPolicyDeleteParams{ timeout: cr.DefaultTimeout, } } // NewIpsecPolicyDeleteParamsWithTimeout creates a new IpsecPolicyDeleteParams object // with the ability to set a timeout on a request. func NewIpsecPolicyDeleteParamsWithTimeout(timeout time.Duration) *IpsecPolicyDeleteParams { return &IpsecPolicyDeleteParams{ timeout: timeout, } } // NewIpsecPolicyDeleteParamsWithContext creates a new IpsecPolicyDeleteParams object // with the ability to set a context for a request. func NewIpsecPolicyDeleteParamsWithContext(ctx context.Context) *IpsecPolicyDeleteParams { return &IpsecPolicyDeleteParams{ Context: ctx, } } // NewIpsecPolicyDeleteParamsWithHTTPClient creates a new IpsecPolicyDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecPolicyDeleteParamsWithHTTPClient(client *http.Client) *IpsecPolicyDeleteParams { return &IpsecPolicyDeleteParams{ HTTPClient: client, } } /* IpsecPolicyDeleteParams contains all the parameters to send to the API endpoint for the ipsec policy delete operation. Typically these are written to a http.Request. */ type IpsecPolicyDeleteParams struct { /* UUID. IPsec policy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipsec policy delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyDeleteParams) WithDefaults() *IpsecPolicyDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec policy delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) WithTimeout(timeout time.Duration) *IpsecPolicyDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) WithContext(ctx context.Context) *IpsecPolicyDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) WithHTTPClient(client *http.Client) *IpsecPolicyDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) WithUUID(uuid string) *IpsecPolicyDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ipsec policy delete params func (o *IpsecPolicyDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IpsecPolicyDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/svm_ssh_server_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/svm_ssh_server_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SvmSSHServerGetReader is a Reader for the SvmSSHServerGet structure. type SvmSSHServerGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SvmSSHServerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSvmSSHServerGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSvmSSHServerGetDefault(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 } } // NewSvmSSHServerGetOK creates a SvmSSHServerGetOK with default headers values func NewSvmSSHServerGetOK() *SvmSSHServerGetOK { return &SvmSSHServerGetOK{} } /* SvmSSHServerGetOK describes a response with status code 200, with default header values. OK */ type SvmSSHServerGetOK struct { Payload *models.SvmSSHServer } // IsSuccess returns true when this svm Ssh server get o k response has a 2xx status code func (o *SvmSSHServerGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this svm Ssh server get o k response has a 3xx status code func (o *SvmSSHServerGetOK) IsRedirect() bool { return false } // IsClientError returns true when this svm Ssh server get o k response has a 4xx status code func (o *SvmSSHServerGetOK) IsClientError() bool { return false } // IsServerError returns true when this svm Ssh server get o k response has a 5xx status code func (o *SvmSSHServerGetOK) IsServerError() bool { return false } // IsCode returns true when this svm Ssh server get o k response a status code equal to that given func (o *SvmSSHServerGetOK) IsCode(code int) bool { return code == 200 } func (o *SvmSSHServerGetOK) Error() string { return fmt.Sprintf("[GET /security/ssh/svms/{svm.uuid}][%d] svmSshServerGetOK %+v", 200, o.Payload) } func (o *SvmSSHServerGetOK) String() string { return fmt.Sprintf("[GET /security/ssh/svms/{svm.uuid}][%d] svmSshServerGetOK %+v", 200, o.Payload) } func (o *SvmSSHServerGetOK) GetPayload() *models.SvmSSHServer { return o.Payload } func (o *SvmSSHServerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SvmSSHServer) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSvmSSHServerGetDefault creates a SvmSSHServerGetDefault with default headers values func NewSvmSSHServerGetDefault(code int) *SvmSSHServerGetDefault { return &SvmSSHServerGetDefault{ _statusCode: code, } } /* SvmSSHServerGetDefault describes a response with status code -1, with default header values. Error */ type SvmSSHServerGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the svm ssh server get default response func (o *SvmSSHServerGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this svm ssh server get default response has a 2xx status code func (o *SvmSSHServerGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this svm ssh server get default response has a 3xx status code func (o *SvmSSHServerGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this svm ssh server get default response has a 4xx status code func (o *SvmSSHServerGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this svm ssh server get default response has a 5xx status code func (o *SvmSSHServerGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this svm ssh server get default response a status code equal to that given func (o *SvmSSHServerGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SvmSSHServerGetDefault) Error() string { return fmt.Sprintf("[GET /security/ssh/svms/{svm.uuid}][%d] svm_ssh_server_get default %+v", o._statusCode, o.Payload) } func (o *SvmSSHServerGetDefault) String() string { return fmt.Sprintf("[GET /security/ssh/svms/{svm.uuid}][%d] svm_ssh_server_get default %+v", o._statusCode, o.Payload) } func (o *SvmSSHServerGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SvmSSHServerGetDefault) 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/security/publickey_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/publickey_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // PublickeyGetReader is a Reader for the PublickeyGet structure. type PublickeyGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *PublickeyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewPublickeyGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewPublickeyGetDefault(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 } } // NewPublickeyGetOK creates a PublickeyGetOK with default headers values func NewPublickeyGetOK() *PublickeyGetOK { return &PublickeyGetOK{} } /* PublickeyGetOK describes a response with status code 200, with default header values. OK */ type PublickeyGetOK struct { Payload *models.Publickey } // IsSuccess returns true when this publickey get o k response has a 2xx status code func (o *PublickeyGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this publickey get o k response has a 3xx status code func (o *PublickeyGetOK) IsRedirect() bool { return false } // IsClientError returns true when this publickey get o k response has a 4xx status code func (o *PublickeyGetOK) IsClientError() bool { return false } // IsServerError returns true when this publickey get o k response has a 5xx status code func (o *PublickeyGetOK) IsServerError() bool { return false } // IsCode returns true when this publickey get o k response a status code equal to that given func (o *PublickeyGetOK) IsCode(code int) bool { return code == 200 } func (o *PublickeyGetOK) Error() string { return fmt.Sprintf("[GET /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickeyGetOK %+v", 200, o.Payload) } func (o *PublickeyGetOK) String() string { return fmt.Sprintf("[GET /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickeyGetOK %+v", 200, o.Payload) } func (o *PublickeyGetOK) GetPayload() *models.Publickey { return o.Payload } func (o *PublickeyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Publickey) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewPublickeyGetDefault creates a PublickeyGetDefault with default headers values func NewPublickeyGetDefault(code int) *PublickeyGetDefault { return &PublickeyGetDefault{ _statusCode: code, } } /* PublickeyGetDefault describes a response with status code -1, with default header values. Error */ type PublickeyGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the publickey get default response func (o *PublickeyGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this publickey get default response has a 2xx status code func (o *PublickeyGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this publickey get default response has a 3xx status code func (o *PublickeyGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this publickey get default response has a 4xx status code func (o *PublickeyGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this publickey get default response has a 5xx status code func (o *PublickeyGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this publickey get default response a status code equal to that given func (o *PublickeyGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *PublickeyGetDefault) Error() string { return fmt.Sprintf("[GET /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickey_get default %+v", o._statusCode, o.Payload) } func (o *PublickeyGetDefault) String() string { return fmt.Sprintf("[GET /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickey_get default %+v", o._statusCode, o.Payload) } func (o *PublickeyGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *PublickeyGetDefault) 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/security/cluster_nis_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // ClusterNisDeleteReader is a Reader for the ClusterNisDelete structure. type ClusterNisDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNisDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterNisDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNisDeleteDefault(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 } } // NewClusterNisDeleteOK creates a ClusterNisDeleteOK with default headers values func NewClusterNisDeleteOK() *ClusterNisDeleteOK { return &ClusterNisDeleteOK{} } /* ClusterNisDeleteOK describes a response with status code 200, with default header values. OK */ type ClusterNisDeleteOK struct { } // IsSuccess returns true when this cluster nis delete o k response has a 2xx status code func (o *ClusterNisDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster nis delete o k response has a 3xx status code func (o *ClusterNisDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster nis delete o k response has a 4xx status code func (o *ClusterNisDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this cluster nis delete o k response has a 5xx status code func (o *ClusterNisDeleteOK) IsServerError() bool { return false } // IsCode returns true when this cluster nis delete o k response a status code equal to that given func (o *ClusterNisDeleteOK) IsCode(code int) bool { return code == 200 } func (o *ClusterNisDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/authentication/cluster/nis][%d] clusterNisDeleteOK ", 200) } func (o *ClusterNisDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/authentication/cluster/nis][%d] clusterNisDeleteOK ", 200) } func (o *ClusterNisDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewClusterNisDeleteDefault creates a ClusterNisDeleteDefault with default headers values func NewClusterNisDeleteDefault(code int) *ClusterNisDeleteDefault { return &ClusterNisDeleteDefault{ _statusCode: code, } } /* ClusterNisDeleteDefault describes a response with status code -1, with default header values. Error */ type ClusterNisDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster nis delete default response func (o *ClusterNisDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster nis delete default response has a 2xx status code func (o *ClusterNisDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster nis delete default response has a 3xx status code func (o *ClusterNisDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster nis delete default response has a 4xx status code func (o *ClusterNisDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster nis delete default response has a 5xx status code func (o *ClusterNisDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster nis delete default response a status code equal to that given func (o *ClusterNisDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNisDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/authentication/cluster/nis][%d] cluster_nis_delete default %+v", o._statusCode, o.Payload) } func (o *ClusterNisDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/authentication/cluster/nis][%d] cluster_nis_delete default %+v", o._statusCode, o.Payload) } func (o *ClusterNisDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNisDeleteDefault) 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/security/multi_admin_verify_config_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_config_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyConfigGetParams creates a new MultiAdminVerifyConfigGetParams 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 NewMultiAdminVerifyConfigGetParams() *MultiAdminVerifyConfigGetParams { return &MultiAdminVerifyConfigGetParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyConfigGetParamsWithTimeout creates a new MultiAdminVerifyConfigGetParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyConfigGetParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyConfigGetParams { return &MultiAdminVerifyConfigGetParams{ timeout: timeout, } } // NewMultiAdminVerifyConfigGetParamsWithContext creates a new MultiAdminVerifyConfigGetParams object // with the ability to set a context for a request. func NewMultiAdminVerifyConfigGetParamsWithContext(ctx context.Context) *MultiAdminVerifyConfigGetParams { return &MultiAdminVerifyConfigGetParams{ Context: ctx, } } // NewMultiAdminVerifyConfigGetParamsWithHTTPClient creates a new MultiAdminVerifyConfigGetParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyConfigGetParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyConfigGetParams { return &MultiAdminVerifyConfigGetParams{ HTTPClient: client, } } /* MultiAdminVerifyConfigGetParams contains all the parameters to send to the API endpoint for the multi admin verify config get operation. Typically these are written to a http.Request. */ type MultiAdminVerifyConfigGetParams struct { /* Fields. Specify the fields to return. */ Fields []string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify config get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyConfigGetParams) WithDefaults() *MultiAdminVerifyConfigGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify config get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyConfigGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyConfigGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) WithContext(ctx context.Context) *MultiAdminVerifyConfigGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyConfigGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) WithFields(fields []string) *MultiAdminVerifyConfigGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the multi admin verify config get params func (o *MultiAdminVerifyConfigGetParams) SetFields(fields []string) { o.Fields = fields } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyConfigGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMultiAdminVerifyConfigGet binds the parameter fields func (o *MultiAdminVerifyConfigGetParams) 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/security/cluster_ldap_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_ldap_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // ClusterLdapCreateReader is a Reader for the ClusterLdapCreate structure. type ClusterLdapCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterLdapCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewClusterLdapCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterLdapCreateDefault(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 } } // NewClusterLdapCreateCreated creates a ClusterLdapCreateCreated with default headers values func NewClusterLdapCreateCreated() *ClusterLdapCreateCreated { return &ClusterLdapCreateCreated{} } /* ClusterLdapCreateCreated describes a response with status code 201, with default header values. Created */ type ClusterLdapCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.LdapServiceResponse } // IsSuccess returns true when this cluster ldap create created response has a 2xx status code func (o *ClusterLdapCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this cluster ldap create created response has a 3xx status code func (o *ClusterLdapCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this cluster ldap create created response has a 4xx status code func (o *ClusterLdapCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this cluster ldap create created response has a 5xx status code func (o *ClusterLdapCreateCreated) IsServerError() bool { return false } // IsCode returns true when this cluster ldap create created response a status code equal to that given func (o *ClusterLdapCreateCreated) IsCode(code int) bool { return code == 201 } func (o *ClusterLdapCreateCreated) Error() string { return fmt.Sprintf("[POST /security/authentication/cluster/ldap][%d] clusterLdapCreateCreated %+v", 201, o.Payload) } func (o *ClusterLdapCreateCreated) String() string { return fmt.Sprintf("[POST /security/authentication/cluster/ldap][%d] clusterLdapCreateCreated %+v", 201, o.Payload) } func (o *ClusterLdapCreateCreated) GetPayload() *models.LdapServiceResponse { return o.Payload } func (o *ClusterLdapCreateCreated) 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.LdapServiceResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterLdapCreateDefault creates a ClusterLdapCreateDefault with default headers values func NewClusterLdapCreateDefault(code int) *ClusterLdapCreateDefault { return &ClusterLdapCreateDefault{ _statusCode: code, } } /* ClusterLdapCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 4915203 | The specified LDAP schema does not exist. | | 4915207 | The specified LDAP servers contain duplicate server entries. | | 4915229 | DNS resolution failed due to an internal error. Contact technical support if this issue persists. | | 4915231 | DNS resolution failed for one or more of the specified LDAP servers. Verify that a valid DNS server is configured. | | 23724132 | DNS resolution failed for all the specified LDAP servers. Verify that a valid DNS server is configured. | | 4915234 | The specified LDAP server is not supported because it is one of the following: multicast, loopback, 0.0.0.0, or broadcast. | | 4915248 | LDAP servers cannot be empty or "-". Specified FQDN is invalid because it is empty or "-" or it contains either special characters or "-" at the start or end of the domain. | | 4915251 | STARTTLS and LDAPS cannot be used together. | | 4915257 | The LDAP configuration is invalid. Verify that bind-dn and bind password are correct. | | 4915258 | The LDAP configuration is invalid. Verify that the servers are reachable and that the network configuration is correct. | | 13434916 | The SVM is in the process of being created. Wait a few minutes, and then try the command again. | | 23724130 | Cannot use an IPv6 name server address because there are no IPv6 interfaces. | | 4915252 | LDAP referral is not supported with STARTTLS, with session security levels sign, seal or with LDAPS. | */ type ClusterLdapCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster ldap create default response func (o *ClusterLdapCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster ldap create default response has a 2xx status code func (o *ClusterLdapCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster ldap create default response has a 3xx status code func (o *ClusterLdapCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster ldap create default response has a 4xx status code func (o *ClusterLdapCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster ldap create default response has a 5xx status code func (o *ClusterLdapCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster ldap create default response a status code equal to that given func (o *ClusterLdapCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterLdapCreateDefault) Error() string { return fmt.Sprintf("[POST /security/authentication/cluster/ldap][%d] cluster_ldap_create default %+v", o._statusCode, o.Payload) } func (o *ClusterLdapCreateDefault) String() string { return fmt.Sprintf("[POST /security/authentication/cluster/ldap][%d] cluster_ldap_create default %+v", o._statusCode, o.Payload) } func (o *ClusterLdapCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterLdapCreateDefault) 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/security/multi_admin_verify_request_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_request_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyRequestCreateParams creates a new MultiAdminVerifyRequestCreateParams 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 NewMultiAdminVerifyRequestCreateParams() *MultiAdminVerifyRequestCreateParams { return &MultiAdminVerifyRequestCreateParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyRequestCreateParamsWithTimeout creates a new MultiAdminVerifyRequestCreateParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyRequestCreateParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRequestCreateParams { return &MultiAdminVerifyRequestCreateParams{ timeout: timeout, } } // NewMultiAdminVerifyRequestCreateParamsWithContext creates a new MultiAdminVerifyRequestCreateParams object // with the ability to set a context for a request. func NewMultiAdminVerifyRequestCreateParamsWithContext(ctx context.Context) *MultiAdminVerifyRequestCreateParams { return &MultiAdminVerifyRequestCreateParams{ Context: ctx, } } // NewMultiAdminVerifyRequestCreateParamsWithHTTPClient creates a new MultiAdminVerifyRequestCreateParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyRequestCreateParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRequestCreateParams { return &MultiAdminVerifyRequestCreateParams{ HTTPClient: client, } } /* MultiAdminVerifyRequestCreateParams contains all the parameters to send to the API endpoint for the multi admin verify request create operation. Typically these are written to a http.Request. */ type MultiAdminVerifyRequestCreateParams struct { /* Info. Info specification */ Info *models.MultiAdminVerifyRequest /* 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 multi admin verify request create params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRequestCreateParams) WithDefaults() *MultiAdminVerifyRequestCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify request create params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRequestCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := MultiAdminVerifyRequestCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRequestCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) WithContext(ctx context.Context) *MultiAdminVerifyRequestCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRequestCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) WithInfo(info *models.MultiAdminVerifyRequest) *MultiAdminVerifyRequestCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) SetInfo(info *models.MultiAdminVerifyRequest) { o.Info = info } // WithReturnRecords adds the returnRecords to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) WithReturnRecords(returnRecords *bool) *MultiAdminVerifyRequestCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the multi admin verify request create params func (o *MultiAdminVerifyRequestCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyRequestCreateParams) 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/security/multi_admin_verify_rule_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyRuleCreateParams creates a new MultiAdminVerifyRuleCreateParams 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 NewMultiAdminVerifyRuleCreateParams() *MultiAdminVerifyRuleCreateParams { return &MultiAdminVerifyRuleCreateParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyRuleCreateParamsWithTimeout creates a new MultiAdminVerifyRuleCreateParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyRuleCreateParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRuleCreateParams { return &MultiAdminVerifyRuleCreateParams{ timeout: timeout, } } // NewMultiAdminVerifyRuleCreateParamsWithContext creates a new MultiAdminVerifyRuleCreateParams object // with the ability to set a context for a request. func NewMultiAdminVerifyRuleCreateParamsWithContext(ctx context.Context) *MultiAdminVerifyRuleCreateParams { return &MultiAdminVerifyRuleCreateParams{ Context: ctx, } } // NewMultiAdminVerifyRuleCreateParamsWithHTTPClient creates a new MultiAdminVerifyRuleCreateParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyRuleCreateParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRuleCreateParams { return &MultiAdminVerifyRuleCreateParams{ HTTPClient: client, } } /* MultiAdminVerifyRuleCreateParams contains all the parameters to send to the API endpoint for the multi admin verify rule create operation. Typically these are written to a http.Request. */ type MultiAdminVerifyRuleCreateParams struct { /* Info. Info specification */ Info *models.MultiAdminVerifyRule /* 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 multi admin verify rule create params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleCreateParams) WithDefaults() *MultiAdminVerifyRuleCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify rule create params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := MultiAdminVerifyRuleCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRuleCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) WithContext(ctx context.Context) *MultiAdminVerifyRuleCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRuleCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) WithInfo(info *models.MultiAdminVerifyRule) *MultiAdminVerifyRuleCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) SetInfo(info *models.MultiAdminVerifyRule) { o.Info = info } // WithReturnRecords adds the returnRecords to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) WithReturnRecords(returnRecords *bool) *MultiAdminVerifyRuleCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the multi admin verify rule create params func (o *MultiAdminVerifyRuleCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyRuleCreateParams) 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/security/security_certificate_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_certificate_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityCertificateDeleteReader is a Reader for the SecurityCertificateDelete structure. type SecurityCertificateDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityCertificateDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityCertificateDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityCertificateDeleteDefault(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 } } // NewSecurityCertificateDeleteOK creates a SecurityCertificateDeleteOK with default headers values func NewSecurityCertificateDeleteOK() *SecurityCertificateDeleteOK { return &SecurityCertificateDeleteOK{} } /* SecurityCertificateDeleteOK describes a response with status code 200, with default header values. OK */ type SecurityCertificateDeleteOK struct { } // IsSuccess returns true when this security certificate delete o k response has a 2xx status code func (o *SecurityCertificateDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this security certificate delete o k response has a 3xx status code func (o *SecurityCertificateDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this security certificate delete o k response has a 4xx status code func (o *SecurityCertificateDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this security certificate delete o k response has a 5xx status code func (o *SecurityCertificateDeleteOK) IsServerError() bool { return false } // IsCode returns true when this security certificate delete o k response a status code equal to that given func (o *SecurityCertificateDeleteOK) IsCode(code int) bool { return code == 200 } func (o *SecurityCertificateDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/certificates/{uuid}][%d] securityCertificateDeleteOK ", 200) } func (o *SecurityCertificateDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/certificates/{uuid}][%d] securityCertificateDeleteOK ", 200) } func (o *SecurityCertificateDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewSecurityCertificateDeleteDefault creates a SecurityCertificateDeleteDefault with default headers values func NewSecurityCertificateDeleteDefault(code int) *SecurityCertificateDeleteDefault { return &SecurityCertificateDeleteDefault{ _statusCode: code, } } /* SecurityCertificateDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 3735644 | Cannot delete server-chain certificate. Reason: There is a corresponding server certificate for it. | | 3735679 | Cannot delete pre-installed server_ca certificates through REST. Use CLI or ZAPI. | | 3735650 | Deleting this client_ca certificate directly is not supported. Delete the corresponding root-ca certificate using type `root_ca` to delete the root, client, and server certificates. | | 3735627 | Deleting this server_ca certificate directly is not supported. Delete the corresponding root-ca certificate using type `root_ca` to delete the root, client, and server certificates. | | 3735589 | Cannot delete certificate. | | 3735590 | Cannot delete certificate. Failed to remove SSL configuration for the certificate. | | 3735683 | Cannot remove this certificate while external key manager is configured. | */ type SecurityCertificateDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security certificate delete default response func (o *SecurityCertificateDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security certificate delete default response has a 2xx status code func (o *SecurityCertificateDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security certificate delete default response has a 3xx status code func (o *SecurityCertificateDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security certificate delete default response has a 4xx status code func (o *SecurityCertificateDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security certificate delete default response has a 5xx status code func (o *SecurityCertificateDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security certificate delete default response a status code equal to that given func (o *SecurityCertificateDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityCertificateDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/certificates/{uuid}][%d] security_certificate_delete default %+v", o._statusCode, o.Payload) } func (o *SecurityCertificateDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/certificates/{uuid}][%d] security_certificate_delete default %+v", o._statusCode, o.Payload) } func (o *SecurityCertificateDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityCertificateDeleteDefault) 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/security/security_log_forwarding_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityLogForwardingCreateReader is a Reader for the SecurityLogForwardingCreate structure. type SecurityLogForwardingCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityLogForwardingCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewSecurityLogForwardingCreateAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityLogForwardingCreateDefault(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 } } // NewSecurityLogForwardingCreateAccepted creates a SecurityLogForwardingCreateAccepted with default headers values func NewSecurityLogForwardingCreateAccepted() *SecurityLogForwardingCreateAccepted { return &SecurityLogForwardingCreateAccepted{} } /* SecurityLogForwardingCreateAccepted describes a response with status code 202, with default header values. Accepted */ type SecurityLogForwardingCreateAccepted struct { /* Useful for tracking the resource location */ Location string Payload *models.SecurityAuditLogForwardResponse } // IsSuccess returns true when this security log forwarding create accepted response has a 2xx status code func (o *SecurityLogForwardingCreateAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this security log forwarding create accepted response has a 3xx status code func (o *SecurityLogForwardingCreateAccepted) IsRedirect() bool { return false } // IsClientError returns true when this security log forwarding create accepted response has a 4xx status code func (o *SecurityLogForwardingCreateAccepted) IsClientError() bool { return false } // IsServerError returns true when this security log forwarding create accepted response has a 5xx status code func (o *SecurityLogForwardingCreateAccepted) IsServerError() bool { return false } // IsCode returns true when this security log forwarding create accepted response a status code equal to that given func (o *SecurityLogForwardingCreateAccepted) IsCode(code int) bool { return code == 202 } func (o *SecurityLogForwardingCreateAccepted) Error() string { return fmt.Sprintf("[POST /security/audit/destinations][%d] securityLogForwardingCreateAccepted %+v", 202, o.Payload) } func (o *SecurityLogForwardingCreateAccepted) String() string { return fmt.Sprintf("[POST /security/audit/destinations][%d] securityLogForwardingCreateAccepted %+v", 202, o.Payload) } func (o *SecurityLogForwardingCreateAccepted) GetPayload() *models.SecurityAuditLogForwardResponse { return o.Payload } func (o *SecurityLogForwardingCreateAccepted) 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.SecurityAuditLogForwardResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSecurityLogForwardingCreateDefault creates a SecurityLogForwardingCreateDefault with default headers values func NewSecurityLogForwardingCreateDefault(code int) *SecurityLogForwardingCreateDefault { return &SecurityLogForwardingCreateDefault{ _statusCode: code, } } /* SecurityLogForwardingCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 15661 | The object specified could not be found | | 13114 | Internal error | | 13115 | Invalid input | | 4522285 | Server verification cannot be enabled because it requires a protocol with encryption. Encryption can be selected using the protocol field.| | 9240603 | Cannot ping destination host. Verify connectivity to desired host or skip the connectivity check with the -force parameter. | | 327698 | Failed to create RPC client to destination host | | 9240609 | Cannot connect to destination host. | | 9240604 | Cannot resolve the destination host. | */ type SecurityLogForwardingCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security log forwarding create default response func (o *SecurityLogForwardingCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security log forwarding create default response has a 2xx status code func (o *SecurityLogForwardingCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security log forwarding create default response has a 3xx status code func (o *SecurityLogForwardingCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security log forwarding create default response has a 4xx status code func (o *SecurityLogForwardingCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security log forwarding create default response has a 5xx status code func (o *SecurityLogForwardingCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security log forwarding create default response a status code equal to that given func (o *SecurityLogForwardingCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityLogForwardingCreateDefault) Error() string { return fmt.Sprintf("[POST /security/audit/destinations][%d] security_log_forwarding_create default %+v", o._statusCode, o.Payload) } func (o *SecurityLogForwardingCreateDefault) String() string { return fmt.Sprintf("[POST /security/audit/destinations][%d] security_log_forwarding_create default %+v", o._statusCode, o.Payload) } func (o *SecurityLogForwardingCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityLogForwardingCreateDefault) 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/security/role_privilege_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewRolePrivilegeModifyParams creates a new RolePrivilegeModifyParams 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 NewRolePrivilegeModifyParams() *RolePrivilegeModifyParams { return &RolePrivilegeModifyParams{ timeout: cr.DefaultTimeout, } } // NewRolePrivilegeModifyParamsWithTimeout creates a new RolePrivilegeModifyParams object // with the ability to set a timeout on a request. func NewRolePrivilegeModifyParamsWithTimeout(timeout time.Duration) *RolePrivilegeModifyParams { return &RolePrivilegeModifyParams{ timeout: timeout, } } // NewRolePrivilegeModifyParamsWithContext creates a new RolePrivilegeModifyParams object // with the ability to set a context for a request. func NewRolePrivilegeModifyParamsWithContext(ctx context.Context) *RolePrivilegeModifyParams { return &RolePrivilegeModifyParams{ Context: ctx, } } // NewRolePrivilegeModifyParamsWithHTTPClient creates a new RolePrivilegeModifyParams object // with the ability to set a custom HTTPClient for a request. func NewRolePrivilegeModifyParamsWithHTTPClient(client *http.Client) *RolePrivilegeModifyParams { return &RolePrivilegeModifyParams{ HTTPClient: client, } } /* RolePrivilegeModifyParams contains all the parameters to send to the API endpoint for the role privilege modify operation. Typically these are written to a http.Request. */ type RolePrivilegeModifyParams struct { // Info. Info *models.RolePrivilege /* Name. Role name */ Name string /* OwnerUUID. Role owner UUID */ OwnerUUID string /* Path. REST API path or command/command directory path */ Path string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the role privilege modify params (not the query body). // // All values with no default are reset to their zero value. func (o *RolePrivilegeModifyParams) WithDefaults() *RolePrivilegeModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the role privilege modify params (not the query body). // // All values with no default are reset to their zero value. func (o *RolePrivilegeModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the role privilege modify params func (o *RolePrivilegeModifyParams) WithTimeout(timeout time.Duration) *RolePrivilegeModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the role privilege modify params func (o *RolePrivilegeModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the role privilege modify params func (o *RolePrivilegeModifyParams) WithContext(ctx context.Context) *RolePrivilegeModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the role privilege modify params func (o *RolePrivilegeModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the role privilege modify params func (o *RolePrivilegeModifyParams) WithHTTPClient(client *http.Client) *RolePrivilegeModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the role privilege modify params func (o *RolePrivilegeModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the role privilege modify params func (o *RolePrivilegeModifyParams) WithInfo(info *models.RolePrivilege) *RolePrivilegeModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the role privilege modify params func (o *RolePrivilegeModifyParams) SetInfo(info *models.RolePrivilege) { o.Info = info } // WithName adds the name to the role privilege modify params func (o *RolePrivilegeModifyParams) WithName(name string) *RolePrivilegeModifyParams { o.SetName(name) return o } // SetName adds the name to the role privilege modify params func (o *RolePrivilegeModifyParams) SetName(name string) { o.Name = name } // WithOwnerUUID adds the ownerUUID to the role privilege modify params func (o *RolePrivilegeModifyParams) WithOwnerUUID(ownerUUID string) *RolePrivilegeModifyParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the role privilege modify params func (o *RolePrivilegeModifyParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WithPath adds the path to the role privilege modify params func (o *RolePrivilegeModifyParams) WithPath(path string) *RolePrivilegeModifyParams { o.SetPath(path) return o } // SetPath adds the path to the role privilege modify params func (o *RolePrivilegeModifyParams) SetPath(path string) { o.Path = path } // WriteToRequest writes these params to a swagger request func (o *RolePrivilegeModifyParams) 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 owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); err != nil { return err } // path param path if err := r.SetPathParam("path", o.Path); 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/security/gcp_kms_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewGcpKmsGetParams creates a new GcpKmsGetParams 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 NewGcpKmsGetParams() *GcpKmsGetParams { return &GcpKmsGetParams{ timeout: cr.DefaultTimeout, } } // NewGcpKmsGetParamsWithTimeout creates a new GcpKmsGetParams object // with the ability to set a timeout on a request. func NewGcpKmsGetParamsWithTimeout(timeout time.Duration) *GcpKmsGetParams { return &GcpKmsGetParams{ timeout: timeout, } } // NewGcpKmsGetParamsWithContext creates a new GcpKmsGetParams object // with the ability to set a context for a request. func NewGcpKmsGetParamsWithContext(ctx context.Context) *GcpKmsGetParams { return &GcpKmsGetParams{ Context: ctx, } } // NewGcpKmsGetParamsWithHTTPClient creates a new GcpKmsGetParams object // with the ability to set a custom HTTPClient for a request. func NewGcpKmsGetParamsWithHTTPClient(client *http.Client) *GcpKmsGetParams { return &GcpKmsGetParams{ HTTPClient: client, } } /* GcpKmsGetParams contains all the parameters to send to the API endpoint for the gcp kms get operation. Typically these are written to a http.Request. */ type GcpKmsGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Google Cloud KMS UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the gcp kms get params (not the query body). // // All values with no default are reset to their zero value. func (o *GcpKmsGetParams) WithDefaults() *GcpKmsGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the gcp kms get params (not the query body). // // All values with no default are reset to their zero value. func (o *GcpKmsGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the gcp kms get params func (o *GcpKmsGetParams) WithTimeout(timeout time.Duration) *GcpKmsGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the gcp kms get params func (o *GcpKmsGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the gcp kms get params func (o *GcpKmsGetParams) WithContext(ctx context.Context) *GcpKmsGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the gcp kms get params func (o *GcpKmsGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the gcp kms get params func (o *GcpKmsGetParams) WithHTTPClient(client *http.Client) *GcpKmsGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the gcp kms get params func (o *GcpKmsGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the gcp kms get params func (o *GcpKmsGetParams) WithFields(fields []string) *GcpKmsGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the gcp kms get params func (o *GcpKmsGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the gcp kms get params func (o *GcpKmsGetParams) WithUUID(uuid string) *GcpKmsGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the gcp kms get params func (o *GcpKmsGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *GcpKmsGetParams) 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 } // bindParamGcpKmsGet binds the parameter fields func (o *GcpKmsGetParams) 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/security/security_certificate_sign_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_certificate_sign_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityCertificateSignReader is a Reader for the SecurityCertificateSign structure. type SecurityCertificateSignReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityCertificateSignReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityCertificateSignOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityCertificateSignDefault(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 } } // NewSecurityCertificateSignOK creates a SecurityCertificateSignOK with default headers values func NewSecurityCertificateSignOK() *SecurityCertificateSignOK { return &SecurityCertificateSignOK{} } /* SecurityCertificateSignOK describes a response with status code 200, with default header values. OK */ type SecurityCertificateSignOK struct { Payload *models.SecurityCertificateSignResponse } // IsSuccess returns true when this security certificate sign o k response has a 2xx status code func (o *SecurityCertificateSignOK) IsSuccess() bool { return true } // IsRedirect returns true when this security certificate sign o k response has a 3xx status code func (o *SecurityCertificateSignOK) IsRedirect() bool { return false } // IsClientError returns true when this security certificate sign o k response has a 4xx status code func (o *SecurityCertificateSignOK) IsClientError() bool { return false } // IsServerError returns true when this security certificate sign o k response has a 5xx status code func (o *SecurityCertificateSignOK) IsServerError() bool { return false } // IsCode returns true when this security certificate sign o k response a status code equal to that given func (o *SecurityCertificateSignOK) IsCode(code int) bool { return code == 200 } func (o *SecurityCertificateSignOK) Error() string { return fmt.Sprintf("[POST /security/certificates/{ca.uuid}/sign][%d] securityCertificateSignOK %+v", 200, o.Payload) } func (o *SecurityCertificateSignOK) String() string { return fmt.Sprintf("[POST /security/certificates/{ca.uuid}/sign][%d] securityCertificateSignOK %+v", 200, o.Payload) } func (o *SecurityCertificateSignOK) GetPayload() *models.SecurityCertificateSignResponse { return o.Payload } func (o *SecurityCertificateSignOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SecurityCertificateSignResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSecurityCertificateSignDefault creates a SecurityCertificateSignDefault with default headers values func NewSecurityCertificateSignDefault(code int) *SecurityCertificateSignDefault { return &SecurityCertificateSignDefault{ _statusCode: code, } } /* SecurityCertificateSignDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 3735628 | Failed to use CA certificate for signing. | | 3735665 | The specified hash function is not supported in FIPS mode. | | 52559974 | The certificate is not supported in FIPS mode. | | 3735626 | Failed to generate signed Certificate. | | 3735558 | Failed to extract information about Common Name from the certificate. | | 3735588 | The common name (CN) extracted from the certificate is not valid. | | 3735632 | Failed to extract Certificate Authority Information from the certificate. | | 3735629 | Failed to sign the certificate because Common Name of signing certificate and Common Name of CA certificate are same. | | 3735630 | Failed to sign the certificate because expiry date of signing certificate exceeds the expiry date of CA certificate. | */ type SecurityCertificateSignDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security certificate sign default response func (o *SecurityCertificateSignDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security certificate sign default response has a 2xx status code func (o *SecurityCertificateSignDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security certificate sign default response has a 3xx status code func (o *SecurityCertificateSignDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security certificate sign default response has a 4xx status code func (o *SecurityCertificateSignDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security certificate sign default response has a 5xx status code func (o *SecurityCertificateSignDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security certificate sign default response a status code equal to that given func (o *SecurityCertificateSignDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityCertificateSignDefault) Error() string { return fmt.Sprintf("[POST /security/certificates/{ca.uuid}/sign][%d] security_certificate_sign default %+v", o._statusCode, o.Payload) } func (o *SecurityCertificateSignDefault) String() string { return fmt.Sprintf("[POST /security/certificates/{ca.uuid}/sign][%d] security_certificate_sign default %+v", o._statusCode, o.Payload) } func (o *SecurityCertificateSignDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityCertificateSignDefault) 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/security/security_key_manager_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityKeyManagerCreateReader is a Reader for the SecurityKeyManagerCreate structure. type SecurityKeyManagerCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityKeyManagerCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewSecurityKeyManagerCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityKeyManagerCreateDefault(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 } } // NewSecurityKeyManagerCreateCreated creates a SecurityKeyManagerCreateCreated with default headers values func NewSecurityKeyManagerCreateCreated() *SecurityKeyManagerCreateCreated { return &SecurityKeyManagerCreateCreated{} } /* SecurityKeyManagerCreateCreated describes a response with status code 201, with default header values. Created */ type SecurityKeyManagerCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.SecurityKeyManagerResponse } // IsSuccess returns true when this security key manager create created response has a 2xx status code func (o *SecurityKeyManagerCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this security key manager create created response has a 3xx status code func (o *SecurityKeyManagerCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this security key manager create created response has a 4xx status code func (o *SecurityKeyManagerCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this security key manager create created response has a 5xx status code func (o *SecurityKeyManagerCreateCreated) IsServerError() bool { return false } // IsCode returns true when this security key manager create created response a status code equal to that given func (o *SecurityKeyManagerCreateCreated) IsCode(code int) bool { return code == 201 } func (o *SecurityKeyManagerCreateCreated) Error() string { return fmt.Sprintf("[POST /security/key-managers][%d] securityKeyManagerCreateCreated %+v", 201, o.Payload) } func (o *SecurityKeyManagerCreateCreated) String() string { return fmt.Sprintf("[POST /security/key-managers][%d] securityKeyManagerCreateCreated %+v", 201, o.Payload) } func (o *SecurityKeyManagerCreateCreated) GetPayload() *models.SecurityKeyManagerResponse { return o.Payload } func (o *SecurityKeyManagerCreateCreated) 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.SecurityKeyManagerResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSecurityKeyManagerCreateDefault creates a SecurityKeyManagerCreateDefault with default headers values func NewSecurityKeyManagerCreateDefault(code int) *SecurityKeyManagerCreateDefault { return &SecurityKeyManagerCreateDefault{ _statusCode: code, } } /* SecurityKeyManagerCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65536038 | A maximum of 4 active primary key servers are allowed. | | 65536214 | Failed to generate cluster key encryption key. | | 65536216 | Failed to add cluster key encryption key. | | 65536310 | Failed to setup the Onboard Key Manager because the MetroCluster peer is unhealthy. | | 65536341 | Failed to setup the Onboard Key Manager because the MetroCluster peer is unhealthy. | | 65536508 | The platform does not support data at rest encryption. | | 65536821 | The certificate is not installed. | | 65536822 | Multitenant key management is not supported in the current cluster version. | | 65536823 | The SVM has key manager already configured. | | 65536824 | Multitenant key management is not supported in MetroCluster configurations. | | 65536834 | Failed to get existing key-server details for the SVM. | | 65536852 | Failed to query supported KMIP protocol versions. | | 65536870 | Key management servers already configured. | | 65536871 | Duplicate key management servers exist. | | 65536876 | External key management requires client and server CA certificates installed and with one or more key servers provided. | | 65536878 | External key management cannot be configured as one or more volume encryption keys of the SVM are stored in cluster key management server. | | 65536895 | External key manager cannnot be configured since this cluster is part of a MetroCluster configuration and the partner site of this MetroCluster configuration has Onboard Key Manager configured. | | 65536900 | The Onboard Key Manager cannot be configured because this cluster is part of a MetroCluster configuration and the partner site has the external key manager configured. | | 65536903 | The Onboard Key Manager has failed to configure on some nodes in the cluster. Use the CLI to sync the Onboard Key Manager configuration on failed nodes. | | 65536906 | The Onboard Key Manager has already been configured at the partner site. Use the CLI to sync the Onboard Key Manager with the same passphrase. | | 65536907 | The Onboard Key Manager is already configured. Use the CLI to sync any nodes with the Onboard Key Manager configuration. | | 65536916 | The Onboard Key Manager is only supported for an admin SVM. | | 65536920 | The Onboard Key Manager passphrase length is incorrect. | | 65537240 | The Onboard Key Manager passphrase must be provided when performing a POST/synchronize operation. | | 65537241 | The Onboard Key Manager existing_passphrase must not be provided when performing a POST/synchronize operation. | | 65537244 | Unable to sync/create Onboard Key Manager on the local cluster; Onboard Key Manager is already configured on the cluster. | | 65537245 | Unable to sync/create Onboard Key Manager on the local cluster; Onboard Key Manager is not configured on the partner cluster. | | 65537246 | Unable to sync/create Onboard Key Manager on local cluster. This cluster is not part of a MetroCluster configuration. | | 66060338 | Failed to establish secure connection for a key management server due to incorrect server_ca certificates. | | 66060339 | Failed to establish secure connection for a key management server due to incorrect client certificates. | | 66060340 | Failed to establish secure connection for a key management server due to Cryptsoft error. | */ type SecurityKeyManagerCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security key manager create default response func (o *SecurityKeyManagerCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security key manager create default response has a 2xx status code func (o *SecurityKeyManagerCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security key manager create default response has a 3xx status code func (o *SecurityKeyManagerCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security key manager create default response has a 4xx status code func (o *SecurityKeyManagerCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security key manager create default response has a 5xx status code func (o *SecurityKeyManagerCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security key manager create default response a status code equal to that given func (o *SecurityKeyManagerCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityKeyManagerCreateDefault) Error() string { return fmt.Sprintf("[POST /security/key-managers][%d] security_key_manager_create default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerCreateDefault) String() string { return fmt.Sprintf("[POST /security/key-managers][%d] security_key_manager_create default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityKeyManagerCreateDefault) 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/security/multi_admin_verify_config_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_config_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // MultiAdminVerifyConfigModifyReader is a Reader for the MultiAdminVerifyConfigModify structure. type MultiAdminVerifyConfigModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MultiAdminVerifyConfigModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMultiAdminVerifyConfigModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMultiAdminVerifyConfigModifyDefault(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 } } // NewMultiAdminVerifyConfigModifyOK creates a MultiAdminVerifyConfigModifyOK with default headers values func NewMultiAdminVerifyConfigModifyOK() *MultiAdminVerifyConfigModifyOK { return &MultiAdminVerifyConfigModifyOK{} } /* MultiAdminVerifyConfigModifyOK describes a response with status code 200, with default header values. OK */ type MultiAdminVerifyConfigModifyOK struct { } // IsSuccess returns true when this multi admin verify config modify o k response has a 2xx status code func (o *MultiAdminVerifyConfigModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this multi admin verify config modify o k response has a 3xx status code func (o *MultiAdminVerifyConfigModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this multi admin verify config modify o k response has a 4xx status code func (o *MultiAdminVerifyConfigModifyOK) IsClientError() bool { return false } // IsServerError returns true when this multi admin verify config modify o k response has a 5xx status code func (o *MultiAdminVerifyConfigModifyOK) IsServerError() bool { return false } // IsCode returns true when this multi admin verify config modify o k response a status code equal to that given func (o *MultiAdminVerifyConfigModifyOK) IsCode(code int) bool { return code == 200 } func (o *MultiAdminVerifyConfigModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify][%d] multiAdminVerifyConfigModifyOK ", 200) } func (o *MultiAdminVerifyConfigModifyOK) String() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify][%d] multiAdminVerifyConfigModifyOK ", 200) } func (o *MultiAdminVerifyConfigModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewMultiAdminVerifyConfigModifyDefault creates a MultiAdminVerifyConfigModifyDefault with default headers values func NewMultiAdminVerifyConfigModifyDefault(code int) *MultiAdminVerifyConfigModifyDefault { return &MultiAdminVerifyConfigModifyDefault{ _statusCode: code, } } /* MultiAdminVerifyConfigModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 262309 | The feature must be enabled first. | | 262311 | Value must be greater than zero. | | 262312 | Number of required approvers must be less than the total number of unique approvers in the approval-groups. | | 262313 | Number of unique approvers in the approval-groups must be greater than the number of required approvers. | | 262315 | Approval-groups must be specified when enabling this feature. | | 262316 | Value must be in the range one second to two weeks. | | 262318 | multi-admin-verify requires an effective cluster version of ONTAP 9.11.1 or later. | */ type MultiAdminVerifyConfigModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the multi admin verify config modify default response func (o *MultiAdminVerifyConfigModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this multi admin verify config modify default response has a 2xx status code func (o *MultiAdminVerifyConfigModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this multi admin verify config modify default response has a 3xx status code func (o *MultiAdminVerifyConfigModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this multi admin verify config modify default response has a 4xx status code func (o *MultiAdminVerifyConfigModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this multi admin verify config modify default response has a 5xx status code func (o *MultiAdminVerifyConfigModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this multi admin verify config modify default response a status code equal to that given func (o *MultiAdminVerifyConfigModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MultiAdminVerifyConfigModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify][%d] multi_admin_verify_config_modify default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyConfigModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify][%d] multi_admin_verify_config_modify default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyConfigModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MultiAdminVerifyConfigModifyDefault) 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/security/security_key_manager_key_servers_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityKeyManagerKeyServersCollectionGetReader is a Reader for the SecurityKeyManagerKeyServersCollectionGet structure. type SecurityKeyManagerKeyServersCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityKeyManagerKeyServersCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityKeyManagerKeyServersCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityKeyManagerKeyServersCollectionGetDefault(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 } } // NewSecurityKeyManagerKeyServersCollectionGetOK creates a SecurityKeyManagerKeyServersCollectionGetOK with default headers values func NewSecurityKeyManagerKeyServersCollectionGetOK() *SecurityKeyManagerKeyServersCollectionGetOK { return &SecurityKeyManagerKeyServersCollectionGetOK{} } /* SecurityKeyManagerKeyServersCollectionGetOK describes a response with status code 200, with default header values. OK */ type SecurityKeyManagerKeyServersCollectionGetOK struct { Payload *models.KeyServerResponse } // IsSuccess returns true when this security key manager key servers collection get o k response has a 2xx status code func (o *SecurityKeyManagerKeyServersCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this security key manager key servers collection get o k response has a 3xx status code func (o *SecurityKeyManagerKeyServersCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this security key manager key servers collection get o k response has a 4xx status code func (o *SecurityKeyManagerKeyServersCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this security key manager key servers collection get o k response has a 5xx status code func (o *SecurityKeyManagerKeyServersCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this security key manager key servers collection get o k response a status code equal to that given func (o *SecurityKeyManagerKeyServersCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *SecurityKeyManagerKeyServersCollectionGetOK) Error() string { return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers][%d] securityKeyManagerKeyServersCollectionGetOK %+v", 200, o.Payload) } func (o *SecurityKeyManagerKeyServersCollectionGetOK) String() string { return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers][%d] securityKeyManagerKeyServersCollectionGetOK %+v", 200, o.Payload) } func (o *SecurityKeyManagerKeyServersCollectionGetOK) GetPayload() *models.KeyServerResponse { return o.Payload } func (o *SecurityKeyManagerKeyServersCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.KeyServerResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSecurityKeyManagerKeyServersCollectionGetDefault creates a SecurityKeyManagerKeyServersCollectionGetDefault with default headers values func NewSecurityKeyManagerKeyServersCollectionGetDefault(code int) *SecurityKeyManagerKeyServersCollectionGetDefault { return &SecurityKeyManagerKeyServersCollectionGetDefault{ _statusCode: code, } } /* SecurityKeyManagerKeyServersCollectionGetDefault describes a response with status code -1, with default header values. Error */ type SecurityKeyManagerKeyServersCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security key manager key servers collection get default response func (o *SecurityKeyManagerKeyServersCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security key manager key servers collection get default response has a 2xx status code func (o *SecurityKeyManagerKeyServersCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security key manager key servers collection get default response has a 3xx status code func (o *SecurityKeyManagerKeyServersCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security key manager key servers collection get default response has a 4xx status code func (o *SecurityKeyManagerKeyServersCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security key manager key servers collection get default response has a 5xx status code func (o *SecurityKeyManagerKeyServersCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security key manager key servers collection get default response a status code equal to that given func (o *SecurityKeyManagerKeyServersCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityKeyManagerKeyServersCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers][%d] security_key_manager_key_servers_collection_get default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerKeyServersCollectionGetDefault) String() string { return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers][%d] security_key_manager_key_servers_collection_get default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerKeyServersCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityKeyManagerKeyServersCollectionGetDefault) 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/security/multi_admin_verify_approval_group_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_approval_group_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // MultiAdminVerifyApprovalGroupModifyReader is a Reader for the MultiAdminVerifyApprovalGroupModify structure. type MultiAdminVerifyApprovalGroupModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MultiAdminVerifyApprovalGroupModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMultiAdminVerifyApprovalGroupModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMultiAdminVerifyApprovalGroupModifyDefault(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 } } // NewMultiAdminVerifyApprovalGroupModifyOK creates a MultiAdminVerifyApprovalGroupModifyOK with default headers values func NewMultiAdminVerifyApprovalGroupModifyOK() *MultiAdminVerifyApprovalGroupModifyOK { return &MultiAdminVerifyApprovalGroupModifyOK{} } /* MultiAdminVerifyApprovalGroupModifyOK describes a response with status code 200, with default header values. OK */ type MultiAdminVerifyApprovalGroupModifyOK struct { } // IsSuccess returns true when this multi admin verify approval group modify o k response has a 2xx status code func (o *MultiAdminVerifyApprovalGroupModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this multi admin verify approval group modify o k response has a 3xx status code func (o *MultiAdminVerifyApprovalGroupModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this multi admin verify approval group modify o k response has a 4xx status code func (o *MultiAdminVerifyApprovalGroupModifyOK) IsClientError() bool { return false } // IsServerError returns true when this multi admin verify approval group modify o k response has a 5xx status code func (o *MultiAdminVerifyApprovalGroupModifyOK) IsServerError() bool { return false } // IsCode returns true when this multi admin verify approval group modify o k response a status code equal to that given func (o *MultiAdminVerifyApprovalGroupModifyOK) IsCode(code int) bool { return code == 200 } func (o *MultiAdminVerifyApprovalGroupModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multiAdminVerifyApprovalGroupModifyOK ", 200) } func (o *MultiAdminVerifyApprovalGroupModifyOK) String() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multiAdminVerifyApprovalGroupModifyOK ", 200) } func (o *MultiAdminVerifyApprovalGroupModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewMultiAdminVerifyApprovalGroupModifyDefault creates a MultiAdminVerifyApprovalGroupModifyDefault with default headers values func NewMultiAdminVerifyApprovalGroupModifyDefault(code int) *MultiAdminVerifyApprovalGroupModifyDefault { return &MultiAdminVerifyApprovalGroupModifyDefault{ _statusCode: code, } } /* MultiAdminVerifyApprovalGroupModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 262331 | At least one approver is required. | | 262332 | An add or remove list is required. | */ type MultiAdminVerifyApprovalGroupModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the multi admin verify approval group modify default response func (o *MultiAdminVerifyApprovalGroupModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this multi admin verify approval group modify default response has a 2xx status code func (o *MultiAdminVerifyApprovalGroupModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this multi admin verify approval group modify default response has a 3xx status code func (o *MultiAdminVerifyApprovalGroupModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this multi admin verify approval group modify default response has a 4xx status code func (o *MultiAdminVerifyApprovalGroupModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this multi admin verify approval group modify default response has a 5xx status code func (o *MultiAdminVerifyApprovalGroupModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this multi admin verify approval group modify default response a status code equal to that given func (o *MultiAdminVerifyApprovalGroupModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MultiAdminVerifyApprovalGroupModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multi_admin_verify_approval_group_modify default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyApprovalGroupModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multi_admin_verify_approval_group_modify default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyApprovalGroupModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MultiAdminVerifyApprovalGroupModifyDefault) 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/security/aws_kms_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAwsKmsDeleteParams creates a new AwsKmsDeleteParams 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 NewAwsKmsDeleteParams() *AwsKmsDeleteParams { return &AwsKmsDeleteParams{ timeout: cr.DefaultTimeout, } } // NewAwsKmsDeleteParamsWithTimeout creates a new AwsKmsDeleteParams object // with the ability to set a timeout on a request. func NewAwsKmsDeleteParamsWithTimeout(timeout time.Duration) *AwsKmsDeleteParams { return &AwsKmsDeleteParams{ timeout: timeout, } } // NewAwsKmsDeleteParamsWithContext creates a new AwsKmsDeleteParams object // with the ability to set a context for a request. func NewAwsKmsDeleteParamsWithContext(ctx context.Context) *AwsKmsDeleteParams { return &AwsKmsDeleteParams{ Context: ctx, } } // NewAwsKmsDeleteParamsWithHTTPClient creates a new AwsKmsDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewAwsKmsDeleteParamsWithHTTPClient(client *http.Client) *AwsKmsDeleteParams { return &AwsKmsDeleteParams{ HTTPClient: client, } } /* AwsKmsDeleteParams contains all the parameters to send to the API endpoint for the aws kms delete operation. Typically these are written to a http.Request. */ type AwsKmsDeleteParams struct { /* UUID. AWS KMS UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the aws kms delete params (not the query body). // // All values with no default are reset to their zero value. func (o *AwsKmsDeleteParams) WithDefaults() *AwsKmsDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the aws kms delete params (not the query body). // // All values with no default are reset to their zero value. func (o *AwsKmsDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the aws kms delete params func (o *AwsKmsDeleteParams) WithTimeout(timeout time.Duration) *AwsKmsDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the aws kms delete params func (o *AwsKmsDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the aws kms delete params func (o *AwsKmsDeleteParams) WithContext(ctx context.Context) *AwsKmsDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the aws kms delete params func (o *AwsKmsDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the aws kms delete params func (o *AwsKmsDeleteParams) WithHTTPClient(client *http.Client) *AwsKmsDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the aws kms delete params func (o *AwsKmsDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithUUID adds the uuid to the aws kms delete params func (o *AwsKmsDeleteParams) WithUUID(uuid string) *AwsKmsDeleteParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the aws kms delete params func (o *AwsKmsDeleteParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *AwsKmsDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_audit_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_audit_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityAuditGetParams creates a new SecurityAuditGetParams 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 NewSecurityAuditGetParams() *SecurityAuditGetParams { return &SecurityAuditGetParams{ timeout: cr.DefaultTimeout, } } // NewSecurityAuditGetParamsWithTimeout creates a new SecurityAuditGetParams object // with the ability to set a timeout on a request. func NewSecurityAuditGetParamsWithTimeout(timeout time.Duration) *SecurityAuditGetParams { return &SecurityAuditGetParams{ timeout: timeout, } } // NewSecurityAuditGetParamsWithContext creates a new SecurityAuditGetParams object // with the ability to set a context for a request. func NewSecurityAuditGetParamsWithContext(ctx context.Context) *SecurityAuditGetParams { return &SecurityAuditGetParams{ Context: ctx, } } // NewSecurityAuditGetParamsWithHTTPClient creates a new SecurityAuditGetParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityAuditGetParamsWithHTTPClient(client *http.Client) *SecurityAuditGetParams { return &SecurityAuditGetParams{ HTTPClient: client, } } /* SecurityAuditGetParams contains all the parameters to send to the API endpoint for the security audit get operation. Typically these are written to a http.Request. */ type SecurityAuditGetParams struct { /* Fields. Specify the fields to return. */ Fields []string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the security audit get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityAuditGetParams) WithDefaults() *SecurityAuditGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security audit get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityAuditGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the security audit get params func (o *SecurityAuditGetParams) WithTimeout(timeout time.Duration) *SecurityAuditGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security audit get params func (o *SecurityAuditGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security audit get params func (o *SecurityAuditGetParams) WithContext(ctx context.Context) *SecurityAuditGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the security audit get params func (o *SecurityAuditGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security audit get params func (o *SecurityAuditGetParams) WithHTTPClient(client *http.Client) *SecurityAuditGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security audit get params func (o *SecurityAuditGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the security audit get params func (o *SecurityAuditGetParams) WithFields(fields []string) *SecurityAuditGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the security audit get params func (o *SecurityAuditGetParams) SetFields(fields []string) { o.Fields = fields } // WriteToRequest writes these params to a swagger request func (o *SecurityAuditGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSecurityAuditGet binds the parameter fields func (o *SecurityAuditGetParams) 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/security/svm_ssh_server_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/svm_ssh_server_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SvmSSHServerModifyReader is a Reader for the SvmSSHServerModify structure. type SvmSSHServerModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SvmSSHServerModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSvmSSHServerModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSvmSSHServerModifyDefault(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 } } // NewSvmSSHServerModifyOK creates a SvmSSHServerModifyOK with default headers values func NewSvmSSHServerModifyOK() *SvmSSHServerModifyOK { return &SvmSSHServerModifyOK{} } /* SvmSSHServerModifyOK describes a response with status code 200, with default header values. OK */ type SvmSSHServerModifyOK struct { } // IsSuccess returns true when this svm Ssh server modify o k response has a 2xx status code func (o *SvmSSHServerModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this svm Ssh server modify o k response has a 3xx status code func (o *SvmSSHServerModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this svm Ssh server modify o k response has a 4xx status code func (o *SvmSSHServerModifyOK) IsClientError() bool { return false } // IsServerError returns true when this svm Ssh server modify o k response has a 5xx status code func (o *SvmSSHServerModifyOK) IsServerError() bool { return false } // IsCode returns true when this svm Ssh server modify o k response a status code equal to that given func (o *SvmSSHServerModifyOK) IsCode(code int) bool { return code == 200 } func (o *SvmSSHServerModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/ssh/svms/{svm.uuid}][%d] svmSshServerModifyOK ", 200) } func (o *SvmSSHServerModifyOK) String() string { return fmt.Sprintf("[PATCH /security/ssh/svms/{svm.uuid}][%d] svmSshServerModifyOK ", 200) } func (o *SvmSSHServerModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewSvmSSHServerModifyDefault creates a SvmSSHServerModifyDefault with default headers values func NewSvmSSHServerModifyDefault(code int) *SvmSSHServerModifyDefault { return &SvmSSHServerModifyDefault{ _statusCode: code, } } /* SvmSSHServerModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 10682372 | There must be at least one key exchange algorithm associated with the SSH configuration. | | 10682373 | There must be at least one cipher associated with the SSH configuration. | | 10682375 | Failed to modify SSH key exchange algorithms. | | 10682378 | Failed to modify SSH ciphers. | | 10682399 | Key exchange algorithm not supported in FIPS-enabled mode. | | 10682400 | Failed to modify SSH MAC algorithms. | | 10682401 | MAC algorithm not supported in FIPS-enabled mode. | | 10682403 | There must be at least one MAC algorithm with the SSH configuration. | | 10682413 | Failed to modify maximum authentication retry attempts. | | 10682418 | Cipher not supported in FIPS-enabled mode. | */ type SvmSSHServerModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the svm ssh server modify default response func (o *SvmSSHServerModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this svm ssh server modify default response has a 2xx status code func (o *SvmSSHServerModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this svm ssh server modify default response has a 3xx status code func (o *SvmSSHServerModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this svm ssh server modify default response has a 4xx status code func (o *SvmSSHServerModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this svm ssh server modify default response has a 5xx status code func (o *SvmSSHServerModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this svm ssh server modify default response a status code equal to that given func (o *SvmSSHServerModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SvmSSHServerModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/ssh/svms/{svm.uuid}][%d] svm_ssh_server_modify default %+v", o._statusCode, o.Payload) } func (o *SvmSSHServerModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/ssh/svms/{svm.uuid}][%d] svm_ssh_server_modify default %+v", o._statusCode, o.Payload) } func (o *SvmSSHServerModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SvmSSHServerModifyDefault) 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/security/account_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAccountCreateParams creates a new AccountCreateParams 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 NewAccountCreateParams() *AccountCreateParams { return &AccountCreateParams{ timeout: cr.DefaultTimeout, } } // NewAccountCreateParamsWithTimeout creates a new AccountCreateParams object // with the ability to set a timeout on a request. func NewAccountCreateParamsWithTimeout(timeout time.Duration) *AccountCreateParams { return &AccountCreateParams{ timeout: timeout, } } // NewAccountCreateParamsWithContext creates a new AccountCreateParams object // with the ability to set a context for a request. func NewAccountCreateParamsWithContext(ctx context.Context) *AccountCreateParams { return &AccountCreateParams{ Context: ctx, } } // NewAccountCreateParamsWithHTTPClient creates a new AccountCreateParams object // with the ability to set a custom HTTPClient for a request. func NewAccountCreateParamsWithHTTPClient(client *http.Client) *AccountCreateParams { return &AccountCreateParams{ HTTPClient: client, } } /* AccountCreateParams contains all the parameters to send to the API endpoint for the account create operation. Typically these are written to a http.Request. */ type AccountCreateParams struct { /* Info. Details for the user account to be created. */ Info *models.Account /* 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 account create params (not the query body). // // All values with no default are reset to their zero value. func (o *AccountCreateParams) WithDefaults() *AccountCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the account create params (not the query body). // // All values with no default are reset to their zero value. func (o *AccountCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := AccountCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the account create params func (o *AccountCreateParams) WithTimeout(timeout time.Duration) *AccountCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the account create params func (o *AccountCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the account create params func (o *AccountCreateParams) WithContext(ctx context.Context) *AccountCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the account create params func (o *AccountCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the account create params func (o *AccountCreateParams) WithHTTPClient(client *http.Client) *AccountCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the account create params func (o *AccountCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the account create params func (o *AccountCreateParams) WithInfo(info *models.Account) *AccountCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the account create params func (o *AccountCreateParams) SetInfo(info *models.Account) { o.Info = info } // WithReturnRecords adds the returnRecords to the account create params func (o *AccountCreateParams) WithReturnRecords(returnRecords *bool) *AccountCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the account create params func (o *AccountCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *AccountCreateParams) 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/security/ipsec_ca_certificate_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_certificate_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecCaCertificateCollectionGetParams creates a new IpsecCaCertificateCollectionGetParams 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 NewIpsecCaCertificateCollectionGetParams() *IpsecCaCertificateCollectionGetParams { return &IpsecCaCertificateCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewIpsecCaCertificateCollectionGetParamsWithTimeout creates a new IpsecCaCertificateCollectionGetParams object // with the ability to set a timeout on a request. func NewIpsecCaCertificateCollectionGetParamsWithTimeout(timeout time.Duration) *IpsecCaCertificateCollectionGetParams { return &IpsecCaCertificateCollectionGetParams{ timeout: timeout, } } // NewIpsecCaCertificateCollectionGetParamsWithContext creates a new IpsecCaCertificateCollectionGetParams object // with the ability to set a context for a request. func NewIpsecCaCertificateCollectionGetParamsWithContext(ctx context.Context) *IpsecCaCertificateCollectionGetParams { return &IpsecCaCertificateCollectionGetParams{ Context: ctx, } } // NewIpsecCaCertificateCollectionGetParamsWithHTTPClient creates a new IpsecCaCertificateCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecCaCertificateCollectionGetParamsWithHTTPClient(client *http.Client) *IpsecCaCertificateCollectionGetParams { return &IpsecCaCertificateCollectionGetParams{ HTTPClient: client, } } /* IpsecCaCertificateCollectionGetParams contains all the parameters to send to the API endpoint for the ipsec ca certificate collection get operation. Typically these are written to a http.Request. */ type IpsecCaCertificateCollectionGetParams struct { /* CertificateUUID. Filter by certificate.uuid */ CertificateUUID *string /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* Scope. Filter by scope */ Scope *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 ipsec ca certificate collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecCaCertificateCollectionGetParams) WithDefaults() *IpsecCaCertificateCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec ca certificate collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecCaCertificateCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := IpsecCaCertificateCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithTimeout(timeout time.Duration) *IpsecCaCertificateCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithContext(ctx context.Context) *IpsecCaCertificateCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithHTTPClient(client *http.Client) *IpsecCaCertificateCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCertificateUUID adds the certificateUUID to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithCertificateUUID(certificateUUID *string) *IpsecCaCertificateCollectionGetParams { o.SetCertificateUUID(certificateUUID) return o } // SetCertificateUUID adds the certificateUuid to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetCertificateUUID(certificateUUID *string) { o.CertificateUUID = certificateUUID } // WithFields adds the fields to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithFields(fields []string) *IpsecCaCertificateCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithMaxRecords(maxRecords *int64) *IpsecCaCertificateCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithOrderBy(orderBy []string) *IpsecCaCertificateCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithReturnRecords(returnRecords *bool) *IpsecCaCertificateCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *IpsecCaCertificateCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithScope(scope *string) *IpsecCaCertificateCollectionGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetScope(scope *string) { o.Scope = scope } // WithSvmName adds the svmName to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithSvmName(svmName *string) *IpsecCaCertificateCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) WithSvmUUID(svmUUID *string) *IpsecCaCertificateCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the ipsec ca certificate collection get params func (o *IpsecCaCertificateCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WriteToRequest writes these params to a swagger request func (o *IpsecCaCertificateCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.CertificateUUID != nil { // query param certificate.uuid var qrCertificateUUID string if o.CertificateUUID != nil { qrCertificateUUID = *o.CertificateUUID } qCertificateUUID := qrCertificateUUID if qCertificateUUID != "" { if err := r.SetQueryParam("certificate.uuid", qCertificateUUID); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.Scope != nil { // query param scope var qrScope string if o.Scope != nil { qrScope = *o.Scope } qScope := qrScope if qScope != "" { if err := r.SetQueryParam("scope", qScope); err != nil { return err } } } if o.SvmName != nil { // query param svm.name var qrSvmName string if o.SvmName != nil { qrSvmName = *o.SvmName } qSvmName := qrSvmName if qSvmName != "" { if err := r.SetQueryParam("svm.name", qSvmName); err != nil { return err } } } if o.SvmUUID != nil { // query param svm.uuid var qrSvmUUID string if o.SvmUUID != nil { qrSvmUUID = *o.SvmUUID } qSvmUUID := qrSvmUUID if qSvmUUID != "" { if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamIpsecCaCertificateCollectionGet binds the parameter fields func (o *IpsecCaCertificateCollectionGetParams) 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 } // bindParamIpsecCaCertificateCollectionGet binds the parameter order_by func (o *IpsecCaCertificateCollectionGetParams) 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/security/security_key_manager_key_servers_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityKeyManagerKeyServersDeleteReader is a Reader for the SecurityKeyManagerKeyServersDelete structure. type SecurityKeyManagerKeyServersDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityKeyManagerKeyServersDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityKeyManagerKeyServersDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityKeyManagerKeyServersDeleteDefault(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 } } // NewSecurityKeyManagerKeyServersDeleteOK creates a SecurityKeyManagerKeyServersDeleteOK with default headers values func NewSecurityKeyManagerKeyServersDeleteOK() *SecurityKeyManagerKeyServersDeleteOK { return &SecurityKeyManagerKeyServersDeleteOK{} } /* SecurityKeyManagerKeyServersDeleteOK describes a response with status code 200, with default header values. OK */ type SecurityKeyManagerKeyServersDeleteOK struct { } // IsSuccess returns true when this security key manager key servers delete o k response has a 2xx status code func (o *SecurityKeyManagerKeyServersDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this security key manager key servers delete o k response has a 3xx status code func (o *SecurityKeyManagerKeyServersDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this security key manager key servers delete o k response has a 4xx status code func (o *SecurityKeyManagerKeyServersDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this security key manager key servers delete o k response has a 5xx status code func (o *SecurityKeyManagerKeyServersDeleteOK) IsServerError() bool { return false } // IsCode returns true when this security key manager key servers delete o k response a status code equal to that given func (o *SecurityKeyManagerKeyServersDeleteOK) IsCode(code int) bool { return code == 200 } func (o *SecurityKeyManagerKeyServersDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/key-managers/{uuid}/key-servers/{server}][%d] securityKeyManagerKeyServersDeleteOK ", 200) } func (o *SecurityKeyManagerKeyServersDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/key-managers/{uuid}/key-servers/{server}][%d] securityKeyManagerKeyServersDeleteOK ", 200) } func (o *SecurityKeyManagerKeyServersDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewSecurityKeyManagerKeyServersDeleteDefault creates a SecurityKeyManagerKeyServersDeleteDefault with default headers values func NewSecurityKeyManagerKeyServersDeleteDefault(code int) *SecurityKeyManagerKeyServersDeleteDefault { return &SecurityKeyManagerKeyServersDeleteDefault{ _statusCode: code, } } /* SecurityKeyManagerKeyServersDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65536600 | Cannot remove a key server while a node is out quorum. | | 65536700 | The key server contains keys that are currently in use and not available from any other configured key server in the SVM. | | 65536822 | Multitenant key management is not supported in the current cluster version. | | 65536824 | Multitenant key management is not supported in MetroCluster configurations. | | 65536828 | External key management is not enabled for the SVM. | | 65536843 | The key management server is not configured for the SVM. | */ type SecurityKeyManagerKeyServersDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security key manager key servers delete default response func (o *SecurityKeyManagerKeyServersDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security key manager key servers delete default response has a 2xx status code func (o *SecurityKeyManagerKeyServersDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security key manager key servers delete default response has a 3xx status code func (o *SecurityKeyManagerKeyServersDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security key manager key servers delete default response has a 4xx status code func (o *SecurityKeyManagerKeyServersDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security key manager key servers delete default response has a 5xx status code func (o *SecurityKeyManagerKeyServersDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security key manager key servers delete default response a status code equal to that given func (o *SecurityKeyManagerKeyServersDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityKeyManagerKeyServersDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/key-managers/{uuid}/key-servers/{server}][%d] security_key_manager_key_servers_delete default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerKeyServersDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/key-managers/{uuid}/key-servers/{server}][%d] security_key_manager_key_servers_delete default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerKeyServersDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityKeyManagerKeyServersDeleteDefault) 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/security/key_manager_config_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_config_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewKeyManagerConfigModifyParams creates a new KeyManagerConfigModifyParams 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 NewKeyManagerConfigModifyParams() *KeyManagerConfigModifyParams { return &KeyManagerConfigModifyParams{ timeout: cr.DefaultTimeout, } } // NewKeyManagerConfigModifyParamsWithTimeout creates a new KeyManagerConfigModifyParams object // with the ability to set a timeout on a request. func NewKeyManagerConfigModifyParamsWithTimeout(timeout time.Duration) *KeyManagerConfigModifyParams { return &KeyManagerConfigModifyParams{ timeout: timeout, } } // NewKeyManagerConfigModifyParamsWithContext creates a new KeyManagerConfigModifyParams object // with the ability to set a context for a request. func NewKeyManagerConfigModifyParamsWithContext(ctx context.Context) *KeyManagerConfigModifyParams { return &KeyManagerConfigModifyParams{ Context: ctx, } } // NewKeyManagerConfigModifyParamsWithHTTPClient creates a new KeyManagerConfigModifyParams object // with the ability to set a custom HTTPClient for a request. func NewKeyManagerConfigModifyParamsWithHTTPClient(client *http.Client) *KeyManagerConfigModifyParams { return &KeyManagerConfigModifyParams{ HTTPClient: client, } } /* KeyManagerConfigModifyParams contains all the parameters to send to the API endpoint for the key manager config modify operation. Typically these are written to a http.Request. */ type KeyManagerConfigModifyParams struct { /* Info. Info specification */ Info *models.KeyManagerConfig timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the key manager config modify params (not the query body). // // All values with no default are reset to their zero value. func (o *KeyManagerConfigModifyParams) WithDefaults() *KeyManagerConfigModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the key manager config modify params (not the query body). // // All values with no default are reset to their zero value. func (o *KeyManagerConfigModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the key manager config modify params func (o *KeyManagerConfigModifyParams) WithTimeout(timeout time.Duration) *KeyManagerConfigModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the key manager config modify params func (o *KeyManagerConfigModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the key manager config modify params func (o *KeyManagerConfigModifyParams) WithContext(ctx context.Context) *KeyManagerConfigModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the key manager config modify params func (o *KeyManagerConfigModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the key manager config modify params func (o *KeyManagerConfigModifyParams) WithHTTPClient(client *http.Client) *KeyManagerConfigModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the key manager config modify params func (o *KeyManagerConfigModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the key manager config modify params func (o *KeyManagerConfigModifyParams) WithInfo(info *models.KeyManagerConfig) *KeyManagerConfigModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the key manager config modify params func (o *KeyManagerConfigModifyParams) SetInfo(info *models.KeyManagerConfig) { o.Info = info } // WriteToRequest writes these params to a swagger request func (o *KeyManagerConfigModifyParams) 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 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/security/gcp_kms_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // GcpKmsCreateReader is a Reader for the GcpKmsCreate structure. type GcpKmsCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *GcpKmsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewGcpKmsCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewGcpKmsCreateDefault(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 } } // NewGcpKmsCreateCreated creates a GcpKmsCreateCreated with default headers values func NewGcpKmsCreateCreated() *GcpKmsCreateCreated { return &GcpKmsCreateCreated{} } /* GcpKmsCreateCreated describes a response with status code 201, with default header values. Created */ type GcpKmsCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.GcpKmsResponse } // IsSuccess returns true when this gcp kms create created response has a 2xx status code func (o *GcpKmsCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this gcp kms create created response has a 3xx status code func (o *GcpKmsCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this gcp kms create created response has a 4xx status code func (o *GcpKmsCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this gcp kms create created response has a 5xx status code func (o *GcpKmsCreateCreated) IsServerError() bool { return false } // IsCode returns true when this gcp kms create created response a status code equal to that given func (o *GcpKmsCreateCreated) IsCode(code int) bool { return code == 201 } func (o *GcpKmsCreateCreated) Error() string { return fmt.Sprintf("[POST /security/gcp-kms][%d] gcpKmsCreateCreated %+v", 201, o.Payload) } func (o *GcpKmsCreateCreated) String() string { return fmt.Sprintf("[POST /security/gcp-kms][%d] gcpKmsCreateCreated %+v", 201, o.Payload) } func (o *GcpKmsCreateCreated) GetPayload() *models.GcpKmsResponse { return o.Payload } func (o *GcpKmsCreateCreated) 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.GcpKmsResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGcpKmsCreateDefault creates a GcpKmsCreateDefault with default headers values func NewGcpKmsCreateDefault(code int) *GcpKmsCreateDefault { return &GcpKmsCreateDefault{ _statusCode: code, } } /* GcpKmsCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65537703 | The Google Cloud Key Management Service is not supported for the admin Vserver. | | 65537704 | The Google Cloud Key Management Service is not supported in MetroCluster configurations. | | 65537706 | Internal error. Failed to the encrypt the application credentials. | | 65537713 | Internal Error. Failed to store the application credentials. | | 65537719 | Failed to enable the Google Cloud Key Management Service for SVM <svm-name> because invalid application credentials were provided. | | 65537720 | Failed to configure Google Cloud Key Management Service for SVM <svm-name> because a key manager has already been configured for this SVM. Use the REST API GET method \"/api/security/key-managers\" to view all of the configured key managers. | */ type GcpKmsCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the gcp kms create default response func (o *GcpKmsCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this gcp kms create default response has a 2xx status code func (o *GcpKmsCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this gcp kms create default response has a 3xx status code func (o *GcpKmsCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this gcp kms create default response has a 4xx status code func (o *GcpKmsCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this gcp kms create default response has a 5xx status code func (o *GcpKmsCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this gcp kms create default response a status code equal to that given func (o *GcpKmsCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *GcpKmsCreateDefault) Error() string { return fmt.Sprintf("[POST /security/gcp-kms][%d] gcp_kms_create default %+v", o._statusCode, o.Payload) } func (o *GcpKmsCreateDefault) String() string { return fmt.Sprintf("[POST /security/gcp-kms][%d] gcp_kms_create default %+v", o._statusCode, o.Payload) } func (o *GcpKmsCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *GcpKmsCreateDefault) 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/security/security_association_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_association_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityAssociationGetParams creates a new SecurityAssociationGetParams 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 NewSecurityAssociationGetParams() *SecurityAssociationGetParams { return &SecurityAssociationGetParams{ timeout: cr.DefaultTimeout, } } // NewSecurityAssociationGetParamsWithTimeout creates a new SecurityAssociationGetParams object // with the ability to set a timeout on a request. func NewSecurityAssociationGetParamsWithTimeout(timeout time.Duration) *SecurityAssociationGetParams { return &SecurityAssociationGetParams{ timeout: timeout, } } // NewSecurityAssociationGetParamsWithContext creates a new SecurityAssociationGetParams object // with the ability to set a context for a request. func NewSecurityAssociationGetParamsWithContext(ctx context.Context) *SecurityAssociationGetParams { return &SecurityAssociationGetParams{ Context: ctx, } } // NewSecurityAssociationGetParamsWithHTTPClient creates a new SecurityAssociationGetParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityAssociationGetParamsWithHTTPClient(client *http.Client) *SecurityAssociationGetParams { return &SecurityAssociationGetParams{ HTTPClient: client, } } /* SecurityAssociationGetParams contains all the parameters to send to the API endpoint for the security association get operation. Typically these are written to a http.Request. */ type SecurityAssociationGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. UUID of IPsec or IKE security association. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the security association get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityAssociationGetParams) WithDefaults() *SecurityAssociationGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security association get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityAssociationGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the security association get params func (o *SecurityAssociationGetParams) WithTimeout(timeout time.Duration) *SecurityAssociationGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security association get params func (o *SecurityAssociationGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security association get params func (o *SecurityAssociationGetParams) WithContext(ctx context.Context) *SecurityAssociationGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the security association get params func (o *SecurityAssociationGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security association get params func (o *SecurityAssociationGetParams) WithHTTPClient(client *http.Client) *SecurityAssociationGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security association get params func (o *SecurityAssociationGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the security association get params func (o *SecurityAssociationGetParams) WithFields(fields []string) *SecurityAssociationGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the security association get params func (o *SecurityAssociationGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the security association get params func (o *SecurityAssociationGetParams) WithUUID(uuid string) *SecurityAssociationGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the security association get params func (o *SecurityAssociationGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *SecurityAssociationGetParams) 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 } // bindParamSecurityAssociationGet binds the parameter fields func (o *SecurityAssociationGetParams) 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/security/cluster_account_ad_proxy_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewClusterAccountAdProxyDeleteParams creates a new ClusterAccountAdProxyDeleteParams 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 NewClusterAccountAdProxyDeleteParams() *ClusterAccountAdProxyDeleteParams { return &ClusterAccountAdProxyDeleteParams{ timeout: cr.DefaultTimeout, } } // NewClusterAccountAdProxyDeleteParamsWithTimeout creates a new ClusterAccountAdProxyDeleteParams object // with the ability to set a timeout on a request. func NewClusterAccountAdProxyDeleteParamsWithTimeout(timeout time.Duration) *ClusterAccountAdProxyDeleteParams { return &ClusterAccountAdProxyDeleteParams{ timeout: timeout, } } // NewClusterAccountAdProxyDeleteParamsWithContext creates a new ClusterAccountAdProxyDeleteParams object // with the ability to set a context for a request. func NewClusterAccountAdProxyDeleteParamsWithContext(ctx context.Context) *ClusterAccountAdProxyDeleteParams { return &ClusterAccountAdProxyDeleteParams{ Context: ctx, } } // NewClusterAccountAdProxyDeleteParamsWithHTTPClient creates a new ClusterAccountAdProxyDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewClusterAccountAdProxyDeleteParamsWithHTTPClient(client *http.Client) *ClusterAccountAdProxyDeleteParams { return &ClusterAccountAdProxyDeleteParams{ HTTPClient: client, } } /* ClusterAccountAdProxyDeleteParams contains all the parameters to send to the API endpoint for the cluster account ad proxy delete operation. Typically these are written to a http.Request. */ type ClusterAccountAdProxyDeleteParams struct { timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster account ad proxy delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterAccountAdProxyDeleteParams) WithDefaults() *ClusterAccountAdProxyDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster account ad proxy delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterAccountAdProxyDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster account ad proxy delete params func (o *ClusterAccountAdProxyDeleteParams) WithTimeout(timeout time.Duration) *ClusterAccountAdProxyDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster account ad proxy delete params func (o *ClusterAccountAdProxyDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster account ad proxy delete params func (o *ClusterAccountAdProxyDeleteParams) WithContext(ctx context.Context) *ClusterAccountAdProxyDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster account ad proxy delete params func (o *ClusterAccountAdProxyDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster account ad proxy delete params func (o *ClusterAccountAdProxyDeleteParams) WithHTTPClient(client *http.Client) *ClusterAccountAdProxyDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster account ad proxy delete params func (o *ClusterAccountAdProxyDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WriteToRequest writes these params to a swagger request func (o *ClusterAccountAdProxyDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error 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/security/ipsec_policy_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // IpsecPolicyCollectionGetReader is a Reader for the IpsecPolicyCollectionGet structure. type IpsecPolicyCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpsecPolicyCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIpsecPolicyCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIpsecPolicyCollectionGetDefault(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 } } // NewIpsecPolicyCollectionGetOK creates a IpsecPolicyCollectionGetOK with default headers values func NewIpsecPolicyCollectionGetOK() *IpsecPolicyCollectionGetOK { return &IpsecPolicyCollectionGetOK{} } /* IpsecPolicyCollectionGetOK describes a response with status code 200, with default header values. OK */ type IpsecPolicyCollectionGetOK struct { Payload *models.IpsecPolicyResponse } // IsSuccess returns true when this ipsec policy collection get o k response has a 2xx status code func (o *IpsecPolicyCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this ipsec policy collection get o k response has a 3xx status code func (o *IpsecPolicyCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this ipsec policy collection get o k response has a 4xx status code func (o *IpsecPolicyCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this ipsec policy collection get o k response has a 5xx status code func (o *IpsecPolicyCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this ipsec policy collection get o k response a status code equal to that given func (o *IpsecPolicyCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *IpsecPolicyCollectionGetOK) Error() string { return fmt.Sprintf("[GET /security/ipsec/policies][%d] ipsecPolicyCollectionGetOK %+v", 200, o.Payload) } func (o *IpsecPolicyCollectionGetOK) String() string { return fmt.Sprintf("[GET /security/ipsec/policies][%d] ipsecPolicyCollectionGetOK %+v", 200, o.Payload) } func (o *IpsecPolicyCollectionGetOK) GetPayload() *models.IpsecPolicyResponse { return o.Payload } func (o *IpsecPolicyCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.IpsecPolicyResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewIpsecPolicyCollectionGetDefault creates a IpsecPolicyCollectionGetDefault with default headers values func NewIpsecPolicyCollectionGetDefault(code int) *IpsecPolicyCollectionGetDefault { return &IpsecPolicyCollectionGetDefault{ _statusCode: code, } } /* IpsecPolicyCollectionGetDefault describes a response with status code -1, with default header values. Error */ type IpsecPolicyCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ipsec policy collection get default response func (o *IpsecPolicyCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ipsec policy collection get default response has a 2xx status code func (o *IpsecPolicyCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ipsec policy collection get default response has a 3xx status code func (o *IpsecPolicyCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ipsec policy collection get default response has a 4xx status code func (o *IpsecPolicyCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ipsec policy collection get default response has a 5xx status code func (o *IpsecPolicyCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ipsec policy collection get default response a status code equal to that given func (o *IpsecPolicyCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IpsecPolicyCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /security/ipsec/policies][%d] ipsec_policy_collection_get default %+v", o._statusCode, o.Payload) } func (o *IpsecPolicyCollectionGetDefault) String() string { return fmt.Sprintf("[GET /security/ipsec/policies][%d] ipsec_policy_collection_get default %+v", o._statusCode, o.Payload) } func (o *IpsecPolicyCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IpsecPolicyCollectionGetDefault) 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/security/key_manager_auth_key_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_auth_key_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewKeyManagerAuthKeyCollectionGetParams creates a new KeyManagerAuthKeyCollectionGetParams 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 NewKeyManagerAuthKeyCollectionGetParams() *KeyManagerAuthKeyCollectionGetParams { return &KeyManagerAuthKeyCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewKeyManagerAuthKeyCollectionGetParamsWithTimeout creates a new KeyManagerAuthKeyCollectionGetParams object // with the ability to set a timeout on a request. func NewKeyManagerAuthKeyCollectionGetParamsWithTimeout(timeout time.Duration) *KeyManagerAuthKeyCollectionGetParams { return &KeyManagerAuthKeyCollectionGetParams{ timeout: timeout, } } // NewKeyManagerAuthKeyCollectionGetParamsWithContext creates a new KeyManagerAuthKeyCollectionGetParams object // with the ability to set a context for a request. func NewKeyManagerAuthKeyCollectionGetParamsWithContext(ctx context.Context) *KeyManagerAuthKeyCollectionGetParams { return &KeyManagerAuthKeyCollectionGetParams{ Context: ctx, } } // NewKeyManagerAuthKeyCollectionGetParamsWithHTTPClient creates a new KeyManagerAuthKeyCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewKeyManagerAuthKeyCollectionGetParamsWithHTTPClient(client *http.Client) *KeyManagerAuthKeyCollectionGetParams { return &KeyManagerAuthKeyCollectionGetParams{ HTTPClient: client, } } /* KeyManagerAuthKeyCollectionGetParams contains all the parameters to send to the API endpoint for the key manager auth key collection get operation. Typically these are written to a http.Request. */ type KeyManagerAuthKeyCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* KeyID. Filter by key_id */ KeyID *string /* KeyTag. Filter by key_tag */ KeyTag *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 /* SecurityKeyManagerUUID. External key manager UUID */ SecurityKeyManagerUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the key manager auth key collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *KeyManagerAuthKeyCollectionGetParams) WithDefaults() *KeyManagerAuthKeyCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the key manager auth key collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *KeyManagerAuthKeyCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := KeyManagerAuthKeyCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithTimeout(timeout time.Duration) *KeyManagerAuthKeyCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithContext(ctx context.Context) *KeyManagerAuthKeyCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithHTTPClient(client *http.Client) *KeyManagerAuthKeyCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithFields(fields []string) *KeyManagerAuthKeyCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithKeyID adds the keyID to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithKeyID(keyID *string) *KeyManagerAuthKeyCollectionGetParams { o.SetKeyID(keyID) return o } // SetKeyID adds the keyId to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetKeyID(keyID *string) { o.KeyID = keyID } // WithKeyTag adds the keyTag to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithKeyTag(keyTag *string) *KeyManagerAuthKeyCollectionGetParams { o.SetKeyTag(keyTag) return o } // SetKeyTag adds the keyTag to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetKeyTag(keyTag *string) { o.KeyTag = keyTag } // WithMaxRecords adds the maxRecords to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithMaxRecords(maxRecords *int64) *KeyManagerAuthKeyCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithOrderBy(orderBy []string) *KeyManagerAuthKeyCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithReturnRecords(returnRecords *bool) *KeyManagerAuthKeyCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *KeyManagerAuthKeyCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSecurityKeyManagerUUID adds the securityKeyManagerUUID to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) WithSecurityKeyManagerUUID(securityKeyManagerUUID string) *KeyManagerAuthKeyCollectionGetParams { o.SetSecurityKeyManagerUUID(securityKeyManagerUUID) return o } // SetSecurityKeyManagerUUID adds the securityKeyManagerUuid to the key manager auth key collection get params func (o *KeyManagerAuthKeyCollectionGetParams) SetSecurityKeyManagerUUID(securityKeyManagerUUID string) { o.SecurityKeyManagerUUID = securityKeyManagerUUID } // WriteToRequest writes these params to a swagger request func (o *KeyManagerAuthKeyCollectionGetParams) 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.KeyID != nil { // query param key_id var qrKeyID string if o.KeyID != nil { qrKeyID = *o.KeyID } qKeyID := qrKeyID if qKeyID != "" { if err := r.SetQueryParam("key_id", qKeyID); err != nil { return err } } } if o.KeyTag != nil { // query param key_tag var qrKeyTag string if o.KeyTag != nil { qrKeyTag = *o.KeyTag } qKeyTag := qrKeyTag if qKeyTag != "" { if err := r.SetQueryParam("key_tag", qKeyTag); 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 security_key_manager.uuid if err := r.SetPathParam("security_key_manager.uuid", o.SecurityKeyManagerUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamKeyManagerAuthKeyCollectionGet binds the parameter fields func (o *KeyManagerAuthKeyCollectionGetParams) 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 } // bindParamKeyManagerAuthKeyCollectionGet binds the parameter order_by func (o *KeyManagerAuthKeyCollectionGetParams) 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/security/multi_admin_verify_rule_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // MultiAdminVerifyRuleDeleteReader is a Reader for the MultiAdminVerifyRuleDelete structure. type MultiAdminVerifyRuleDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MultiAdminVerifyRuleDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMultiAdminVerifyRuleDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMultiAdminVerifyRuleDeleteDefault(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 } } // NewMultiAdminVerifyRuleDeleteOK creates a MultiAdminVerifyRuleDeleteOK with default headers values func NewMultiAdminVerifyRuleDeleteOK() *MultiAdminVerifyRuleDeleteOK { return &MultiAdminVerifyRuleDeleteOK{} } /* MultiAdminVerifyRuleDeleteOK describes a response with status code 200, with default header values. OK */ type MultiAdminVerifyRuleDeleteOK struct { } // IsSuccess returns true when this multi admin verify rule delete o k response has a 2xx status code func (o *MultiAdminVerifyRuleDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this multi admin verify rule delete o k response has a 3xx status code func (o *MultiAdminVerifyRuleDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this multi admin verify rule delete o k response has a 4xx status code func (o *MultiAdminVerifyRuleDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this multi admin verify rule delete o k response has a 5xx status code func (o *MultiAdminVerifyRuleDeleteOK) IsServerError() bool { return false } // IsCode returns true when this multi admin verify rule delete o k response a status code equal to that given func (o *MultiAdminVerifyRuleDeleteOK) IsCode(code int) bool { return code == 200 } func (o *MultiAdminVerifyRuleDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multiAdminVerifyRuleDeleteOK ", 200) } func (o *MultiAdminVerifyRuleDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multiAdminVerifyRuleDeleteOK ", 200) } func (o *MultiAdminVerifyRuleDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewMultiAdminVerifyRuleDeleteDefault creates a MultiAdminVerifyRuleDeleteDefault with default headers values func NewMultiAdminVerifyRuleDeleteDefault(code int) *MultiAdminVerifyRuleDeleteDefault { return &MultiAdminVerifyRuleDeleteDefault{ _statusCode: code, } } /* MultiAdminVerifyRuleDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 262310 | System rules cannot be deleted or have their query modified. | */ type MultiAdminVerifyRuleDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the multi admin verify rule delete default response func (o *MultiAdminVerifyRuleDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this multi admin verify rule delete default response has a 2xx status code func (o *MultiAdminVerifyRuleDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this multi admin verify rule delete default response has a 3xx status code func (o *MultiAdminVerifyRuleDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this multi admin verify rule delete default response has a 4xx status code func (o *MultiAdminVerifyRuleDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this multi admin verify rule delete default response has a 5xx status code func (o *MultiAdminVerifyRuleDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this multi admin verify rule delete default response a status code equal to that given func (o *MultiAdminVerifyRuleDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MultiAdminVerifyRuleDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multi_admin_verify_rule_delete default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRuleDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multi_admin_verify_rule_delete default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRuleDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MultiAdminVerifyRuleDeleteDefault) 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/security/aws_kms_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // AwsKmsGetReader is a Reader for the AwsKmsGet structure. type AwsKmsGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *AwsKmsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewAwsKmsGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewAwsKmsGetDefault(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 } } // NewAwsKmsGetOK creates a AwsKmsGetOK with default headers values func NewAwsKmsGetOK() *AwsKmsGetOK { return &AwsKmsGetOK{} } /* AwsKmsGetOK describes a response with status code 200, with default header values. OK */ type AwsKmsGetOK struct { Payload *models.AwsKms } // IsSuccess returns true when this aws kms get o k response has a 2xx status code func (o *AwsKmsGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this aws kms get o k response has a 3xx status code func (o *AwsKmsGetOK) IsRedirect() bool { return false } // IsClientError returns true when this aws kms get o k response has a 4xx status code func (o *AwsKmsGetOK) IsClientError() bool { return false } // IsServerError returns true when this aws kms get o k response has a 5xx status code func (o *AwsKmsGetOK) IsServerError() bool { return false } // IsCode returns true when this aws kms get o k response a status code equal to that given func (o *AwsKmsGetOK) IsCode(code int) bool { return code == 200 } func (o *AwsKmsGetOK) Error() string { return fmt.Sprintf("[GET /security/aws-kms/{uuid}][%d] awsKmsGetOK %+v", 200, o.Payload) } func (o *AwsKmsGetOK) String() string { return fmt.Sprintf("[GET /security/aws-kms/{uuid}][%d] awsKmsGetOK %+v", 200, o.Payload) } func (o *AwsKmsGetOK) GetPayload() *models.AwsKms { return o.Payload } func (o *AwsKmsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.AwsKms) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewAwsKmsGetDefault creates a AwsKmsGetDefault with default headers values func NewAwsKmsGetDefault(code int) *AwsKmsGetDefault { return &AwsKmsGetDefault{ _statusCode: code, } } /* AwsKmsGetDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65537551 | Top-level internal key protection key (KEK) unavailable on one or more nodes. | | 65537552 | Embedded KMIP server status not available. | | 65537915 | The Amazon Web Service Key Management Service is unreachable from one or more nodes. | */ type AwsKmsGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the aws kms get default response func (o *AwsKmsGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this aws kms get default response has a 2xx status code func (o *AwsKmsGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this aws kms get default response has a 3xx status code func (o *AwsKmsGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this aws kms get default response has a 4xx status code func (o *AwsKmsGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this aws kms get default response has a 5xx status code func (o *AwsKmsGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this aws kms get default response a status code equal to that given func (o *AwsKmsGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *AwsKmsGetDefault) Error() string { return fmt.Sprintf("[GET /security/aws-kms/{uuid}][%d] aws_kms_get default %+v", o._statusCode, o.Payload) } func (o *AwsKmsGetDefault) String() string { return fmt.Sprintf("[GET /security/aws-kms/{uuid}][%d] aws_kms_get default %+v", o._statusCode, o.Payload) } func (o *AwsKmsGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *AwsKmsGetDefault) 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/security/gcp_kms_restore_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_restore_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewGcpKmsRestoreParams creates a new GcpKmsRestoreParams 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 NewGcpKmsRestoreParams() *GcpKmsRestoreParams { return &GcpKmsRestoreParams{ timeout: cr.DefaultTimeout, } } // NewGcpKmsRestoreParamsWithTimeout creates a new GcpKmsRestoreParams object // with the ability to set a timeout on a request. func NewGcpKmsRestoreParamsWithTimeout(timeout time.Duration) *GcpKmsRestoreParams { return &GcpKmsRestoreParams{ timeout: timeout, } } // NewGcpKmsRestoreParamsWithContext creates a new GcpKmsRestoreParams object // with the ability to set a context for a request. func NewGcpKmsRestoreParamsWithContext(ctx context.Context) *GcpKmsRestoreParams { return &GcpKmsRestoreParams{ Context: ctx, } } // NewGcpKmsRestoreParamsWithHTTPClient creates a new GcpKmsRestoreParams object // with the ability to set a custom HTTPClient for a request. func NewGcpKmsRestoreParamsWithHTTPClient(client *http.Client) *GcpKmsRestoreParams { return &GcpKmsRestoreParams{ HTTPClient: client, } } /* GcpKmsRestoreParams contains all the parameters to send to the API endpoint for the gcp kms restore operation. Typically these are written to a http.Request. */ type GcpKmsRestoreParams struct { /* ReturnRecords. The default is false. If set to true, the records are returned. */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 /* UUID. UUID of the existing Google Cloud KMS configuration. */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the gcp kms restore params (not the query body). // // All values with no default are reset to their zero value. func (o *GcpKmsRestoreParams) WithDefaults() *GcpKmsRestoreParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the gcp kms restore params (not the query body). // // All values with no default are reset to their zero value. func (o *GcpKmsRestoreParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := GcpKmsRestoreParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the gcp kms restore params func (o *GcpKmsRestoreParams) WithTimeout(timeout time.Duration) *GcpKmsRestoreParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the gcp kms restore params func (o *GcpKmsRestoreParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the gcp kms restore params func (o *GcpKmsRestoreParams) WithContext(ctx context.Context) *GcpKmsRestoreParams { o.SetContext(ctx) return o } // SetContext adds the context to the gcp kms restore params func (o *GcpKmsRestoreParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the gcp kms restore params func (o *GcpKmsRestoreParams) WithHTTPClient(client *http.Client) *GcpKmsRestoreParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the gcp kms restore params func (o *GcpKmsRestoreParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithReturnRecords adds the returnRecords to the gcp kms restore params func (o *GcpKmsRestoreParams) WithReturnRecords(returnRecords *bool) *GcpKmsRestoreParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the gcp kms restore params func (o *GcpKmsRestoreParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the gcp kms restore params func (o *GcpKmsRestoreParams) WithReturnTimeout(returnTimeout *int64) *GcpKmsRestoreParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the gcp kms restore params func (o *GcpKmsRestoreParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the gcp kms restore params func (o *GcpKmsRestoreParams) WithUUID(uuid string) *GcpKmsRestoreParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the gcp kms restore params func (o *GcpKmsRestoreParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *GcpKmsRestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_certificate_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_certificate_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecCaCertificateDeleteParams creates a new IpsecCaCertificateDeleteParams 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 NewIpsecCaCertificateDeleteParams() *IpsecCaCertificateDeleteParams { return &IpsecCaCertificateDeleteParams{ timeout: cr.DefaultTimeout, } } // NewIpsecCaCertificateDeleteParamsWithTimeout creates a new IpsecCaCertificateDeleteParams object // with the ability to set a timeout on a request. func NewIpsecCaCertificateDeleteParamsWithTimeout(timeout time.Duration) *IpsecCaCertificateDeleteParams { return &IpsecCaCertificateDeleteParams{ timeout: timeout, } } // NewIpsecCaCertificateDeleteParamsWithContext creates a new IpsecCaCertificateDeleteParams object // with the ability to set a context for a request. func NewIpsecCaCertificateDeleteParamsWithContext(ctx context.Context) *IpsecCaCertificateDeleteParams { return &IpsecCaCertificateDeleteParams{ Context: ctx, } } // NewIpsecCaCertificateDeleteParamsWithHTTPClient creates a new IpsecCaCertificateDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecCaCertificateDeleteParamsWithHTTPClient(client *http.Client) *IpsecCaCertificateDeleteParams { return &IpsecCaCertificateDeleteParams{ HTTPClient: client, } } /* IpsecCaCertificateDeleteParams contains all the parameters to send to the API endpoint for the ipsec ca certificate delete operation. Typically these are written to a http.Request. */ type IpsecCaCertificateDeleteParams struct { /* CertificateUUID. UUID of the CA certificate to be deleted from IPsec. */ CertificateUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipsec ca certificate delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecCaCertificateDeleteParams) WithDefaults() *IpsecCaCertificateDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec ca certificate delete params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecCaCertificateDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) WithTimeout(timeout time.Duration) *IpsecCaCertificateDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) WithContext(ctx context.Context) *IpsecCaCertificateDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) WithHTTPClient(client *http.Client) *IpsecCaCertificateDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCertificateUUID adds the certificateUUID to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) WithCertificateUUID(certificateUUID string) *IpsecCaCertificateDeleteParams { o.SetCertificateUUID(certificateUUID) return o } // SetCertificateUUID adds the certificateUuid to the ipsec ca certificate delete params func (o *IpsecCaCertificateDeleteParams) SetCertificateUUID(certificateUUID string) { o.CertificateUUID = certificateUUID } // WriteToRequest writes these params to a swagger request func (o *IpsecCaCertificateDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param certificate.uuid if err := r.SetPathParam("certificate.uuid", o.CertificateUUID); 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/security/multi_admin_verify_rule_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyRuleModifyParams creates a new MultiAdminVerifyRuleModifyParams 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 NewMultiAdminVerifyRuleModifyParams() *MultiAdminVerifyRuleModifyParams { return &MultiAdminVerifyRuleModifyParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyRuleModifyParamsWithTimeout creates a new MultiAdminVerifyRuleModifyParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyRuleModifyParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRuleModifyParams { return &MultiAdminVerifyRuleModifyParams{ timeout: timeout, } } // NewMultiAdminVerifyRuleModifyParamsWithContext creates a new MultiAdminVerifyRuleModifyParams object // with the ability to set a context for a request. func NewMultiAdminVerifyRuleModifyParamsWithContext(ctx context.Context) *MultiAdminVerifyRuleModifyParams { return &MultiAdminVerifyRuleModifyParams{ Context: ctx, } } // NewMultiAdminVerifyRuleModifyParamsWithHTTPClient creates a new MultiAdminVerifyRuleModifyParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyRuleModifyParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRuleModifyParams { return &MultiAdminVerifyRuleModifyParams{ HTTPClient: client, } } /* MultiAdminVerifyRuleModifyParams contains all the parameters to send to the API endpoint for the multi admin verify rule modify operation. Typically these are written to a http.Request. */ type MultiAdminVerifyRuleModifyParams struct { /* Info. Info specification */ Info *models.MultiAdminVerifyRule // Operation. Operation string // OwnerUUID. OwnerUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify rule modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleModifyParams) WithDefaults() *MultiAdminVerifyRuleModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify rule modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRuleModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) WithContext(ctx context.Context) *MultiAdminVerifyRuleModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRuleModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) WithInfo(info *models.MultiAdminVerifyRule) *MultiAdminVerifyRuleModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) SetInfo(info *models.MultiAdminVerifyRule) { o.Info = info } // WithOperation adds the operation to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) WithOperation(operation string) *MultiAdminVerifyRuleModifyParams { o.SetOperation(operation) return o } // SetOperation adds the operation to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) SetOperation(operation string) { o.Operation = operation } // WithOwnerUUID adds the ownerUUID to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) WithOwnerUUID(ownerUUID string) *MultiAdminVerifyRuleModifyParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the multi admin verify rule modify params func (o *MultiAdminVerifyRuleModifyParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyRuleModifyParams) 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 operation if err := r.SetPathParam("operation", o.Operation); err != nil { return err } // path param owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); 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/security/multi_admin_verify_approval_group_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_approval_group_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyApprovalGroupModifyParams creates a new MultiAdminVerifyApprovalGroupModifyParams 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 NewMultiAdminVerifyApprovalGroupModifyParams() *MultiAdminVerifyApprovalGroupModifyParams { return &MultiAdminVerifyApprovalGroupModifyParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyApprovalGroupModifyParamsWithTimeout creates a new MultiAdminVerifyApprovalGroupModifyParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyApprovalGroupModifyParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupModifyParams { return &MultiAdminVerifyApprovalGroupModifyParams{ timeout: timeout, } } // NewMultiAdminVerifyApprovalGroupModifyParamsWithContext creates a new MultiAdminVerifyApprovalGroupModifyParams object // with the ability to set a context for a request. func NewMultiAdminVerifyApprovalGroupModifyParamsWithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupModifyParams { return &MultiAdminVerifyApprovalGroupModifyParams{ Context: ctx, } } // NewMultiAdminVerifyApprovalGroupModifyParamsWithHTTPClient creates a new MultiAdminVerifyApprovalGroupModifyParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyApprovalGroupModifyParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupModifyParams { return &MultiAdminVerifyApprovalGroupModifyParams{ HTTPClient: client, } } /* MultiAdminVerifyApprovalGroupModifyParams contains all the parameters to send to the API endpoint for the multi admin verify approval group modify operation. Typically these are written to a http.Request. */ type MultiAdminVerifyApprovalGroupModifyParams struct { /* Info. Info specification */ Info *models.MultiAdminVerifyApprovalGroup // Name. Name string // OwnerUUID. OwnerUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify approval group modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyApprovalGroupModifyParams) WithDefaults() *MultiAdminVerifyApprovalGroupModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify approval group modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyApprovalGroupModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) WithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) WithInfo(info *models.MultiAdminVerifyApprovalGroup) *MultiAdminVerifyApprovalGroupModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) SetInfo(info *models.MultiAdminVerifyApprovalGroup) { o.Info = info } // WithName adds the name to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) WithName(name string) *MultiAdminVerifyApprovalGroupModifyParams { o.SetName(name) return o } // SetName adds the name to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) SetName(name string) { o.Name = name } // WithOwnerUUID adds the ownerUUID to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) WithOwnerUUID(ownerUUID string) *MultiAdminVerifyApprovalGroupModifyParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the multi admin verify approval group modify params func (o *MultiAdminVerifyApprovalGroupModifyParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyApprovalGroupModifyParams) 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 owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); 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/security/security_certificate_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_certificate_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityCertificateCreateParams creates a new SecurityCertificateCreateParams 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 NewSecurityCertificateCreateParams() *SecurityCertificateCreateParams { return &SecurityCertificateCreateParams{ timeout: cr.DefaultTimeout, } } // NewSecurityCertificateCreateParamsWithTimeout creates a new SecurityCertificateCreateParams object // with the ability to set a timeout on a request. func NewSecurityCertificateCreateParamsWithTimeout(timeout time.Duration) *SecurityCertificateCreateParams { return &SecurityCertificateCreateParams{ timeout: timeout, } } // NewSecurityCertificateCreateParamsWithContext creates a new SecurityCertificateCreateParams object // with the ability to set a context for a request. func NewSecurityCertificateCreateParamsWithContext(ctx context.Context) *SecurityCertificateCreateParams { return &SecurityCertificateCreateParams{ Context: ctx, } } // NewSecurityCertificateCreateParamsWithHTTPClient creates a new SecurityCertificateCreateParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityCertificateCreateParamsWithHTTPClient(client *http.Client) *SecurityCertificateCreateParams { return &SecurityCertificateCreateParams{ HTTPClient: client, } } /* SecurityCertificateCreateParams contains all the parameters to send to the API endpoint for the security certificate create operation. Typically these are written to a http.Request. */ type SecurityCertificateCreateParams struct { /* Info. Information specification */ Info *models.SecurityCertificate /* 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 security certificate create params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityCertificateCreateParams) WithDefaults() *SecurityCertificateCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security certificate create params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityCertificateCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := SecurityCertificateCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the security certificate create params func (o *SecurityCertificateCreateParams) WithTimeout(timeout time.Duration) *SecurityCertificateCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security certificate create params func (o *SecurityCertificateCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security certificate create params func (o *SecurityCertificateCreateParams) WithContext(ctx context.Context) *SecurityCertificateCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the security certificate create params func (o *SecurityCertificateCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security certificate create params func (o *SecurityCertificateCreateParams) WithHTTPClient(client *http.Client) *SecurityCertificateCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security certificate create params func (o *SecurityCertificateCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the security certificate create params func (o *SecurityCertificateCreateParams) WithInfo(info *models.SecurityCertificate) *SecurityCertificateCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the security certificate create params func (o *SecurityCertificateCreateParams) SetInfo(info *models.SecurityCertificate) { o.Info = info } // WithReturnRecords adds the returnRecords to the security certificate create params func (o *SecurityCertificateCreateParams) WithReturnRecords(returnRecords *bool) *SecurityCertificateCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the security certificate create params func (o *SecurityCertificateCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *SecurityCertificateCreateParams) 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/security/role_privilege_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewRolePrivilegeDeleteParams creates a new RolePrivilegeDeleteParams 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 NewRolePrivilegeDeleteParams() *RolePrivilegeDeleteParams { return &RolePrivilegeDeleteParams{ timeout: cr.DefaultTimeout, } } // NewRolePrivilegeDeleteParamsWithTimeout creates a new RolePrivilegeDeleteParams object // with the ability to set a timeout on a request. func NewRolePrivilegeDeleteParamsWithTimeout(timeout time.Duration) *RolePrivilegeDeleteParams { return &RolePrivilegeDeleteParams{ timeout: timeout, } } // NewRolePrivilegeDeleteParamsWithContext creates a new RolePrivilegeDeleteParams object // with the ability to set a context for a request. func NewRolePrivilegeDeleteParamsWithContext(ctx context.Context) *RolePrivilegeDeleteParams { return &RolePrivilegeDeleteParams{ Context: ctx, } } // NewRolePrivilegeDeleteParamsWithHTTPClient creates a new RolePrivilegeDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewRolePrivilegeDeleteParamsWithHTTPClient(client *http.Client) *RolePrivilegeDeleteParams { return &RolePrivilegeDeleteParams{ HTTPClient: client, } } /* RolePrivilegeDeleteParams contains all the parameters to send to the API endpoint for the role privilege delete operation. Typically these are written to a http.Request. */ type RolePrivilegeDeleteParams struct { /* Name. Role name */ Name string /* OwnerUUID. Role owner UUID */ OwnerUUID string /* Path. REST API path or command/command directory path */ Path string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the role privilege delete params (not the query body). // // All values with no default are reset to their zero value. func (o *RolePrivilegeDeleteParams) WithDefaults() *RolePrivilegeDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the role privilege delete params (not the query body). // // All values with no default are reset to their zero value. func (o *RolePrivilegeDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the role privilege delete params func (o *RolePrivilegeDeleteParams) WithTimeout(timeout time.Duration) *RolePrivilegeDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the role privilege delete params func (o *RolePrivilegeDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the role privilege delete params func (o *RolePrivilegeDeleteParams) WithContext(ctx context.Context) *RolePrivilegeDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the role privilege delete params func (o *RolePrivilegeDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the role privilege delete params func (o *RolePrivilegeDeleteParams) WithHTTPClient(client *http.Client) *RolePrivilegeDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the role privilege delete params func (o *RolePrivilegeDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithName adds the name to the role privilege delete params func (o *RolePrivilegeDeleteParams) WithName(name string) *RolePrivilegeDeleteParams { o.SetName(name) return o } // SetName adds the name to the role privilege delete params func (o *RolePrivilegeDeleteParams) SetName(name string) { o.Name = name } // WithOwnerUUID adds the ownerUUID to the role privilege delete params func (o *RolePrivilegeDeleteParams) WithOwnerUUID(ownerUUID string) *RolePrivilegeDeleteParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the role privilege delete params func (o *RolePrivilegeDeleteParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WithPath adds the path to the role privilege delete params func (o *RolePrivilegeDeleteParams) WithPath(path string) *RolePrivilegeDeleteParams { o.SetPath(path) return o } // SetPath adds the path to the role privilege delete params func (o *RolePrivilegeDeleteParams) SetPath(path string) { o.Path = path } // WriteToRequest writes these params to a swagger request func (o *RolePrivilegeDeleteParams) 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 owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); err != nil { return err } // path param path if err := r.SetPathParam("path", o.Path); 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/security/anti_ransomware_suspect_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/anti_ransomware_suspect_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAntiRansomwareSuspectDeleteParams creates a new AntiRansomwareSuspectDeleteParams 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 NewAntiRansomwareSuspectDeleteParams() *AntiRansomwareSuspectDeleteParams { return &AntiRansomwareSuspectDeleteParams{ timeout: cr.DefaultTimeout, } } // NewAntiRansomwareSuspectDeleteParamsWithTimeout creates a new AntiRansomwareSuspectDeleteParams object // with the ability to set a timeout on a request. func NewAntiRansomwareSuspectDeleteParamsWithTimeout(timeout time.Duration) *AntiRansomwareSuspectDeleteParams { return &AntiRansomwareSuspectDeleteParams{ timeout: timeout, } } // NewAntiRansomwareSuspectDeleteParamsWithContext creates a new AntiRansomwareSuspectDeleteParams object // with the ability to set a context for a request. func NewAntiRansomwareSuspectDeleteParamsWithContext(ctx context.Context) *AntiRansomwareSuspectDeleteParams { return &AntiRansomwareSuspectDeleteParams{ Context: ctx, } } // NewAntiRansomwareSuspectDeleteParamsWithHTTPClient creates a new AntiRansomwareSuspectDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewAntiRansomwareSuspectDeleteParamsWithHTTPClient(client *http.Client) *AntiRansomwareSuspectDeleteParams { return &AntiRansomwareSuspectDeleteParams{ HTTPClient: client, } } /* AntiRansomwareSuspectDeleteParams contains all the parameters to send to the API endpoint for the anti ransomware suspect delete operation. Typically these are written to a http.Request. */ type AntiRansomwareSuspectDeleteParams struct { /* 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 /* VolumeUUID. Identification of the Anti-ransomware suspect file for the deletion. Format: uuid */ VolumeUUID strfmt.UUID timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the anti ransomware suspect delete params (not the query body). // // All values with no default are reset to their zero value. func (o *AntiRansomwareSuspectDeleteParams) WithDefaults() *AntiRansomwareSuspectDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the anti ransomware suspect delete params (not the query body). // // All values with no default are reset to their zero value. func (o *AntiRansomwareSuspectDeleteParams) SetDefaults() { var ( returnRecordsDefault = bool(false) returnTimeoutDefault = int64(0) ) val := AntiRansomwareSuspectDeleteParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) WithTimeout(timeout time.Duration) *AntiRansomwareSuspectDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) WithContext(ctx context.Context) *AntiRansomwareSuspectDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) WithHTTPClient(client *http.Client) *AntiRansomwareSuspectDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithReturnRecords adds the returnRecords to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) WithReturnRecords(returnRecords *bool) *AntiRansomwareSuspectDeleteParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) WithReturnTimeout(returnTimeout *int64) *AntiRansomwareSuspectDeleteParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithVolumeUUID adds the volumeUUID to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) WithVolumeUUID(volumeUUID strfmt.UUID) *AntiRansomwareSuspectDeleteParams { o.SetVolumeUUID(volumeUUID) return o } // SetVolumeUUID adds the volumeUuid to the anti ransomware suspect delete params func (o *AntiRansomwareSuspectDeleteParams) SetVolumeUUID(volumeUUID strfmt.UUID) { o.VolumeUUID = volumeUUID } // WriteToRequest writes these params to a swagger request func (o *AntiRansomwareSuspectDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error 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 volume.uuid if err := r.SetPathParam("volume.uuid", o.VolumeUUID.String()); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecGetParams creates a new IpsecGetParams 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 NewIpsecGetParams() *IpsecGetParams { return &IpsecGetParams{ timeout: cr.DefaultTimeout, } } // NewIpsecGetParamsWithTimeout creates a new IpsecGetParams object // with the ability to set a timeout on a request. func NewIpsecGetParamsWithTimeout(timeout time.Duration) *IpsecGetParams { return &IpsecGetParams{ timeout: timeout, } } // NewIpsecGetParamsWithContext creates a new IpsecGetParams object // with the ability to set a context for a request. func NewIpsecGetParamsWithContext(ctx context.Context) *IpsecGetParams { return &IpsecGetParams{ Context: ctx, } } // NewIpsecGetParamsWithHTTPClient creates a new IpsecGetParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecGetParamsWithHTTPClient(client *http.Client) *IpsecGetParams { return &IpsecGetParams{ HTTPClient: client, } } /* IpsecGetParams contains all the parameters to send to the API endpoint for the ipsec get operation. Typically these are written to a http.Request. */ type IpsecGetParams struct { /* Fields. Specify the fields to return. */ Fields []string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipsec get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecGetParams) WithDefaults() *IpsecGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ipsec get params func (o *IpsecGetParams) WithTimeout(timeout time.Duration) *IpsecGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec get params func (o *IpsecGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec get params func (o *IpsecGetParams) WithContext(ctx context.Context) *IpsecGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec get params func (o *IpsecGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec get params func (o *IpsecGetParams) WithHTTPClient(client *http.Client) *IpsecGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec get params func (o *IpsecGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the ipsec get params func (o *IpsecGetParams) WithFields(fields []string) *IpsecGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ipsec get params func (o *IpsecGetParams) SetFields(fields []string) { o.Fields = fields } // WriteToRequest writes these params to a swagger request func (o *IpsecGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamIpsecGet binds the parameter fields func (o *IpsecGetParams) 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/security/anti_ransomware_suspect_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/anti_ransomware_suspect_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAntiRansomwareSuspectCollectionGetParams creates a new AntiRansomwareSuspectCollectionGetParams 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 NewAntiRansomwareSuspectCollectionGetParams() *AntiRansomwareSuspectCollectionGetParams { return &AntiRansomwareSuspectCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewAntiRansomwareSuspectCollectionGetParamsWithTimeout creates a new AntiRansomwareSuspectCollectionGetParams object // with the ability to set a timeout on a request. func NewAntiRansomwareSuspectCollectionGetParamsWithTimeout(timeout time.Duration) *AntiRansomwareSuspectCollectionGetParams { return &AntiRansomwareSuspectCollectionGetParams{ timeout: timeout, } } // NewAntiRansomwareSuspectCollectionGetParamsWithContext creates a new AntiRansomwareSuspectCollectionGetParams object // with the ability to set a context for a request. func NewAntiRansomwareSuspectCollectionGetParamsWithContext(ctx context.Context) *AntiRansomwareSuspectCollectionGetParams { return &AntiRansomwareSuspectCollectionGetParams{ Context: ctx, } } // NewAntiRansomwareSuspectCollectionGetParamsWithHTTPClient creates a new AntiRansomwareSuspectCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewAntiRansomwareSuspectCollectionGetParamsWithHTTPClient(client *http.Client) *AntiRansomwareSuspectCollectionGetParams { return &AntiRansomwareSuspectCollectionGetParams{ HTTPClient: client, } } /* AntiRansomwareSuspectCollectionGetParams contains all the parameters to send to the API endpoint for the anti ransomware suspect collection get operation. Typically these are written to a http.Request. */ type AntiRansomwareSuspectCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* FileFormat. Filter by file.format */ FileFormat *string /* FileName. Filter by file.name */ FileName *string /* FilePath. Filter by file.path */ FilePath *string /* FileReason. Filter by file.reason */ FileReason *string /* FileSuspectTime. Filter by file.suspect_time */ FileSuspectTime *string /* IsFalsePositive. Filter by is_false_positive */ IsFalsePositive *bool /* 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 /* VolumeName. Filter by volume.name */ VolumeName *string /* VolumeUUID. Filter by volume.uuid */ VolumeUUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the anti ransomware suspect collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *AntiRansomwareSuspectCollectionGetParams) WithDefaults() *AntiRansomwareSuspectCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the anti ransomware suspect collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *AntiRansomwareSuspectCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := AntiRansomwareSuspectCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithTimeout(timeout time.Duration) *AntiRansomwareSuspectCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithContext(ctx context.Context) *AntiRansomwareSuspectCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithHTTPClient(client *http.Client) *AntiRansomwareSuspectCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithFields(fields []string) *AntiRansomwareSuspectCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithFileFormat adds the fileFormat to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithFileFormat(fileFormat *string) *AntiRansomwareSuspectCollectionGetParams { o.SetFileFormat(fileFormat) return o } // SetFileFormat adds the fileFormat to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetFileFormat(fileFormat *string) { o.FileFormat = fileFormat } // WithFileName adds the fileName to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithFileName(fileName *string) *AntiRansomwareSuspectCollectionGetParams { o.SetFileName(fileName) return o } // SetFileName adds the fileName to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetFileName(fileName *string) { o.FileName = fileName } // WithFilePath adds the filePath to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithFilePath(filePath *string) *AntiRansomwareSuspectCollectionGetParams { o.SetFilePath(filePath) return o } // SetFilePath adds the filePath to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetFilePath(filePath *string) { o.FilePath = filePath } // WithFileReason adds the fileReason to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithFileReason(fileReason *string) *AntiRansomwareSuspectCollectionGetParams { o.SetFileReason(fileReason) return o } // SetFileReason adds the fileReason to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetFileReason(fileReason *string) { o.FileReason = fileReason } // WithFileSuspectTime adds the fileSuspectTime to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithFileSuspectTime(fileSuspectTime *string) *AntiRansomwareSuspectCollectionGetParams { o.SetFileSuspectTime(fileSuspectTime) return o } // SetFileSuspectTime adds the fileSuspectTime to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetFileSuspectTime(fileSuspectTime *string) { o.FileSuspectTime = fileSuspectTime } // WithIsFalsePositive adds the isFalsePositive to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithIsFalsePositive(isFalsePositive *bool) *AntiRansomwareSuspectCollectionGetParams { o.SetIsFalsePositive(isFalsePositive) return o } // SetIsFalsePositive adds the isFalsePositive to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetIsFalsePositive(isFalsePositive *bool) { o.IsFalsePositive = isFalsePositive } // WithMaxRecords adds the maxRecords to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithMaxRecords(maxRecords *int64) *AntiRansomwareSuspectCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithOrderBy(orderBy []string) *AntiRansomwareSuspectCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithReturnRecords(returnRecords *bool) *AntiRansomwareSuspectCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *AntiRansomwareSuspectCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithVolumeName adds the volumeName to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithVolumeName(volumeName *string) *AntiRansomwareSuspectCollectionGetParams { o.SetVolumeName(volumeName) return o } // SetVolumeName adds the volumeName to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetVolumeName(volumeName *string) { o.VolumeName = volumeName } // WithVolumeUUID adds the volumeUUID to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) WithVolumeUUID(volumeUUID *string) *AntiRansomwareSuspectCollectionGetParams { o.SetVolumeUUID(volumeUUID) return o } // SetVolumeUUID adds the volumeUuid to the anti ransomware suspect collection get params func (o *AntiRansomwareSuspectCollectionGetParams) SetVolumeUUID(volumeUUID *string) { o.VolumeUUID = volumeUUID } // WriteToRequest writes these params to a swagger request func (o *AntiRansomwareSuspectCollectionGetParams) 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.FileFormat != nil { // query param file.format var qrFileFormat string if o.FileFormat != nil { qrFileFormat = *o.FileFormat } qFileFormat := qrFileFormat if qFileFormat != "" { if err := r.SetQueryParam("file.format", qFileFormat); err != nil { return err } } } if o.FileName != nil { // query param file.name var qrFileName string if o.FileName != nil { qrFileName = *o.FileName } qFileName := qrFileName if qFileName != "" { if err := r.SetQueryParam("file.name", qFileName); 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.FileReason != nil { // query param file.reason var qrFileReason string if o.FileReason != nil { qrFileReason = *o.FileReason } qFileReason := qrFileReason if qFileReason != "" { if err := r.SetQueryParam("file.reason", qFileReason); err != nil { return err } } } if o.FileSuspectTime != nil { // query param file.suspect_time var qrFileSuspectTime string if o.FileSuspectTime != nil { qrFileSuspectTime = *o.FileSuspectTime } qFileSuspectTime := qrFileSuspectTime if qFileSuspectTime != "" { if err := r.SetQueryParam("file.suspect_time", qFileSuspectTime); err != nil { return err } } } if o.IsFalsePositive != nil { // query param is_false_positive var qrIsFalsePositive bool if o.IsFalsePositive != nil { qrIsFalsePositive = *o.IsFalsePositive } qIsFalsePositive := swag.FormatBool(qrIsFalsePositive) if qIsFalsePositive != "" { if err := r.SetQueryParam("is_false_positive", qIsFalsePositive); 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.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 len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamAntiRansomwareSuspectCollectionGet binds the parameter fields func (o *AntiRansomwareSuspectCollectionGetParams) 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 } // bindParamAntiRansomwareSuspectCollectionGet binds the parameter order_by func (o *AntiRansomwareSuspectCollectionGetParams) 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/security/ipsec_policy_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // IpsecPolicyModifyReader is a Reader for the IpsecPolicyModify structure. type IpsecPolicyModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpsecPolicyModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIpsecPolicyModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIpsecPolicyModifyDefault(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 } } // NewIpsecPolicyModifyOK creates a IpsecPolicyModifyOK with default headers values func NewIpsecPolicyModifyOK() *IpsecPolicyModifyOK { return &IpsecPolicyModifyOK{} } /* IpsecPolicyModifyOK describes a response with status code 200, with default header values. OK */ type IpsecPolicyModifyOK struct { } // IsSuccess returns true when this ipsec policy modify o k response has a 2xx status code func (o *IpsecPolicyModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this ipsec policy modify o k response has a 3xx status code func (o *IpsecPolicyModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this ipsec policy modify o k response has a 4xx status code func (o *IpsecPolicyModifyOK) IsClientError() bool { return false } // IsServerError returns true when this ipsec policy modify o k response has a 5xx status code func (o *IpsecPolicyModifyOK) IsServerError() bool { return false } // IsCode returns true when this ipsec policy modify o k response a status code equal to that given func (o *IpsecPolicyModifyOK) IsCode(code int) bool { return code == 200 } func (o *IpsecPolicyModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/ipsec/policies/{uuid}][%d] ipsecPolicyModifyOK ", 200) } func (o *IpsecPolicyModifyOK) String() string { return fmt.Sprintf("[PATCH /security/ipsec/policies/{uuid}][%d] ipsecPolicyModifyOK ", 200) } func (o *IpsecPolicyModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewIpsecPolicyModifyDefault creates a IpsecPolicyModifyDefault with default headers values func NewIpsecPolicyModifyDefault(code int) *IpsecPolicyModifyDefault { return &IpsecPolicyModifyDefault{ _statusCode: code, } } /* IpsecPolicyModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 66257097 | Internal error. Failed to update the IPsec policy. | | 66257099 | Only one protocol can be specified. | | 66257100 | Only one local port can be specified. | | 66257101 | Only one remote port can be specified. | | 66257110 | Failed to create a policy sequencing value. | | 66257113 | Only one local IP subnet can be specified. | | 66257114 | Only one remote IP subnet can be specified. | | 66257115 | Port ranges containing more than one port are not supported. | | 66257116 | IPsec policy with the specified UUID was not found. | | 66257120 | The subnet selector must be a host address (An IPv4 address with a 32-bit netmask or an IPv6 address with a 128-bit netmask). | | 66257139 | Certificate with the specified UUID was not found. | | 66257140 | Only certificates with a client or server type are supported. | */ type IpsecPolicyModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ipsec policy modify default response func (o *IpsecPolicyModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ipsec policy modify default response has a 2xx status code func (o *IpsecPolicyModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ipsec policy modify default response has a 3xx status code func (o *IpsecPolicyModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ipsec policy modify default response has a 4xx status code func (o *IpsecPolicyModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ipsec policy modify default response has a 5xx status code func (o *IpsecPolicyModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ipsec policy modify default response a status code equal to that given func (o *IpsecPolicyModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IpsecPolicyModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/ipsec/policies/{uuid}][%d] ipsec_policy_modify default %+v", o._statusCode, o.Payload) } func (o *IpsecPolicyModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/ipsec/policies/{uuid}][%d] ipsec_policy_modify default %+v", o._statusCode, o.Payload) } func (o *IpsecPolicyModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IpsecPolicyModifyDefault) 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/security/aws_kms_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAwsKmsModifyParams creates a new AwsKmsModifyParams 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 NewAwsKmsModifyParams() *AwsKmsModifyParams { return &AwsKmsModifyParams{ timeout: cr.DefaultTimeout, } } // NewAwsKmsModifyParamsWithTimeout creates a new AwsKmsModifyParams object // with the ability to set a timeout on a request. func NewAwsKmsModifyParamsWithTimeout(timeout time.Duration) *AwsKmsModifyParams { return &AwsKmsModifyParams{ timeout: timeout, } } // NewAwsKmsModifyParamsWithContext creates a new AwsKmsModifyParams object // with the ability to set a context for a request. func NewAwsKmsModifyParamsWithContext(ctx context.Context) *AwsKmsModifyParams { return &AwsKmsModifyParams{ Context: ctx, } } // NewAwsKmsModifyParamsWithHTTPClient creates a new AwsKmsModifyParams object // with the ability to set a custom HTTPClient for a request. func NewAwsKmsModifyParamsWithHTTPClient(client *http.Client) *AwsKmsModifyParams { return &AwsKmsModifyParams{ HTTPClient: client, } } /* AwsKmsModifyParams contains all the parameters to send to the API endpoint for the aws kms modify operation. Typically these are written to a http.Request. */ type AwsKmsModifyParams struct { /* Info. AWS KMS information */ Info *models.AwsKms /* UUID. AWS KMS UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the aws kms modify params (not the query body). // // All values with no default are reset to their zero value. func (o *AwsKmsModifyParams) WithDefaults() *AwsKmsModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the aws kms modify params (not the query body). // // All values with no default are reset to their zero value. func (o *AwsKmsModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the aws kms modify params func (o *AwsKmsModifyParams) WithTimeout(timeout time.Duration) *AwsKmsModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the aws kms modify params func (o *AwsKmsModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the aws kms modify params func (o *AwsKmsModifyParams) WithContext(ctx context.Context) *AwsKmsModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the aws kms modify params func (o *AwsKmsModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the aws kms modify params func (o *AwsKmsModifyParams) WithHTTPClient(client *http.Client) *AwsKmsModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the aws kms modify params func (o *AwsKmsModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the aws kms modify params func (o *AwsKmsModifyParams) WithInfo(info *models.AwsKms) *AwsKmsModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the aws kms modify params func (o *AwsKmsModifyParams) SetInfo(info *models.AwsKms) { o.Info = info } // WithUUID adds the uuid to the aws kms modify params func (o *AwsKmsModifyParams) WithUUID(uuid string) *AwsKmsModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the aws kms modify params func (o *AwsKmsModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *AwsKmsModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewClusterAccountAdProxyModifyParams creates a new ClusterAccountAdProxyModifyParams 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 NewClusterAccountAdProxyModifyParams() *ClusterAccountAdProxyModifyParams { return &ClusterAccountAdProxyModifyParams{ timeout: cr.DefaultTimeout, } } // NewClusterAccountAdProxyModifyParamsWithTimeout creates a new ClusterAccountAdProxyModifyParams object // with the ability to set a timeout on a request. func NewClusterAccountAdProxyModifyParamsWithTimeout(timeout time.Duration) *ClusterAccountAdProxyModifyParams { return &ClusterAccountAdProxyModifyParams{ timeout: timeout, } } // NewClusterAccountAdProxyModifyParamsWithContext creates a new ClusterAccountAdProxyModifyParams object // with the ability to set a context for a request. func NewClusterAccountAdProxyModifyParamsWithContext(ctx context.Context) *ClusterAccountAdProxyModifyParams { return &ClusterAccountAdProxyModifyParams{ Context: ctx, } } // NewClusterAccountAdProxyModifyParamsWithHTTPClient creates a new ClusterAccountAdProxyModifyParams object // with the ability to set a custom HTTPClient for a request. func NewClusterAccountAdProxyModifyParamsWithHTTPClient(client *http.Client) *ClusterAccountAdProxyModifyParams { return &ClusterAccountAdProxyModifyParams{ HTTPClient: client, } } /* ClusterAccountAdProxyModifyParams contains all the parameters to send to the API endpoint for the cluster account ad proxy modify operation. Typically these are written to a http.Request. */ type ClusterAccountAdProxyModifyParams struct { /* Info. The data SVM that tunnels the Active Directory authentication requests. */ Info *models.ClusterAdProxy timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster account ad proxy modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterAccountAdProxyModifyParams) WithDefaults() *ClusterAccountAdProxyModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster account ad proxy modify params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterAccountAdProxyModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) WithTimeout(timeout time.Duration) *ClusterAccountAdProxyModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) WithContext(ctx context.Context) *ClusterAccountAdProxyModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) WithHTTPClient(client *http.Client) *ClusterAccountAdProxyModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) WithInfo(info *models.ClusterAdProxy) *ClusterAccountAdProxyModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the cluster account ad proxy modify params func (o *ClusterAccountAdProxyModifyParams) SetInfo(info *models.ClusterAdProxy) { o.Info = info } // WriteToRequest writes these params to a swagger request func (o *ClusterAccountAdProxyModifyParams) 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 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/security/azure_key_vault_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAzureKeyVaultModifyParams creates a new AzureKeyVaultModifyParams 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 NewAzureKeyVaultModifyParams() *AzureKeyVaultModifyParams { return &AzureKeyVaultModifyParams{ timeout: cr.DefaultTimeout, } } // NewAzureKeyVaultModifyParamsWithTimeout creates a new AzureKeyVaultModifyParams object // with the ability to set a timeout on a request. func NewAzureKeyVaultModifyParamsWithTimeout(timeout time.Duration) *AzureKeyVaultModifyParams { return &AzureKeyVaultModifyParams{ timeout: timeout, } } // NewAzureKeyVaultModifyParamsWithContext creates a new AzureKeyVaultModifyParams object // with the ability to set a context for a request. func NewAzureKeyVaultModifyParamsWithContext(ctx context.Context) *AzureKeyVaultModifyParams { return &AzureKeyVaultModifyParams{ Context: ctx, } } // NewAzureKeyVaultModifyParamsWithHTTPClient creates a new AzureKeyVaultModifyParams object // with the ability to set a custom HTTPClient for a request. func NewAzureKeyVaultModifyParamsWithHTTPClient(client *http.Client) *AzureKeyVaultModifyParams { return &AzureKeyVaultModifyParams{ HTTPClient: client, } } /* AzureKeyVaultModifyParams contains all the parameters to send to the API endpoint for the azure key vault modify operation. Typically these are written to a http.Request. */ type AzureKeyVaultModifyParams struct { /* Info. AKV information */ Info *models.AzureKeyVault /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202. */ ReturnTimeout *int64 /* UUID. AKV UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the azure key vault modify params (not the query body). // // All values with no default are reset to their zero value. func (o *AzureKeyVaultModifyParams) WithDefaults() *AzureKeyVaultModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the azure key vault modify params (not the query body). // // All values with no default are reset to their zero value. func (o *AzureKeyVaultModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := AzureKeyVaultModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the azure key vault modify params func (o *AzureKeyVaultModifyParams) WithTimeout(timeout time.Duration) *AzureKeyVaultModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the azure key vault modify params func (o *AzureKeyVaultModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the azure key vault modify params func (o *AzureKeyVaultModifyParams) WithContext(ctx context.Context) *AzureKeyVaultModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the azure key vault modify params func (o *AzureKeyVaultModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the azure key vault modify params func (o *AzureKeyVaultModifyParams) WithHTTPClient(client *http.Client) *AzureKeyVaultModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the azure key vault modify params func (o *AzureKeyVaultModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the azure key vault modify params func (o *AzureKeyVaultModifyParams) WithInfo(info *models.AzureKeyVault) *AzureKeyVaultModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the azure key vault modify params func (o *AzureKeyVaultModifyParams) SetInfo(info *models.AzureKeyVault) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the azure key vault modify params func (o *AzureKeyVaultModifyParams) WithReturnTimeout(returnTimeout *int64) *AzureKeyVaultModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the azure key vault modify params func (o *AzureKeyVaultModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithUUID adds the uuid to the azure key vault modify params func (o *AzureKeyVaultModifyParams) WithUUID(uuid string) *AzureKeyVaultModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the azure key vault modify params func (o *AzureKeyVaultModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *AzureKeyVaultModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityKeyManagerKeyServersCollectionGetParams creates a new SecurityKeyManagerKeyServersCollectionGetParams 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 NewSecurityKeyManagerKeyServersCollectionGetParams() *SecurityKeyManagerKeyServersCollectionGetParams { return &SecurityKeyManagerKeyServersCollectionGetParams{ requestTimeout: cr.DefaultTimeout, } } // NewSecurityKeyManagerKeyServersCollectionGetParamsWithTimeout creates a new SecurityKeyManagerKeyServersCollectionGetParams object // with the ability to set a timeout on a request. func NewSecurityKeyManagerKeyServersCollectionGetParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersCollectionGetParams { return &SecurityKeyManagerKeyServersCollectionGetParams{ requestTimeout: timeout, } } // NewSecurityKeyManagerKeyServersCollectionGetParamsWithContext creates a new SecurityKeyManagerKeyServersCollectionGetParams object // with the ability to set a context for a request. func NewSecurityKeyManagerKeyServersCollectionGetParamsWithContext(ctx context.Context) *SecurityKeyManagerKeyServersCollectionGetParams { return &SecurityKeyManagerKeyServersCollectionGetParams{ Context: ctx, } } // NewSecurityKeyManagerKeyServersCollectionGetParamsWithHTTPClient creates a new SecurityKeyManagerKeyServersCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityKeyManagerKeyServersCollectionGetParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersCollectionGetParams { return &SecurityKeyManagerKeyServersCollectionGetParams{ HTTPClient: client, } } /* SecurityKeyManagerKeyServersCollectionGetParams contains all the parameters to send to the API endpoint for the security key manager key servers collection get operation. Typically these are written to a http.Request. */ type SecurityKeyManagerKeyServersCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* SecondaryKeyServers. Filter by secondary_key_servers */ SecondaryKeyServers *string /* Server. Filter by server */ Server *string /* Timeout. Filter by timeout */ Timeout *int64 /* Username. Filter by username */ Username *string /* UUID. External key manager UUID */ UUID string requestTimeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the security key manager key servers collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithDefaults() *SecurityKeyManagerKeyServersCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security key manager key servers collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := SecurityKeyManagerKeyServersCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.requestTimeout = o.requestTimeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithRequestTimeout adds the timeout to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithRequestTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetRequestTimeout(timeout) return o } // SetRequestTimeout adds the timeout to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetRequestTimeout(timeout time.Duration) { o.requestTimeout = timeout } // WithContext adds the context to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithContext(ctx context.Context) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithFields(fields []string) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithMaxRecords(maxRecords *int64) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithOrderBy(orderBy []string) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithReturnRecords(returnRecords *bool) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSecondaryKeyServers adds the secondaryKeyServers to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithSecondaryKeyServers(secondaryKeyServers *string) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetSecondaryKeyServers(secondaryKeyServers) return o } // SetSecondaryKeyServers adds the secondaryKeyServers to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetSecondaryKeyServers(secondaryKeyServers *string) { o.SecondaryKeyServers = secondaryKeyServers } // WithServer adds the server to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithServer(server *string) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetServer(server) return o } // SetServer adds the server to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetServer(server *string) { o.Server = server } // WithTimeout adds the timeout to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithTimeout(timeout *int64) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetTimeout(timeout *int64) { o.Timeout = timeout } // WithUsername adds the username to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithUsername(username *string) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetUsername(username) return o } // SetUsername adds the username to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetUsername(username *string) { o.Username = username } // WithUUID adds the uuid to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) WithUUID(uuid string) *SecurityKeyManagerKeyServersCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the security key manager key servers collection get params func (o *SecurityKeyManagerKeyServersCollectionGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *SecurityKeyManagerKeyServersCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.requestTimeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.SecondaryKeyServers != nil { // query param secondary_key_servers var qrSecondaryKeyServers string if o.SecondaryKeyServers != nil { qrSecondaryKeyServers = *o.SecondaryKeyServers } qSecondaryKeyServers := qrSecondaryKeyServers if qSecondaryKeyServers != "" { if err := r.SetQueryParam("secondary_key_servers", qSecondaryKeyServers); 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.Timeout != nil { // query param timeout var qrTimeout int64 if o.Timeout != nil { qrTimeout = *o.Timeout } qTimeout := swag.FormatInt64(qrTimeout) if qTimeout != "" { if err := r.SetQueryParam("timeout", qTimeout); err != nil { return err } } } if o.Username != nil { // query param username var qrUsername string if o.Username != nil { qrUsername = *o.Username } qUsername := qrUsername if qUsername != "" { if err := r.SetQueryParam("username", qUsername); 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 } // bindParamSecurityKeyManagerKeyServersCollectionGet binds the parameter fields func (o *SecurityKeyManagerKeyServersCollectionGetParams) 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 } // bindParamSecurityKeyManagerKeyServersCollectionGet binds the parameter order_by func (o *SecurityKeyManagerKeyServersCollectionGetParams) 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/security/security_key_manager_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityKeyManagerGetParams creates a new SecurityKeyManagerGetParams 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 NewSecurityKeyManagerGetParams() *SecurityKeyManagerGetParams { return &SecurityKeyManagerGetParams{ timeout: cr.DefaultTimeout, } } // NewSecurityKeyManagerGetParamsWithTimeout creates a new SecurityKeyManagerGetParams object // with the ability to set a timeout on a request. func NewSecurityKeyManagerGetParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerGetParams { return &SecurityKeyManagerGetParams{ timeout: timeout, } } // NewSecurityKeyManagerGetParamsWithContext creates a new SecurityKeyManagerGetParams object // with the ability to set a context for a request. func NewSecurityKeyManagerGetParamsWithContext(ctx context.Context) *SecurityKeyManagerGetParams { return &SecurityKeyManagerGetParams{ Context: ctx, } } // NewSecurityKeyManagerGetParamsWithHTTPClient creates a new SecurityKeyManagerGetParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityKeyManagerGetParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerGetParams { return &SecurityKeyManagerGetParams{ HTTPClient: client, } } /* SecurityKeyManagerGetParams contains all the parameters to send to the API endpoint for the security key manager get operation. Typically these are written to a http.Request. */ type SecurityKeyManagerGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Key manager UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the security key manager get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityKeyManagerGetParams) WithDefaults() *SecurityKeyManagerGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security key manager get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityKeyManagerGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the security key manager get params func (o *SecurityKeyManagerGetParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security key manager get params func (o *SecurityKeyManagerGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security key manager get params func (o *SecurityKeyManagerGetParams) WithContext(ctx context.Context) *SecurityKeyManagerGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the security key manager get params func (o *SecurityKeyManagerGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security key manager get params func (o *SecurityKeyManagerGetParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security key manager get params func (o *SecurityKeyManagerGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the security key manager get params func (o *SecurityKeyManagerGetParams) WithFields(fields []string) *SecurityKeyManagerGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the security key manager get params func (o *SecurityKeyManagerGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the security key manager get params func (o *SecurityKeyManagerGetParams) WithUUID(uuid string) *SecurityKeyManagerGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the security key manager get params func (o *SecurityKeyManagerGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *SecurityKeyManagerGetParams) 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 } // bindParamSecurityKeyManagerGet binds the parameter fields func (o *SecurityKeyManagerGetParams) 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/security/multi_admin_verify_rule_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyRuleCollectionGetParams creates a new MultiAdminVerifyRuleCollectionGetParams 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 NewMultiAdminVerifyRuleCollectionGetParams() *MultiAdminVerifyRuleCollectionGetParams { return &MultiAdminVerifyRuleCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyRuleCollectionGetParamsWithTimeout creates a new MultiAdminVerifyRuleCollectionGetParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyRuleCollectionGetParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRuleCollectionGetParams { return &MultiAdminVerifyRuleCollectionGetParams{ timeout: timeout, } } // NewMultiAdminVerifyRuleCollectionGetParamsWithContext creates a new MultiAdminVerifyRuleCollectionGetParams object // with the ability to set a context for a request. func NewMultiAdminVerifyRuleCollectionGetParamsWithContext(ctx context.Context) *MultiAdminVerifyRuleCollectionGetParams { return &MultiAdminVerifyRuleCollectionGetParams{ Context: ctx, } } // NewMultiAdminVerifyRuleCollectionGetParamsWithHTTPClient creates a new MultiAdminVerifyRuleCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyRuleCollectionGetParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRuleCollectionGetParams { return &MultiAdminVerifyRuleCollectionGetParams{ HTTPClient: client, } } /* MultiAdminVerifyRuleCollectionGetParams contains all the parameters to send to the API endpoint for the multi admin verify rule collection get operation. Typically these are written to a http.Request. */ type MultiAdminVerifyRuleCollectionGetParams struct { /* ApprovalExpiry. Filter by approval_expiry */ ApprovalExpiry *string /* ApprovalGroupsName. Filter by approval_groups.name */ ApprovalGroupsName *string /* AutoRequestCreate. Filter by auto_request_create */ AutoRequestCreate *bool /* CreateTime. Filter by create_time */ CreateTime *string /* ExecutionExpiry. Filter by execution_expiry */ ExecutionExpiry *string /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Operation. Filter by operation */ Operation *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* OwnerName. Filter by owner.name */ OwnerName *string /* OwnerUUID. Filter by owner.uuid */ OwnerUUID *string /* Query. Filter by query */ Query *string /* RequiredApprovers. Filter by required_approvers */ RequiredApprovers *int64 /* 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 /* SystemDefined. Filter by system_defined */ SystemDefined *bool timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify rule collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleCollectionGetParams) WithDefaults() *MultiAdminVerifyRuleCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify rule collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := MultiAdminVerifyRuleCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRuleCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithContext(ctx context.Context) *MultiAdminVerifyRuleCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRuleCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApprovalExpiry adds the approvalExpiry to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithApprovalExpiry(approvalExpiry *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetApprovalExpiry(approvalExpiry) return o } // SetApprovalExpiry adds the approvalExpiry to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetApprovalExpiry(approvalExpiry *string) { o.ApprovalExpiry = approvalExpiry } // WithApprovalGroupsName adds the approvalGroupsName to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithApprovalGroupsName(approvalGroupsName *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetApprovalGroupsName(approvalGroupsName) return o } // SetApprovalGroupsName adds the approvalGroupsName to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetApprovalGroupsName(approvalGroupsName *string) { o.ApprovalGroupsName = approvalGroupsName } // WithAutoRequestCreate adds the autoRequestCreate to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithAutoRequestCreate(autoRequestCreate *bool) *MultiAdminVerifyRuleCollectionGetParams { o.SetAutoRequestCreate(autoRequestCreate) return o } // SetAutoRequestCreate adds the autoRequestCreate to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetAutoRequestCreate(autoRequestCreate *bool) { o.AutoRequestCreate = autoRequestCreate } // WithCreateTime adds the createTime to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithCreateTime(createTime *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetCreateTime(createTime) return o } // SetCreateTime adds the createTime to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetCreateTime(createTime *string) { o.CreateTime = createTime } // WithExecutionExpiry adds the executionExpiry to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithExecutionExpiry(executionExpiry *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetExecutionExpiry(executionExpiry) return o } // SetExecutionExpiry adds the executionExpiry to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetExecutionExpiry(executionExpiry *string) { o.ExecutionExpiry = executionExpiry } // WithFields adds the fields to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithFields(fields []string) *MultiAdminVerifyRuleCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithMaxRecords(maxRecords *int64) *MultiAdminVerifyRuleCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOperation adds the operation to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithOperation(operation *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetOperation(operation) return o } // SetOperation adds the operation to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetOperation(operation *string) { o.Operation = operation } // WithOrderBy adds the orderBy to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithOrderBy(orderBy []string) *MultiAdminVerifyRuleCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithOwnerName adds the ownerName to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithOwnerName(ownerName *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetOwnerName(ownerName) return o } // SetOwnerName adds the ownerName to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetOwnerName(ownerName *string) { o.OwnerName = ownerName } // WithOwnerUUID adds the ownerUUID to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithOwnerUUID(ownerUUID *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetOwnerUUID(ownerUUID *string) { o.OwnerUUID = ownerUUID } // WithQuery adds the query to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithQuery(query *string) *MultiAdminVerifyRuleCollectionGetParams { o.SetQuery(query) return o } // SetQuery adds the query to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetQuery(query *string) { o.Query = query } // WithRequiredApprovers adds the requiredApprovers to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithRequiredApprovers(requiredApprovers *int64) *MultiAdminVerifyRuleCollectionGetParams { o.SetRequiredApprovers(requiredApprovers) return o } // SetRequiredApprovers adds the requiredApprovers to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetRequiredApprovers(requiredApprovers *int64) { o.RequiredApprovers = requiredApprovers } // WithReturnRecords adds the returnRecords to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithReturnRecords(returnRecords *bool) *MultiAdminVerifyRuleCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *MultiAdminVerifyRuleCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSystemDefined adds the systemDefined to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) WithSystemDefined(systemDefined *bool) *MultiAdminVerifyRuleCollectionGetParams { o.SetSystemDefined(systemDefined) return o } // SetSystemDefined adds the systemDefined to the multi admin verify rule collection get params func (o *MultiAdminVerifyRuleCollectionGetParams) SetSystemDefined(systemDefined *bool) { o.SystemDefined = systemDefined } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyRuleCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.ApprovalExpiry != nil { // query param approval_expiry var qrApprovalExpiry string if o.ApprovalExpiry != nil { qrApprovalExpiry = *o.ApprovalExpiry } qApprovalExpiry := qrApprovalExpiry if qApprovalExpiry != "" { if err := r.SetQueryParam("approval_expiry", qApprovalExpiry); err != nil { return err } } } if o.ApprovalGroupsName != nil { // query param approval_groups.name var qrApprovalGroupsName string if o.ApprovalGroupsName != nil { qrApprovalGroupsName = *o.ApprovalGroupsName } qApprovalGroupsName := qrApprovalGroupsName if qApprovalGroupsName != "" { if err := r.SetQueryParam("approval_groups.name", qApprovalGroupsName); err != nil { return err } } } if o.AutoRequestCreate != nil { // query param auto_request_create var qrAutoRequestCreate bool if o.AutoRequestCreate != nil { qrAutoRequestCreate = *o.AutoRequestCreate } qAutoRequestCreate := swag.FormatBool(qrAutoRequestCreate) if qAutoRequestCreate != "" { if err := r.SetQueryParam("auto_request_create", qAutoRequestCreate); err != nil { return err } } } if o.CreateTime != nil { // query param create_time var qrCreateTime string if o.CreateTime != nil { qrCreateTime = *o.CreateTime } qCreateTime := qrCreateTime if qCreateTime != "" { if err := r.SetQueryParam("create_time", qCreateTime); err != nil { return err } } } if o.ExecutionExpiry != nil { // query param execution_expiry var qrExecutionExpiry string if o.ExecutionExpiry != nil { qrExecutionExpiry = *o.ExecutionExpiry } qExecutionExpiry := qrExecutionExpiry if qExecutionExpiry != "" { if err := r.SetQueryParam("execution_expiry", qExecutionExpiry); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.Operation != nil { // query param operation var qrOperation string if o.Operation != nil { qrOperation = *o.Operation } qOperation := qrOperation if qOperation != "" { if err := r.SetQueryParam("operation", qOperation); 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.OwnerName != nil { // query param owner.name var qrOwnerName string if o.OwnerName != nil { qrOwnerName = *o.OwnerName } qOwnerName := qrOwnerName if qOwnerName != "" { if err := r.SetQueryParam("owner.name", qOwnerName); err != nil { return err } } } if o.OwnerUUID != nil { // query param owner.uuid var qrOwnerUUID string if o.OwnerUUID != nil { qrOwnerUUID = *o.OwnerUUID } qOwnerUUID := qrOwnerUUID if qOwnerUUID != "" { if err := r.SetQueryParam("owner.uuid", qOwnerUUID); err != nil { return err } } } if o.Query != nil { // query param query var qrQuery string if o.Query != nil { qrQuery = *o.Query } qQuery := qrQuery if qQuery != "" { if err := r.SetQueryParam("query", qQuery); err != nil { return err } } } if o.RequiredApprovers != nil { // query param required_approvers var qrRequiredApprovers int64 if o.RequiredApprovers != nil { qrRequiredApprovers = *o.RequiredApprovers } qRequiredApprovers := swag.FormatInt64(qrRequiredApprovers) if qRequiredApprovers != "" { if err := r.SetQueryParam("required_approvers", qRequiredApprovers); 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.SystemDefined != nil { // query param system_defined var qrSystemDefined bool if o.SystemDefined != nil { qrSystemDefined = *o.SystemDefined } qSystemDefined := swag.FormatBool(qrSystemDefined) if qSystemDefined != "" { if err := r.SetQueryParam("system_defined", qSystemDefined); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMultiAdminVerifyRuleCollectionGet binds the parameter fields func (o *MultiAdminVerifyRuleCollectionGetParams) 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 } // bindParamMultiAdminVerifyRuleCollectionGet binds the parameter order_by func (o *MultiAdminVerifyRuleCollectionGetParams) 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/security/security_keystore_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_keystore_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityKeystoreCollectionGetParams creates a new SecurityKeystoreCollectionGetParams 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 NewSecurityKeystoreCollectionGetParams() *SecurityKeystoreCollectionGetParams { return &SecurityKeystoreCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewSecurityKeystoreCollectionGetParamsWithTimeout creates a new SecurityKeystoreCollectionGetParams object // with the ability to set a timeout on a request. func NewSecurityKeystoreCollectionGetParamsWithTimeout(timeout time.Duration) *SecurityKeystoreCollectionGetParams { return &SecurityKeystoreCollectionGetParams{ timeout: timeout, } } // NewSecurityKeystoreCollectionGetParamsWithContext creates a new SecurityKeystoreCollectionGetParams object // with the ability to set a context for a request. func NewSecurityKeystoreCollectionGetParamsWithContext(ctx context.Context) *SecurityKeystoreCollectionGetParams { return &SecurityKeystoreCollectionGetParams{ Context: ctx, } } // NewSecurityKeystoreCollectionGetParamsWithHTTPClient creates a new SecurityKeystoreCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityKeystoreCollectionGetParamsWithHTTPClient(client *http.Client) *SecurityKeystoreCollectionGetParams { return &SecurityKeystoreCollectionGetParams{ HTTPClient: client, } } /* SecurityKeystoreCollectionGetParams contains all the parameters to send to the API endpoint for the security keystore collection get operation. Typically these are written to a http.Request. */ type SecurityKeystoreCollectionGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* Location. Filter by location */ Location *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 /* Type. Filter by type */ Type *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the security keystore collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityKeystoreCollectionGetParams) WithDefaults() *SecurityKeystoreCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security keystore collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityKeystoreCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := SecurityKeystoreCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithTimeout(timeout time.Duration) *SecurityKeystoreCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithContext(ctx context.Context) *SecurityKeystoreCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithHTTPClient(client *http.Client) *SecurityKeystoreCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithFields(fields []string) *SecurityKeystoreCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithLocation adds the location to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithLocation(location *string) *SecurityKeystoreCollectionGetParams { o.SetLocation(location) return o } // SetLocation adds the location to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetLocation(location *string) { o.Location = location } // WithMaxRecords adds the maxRecords to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithMaxRecords(maxRecords *int64) *SecurityKeystoreCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithOrderBy(orderBy []string) *SecurityKeystoreCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithReturnRecords adds the returnRecords to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithReturnRecords(returnRecords *bool) *SecurityKeystoreCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SecurityKeystoreCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSvmName adds the svmName to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithSvmName(svmName *string) *SecurityKeystoreCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithSvmUUID(svmUUID *string) *SecurityKeystoreCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithType adds the typeVar to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithType(typeVar *string) *SecurityKeystoreCollectionGetParams { o.SetType(typeVar) return o } // SetType adds the type to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetType(typeVar *string) { o.Type = typeVar } // WithUUID adds the uuid to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) WithUUID(uuid *string) *SecurityKeystoreCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the security keystore collection get params func (o *SecurityKeystoreCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *SecurityKeystoreCollectionGetParams) 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.Location != nil { // query param location var qrLocation string if o.Location != nil { qrLocation = *o.Location } qLocation := qrLocation if qLocation != "" { if err := r.SetQueryParam("location", qLocation); 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 o.Type != nil { // query param type var qrType string if o.Type != nil { qrType = *o.Type } qType := qrType if qType != "" { if err := r.SetQueryParam("type", qType); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamSecurityKeystoreCollectionGet binds the parameter fields func (o *SecurityKeystoreCollectionGetParams) 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 } // bindParamSecurityKeystoreCollectionGet binds the parameter order_by func (o *SecurityKeystoreCollectionGetParams) 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/security/role_privilege_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewRolePrivilegeCreateParams creates a new RolePrivilegeCreateParams 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 NewRolePrivilegeCreateParams() *RolePrivilegeCreateParams { return &RolePrivilegeCreateParams{ timeout: cr.DefaultTimeout, } } // NewRolePrivilegeCreateParamsWithTimeout creates a new RolePrivilegeCreateParams object // with the ability to set a timeout on a request. func NewRolePrivilegeCreateParamsWithTimeout(timeout time.Duration) *RolePrivilegeCreateParams { return &RolePrivilegeCreateParams{ timeout: timeout, } } // NewRolePrivilegeCreateParamsWithContext creates a new RolePrivilegeCreateParams object // with the ability to set a context for a request. func NewRolePrivilegeCreateParamsWithContext(ctx context.Context) *RolePrivilegeCreateParams { return &RolePrivilegeCreateParams{ Context: ctx, } } // NewRolePrivilegeCreateParamsWithHTTPClient creates a new RolePrivilegeCreateParams object // with the ability to set a custom HTTPClient for a request. func NewRolePrivilegeCreateParamsWithHTTPClient(client *http.Client) *RolePrivilegeCreateParams { return &RolePrivilegeCreateParams{ HTTPClient: client, } } /* RolePrivilegeCreateParams contains all the parameters to send to the API endpoint for the role privilege create operation. Typically these are written to a http.Request. */ type RolePrivilegeCreateParams struct { /* Info. Role privilege specification */ Info *models.RolePrivilege /* Name. Role name */ Name string /* OwnerUUID. Role owner UUID */ OwnerUUID string /* 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 role privilege create params (not the query body). // // All values with no default are reset to their zero value. func (o *RolePrivilegeCreateParams) WithDefaults() *RolePrivilegeCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the role privilege create params (not the query body). // // All values with no default are reset to their zero value. func (o *RolePrivilegeCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := RolePrivilegeCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the role privilege create params func (o *RolePrivilegeCreateParams) WithTimeout(timeout time.Duration) *RolePrivilegeCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the role privilege create params func (o *RolePrivilegeCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the role privilege create params func (o *RolePrivilegeCreateParams) WithContext(ctx context.Context) *RolePrivilegeCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the role privilege create params func (o *RolePrivilegeCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the role privilege create params func (o *RolePrivilegeCreateParams) WithHTTPClient(client *http.Client) *RolePrivilegeCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the role privilege create params func (o *RolePrivilegeCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the role privilege create params func (o *RolePrivilegeCreateParams) WithInfo(info *models.RolePrivilege) *RolePrivilegeCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the role privilege create params func (o *RolePrivilegeCreateParams) SetInfo(info *models.RolePrivilege) { o.Info = info } // WithName adds the name to the role privilege create params func (o *RolePrivilegeCreateParams) WithName(name string) *RolePrivilegeCreateParams { o.SetName(name) return o } // SetName adds the name to the role privilege create params func (o *RolePrivilegeCreateParams) SetName(name string) { o.Name = name } // WithOwnerUUID adds the ownerUUID to the role privilege create params func (o *RolePrivilegeCreateParams) WithOwnerUUID(ownerUUID string) *RolePrivilegeCreateParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the role privilege create params func (o *RolePrivilegeCreateParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WithReturnRecords adds the returnRecords to the role privilege create params func (o *RolePrivilegeCreateParams) WithReturnRecords(returnRecords *bool) *RolePrivilegeCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the role privilege create params func (o *RolePrivilegeCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *RolePrivilegeCreateParams) 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 owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); 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/security/ipsec_policy_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // IpsecPolicyCreateReader is a Reader for the IpsecPolicyCreate structure. type IpsecPolicyCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpsecPolicyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewIpsecPolicyCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIpsecPolicyCreateDefault(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 } } // NewIpsecPolicyCreateCreated creates a IpsecPolicyCreateCreated with default headers values func NewIpsecPolicyCreateCreated() *IpsecPolicyCreateCreated { return &IpsecPolicyCreateCreated{} } /* IpsecPolicyCreateCreated describes a response with status code 201, with default header values. Created */ type IpsecPolicyCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.IpsecPolicyResponse } // IsSuccess returns true when this ipsec policy create created response has a 2xx status code func (o *IpsecPolicyCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this ipsec policy create created response has a 3xx status code func (o *IpsecPolicyCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this ipsec policy create created response has a 4xx status code func (o *IpsecPolicyCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this ipsec policy create created response has a 5xx status code func (o *IpsecPolicyCreateCreated) IsServerError() bool { return false } // IsCode returns true when this ipsec policy create created response a status code equal to that given func (o *IpsecPolicyCreateCreated) IsCode(code int) bool { return code == 201 } func (o *IpsecPolicyCreateCreated) Error() string { return fmt.Sprintf("[POST /security/ipsec/policies][%d] ipsecPolicyCreateCreated %+v", 201, o.Payload) } func (o *IpsecPolicyCreateCreated) String() string { return fmt.Sprintf("[POST /security/ipsec/policies][%d] ipsecPolicyCreateCreated %+v", 201, o.Payload) } func (o *IpsecPolicyCreateCreated) GetPayload() *models.IpsecPolicyResponse { return o.Payload } func (o *IpsecPolicyCreateCreated) 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.IpsecPolicyResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewIpsecPolicyCreateDefault creates a IpsecPolicyCreateDefault with default headers values func NewIpsecPolicyCreateDefault(code int) *IpsecPolicyCreateDefault { return &IpsecPolicyCreateDefault{ _statusCode: code, } } /* IpsecPolicyCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 66257099 | Only one protocol can be specified. | | 66257100 | Only one local port can be specified. | | 66257101 | Only one remote port can be specified. | | 66257104 | IPsec policy with same name already exists in this SVM. | | 66257107 | The specified pre-shared key is not a valid hexadecimal string. | | 66257109 | The specified pre-shared key is not a valid Base64 encoded binary string. | | 66257110 | Failed to a create policy sequencing value. | | 66257111 | The IPsec policy with action ESP TRANSPORT provides packet protection and requires a secret key or certificate for authentication. | | 66257112 | The IPsec policy with the action specified does not provide packet protection and the authentication method provided for the policy will be ignored. | | 66257113 | Only one local IP subnet can be specified. | | 66257114 | Only one remote IP subnet can be specified. | | 66257115 | Port ranges containing more than one port are not supported. | | 66257117 | IPsec is not supported on the SVM specified in the policy, IPsec is supported on data SVMs only. | | 66257120 | The subnet selector must be a host address (An IPv4 address with a 32-bit netmask or an IPv6 address with a 128-bit netmask). | | 66257121 | The maximum limit of IPsec Policies has reached for the specified SVM. | | 66257125 | The local_endpoint.address must be specified with local_endpoint.netmask. | | 66257126 | The remote_endpoint.address must be specified with remote_endpoint.netmask. | | 66257132 | Invalid value for port field. Value should be in range <1-65535>. | | 66257133 | A pre-shared key is needed for the PSK authentication method. Use the secret_key option to specify a key. | | 66257134 | An end-entity certificate is needed for the PKI authentication method. Use the certificate.uuid option to specify an end-entity certificate. | | 66257137 | A pre-shared key is not needed for the PKI authentication method. | | 66257139 | Certificate with the specified UUID was not found. | | 66257140 | Only certificates with a client or server type are supported. | | 66257396 | IPsec is not supported for the admin SVM in a MetroCluster configuration. | */ type IpsecPolicyCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ipsec policy create default response func (o *IpsecPolicyCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ipsec policy create default response has a 2xx status code func (o *IpsecPolicyCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ipsec policy create default response has a 3xx status code func (o *IpsecPolicyCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ipsec policy create default response has a 4xx status code func (o *IpsecPolicyCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ipsec policy create default response has a 5xx status code func (o *IpsecPolicyCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ipsec policy create default response a status code equal to that given func (o *IpsecPolicyCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IpsecPolicyCreateDefault) Error() string { return fmt.Sprintf("[POST /security/ipsec/policies][%d] ipsec_policy_create default %+v", o._statusCode, o.Payload) } func (o *IpsecPolicyCreateDefault) String() string { return fmt.Sprintf("[POST /security/ipsec/policies][%d] ipsec_policy_create default %+v", o._statusCode, o.Payload) } func (o *IpsecPolicyCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IpsecPolicyCreateDefault) 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/security/ipsec_policy_create_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_create_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecPolicyCreateParams creates a new IpsecPolicyCreateParams 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 NewIpsecPolicyCreateParams() *IpsecPolicyCreateParams { return &IpsecPolicyCreateParams{ timeout: cr.DefaultTimeout, } } // NewIpsecPolicyCreateParamsWithTimeout creates a new IpsecPolicyCreateParams object // with the ability to set a timeout on a request. func NewIpsecPolicyCreateParamsWithTimeout(timeout time.Duration) *IpsecPolicyCreateParams { return &IpsecPolicyCreateParams{ timeout: timeout, } } // NewIpsecPolicyCreateParamsWithContext creates a new IpsecPolicyCreateParams object // with the ability to set a context for a request. func NewIpsecPolicyCreateParamsWithContext(ctx context.Context) *IpsecPolicyCreateParams { return &IpsecPolicyCreateParams{ Context: ctx, } } // NewIpsecPolicyCreateParamsWithHTTPClient creates a new IpsecPolicyCreateParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecPolicyCreateParamsWithHTTPClient(client *http.Client) *IpsecPolicyCreateParams { return &IpsecPolicyCreateParams{ HTTPClient: client, } } /* IpsecPolicyCreateParams contains all the parameters to send to the API endpoint for the ipsec policy create operation. Typically these are written to a http.Request. */ type IpsecPolicyCreateParams struct { /* Info. IPsec policy parameters */ Info *models.IpsecPolicy /* 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 ipsec policy create params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyCreateParams) WithDefaults() *IpsecPolicyCreateParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec policy create params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyCreateParams) SetDefaults() { var ( returnRecordsDefault = bool(false) ) val := IpsecPolicyCreateParams{ ReturnRecords: &returnRecordsDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the ipsec policy create params func (o *IpsecPolicyCreateParams) WithTimeout(timeout time.Duration) *IpsecPolicyCreateParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec policy create params func (o *IpsecPolicyCreateParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec policy create params func (o *IpsecPolicyCreateParams) WithContext(ctx context.Context) *IpsecPolicyCreateParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec policy create params func (o *IpsecPolicyCreateParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec policy create params func (o *IpsecPolicyCreateParams) WithHTTPClient(client *http.Client) *IpsecPolicyCreateParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec policy create params func (o *IpsecPolicyCreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ipsec policy create params func (o *IpsecPolicyCreateParams) WithInfo(info *models.IpsecPolicy) *IpsecPolicyCreateParams { o.SetInfo(info) return o } // SetInfo adds the info to the ipsec policy create params func (o *IpsecPolicyCreateParams) SetInfo(info *models.IpsecPolicy) { o.Info = info } // WithReturnRecords adds the returnRecords to the ipsec policy create params func (o *IpsecPolicyCreateParams) WithReturnRecords(returnRecords *bool) *IpsecPolicyCreateParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the ipsec policy create params func (o *IpsecPolicyCreateParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WriteToRequest writes these params to a swagger request func (o *IpsecPolicyCreateParams) 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/security/role_privilege_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // RolePrivilegeGetReader is a Reader for the RolePrivilegeGet structure. type RolePrivilegeGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *RolePrivilegeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewRolePrivilegeGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewRolePrivilegeGetDefault(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 } } // NewRolePrivilegeGetOK creates a RolePrivilegeGetOK with default headers values func NewRolePrivilegeGetOK() *RolePrivilegeGetOK { return &RolePrivilegeGetOK{} } /* RolePrivilegeGetOK describes a response with status code 200, with default header values. OK */ type RolePrivilegeGetOK struct { Payload *models.RolePrivilege } // IsSuccess returns true when this role privilege get o k response has a 2xx status code func (o *RolePrivilegeGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this role privilege get o k response has a 3xx status code func (o *RolePrivilegeGetOK) IsRedirect() bool { return false } // IsClientError returns true when this role privilege get o k response has a 4xx status code func (o *RolePrivilegeGetOK) IsClientError() bool { return false } // IsServerError returns true when this role privilege get o k response has a 5xx status code func (o *RolePrivilegeGetOK) IsServerError() bool { return false } // IsCode returns true when this role privilege get o k response a status code equal to that given func (o *RolePrivilegeGetOK) IsCode(code int) bool { return code == 200 } func (o *RolePrivilegeGetOK) Error() string { return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] rolePrivilegeGetOK %+v", 200, o.Payload) } func (o *RolePrivilegeGetOK) String() string { return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] rolePrivilegeGetOK %+v", 200, o.Payload) } func (o *RolePrivilegeGetOK) GetPayload() *models.RolePrivilege { return o.Payload } func (o *RolePrivilegeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.RolePrivilege) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewRolePrivilegeGetDefault creates a RolePrivilegeGetDefault with default headers values func NewRolePrivilegeGetDefault(code int) *RolePrivilegeGetDefault { return &RolePrivilegeGetDefault{ _statusCode: code, } } /* RolePrivilegeGetDefault describes a response with status code -1, with default header values. Error */ type RolePrivilegeGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the role privilege get default response func (o *RolePrivilegeGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this role privilege get default response has a 2xx status code func (o *RolePrivilegeGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this role privilege get default response has a 3xx status code func (o *RolePrivilegeGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this role privilege get default response has a 4xx status code func (o *RolePrivilegeGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this role privilege get default response has a 5xx status code func (o *RolePrivilegeGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this role privilege get default response a status code equal to that given func (o *RolePrivilegeGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *RolePrivilegeGetDefault) Error() string { return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] role_privilege_get default %+v", o._statusCode, o.Payload) } func (o *RolePrivilegeGetDefault) String() string { return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] role_privilege_get default %+v", o._statusCode, o.Payload) } func (o *RolePrivilegeGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *RolePrivilegeGetDefault) 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/security/security_key_manager_key_servers_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityKeyManagerKeyServersModifyReader is a Reader for the SecurityKeyManagerKeyServersModify structure. type SecurityKeyManagerKeyServersModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityKeyManagerKeyServersModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityKeyManagerKeyServersModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityKeyManagerKeyServersModifyDefault(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 } } // NewSecurityKeyManagerKeyServersModifyOK creates a SecurityKeyManagerKeyServersModifyOK with default headers values func NewSecurityKeyManagerKeyServersModifyOK() *SecurityKeyManagerKeyServersModifyOK { return &SecurityKeyManagerKeyServersModifyOK{} } /* SecurityKeyManagerKeyServersModifyOK describes a response with status code 200, with default header values. OK */ type SecurityKeyManagerKeyServersModifyOK struct { } // IsSuccess returns true when this security key manager key servers modify o k response has a 2xx status code func (o *SecurityKeyManagerKeyServersModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this security key manager key servers modify o k response has a 3xx status code func (o *SecurityKeyManagerKeyServersModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this security key manager key servers modify o k response has a 4xx status code func (o *SecurityKeyManagerKeyServersModifyOK) IsClientError() bool { return false } // IsServerError returns true when this security key manager key servers modify o k response has a 5xx status code func (o *SecurityKeyManagerKeyServersModifyOK) IsServerError() bool { return false } // IsCode returns true when this security key manager key servers modify o k response a status code equal to that given func (o *SecurityKeyManagerKeyServersModifyOK) IsCode(code int) bool { return code == 200 } func (o *SecurityKeyManagerKeyServersModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/key-managers/{uuid}/key-servers/{server}][%d] securityKeyManagerKeyServersModifyOK ", 200) } func (o *SecurityKeyManagerKeyServersModifyOK) String() string { return fmt.Sprintf("[PATCH /security/key-managers/{uuid}/key-servers/{server}][%d] securityKeyManagerKeyServersModifyOK ", 200) } func (o *SecurityKeyManagerKeyServersModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewSecurityKeyManagerKeyServersModifyDefault creates a SecurityKeyManagerKeyServersModifyDefault with default headers values func NewSecurityKeyManagerKeyServersModifyDefault(code int) *SecurityKeyManagerKeyServersModifyDefault { return &SecurityKeyManagerKeyServersModifyDefault{ _statusCode: code, } } /* SecurityKeyManagerKeyServersModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65536600 | Cannot modify a key server while a node is out quorum. | | 65536822 | Multitenant key management is not supported in the current cluster version. | | 65536824 | Multitenant key management is not supported in MetroCluster configurations. | | 65536828 | External key management is not enabled for the SVM. | | 65536843 | The key management server is not configured for the SVM. | | 65536845 | Missing username. | | 65536846 | Missing password. | | 65537400 | Exceeded maximum number of secondary key servers. | | 65538407 | A secondary key server is a duplicate of the associated primary key server. | | 65538408 | The list of secondary key servers contains duplicates. | | 65538413 | A secondary key server address is not formatted correctly. | | 65538502 | A secondary key server is also a primary key server. | | 65538503 | Support for adding secondary key servers requires an ECV of ONTAP 9.11.1 or later. | */ type SecurityKeyManagerKeyServersModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security key manager key servers modify default response func (o *SecurityKeyManagerKeyServersModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security key manager key servers modify default response has a 2xx status code func (o *SecurityKeyManagerKeyServersModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security key manager key servers modify default response has a 3xx status code func (o *SecurityKeyManagerKeyServersModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security key manager key servers modify default response has a 4xx status code func (o *SecurityKeyManagerKeyServersModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security key manager key servers modify default response has a 5xx status code func (o *SecurityKeyManagerKeyServersModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security key manager key servers modify default response a status code equal to that given func (o *SecurityKeyManagerKeyServersModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityKeyManagerKeyServersModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/key-managers/{uuid}/key-servers/{server}][%d] security_key_manager_key_servers_modify default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerKeyServersModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/key-managers/{uuid}/key-servers/{server}][%d] security_key_manager_key_servers_modify default %+v", o._statusCode, o.Payload) } func (o *SecurityKeyManagerKeyServersModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityKeyManagerKeyServersModifyDefault) 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/security/ipsec_policy_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecPolicyGetParams creates a new IpsecPolicyGetParams 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 NewIpsecPolicyGetParams() *IpsecPolicyGetParams { return &IpsecPolicyGetParams{ timeout: cr.DefaultTimeout, } } // NewIpsecPolicyGetParamsWithTimeout creates a new IpsecPolicyGetParams object // with the ability to set a timeout on a request. func NewIpsecPolicyGetParamsWithTimeout(timeout time.Duration) *IpsecPolicyGetParams { return &IpsecPolicyGetParams{ timeout: timeout, } } // NewIpsecPolicyGetParamsWithContext creates a new IpsecPolicyGetParams object // with the ability to set a context for a request. func NewIpsecPolicyGetParamsWithContext(ctx context.Context) *IpsecPolicyGetParams { return &IpsecPolicyGetParams{ Context: ctx, } } // NewIpsecPolicyGetParamsWithHTTPClient creates a new IpsecPolicyGetParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecPolicyGetParamsWithHTTPClient(client *http.Client) *IpsecPolicyGetParams { return &IpsecPolicyGetParams{ HTTPClient: client, } } /* IpsecPolicyGetParams contains all the parameters to send to the API endpoint for the ipsec policy get operation. Typically these are written to a http.Request. */ type IpsecPolicyGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. IPsec policy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipsec policy get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyGetParams) WithDefaults() *IpsecPolicyGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec policy get params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ipsec policy get params func (o *IpsecPolicyGetParams) WithTimeout(timeout time.Duration) *IpsecPolicyGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec policy get params func (o *IpsecPolicyGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec policy get params func (o *IpsecPolicyGetParams) WithContext(ctx context.Context) *IpsecPolicyGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec policy get params func (o *IpsecPolicyGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec policy get params func (o *IpsecPolicyGetParams) WithHTTPClient(client *http.Client) *IpsecPolicyGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec policy get params func (o *IpsecPolicyGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the ipsec policy get params func (o *IpsecPolicyGetParams) WithFields(fields []string) *IpsecPolicyGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the ipsec policy get params func (o *IpsecPolicyGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the ipsec policy get params func (o *IpsecPolicyGetParams) WithUUID(uuid string) *IpsecPolicyGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ipsec policy get params func (o *IpsecPolicyGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IpsecPolicyGetParams) 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 } // bindParamIpsecPolicyGet binds the parameter fields func (o *IpsecPolicyGetParams) 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/security/multi_admin_verify_rule_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // MultiAdminVerifyRuleCollectionGetReader is a Reader for the MultiAdminVerifyRuleCollectionGet structure. type MultiAdminVerifyRuleCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MultiAdminVerifyRuleCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMultiAdminVerifyRuleCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMultiAdminVerifyRuleCollectionGetDefault(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 } } // NewMultiAdminVerifyRuleCollectionGetOK creates a MultiAdminVerifyRuleCollectionGetOK with default headers values func NewMultiAdminVerifyRuleCollectionGetOK() *MultiAdminVerifyRuleCollectionGetOK { return &MultiAdminVerifyRuleCollectionGetOK{} } /* MultiAdminVerifyRuleCollectionGetOK describes a response with status code 200, with default header values. OK */ type MultiAdminVerifyRuleCollectionGetOK struct { Payload *models.MultiAdminVerifyRuleResponse } // IsSuccess returns true when this multi admin verify rule collection get o k response has a 2xx status code func (o *MultiAdminVerifyRuleCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this multi admin verify rule collection get o k response has a 3xx status code func (o *MultiAdminVerifyRuleCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this multi admin verify rule collection get o k response has a 4xx status code func (o *MultiAdminVerifyRuleCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this multi admin verify rule collection get o k response has a 5xx status code func (o *MultiAdminVerifyRuleCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this multi admin verify rule collection get o k response a status code equal to that given func (o *MultiAdminVerifyRuleCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *MultiAdminVerifyRuleCollectionGetOK) Error() string { return fmt.Sprintf("[GET /security/multi-admin-verify/rules][%d] multiAdminVerifyRuleCollectionGetOK %+v", 200, o.Payload) } func (o *MultiAdminVerifyRuleCollectionGetOK) String() string { return fmt.Sprintf("[GET /security/multi-admin-verify/rules][%d] multiAdminVerifyRuleCollectionGetOK %+v", 200, o.Payload) } func (o *MultiAdminVerifyRuleCollectionGetOK) GetPayload() *models.MultiAdminVerifyRuleResponse { return o.Payload } func (o *MultiAdminVerifyRuleCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.MultiAdminVerifyRuleResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewMultiAdminVerifyRuleCollectionGetDefault creates a MultiAdminVerifyRuleCollectionGetDefault with default headers values func NewMultiAdminVerifyRuleCollectionGetDefault(code int) *MultiAdminVerifyRuleCollectionGetDefault { return &MultiAdminVerifyRuleCollectionGetDefault{ _statusCode: code, } } /* MultiAdminVerifyRuleCollectionGetDefault describes a response with status code -1, with default header values. Error */ type MultiAdminVerifyRuleCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the multi admin verify rule collection get default response func (o *MultiAdminVerifyRuleCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this multi admin verify rule collection get default response has a 2xx status code func (o *MultiAdminVerifyRuleCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this multi admin verify rule collection get default response has a 3xx status code func (o *MultiAdminVerifyRuleCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this multi admin verify rule collection get default response has a 4xx status code func (o *MultiAdminVerifyRuleCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this multi admin verify rule collection get default response has a 5xx status code func (o *MultiAdminVerifyRuleCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this multi admin verify rule collection get default response a status code equal to that given func (o *MultiAdminVerifyRuleCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MultiAdminVerifyRuleCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /security/multi-admin-verify/rules][%d] multi_admin_verify_rule_collection_get default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRuleCollectionGetDefault) String() string { return fmt.Sprintf("[GET /security/multi-admin-verify/rules][%d] multi_admin_verify_rule_collection_get default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRuleCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MultiAdminVerifyRuleCollectionGetDefault) 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/security/multi_admin_verify_approval_group_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_approval_group_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // MultiAdminVerifyApprovalGroupDeleteReader is a Reader for the MultiAdminVerifyApprovalGroupDelete structure. type MultiAdminVerifyApprovalGroupDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MultiAdminVerifyApprovalGroupDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMultiAdminVerifyApprovalGroupDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMultiAdminVerifyApprovalGroupDeleteDefault(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 } } // NewMultiAdminVerifyApprovalGroupDeleteOK creates a MultiAdminVerifyApprovalGroupDeleteOK with default headers values func NewMultiAdminVerifyApprovalGroupDeleteOK() *MultiAdminVerifyApprovalGroupDeleteOK { return &MultiAdminVerifyApprovalGroupDeleteOK{} } /* MultiAdminVerifyApprovalGroupDeleteOK describes a response with status code 200, with default header values. OK */ type MultiAdminVerifyApprovalGroupDeleteOK struct { } // IsSuccess returns true when this multi admin verify approval group delete o k response has a 2xx status code func (o *MultiAdminVerifyApprovalGroupDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this multi admin verify approval group delete o k response has a 3xx status code func (o *MultiAdminVerifyApprovalGroupDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this multi admin verify approval group delete o k response has a 4xx status code func (o *MultiAdminVerifyApprovalGroupDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this multi admin verify approval group delete o k response has a 5xx status code func (o *MultiAdminVerifyApprovalGroupDeleteOK) IsServerError() bool { return false } // IsCode returns true when this multi admin verify approval group delete o k response a status code equal to that given func (o *MultiAdminVerifyApprovalGroupDeleteOK) IsCode(code int) bool { return code == 200 } func (o *MultiAdminVerifyApprovalGroupDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multiAdminVerifyApprovalGroupDeleteOK ", 200) } func (o *MultiAdminVerifyApprovalGroupDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multiAdminVerifyApprovalGroupDeleteOK ", 200) } func (o *MultiAdminVerifyApprovalGroupDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewMultiAdminVerifyApprovalGroupDeleteDefault creates a MultiAdminVerifyApprovalGroupDeleteDefault with default headers values func NewMultiAdminVerifyApprovalGroupDeleteDefault(code int) *MultiAdminVerifyApprovalGroupDeleteDefault { return &MultiAdminVerifyApprovalGroupDeleteDefault{ _statusCode: code, } } /* MultiAdminVerifyApprovalGroupDeleteDefault describes a response with status code -1, with default header values. Error */ type MultiAdminVerifyApprovalGroupDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the multi admin verify approval group delete default response func (o *MultiAdminVerifyApprovalGroupDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this multi admin verify approval group delete default response has a 2xx status code func (o *MultiAdminVerifyApprovalGroupDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this multi admin verify approval group delete default response has a 3xx status code func (o *MultiAdminVerifyApprovalGroupDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this multi admin verify approval group delete default response has a 4xx status code func (o *MultiAdminVerifyApprovalGroupDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this multi admin verify approval group delete default response has a 5xx status code func (o *MultiAdminVerifyApprovalGroupDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this multi admin verify approval group delete default response a status code equal to that given func (o *MultiAdminVerifyApprovalGroupDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MultiAdminVerifyApprovalGroupDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multi_admin_verify_approval_group_delete default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyApprovalGroupDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multi_admin_verify_approval_group_delete default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyApprovalGroupDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MultiAdminVerifyApprovalGroupDeleteDefault) 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/security/login_messages_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/login_messages_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewLoginMessagesGetParams creates a new LoginMessagesGetParams 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 NewLoginMessagesGetParams() *LoginMessagesGetParams { return &LoginMessagesGetParams{ timeout: cr.DefaultTimeout, } } // NewLoginMessagesGetParamsWithTimeout creates a new LoginMessagesGetParams object // with the ability to set a timeout on a request. func NewLoginMessagesGetParamsWithTimeout(timeout time.Duration) *LoginMessagesGetParams { return &LoginMessagesGetParams{ timeout: timeout, } } // NewLoginMessagesGetParamsWithContext creates a new LoginMessagesGetParams object // with the ability to set a context for a request. func NewLoginMessagesGetParamsWithContext(ctx context.Context) *LoginMessagesGetParams { return &LoginMessagesGetParams{ Context: ctx, } } // NewLoginMessagesGetParamsWithHTTPClient creates a new LoginMessagesGetParams object // with the ability to set a custom HTTPClient for a request. func NewLoginMessagesGetParamsWithHTTPClient(client *http.Client) *LoginMessagesGetParams { return &LoginMessagesGetParams{ HTTPClient: client, } } /* LoginMessagesGetParams contains all the parameters to send to the API endpoint for the login messages get operation. Typically these are written to a http.Request. */ type LoginMessagesGetParams struct { /* Fields. Specify the fields to return. */ Fields []string /* UUID. Login messages configuration UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the login messages get params (not the query body). // // All values with no default are reset to their zero value. func (o *LoginMessagesGetParams) WithDefaults() *LoginMessagesGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the login messages get params (not the query body). // // All values with no default are reset to their zero value. func (o *LoginMessagesGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the login messages get params func (o *LoginMessagesGetParams) WithTimeout(timeout time.Duration) *LoginMessagesGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the login messages get params func (o *LoginMessagesGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the login messages get params func (o *LoginMessagesGetParams) WithContext(ctx context.Context) *LoginMessagesGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the login messages get params func (o *LoginMessagesGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the login messages get params func (o *LoginMessagesGetParams) WithHTTPClient(client *http.Client) *LoginMessagesGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the login messages get params func (o *LoginMessagesGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the login messages get params func (o *LoginMessagesGetParams) WithFields(fields []string) *LoginMessagesGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the login messages get params func (o *LoginMessagesGetParams) SetFields(fields []string) { o.Fields = fields } // WithUUID adds the uuid to the login messages get params func (o *LoginMessagesGetParams) WithUUID(uuid string) *LoginMessagesGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the login messages get params func (o *LoginMessagesGetParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *LoginMessagesGetParams) 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 } // bindParamLoginMessagesGet binds the parameter fields func (o *LoginMessagesGetParams) 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/security/cluster_nis_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // ClusterNisGetReader is a Reader for the ClusterNisGet structure. type ClusterNisGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNisGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterNisGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNisGetDefault(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 } } // NewClusterNisGetOK creates a ClusterNisGetOK with default headers values func NewClusterNisGetOK() *ClusterNisGetOK { return &ClusterNisGetOK{} } /* ClusterNisGetOK describes a response with status code 200, with default header values. OK */ type ClusterNisGetOK struct { Payload *models.ClusterNisService } // IsSuccess returns true when this cluster nis get o k response has a 2xx status code func (o *ClusterNisGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster nis get o k response has a 3xx status code func (o *ClusterNisGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster nis get o k response has a 4xx status code func (o *ClusterNisGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster nis get o k response has a 5xx status code func (o *ClusterNisGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster nis get o k response a status code equal to that given func (o *ClusterNisGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterNisGetOK) Error() string { return fmt.Sprintf("[GET /security/authentication/cluster/nis][%d] clusterNisGetOK %+v", 200, o.Payload) } func (o *ClusterNisGetOK) String() string { return fmt.Sprintf("[GET /security/authentication/cluster/nis][%d] clusterNisGetOK %+v", 200, o.Payload) } func (o *ClusterNisGetOK) GetPayload() *models.ClusterNisService { return o.Payload } func (o *ClusterNisGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ClusterNisService) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNisGetDefault creates a ClusterNisGetDefault with default headers values func NewClusterNisGetDefault(code int) *ClusterNisGetDefault { return &ClusterNisGetDefault{ _statusCode: code, } } /* ClusterNisGetDefault describes a response with status code -1, with default header values. Error */ type ClusterNisGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster nis get default response func (o *ClusterNisGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster nis get default response has a 2xx status code func (o *ClusterNisGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster nis get default response has a 3xx status code func (o *ClusterNisGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster nis get default response has a 4xx status code func (o *ClusterNisGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster nis get default response has a 5xx status code func (o *ClusterNisGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster nis get default response a status code equal to that given func (o *ClusterNisGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNisGetDefault) Error() string { return fmt.Sprintf("[GET /security/authentication/cluster/nis][%d] cluster_nis_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNisGetDefault) String() string { return fmt.Sprintf("[GET /security/authentication/cluster/nis][%d] cluster_nis_get default %+v", o._statusCode, o.Payload) } func (o *ClusterNisGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNisGetDefault) 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/security/cluster_ldap_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_ldap_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewClusterLdapDeleteParams creates a new ClusterLdapDeleteParams 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 NewClusterLdapDeleteParams() *ClusterLdapDeleteParams { return &ClusterLdapDeleteParams{ timeout: cr.DefaultTimeout, } } // NewClusterLdapDeleteParamsWithTimeout creates a new ClusterLdapDeleteParams object // with the ability to set a timeout on a request. func NewClusterLdapDeleteParamsWithTimeout(timeout time.Duration) *ClusterLdapDeleteParams { return &ClusterLdapDeleteParams{ timeout: timeout, } } // NewClusterLdapDeleteParamsWithContext creates a new ClusterLdapDeleteParams object // with the ability to set a context for a request. func NewClusterLdapDeleteParamsWithContext(ctx context.Context) *ClusterLdapDeleteParams { return &ClusterLdapDeleteParams{ Context: ctx, } } // NewClusterLdapDeleteParamsWithHTTPClient creates a new ClusterLdapDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewClusterLdapDeleteParamsWithHTTPClient(client *http.Client) *ClusterLdapDeleteParams { return &ClusterLdapDeleteParams{ HTTPClient: client, } } /* ClusterLdapDeleteParams contains all the parameters to send to the API endpoint for the cluster ldap delete operation. Typically these are written to a http.Request. */ type ClusterLdapDeleteParams struct { timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster ldap delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterLdapDeleteParams) WithDefaults() *ClusterLdapDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster ldap delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterLdapDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster ldap delete params func (o *ClusterLdapDeleteParams) WithTimeout(timeout time.Duration) *ClusterLdapDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster ldap delete params func (o *ClusterLdapDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster ldap delete params func (o *ClusterLdapDeleteParams) WithContext(ctx context.Context) *ClusterLdapDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster ldap delete params func (o *ClusterLdapDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster ldap delete params func (o *ClusterLdapDeleteParams) WithHTTPClient(client *http.Client) *ClusterLdapDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster ldap delete params func (o *ClusterLdapDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WriteToRequest writes these params to a swagger request func (o *ClusterLdapDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error 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/security/multi_admin_verify_request_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_request_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyRequestCollectionGetParams creates a new MultiAdminVerifyRequestCollectionGetParams 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 NewMultiAdminVerifyRequestCollectionGetParams() *MultiAdminVerifyRequestCollectionGetParams { return &MultiAdminVerifyRequestCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyRequestCollectionGetParamsWithTimeout creates a new MultiAdminVerifyRequestCollectionGetParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyRequestCollectionGetParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRequestCollectionGetParams { return &MultiAdminVerifyRequestCollectionGetParams{ timeout: timeout, } } // NewMultiAdminVerifyRequestCollectionGetParamsWithContext creates a new MultiAdminVerifyRequestCollectionGetParams object // with the ability to set a context for a request. func NewMultiAdminVerifyRequestCollectionGetParamsWithContext(ctx context.Context) *MultiAdminVerifyRequestCollectionGetParams { return &MultiAdminVerifyRequestCollectionGetParams{ Context: ctx, } } // NewMultiAdminVerifyRequestCollectionGetParamsWithHTTPClient creates a new MultiAdminVerifyRequestCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyRequestCollectionGetParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRequestCollectionGetParams { return &MultiAdminVerifyRequestCollectionGetParams{ HTTPClient: client, } } /* MultiAdminVerifyRequestCollectionGetParams contains all the parameters to send to the API endpoint for the multi admin verify request collection get operation. Typically these are written to a http.Request. */ type MultiAdminVerifyRequestCollectionGetParams struct { /* ApproveExpiryTime. Filter by approve_expiry_time */ ApproveExpiryTime *string /* ApproveTime. Filter by approve_time */ ApproveTime *string /* ApprovedUsers. Filter by approved_users */ ApprovedUsers *string /* Comment. Filter by comment */ Comment *string /* CreateTime. Filter by create_time */ CreateTime *string /* ExecutionExpiryTime. Filter by execution_expiry_time */ ExecutionExpiryTime *string /* Fields. Specify the fields to return. */ Fields []string /* Index. Filter by index */ Index *int64 /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Operation. Filter by operation */ Operation *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* OwnerName. Filter by owner.name */ OwnerName *string /* OwnerUUID. Filter by owner.uuid */ OwnerUUID *string /* PendingApprovers. Filter by pending_approvers */ PendingApprovers *int64 /* PermittedUsers. Filter by permitted_users */ PermittedUsers *string /* PotentialApprovers. Filter by potential_approvers */ PotentialApprovers *string /* Query. Filter by query */ Query *string /* RequiredApprovers. Filter by required_approvers */ RequiredApprovers *int64 /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* State. Filter by state */ State *string /* UserRequested. Filter by user_requested */ UserRequested *string /* UserVetoed. Filter by user_vetoed */ UserVetoed *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify request collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRequestCollectionGetParams) WithDefaults() *MultiAdminVerifyRequestCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify request collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRequestCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := MultiAdminVerifyRequestCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRequestCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithContext(ctx context.Context) *MultiAdminVerifyRequestCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRequestCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApproveExpiryTime adds the approveExpiryTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithApproveExpiryTime(approveExpiryTime *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetApproveExpiryTime(approveExpiryTime) return o } // SetApproveExpiryTime adds the approveExpiryTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetApproveExpiryTime(approveExpiryTime *string) { o.ApproveExpiryTime = approveExpiryTime } // WithApproveTime adds the approveTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithApproveTime(approveTime *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetApproveTime(approveTime) return o } // SetApproveTime adds the approveTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetApproveTime(approveTime *string) { o.ApproveTime = approveTime } // WithApprovedUsers adds the approvedUsers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithApprovedUsers(approvedUsers *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetApprovedUsers(approvedUsers) return o } // SetApprovedUsers adds the approvedUsers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetApprovedUsers(approvedUsers *string) { o.ApprovedUsers = approvedUsers } // WithComment adds the comment to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithComment(comment *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetComment(comment) return o } // SetComment adds the comment to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetComment(comment *string) { o.Comment = comment } // WithCreateTime adds the createTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithCreateTime(createTime *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetCreateTime(createTime) return o } // SetCreateTime adds the createTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetCreateTime(createTime *string) { o.CreateTime = createTime } // WithExecutionExpiryTime adds the executionExpiryTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithExecutionExpiryTime(executionExpiryTime *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetExecutionExpiryTime(executionExpiryTime) return o } // SetExecutionExpiryTime adds the executionExpiryTime to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetExecutionExpiryTime(executionExpiryTime *string) { o.ExecutionExpiryTime = executionExpiryTime } // WithFields adds the fields to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithFields(fields []string) *MultiAdminVerifyRequestCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithIndex adds the index to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithIndex(index *int64) *MultiAdminVerifyRequestCollectionGetParams { o.SetIndex(index) return o } // SetIndex adds the index to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetIndex(index *int64) { o.Index = index } // WithMaxRecords adds the maxRecords to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithMaxRecords(maxRecords *int64) *MultiAdminVerifyRequestCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOperation adds the operation to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithOperation(operation *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetOperation(operation) return o } // SetOperation adds the operation to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetOperation(operation *string) { o.Operation = operation } // WithOrderBy adds the orderBy to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithOrderBy(orderBy []string) *MultiAdminVerifyRequestCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithOwnerName adds the ownerName to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithOwnerName(ownerName *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetOwnerName(ownerName) return o } // SetOwnerName adds the ownerName to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetOwnerName(ownerName *string) { o.OwnerName = ownerName } // WithOwnerUUID adds the ownerUUID to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithOwnerUUID(ownerUUID *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetOwnerUUID(ownerUUID *string) { o.OwnerUUID = ownerUUID } // WithPendingApprovers adds the pendingApprovers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithPendingApprovers(pendingApprovers *int64) *MultiAdminVerifyRequestCollectionGetParams { o.SetPendingApprovers(pendingApprovers) return o } // SetPendingApprovers adds the pendingApprovers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetPendingApprovers(pendingApprovers *int64) { o.PendingApprovers = pendingApprovers } // WithPermittedUsers adds the permittedUsers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithPermittedUsers(permittedUsers *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetPermittedUsers(permittedUsers) return o } // SetPermittedUsers adds the permittedUsers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetPermittedUsers(permittedUsers *string) { o.PermittedUsers = permittedUsers } // WithPotentialApprovers adds the potentialApprovers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithPotentialApprovers(potentialApprovers *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetPotentialApprovers(potentialApprovers) return o } // SetPotentialApprovers adds the potentialApprovers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetPotentialApprovers(potentialApprovers *string) { o.PotentialApprovers = potentialApprovers } // WithQuery adds the query to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithQuery(query *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetQuery(query) return o } // SetQuery adds the query to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetQuery(query *string) { o.Query = query } // WithRequiredApprovers adds the requiredApprovers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithRequiredApprovers(requiredApprovers *int64) *MultiAdminVerifyRequestCollectionGetParams { o.SetRequiredApprovers(requiredApprovers) return o } // SetRequiredApprovers adds the requiredApprovers to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetRequiredApprovers(requiredApprovers *int64) { o.RequiredApprovers = requiredApprovers } // WithReturnRecords adds the returnRecords to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithReturnRecords(returnRecords *bool) *MultiAdminVerifyRequestCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *MultiAdminVerifyRequestCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithState adds the state to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithState(state *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetState(state) return o } // SetState adds the state to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetState(state *string) { o.State = state } // WithUserRequested adds the userRequested to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithUserRequested(userRequested *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetUserRequested(userRequested) return o } // SetUserRequested adds the userRequested to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetUserRequested(userRequested *string) { o.UserRequested = userRequested } // WithUserVetoed adds the userVetoed to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) WithUserVetoed(userVetoed *string) *MultiAdminVerifyRequestCollectionGetParams { o.SetUserVetoed(userVetoed) return o } // SetUserVetoed adds the userVetoed to the multi admin verify request collection get params func (o *MultiAdminVerifyRequestCollectionGetParams) SetUserVetoed(userVetoed *string) { o.UserVetoed = userVetoed } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyRequestCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.ApproveExpiryTime != nil { // query param approve_expiry_time var qrApproveExpiryTime string if o.ApproveExpiryTime != nil { qrApproveExpiryTime = *o.ApproveExpiryTime } qApproveExpiryTime := qrApproveExpiryTime if qApproveExpiryTime != "" { if err := r.SetQueryParam("approve_expiry_time", qApproveExpiryTime); err != nil { return err } } } if o.ApproveTime != nil { // query param approve_time var qrApproveTime string if o.ApproveTime != nil { qrApproveTime = *o.ApproveTime } qApproveTime := qrApproveTime if qApproveTime != "" { if err := r.SetQueryParam("approve_time", qApproveTime); err != nil { return err } } } if o.ApprovedUsers != nil { // query param approved_users var qrApprovedUsers string if o.ApprovedUsers != nil { qrApprovedUsers = *o.ApprovedUsers } qApprovedUsers := qrApprovedUsers if qApprovedUsers != "" { if err := r.SetQueryParam("approved_users", qApprovedUsers); 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.CreateTime != nil { // query param create_time var qrCreateTime string if o.CreateTime != nil { qrCreateTime = *o.CreateTime } qCreateTime := qrCreateTime if qCreateTime != "" { if err := r.SetQueryParam("create_time", qCreateTime); err != nil { return err } } } if o.ExecutionExpiryTime != nil { // query param execution_expiry_time var qrExecutionExpiryTime string if o.ExecutionExpiryTime != nil { qrExecutionExpiryTime = *o.ExecutionExpiryTime } qExecutionExpiryTime := qrExecutionExpiryTime if qExecutionExpiryTime != "" { if err := r.SetQueryParam("execution_expiry_time", qExecutionExpiryTime); 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.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.Operation != nil { // query param operation var qrOperation string if o.Operation != nil { qrOperation = *o.Operation } qOperation := qrOperation if qOperation != "" { if err := r.SetQueryParam("operation", qOperation); 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.OwnerName != nil { // query param owner.name var qrOwnerName string if o.OwnerName != nil { qrOwnerName = *o.OwnerName } qOwnerName := qrOwnerName if qOwnerName != "" { if err := r.SetQueryParam("owner.name", qOwnerName); err != nil { return err } } } if o.OwnerUUID != nil { // query param owner.uuid var qrOwnerUUID string if o.OwnerUUID != nil { qrOwnerUUID = *o.OwnerUUID } qOwnerUUID := qrOwnerUUID if qOwnerUUID != "" { if err := r.SetQueryParam("owner.uuid", qOwnerUUID); err != nil { return err } } } if o.PendingApprovers != nil { // query param pending_approvers var qrPendingApprovers int64 if o.PendingApprovers != nil { qrPendingApprovers = *o.PendingApprovers } qPendingApprovers := swag.FormatInt64(qrPendingApprovers) if qPendingApprovers != "" { if err := r.SetQueryParam("pending_approvers", qPendingApprovers); err != nil { return err } } } if o.PermittedUsers != nil { // query param permitted_users var qrPermittedUsers string if o.PermittedUsers != nil { qrPermittedUsers = *o.PermittedUsers } qPermittedUsers := qrPermittedUsers if qPermittedUsers != "" { if err := r.SetQueryParam("permitted_users", qPermittedUsers); err != nil { return err } } } if o.PotentialApprovers != nil { // query param potential_approvers var qrPotentialApprovers string if o.PotentialApprovers != nil { qrPotentialApprovers = *o.PotentialApprovers } qPotentialApprovers := qrPotentialApprovers if qPotentialApprovers != "" { if err := r.SetQueryParam("potential_approvers", qPotentialApprovers); err != nil { return err } } } if o.Query != nil { // query param query var qrQuery string if o.Query != nil { qrQuery = *o.Query } qQuery := qrQuery if qQuery != "" { if err := r.SetQueryParam("query", qQuery); err != nil { return err } } } if o.RequiredApprovers != nil { // query param required_approvers var qrRequiredApprovers int64 if o.RequiredApprovers != nil { qrRequiredApprovers = *o.RequiredApprovers } qRequiredApprovers := swag.FormatInt64(qrRequiredApprovers) if qRequiredApprovers != "" { if err := r.SetQueryParam("required_approvers", qRequiredApprovers); err != nil { return err } } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.State != nil { // query param state var qrState string if o.State != nil { qrState = *o.State } qState := qrState if qState != "" { if err := r.SetQueryParam("state", qState); err != nil { return err } } } if o.UserRequested != nil { // query param user_requested var qrUserRequested string if o.UserRequested != nil { qrUserRequested = *o.UserRequested } qUserRequested := qrUserRequested if qUserRequested != "" { if err := r.SetQueryParam("user_requested", qUserRequested); err != nil { return err } } } if o.UserVetoed != nil { // query param user_vetoed var qrUserVetoed string if o.UserVetoed != nil { qrUserVetoed = *o.UserVetoed } qUserVetoed := qrUserVetoed if qUserVetoed != "" { if err := r.SetQueryParam("user_vetoed", qUserVetoed); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMultiAdminVerifyRequestCollectionGet binds the parameter fields func (o *MultiAdminVerifyRequestCollectionGetParams) 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 } // bindParamMultiAdminVerifyRequestCollectionGet binds the parameter order_by func (o *MultiAdminVerifyRequestCollectionGetParams) 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/security/ipsec_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // IpsecModifyReader is a Reader for the IpsecModify structure. type IpsecModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *IpsecModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewIpsecModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewIpsecModifyDefault(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 } } // NewIpsecModifyOK creates a IpsecModifyOK with default headers values func NewIpsecModifyOK() *IpsecModifyOK { return &IpsecModifyOK{} } /* IpsecModifyOK describes a response with status code 200, with default header values. OK */ type IpsecModifyOK struct { } // IsSuccess returns true when this ipsec modify o k response has a 2xx status code func (o *IpsecModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this ipsec modify o k response has a 3xx status code func (o *IpsecModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this ipsec modify o k response has a 4xx status code func (o *IpsecModifyOK) IsClientError() bool { return false } // IsServerError returns true when this ipsec modify o k response has a 5xx status code func (o *IpsecModifyOK) IsServerError() bool { return false } // IsCode returns true when this ipsec modify o k response a status code equal to that given func (o *IpsecModifyOK) IsCode(code int) bool { return code == 200 } func (o *IpsecModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/ipsec][%d] ipsecModifyOK ", 200) } func (o *IpsecModifyOK) String() string { return fmt.Sprintf("[PATCH /security/ipsec][%d] ipsecModifyOK ", 200) } func (o *IpsecModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewIpsecModifyDefault creates a IpsecModifyDefault with default headers values func NewIpsecModifyDefault(code int) *IpsecModifyDefault { return &IpsecModifyDefault{ _statusCode: code, } } /* IpsecModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 66256898 | Internal error. Failed to enable IPsec. | | 66256899 | Internal error. Failed to disable IPsec. | | 66257199 | IPsec is not supported in the current cluster version. | */ type IpsecModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ipsec modify default response func (o *IpsecModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ipsec modify default response has a 2xx status code func (o *IpsecModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ipsec modify default response has a 3xx status code func (o *IpsecModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ipsec modify default response has a 4xx status code func (o *IpsecModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ipsec modify default response has a 5xx status code func (o *IpsecModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ipsec modify default response a status code equal to that given func (o *IpsecModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *IpsecModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/ipsec][%d] ipsec_modify default %+v", o._statusCode, o.Payload) } func (o *IpsecModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/ipsec][%d] ipsec_modify default %+v", o._statusCode, o.Payload) } func (o *IpsecModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *IpsecModifyDefault) 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/security/multi_admin_verify_rule_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyRuleGetParams creates a new MultiAdminVerifyRuleGetParams 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 NewMultiAdminVerifyRuleGetParams() *MultiAdminVerifyRuleGetParams { return &MultiAdminVerifyRuleGetParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyRuleGetParamsWithTimeout creates a new MultiAdminVerifyRuleGetParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyRuleGetParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRuleGetParams { return &MultiAdminVerifyRuleGetParams{ timeout: timeout, } } // NewMultiAdminVerifyRuleGetParamsWithContext creates a new MultiAdminVerifyRuleGetParams object // with the ability to set a context for a request. func NewMultiAdminVerifyRuleGetParamsWithContext(ctx context.Context) *MultiAdminVerifyRuleGetParams { return &MultiAdminVerifyRuleGetParams{ Context: ctx, } } // NewMultiAdminVerifyRuleGetParamsWithHTTPClient creates a new MultiAdminVerifyRuleGetParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyRuleGetParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRuleGetParams { return &MultiAdminVerifyRuleGetParams{ HTTPClient: client, } } /* MultiAdminVerifyRuleGetParams contains all the parameters to send to the API endpoint for the multi admin verify rule get operation. Typically these are written to a http.Request. */ type MultiAdminVerifyRuleGetParams struct { /* Fields. Specify the fields to return. */ Fields []string // Operation. Operation string // OwnerUUID. OwnerUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify rule get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleGetParams) WithDefaults() *MultiAdminVerifyRuleGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify rule get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyRuleGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRuleGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) WithContext(ctx context.Context) *MultiAdminVerifyRuleGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRuleGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) WithFields(fields []string) *MultiAdminVerifyRuleGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) SetFields(fields []string) { o.Fields = fields } // WithOperation adds the operation to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) WithOperation(operation string) *MultiAdminVerifyRuleGetParams { o.SetOperation(operation) return o } // SetOperation adds the operation to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) SetOperation(operation string) { o.Operation = operation } // WithOwnerUUID adds the ownerUUID to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) WithOwnerUUID(ownerUUID string) *MultiAdminVerifyRuleGetParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the multi admin verify rule get params func (o *MultiAdminVerifyRuleGetParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyRuleGetParams) 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 operation if err := r.SetPathParam("operation", o.Operation); err != nil { return err } // path param owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamMultiAdminVerifyRuleGet binds the parameter fields func (o *MultiAdminVerifyRuleGetParams) 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/security/security_config_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_config_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewSecurityConfigModifyParams creates a new SecurityConfigModifyParams 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 NewSecurityConfigModifyParams() *SecurityConfigModifyParams { return &SecurityConfigModifyParams{ timeout: cr.DefaultTimeout, } } // NewSecurityConfigModifyParamsWithTimeout creates a new SecurityConfigModifyParams object // with the ability to set a timeout on a request. func NewSecurityConfigModifyParamsWithTimeout(timeout time.Duration) *SecurityConfigModifyParams { return &SecurityConfigModifyParams{ timeout: timeout, } } // NewSecurityConfigModifyParamsWithContext creates a new SecurityConfigModifyParams object // with the ability to set a context for a request. func NewSecurityConfigModifyParamsWithContext(ctx context.Context) *SecurityConfigModifyParams { return &SecurityConfigModifyParams{ Context: ctx, } } // NewSecurityConfigModifyParamsWithHTTPClient creates a new SecurityConfigModifyParams object // with the ability to set a custom HTTPClient for a request. func NewSecurityConfigModifyParamsWithHTTPClient(client *http.Client) *SecurityConfigModifyParams { return &SecurityConfigModifyParams{ HTTPClient: client, } } /* SecurityConfigModifyParams contains all the parameters to send to the API endpoint for the security config modify operation. Typically these are written to a http.Request. */ type SecurityConfigModifyParams struct { /* Info. security info specification */ Info *models.SecurityConfig /* 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 security config modify params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityConfigModifyParams) WithDefaults() *SecurityConfigModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the security config modify params (not the query body). // // All values with no default are reset to their zero value. func (o *SecurityConfigModifyParams) SetDefaults() { var ( returnTimeoutDefault = int64(0) ) val := SecurityConfigModifyParams{ ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the security config modify params func (o *SecurityConfigModifyParams) WithTimeout(timeout time.Duration) *SecurityConfigModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the security config modify params func (o *SecurityConfigModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the security config modify params func (o *SecurityConfigModifyParams) WithContext(ctx context.Context) *SecurityConfigModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the security config modify params func (o *SecurityConfigModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the security config modify params func (o *SecurityConfigModifyParams) WithHTTPClient(client *http.Client) *SecurityConfigModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the security config modify params func (o *SecurityConfigModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the security config modify params func (o *SecurityConfigModifyParams) WithInfo(info *models.SecurityConfig) *SecurityConfigModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the security config modify params func (o *SecurityConfigModifyParams) SetInfo(info *models.SecurityConfig) { o.Info = info } // WithReturnTimeout adds the returnTimeout to the security config modify params func (o *SecurityConfigModifyParams) WithReturnTimeout(returnTimeout *int64) *SecurityConfigModifyParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the security config modify params func (o *SecurityConfigModifyParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *SecurityConfigModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_association_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_association_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SecurityAssociationCollectionGetReader is a Reader for the SecurityAssociationCollectionGet structure. type SecurityAssociationCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SecurityAssociationCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSecurityAssociationCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSecurityAssociationCollectionGetDefault(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 } } // NewSecurityAssociationCollectionGetOK creates a SecurityAssociationCollectionGetOK with default headers values func NewSecurityAssociationCollectionGetOK() *SecurityAssociationCollectionGetOK { return &SecurityAssociationCollectionGetOK{} } /* SecurityAssociationCollectionGetOK describes a response with status code 200, with default header values. OK */ type SecurityAssociationCollectionGetOK struct { Payload *models.SecurityAssociationResponse } // IsSuccess returns true when this security association collection get o k response has a 2xx status code func (o *SecurityAssociationCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this security association collection get o k response has a 3xx status code func (o *SecurityAssociationCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this security association collection get o k response has a 4xx status code func (o *SecurityAssociationCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this security association collection get o k response has a 5xx status code func (o *SecurityAssociationCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this security association collection get o k response a status code equal to that given func (o *SecurityAssociationCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *SecurityAssociationCollectionGetOK) Error() string { return fmt.Sprintf("[GET /security/ipsec/security-associations][%d] securityAssociationCollectionGetOK %+v", 200, o.Payload) } func (o *SecurityAssociationCollectionGetOK) String() string { return fmt.Sprintf("[GET /security/ipsec/security-associations][%d] securityAssociationCollectionGetOK %+v", 200, o.Payload) } func (o *SecurityAssociationCollectionGetOK) GetPayload() *models.SecurityAssociationResponse { return o.Payload } func (o *SecurityAssociationCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.SecurityAssociationResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewSecurityAssociationCollectionGetDefault creates a SecurityAssociationCollectionGetDefault with default headers values func NewSecurityAssociationCollectionGetDefault(code int) *SecurityAssociationCollectionGetDefault { return &SecurityAssociationCollectionGetDefault{ _statusCode: code, } } /* SecurityAssociationCollectionGetDefault describes a response with status code -1, with default header values. Error */ type SecurityAssociationCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the security association collection get default response func (o *SecurityAssociationCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this security association collection get default response has a 2xx status code func (o *SecurityAssociationCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this security association collection get default response has a 3xx status code func (o *SecurityAssociationCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this security association collection get default response has a 4xx status code func (o *SecurityAssociationCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this security association collection get default response has a 5xx status code func (o *SecurityAssociationCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this security association collection get default response a status code equal to that given func (o *SecurityAssociationCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SecurityAssociationCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /security/ipsec/security-associations][%d] security_association_collection_get default %+v", o._statusCode, o.Payload) } func (o *SecurityAssociationCollectionGetDefault) String() string { return fmt.Sprintf("[GET /security/ipsec/security-associations][%d] security_association_collection_get default %+v", o._statusCode, o.Payload) } func (o *SecurityAssociationCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SecurityAssociationCollectionGetDefault) 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/security/ssh_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ssh_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // SSHModifyReader is a Reader for the SSHModify structure. type SSHModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *SSHModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewSSHModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewSSHModifyDefault(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 } } // NewSSHModifyOK creates a SSHModifyOK with default headers values func NewSSHModifyOK() *SSHModifyOK { return &SSHModifyOK{} } /* SSHModifyOK describes a response with status code 200, with default header values. OK */ type SSHModifyOK struct { } // IsSuccess returns true when this ssh modify o k response has a 2xx status code func (o *SSHModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this ssh modify o k response has a 3xx status code func (o *SSHModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this ssh modify o k response has a 4xx status code func (o *SSHModifyOK) IsClientError() bool { return false } // IsServerError returns true when this ssh modify o k response has a 5xx status code func (o *SSHModifyOK) IsServerError() bool { return false } // IsCode returns true when this ssh modify o k response a status code equal to that given func (o *SSHModifyOK) IsCode(code int) bool { return code == 200 } func (o *SSHModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/ssh][%d] sshModifyOK ", 200) } func (o *SSHModifyOK) String() string { return fmt.Sprintf("[PATCH /security/ssh][%d] sshModifyOK ", 200) } func (o *SSHModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewSSHModifyDefault creates a SSHModifyDefault with default headers values func NewSSHModifyDefault(code int) *SSHModifyDefault { return &SSHModifyDefault{ _statusCode: code, } } /* SSHModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 10682372 | There must be at least one key exchange algorithm associated with the SSH configuration. | | 10682373 | There must be at least one cipher associated with the SSH configuration. | | 10682375 | Failed to modify SSH key exchange algorithms. | | 10682378 | Failed to modify SSH ciphers. | | 10682399 | Key exchange algorithm not supported in FIPS enabled mode. | | 10682400 | Failed to modify SSH MAC algorithms. | | 10682401 | MAC algorithm not supported in FIPS enabled mode. | | 10682403 | There must be at least one MAC algorithm with the SSH configuration. | | 10682413 | Failed to modify maximum authentication retry attempts. | | 10682413 | Failed to modify maximum authentication retry attempts. | | 10682418 | Cipher not supported in FIPS enabled mode. | */ type SSHModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the ssh modify default response func (o *SSHModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this ssh modify default response has a 2xx status code func (o *SSHModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this ssh modify default response has a 3xx status code func (o *SSHModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this ssh modify default response has a 4xx status code func (o *SSHModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this ssh modify default response has a 5xx status code func (o *SSHModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this ssh modify default response a status code equal to that given func (o *SSHModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *SSHModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/ssh][%d] ssh_modify default %+v", o._statusCode, o.Payload) } func (o *SSHModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/ssh][%d] ssh_modify default %+v", o._statusCode, o.Payload) } func (o *SSHModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *SSHModifyDefault) 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/security/azure_key_vault_restore_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_restore_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // AzureKeyVaultRestoreReader is a Reader for the AzureKeyVaultRestore structure. type AzureKeyVaultRestoreReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *AzureKeyVaultRestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewAzureKeyVaultRestoreAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewAzureKeyVaultRestoreDefault(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 } } // NewAzureKeyVaultRestoreAccepted creates a AzureKeyVaultRestoreAccepted with default headers values func NewAzureKeyVaultRestoreAccepted() *AzureKeyVaultRestoreAccepted { return &AzureKeyVaultRestoreAccepted{} } /* AzureKeyVaultRestoreAccepted describes a response with status code 202, with default header values. Accepted */ type AzureKeyVaultRestoreAccepted struct { } // IsSuccess returns true when this azure key vault restore accepted response has a 2xx status code func (o *AzureKeyVaultRestoreAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this azure key vault restore accepted response has a 3xx status code func (o *AzureKeyVaultRestoreAccepted) IsRedirect() bool { return false } // IsClientError returns true when this azure key vault restore accepted response has a 4xx status code func (o *AzureKeyVaultRestoreAccepted) IsClientError() bool { return false } // IsServerError returns true when this azure key vault restore accepted response has a 5xx status code func (o *AzureKeyVaultRestoreAccepted) IsServerError() bool { return false } // IsCode returns true when this azure key vault restore accepted response a status code equal to that given func (o *AzureKeyVaultRestoreAccepted) IsCode(code int) bool { return code == 202 } func (o *AzureKeyVaultRestoreAccepted) Error() string { return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/restore][%d] azureKeyVaultRestoreAccepted ", 202) } func (o *AzureKeyVaultRestoreAccepted) String() string { return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/restore][%d] azureKeyVaultRestoreAccepted ", 202) } func (o *AzureKeyVaultRestoreAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewAzureKeyVaultRestoreDefault creates a AzureKeyVaultRestoreDefault with default headers values func NewAzureKeyVaultRestoreDefault(code int) *AzureKeyVaultRestoreDefault { return &AzureKeyVaultRestoreDefault{ _statusCode: code, } } /* AzureKeyVaultRestoreDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65537120 | Azure Key Vault is not configured for the given SVM. | | 65537515 | Failed to restore keys on some nodes in the cluster. | | 65537544 | Missing wrapped top-level internal key protection key (KEK) from internal database. | */ type AzureKeyVaultRestoreDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the azure key vault restore default response func (o *AzureKeyVaultRestoreDefault) Code() int { return o._statusCode } // IsSuccess returns true when this azure key vault restore default response has a 2xx status code func (o *AzureKeyVaultRestoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this azure key vault restore default response has a 3xx status code func (o *AzureKeyVaultRestoreDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this azure key vault restore default response has a 4xx status code func (o *AzureKeyVaultRestoreDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this azure key vault restore default response has a 5xx status code func (o *AzureKeyVaultRestoreDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this azure key vault restore default response a status code equal to that given func (o *AzureKeyVaultRestoreDefault) IsCode(code int) bool { return o._statusCode == code } func (o *AzureKeyVaultRestoreDefault) Error() string { return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/restore][%d] azure_key_vault_restore default %+v", o._statusCode, o.Payload) } func (o *AzureKeyVaultRestoreDefault) String() string { return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/restore][%d] azure_key_vault_restore default %+v", o._statusCode, o.Payload) } func (o *AzureKeyVaultRestoreDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *AzureKeyVaultRestoreDefault) 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/security/account_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewAccountDeleteParams creates a new AccountDeleteParams 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 NewAccountDeleteParams() *AccountDeleteParams { return &AccountDeleteParams{ timeout: cr.DefaultTimeout, } } // NewAccountDeleteParamsWithTimeout creates a new AccountDeleteParams object // with the ability to set a timeout on a request. func NewAccountDeleteParamsWithTimeout(timeout time.Duration) *AccountDeleteParams { return &AccountDeleteParams{ timeout: timeout, } } // NewAccountDeleteParamsWithContext creates a new AccountDeleteParams object // with the ability to set a context for a request. func NewAccountDeleteParamsWithContext(ctx context.Context) *AccountDeleteParams { return &AccountDeleteParams{ Context: ctx, } } // NewAccountDeleteParamsWithHTTPClient creates a new AccountDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewAccountDeleteParamsWithHTTPClient(client *http.Client) *AccountDeleteParams { return &AccountDeleteParams{ HTTPClient: client, } } /* AccountDeleteParams contains all the parameters to send to the API endpoint for the account delete operation. Typically these are written to a http.Request. */ type AccountDeleteParams struct { /* Name. User account name */ Name string /* OwnerUUID. Account owner UUID */ OwnerUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the account delete params (not the query body). // // All values with no default are reset to their zero value. func (o *AccountDeleteParams) WithDefaults() *AccountDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the account delete params (not the query body). // // All values with no default are reset to their zero value. func (o *AccountDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the account delete params func (o *AccountDeleteParams) WithTimeout(timeout time.Duration) *AccountDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the account delete params func (o *AccountDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the account delete params func (o *AccountDeleteParams) WithContext(ctx context.Context) *AccountDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the account delete params func (o *AccountDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the account delete params func (o *AccountDeleteParams) WithHTTPClient(client *http.Client) *AccountDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the account delete params func (o *AccountDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithName adds the name to the account delete params func (o *AccountDeleteParams) WithName(name string) *AccountDeleteParams { o.SetName(name) return o } // SetName adds the name to the account delete params func (o *AccountDeleteParams) SetName(name string) { o.Name = name } // WithOwnerUUID adds the ownerUUID to the account delete params func (o *AccountDeleteParams) WithOwnerUUID(ownerUUID string) *AccountDeleteParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the account delete params func (o *AccountDeleteParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WriteToRequest writes these params to a swagger request func (o *AccountDeleteParams) 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 owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); 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/security/key_manager_keys_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_keys_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewKeyManagerKeysCollectionGetParams creates a new KeyManagerKeysCollectionGetParams 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 NewKeyManagerKeysCollectionGetParams() *KeyManagerKeysCollectionGetParams { return &KeyManagerKeysCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewKeyManagerKeysCollectionGetParamsWithTimeout creates a new KeyManagerKeysCollectionGetParams object // with the ability to set a timeout on a request. func NewKeyManagerKeysCollectionGetParamsWithTimeout(timeout time.Duration) *KeyManagerKeysCollectionGetParams { return &KeyManagerKeysCollectionGetParams{ timeout: timeout, } } // NewKeyManagerKeysCollectionGetParamsWithContext creates a new KeyManagerKeysCollectionGetParams object // with the ability to set a context for a request. func NewKeyManagerKeysCollectionGetParamsWithContext(ctx context.Context) *KeyManagerKeysCollectionGetParams { return &KeyManagerKeysCollectionGetParams{ Context: ctx, } } // NewKeyManagerKeysCollectionGetParamsWithHTTPClient creates a new KeyManagerKeysCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewKeyManagerKeysCollectionGetParamsWithHTTPClient(client *http.Client) *KeyManagerKeysCollectionGetParams { return &KeyManagerKeysCollectionGetParams{ HTTPClient: client, } } /* KeyManagerKeysCollectionGetParams contains all the parameters to send to the API endpoint for the key manager keys collection get operation. Typically these are written to a http.Request. */ type KeyManagerKeysCollectionGetParams struct { /* Crn. Filter by crn */ Crn *string /* EncryptionAlgorithm. Filter by encryption_algorithm */ EncryptionAlgorithm *string /* Fields. Specify the fields to return. */ Fields []string /* KeyID. Filter by key_id */ KeyID *string /* KeyManager. Filter by key_manager */ KeyManager *string /* KeyServer. Filter by key_server */ KeyServer *string /* KeyStore. Filter by key_store */ KeyStore *string /* KeyStoreType. Filter by key_store_type */ KeyStoreType *string /* KeyTag. Filter by key_tag */ KeyTag *string /* KeyType. Filter by key_type */ KeyType *string /* KeyUser. Filter by key_user */ KeyUser *string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* NodeName. Filter by node.name */ NodeName *string /* NodeUUID. Node UUID. */ NodeUUID string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* Policy. Filter by policy */ Policy *string /* Restored. Filter by restored */ Restored *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 /* SecurityKeyManagerUUID. Key manager UUID. */ SecurityKeyManagerUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the key manager keys collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *KeyManagerKeysCollectionGetParams) WithDefaults() *KeyManagerKeysCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the key manager keys collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *KeyManagerKeysCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := KeyManagerKeysCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithTimeout(timeout time.Duration) *KeyManagerKeysCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithContext(ctx context.Context) *KeyManagerKeysCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithHTTPClient(client *http.Client) *KeyManagerKeysCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithCrn adds the crn to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithCrn(crn *string) *KeyManagerKeysCollectionGetParams { o.SetCrn(crn) return o } // SetCrn adds the crn to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetCrn(crn *string) { o.Crn = crn } // WithEncryptionAlgorithm adds the encryptionAlgorithm to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithEncryptionAlgorithm(encryptionAlgorithm *string) *KeyManagerKeysCollectionGetParams { o.SetEncryptionAlgorithm(encryptionAlgorithm) return o } // SetEncryptionAlgorithm adds the encryptionAlgorithm to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetEncryptionAlgorithm(encryptionAlgorithm *string) { o.EncryptionAlgorithm = encryptionAlgorithm } // WithFields adds the fields to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithFields(fields []string) *KeyManagerKeysCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithKeyID adds the keyID to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyID(keyID *string) *KeyManagerKeysCollectionGetParams { o.SetKeyID(keyID) return o } // SetKeyID adds the keyId to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyID(keyID *string) { o.KeyID = keyID } // WithKeyManager adds the keyManager to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyManager(keyManager *string) *KeyManagerKeysCollectionGetParams { o.SetKeyManager(keyManager) return o } // SetKeyManager adds the keyManager to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyManager(keyManager *string) { o.KeyManager = keyManager } // WithKeyServer adds the keyServer to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyServer(keyServer *string) *KeyManagerKeysCollectionGetParams { o.SetKeyServer(keyServer) return o } // SetKeyServer adds the keyServer to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyServer(keyServer *string) { o.KeyServer = keyServer } // WithKeyStore adds the keyStore to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyStore(keyStore *string) *KeyManagerKeysCollectionGetParams { o.SetKeyStore(keyStore) return o } // SetKeyStore adds the keyStore to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyStore(keyStore *string) { o.KeyStore = keyStore } // WithKeyStoreType adds the keyStoreType to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyStoreType(keyStoreType *string) *KeyManagerKeysCollectionGetParams { o.SetKeyStoreType(keyStoreType) return o } // SetKeyStoreType adds the keyStoreType to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyStoreType(keyStoreType *string) { o.KeyStoreType = keyStoreType } // WithKeyTag adds the keyTag to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyTag(keyTag *string) *KeyManagerKeysCollectionGetParams { o.SetKeyTag(keyTag) return o } // SetKeyTag adds the keyTag to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyTag(keyTag *string) { o.KeyTag = keyTag } // WithKeyType adds the keyType to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyType(keyType *string) *KeyManagerKeysCollectionGetParams { o.SetKeyType(keyType) return o } // SetKeyType adds the keyType to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyType(keyType *string) { o.KeyType = keyType } // WithKeyUser adds the keyUser to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithKeyUser(keyUser *string) *KeyManagerKeysCollectionGetParams { o.SetKeyUser(keyUser) return o } // SetKeyUser adds the keyUser to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetKeyUser(keyUser *string) { o.KeyUser = keyUser } // WithMaxRecords adds the maxRecords to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithMaxRecords(maxRecords *int64) *KeyManagerKeysCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithNodeName adds the nodeName to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithNodeName(nodeName *string) *KeyManagerKeysCollectionGetParams { o.SetNodeName(nodeName) return o } // SetNodeName adds the nodeName to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetNodeName(nodeName *string) { o.NodeName = nodeName } // WithNodeUUID adds the nodeUUID to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithNodeUUID(nodeUUID string) *KeyManagerKeysCollectionGetParams { o.SetNodeUUID(nodeUUID) return o } // SetNodeUUID adds the nodeUuid to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetNodeUUID(nodeUUID string) { o.NodeUUID = nodeUUID } // WithOrderBy adds the orderBy to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithOrderBy(orderBy []string) *KeyManagerKeysCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithPolicy adds the policy to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithPolicy(policy *string) *KeyManagerKeysCollectionGetParams { o.SetPolicy(policy) return o } // SetPolicy adds the policy to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetPolicy(policy *string) { o.Policy = policy } // WithRestored adds the restored to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithRestored(restored *bool) *KeyManagerKeysCollectionGetParams { o.SetRestored(restored) return o } // SetRestored adds the restored to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetRestored(restored *bool) { o.Restored = restored } // WithReturnRecords adds the returnRecords to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithReturnRecords(returnRecords *bool) *KeyManagerKeysCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *KeyManagerKeysCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithSecurityKeyManagerUUID adds the securityKeyManagerUUID to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) WithSecurityKeyManagerUUID(securityKeyManagerUUID string) *KeyManagerKeysCollectionGetParams { o.SetSecurityKeyManagerUUID(securityKeyManagerUUID) return o } // SetSecurityKeyManagerUUID adds the securityKeyManagerUuid to the key manager keys collection get params func (o *KeyManagerKeysCollectionGetParams) SetSecurityKeyManagerUUID(securityKeyManagerUUID string) { o.SecurityKeyManagerUUID = securityKeyManagerUUID } // WriteToRequest writes these params to a swagger request func (o *KeyManagerKeysCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Crn != nil { // query param crn var qrCrn string if o.Crn != nil { qrCrn = *o.Crn } qCrn := qrCrn if qCrn != "" { if err := r.SetQueryParam("crn", qCrn); err != nil { return err } } } if o.EncryptionAlgorithm != nil { // query param encryption_algorithm var qrEncryptionAlgorithm string if o.EncryptionAlgorithm != nil { qrEncryptionAlgorithm = *o.EncryptionAlgorithm } qEncryptionAlgorithm := qrEncryptionAlgorithm if qEncryptionAlgorithm != "" { if err := r.SetQueryParam("encryption_algorithm", qEncryptionAlgorithm); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.KeyID != nil { // query param key_id var qrKeyID string if o.KeyID != nil { qrKeyID = *o.KeyID } qKeyID := qrKeyID if qKeyID != "" { if err := r.SetQueryParam("key_id", qKeyID); err != nil { return err } } } if o.KeyManager != nil { // query param key_manager var qrKeyManager string if o.KeyManager != nil { qrKeyManager = *o.KeyManager } qKeyManager := qrKeyManager if qKeyManager != "" { if err := r.SetQueryParam("key_manager", qKeyManager); err != nil { return err } } } if o.KeyServer != nil { // query param key_server var qrKeyServer string if o.KeyServer != nil { qrKeyServer = *o.KeyServer } qKeyServer := qrKeyServer if qKeyServer != "" { if err := r.SetQueryParam("key_server", qKeyServer); err != nil { return err } } } if o.KeyStore != nil { // query param key_store var qrKeyStore string if o.KeyStore != nil { qrKeyStore = *o.KeyStore } qKeyStore := qrKeyStore if qKeyStore != "" { if err := r.SetQueryParam("key_store", qKeyStore); err != nil { return err } } } if o.KeyStoreType != nil { // query param key_store_type var qrKeyStoreType string if o.KeyStoreType != nil { qrKeyStoreType = *o.KeyStoreType } qKeyStoreType := qrKeyStoreType if qKeyStoreType != "" { if err := r.SetQueryParam("key_store_type", qKeyStoreType); err != nil { return err } } } if o.KeyTag != nil { // query param key_tag var qrKeyTag string if o.KeyTag != nil { qrKeyTag = *o.KeyTag } qKeyTag := qrKeyTag if qKeyTag != "" { if err := r.SetQueryParam("key_tag", qKeyTag); err != nil { return err } } } if o.KeyType != nil { // query param key_type var qrKeyType string if o.KeyType != nil { qrKeyType = *o.KeyType } qKeyType := qrKeyType if qKeyType != "" { if err := r.SetQueryParam("key_type", qKeyType); err != nil { return err } } } if o.KeyUser != nil { // query param key_user var qrKeyUser string if o.KeyUser != nil { qrKeyUser = *o.KeyUser } qKeyUser := qrKeyUser if qKeyUser != "" { if err := r.SetQueryParam("key_user", qKeyUser); 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 } } } // path param node.uuid if err := r.SetPathParam("node.uuid", o.NodeUUID); 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.Policy != nil { // query param policy var qrPolicy string if o.Policy != nil { qrPolicy = *o.Policy } qPolicy := qrPolicy if qPolicy != "" { if err := r.SetQueryParam("policy", qPolicy); err != nil { return err } } } if o.Restored != nil { // query param restored var qrRestored bool if o.Restored != nil { qrRestored = *o.Restored } qRestored := swag.FormatBool(qrRestored) if qRestored != "" { if err := r.SetQueryParam("restored", qRestored); 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 security_key_manager.uuid if err := r.SetPathParam("security_key_manager.uuid", o.SecurityKeyManagerUUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamKeyManagerKeysCollectionGet binds the parameter fields func (o *KeyManagerKeysCollectionGetParams) 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 } // bindParamKeyManagerKeysCollectionGet binds the parameter order_by func (o *KeyManagerKeysCollectionGetParams) 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/security/cluster_nis_create_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_create_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // ClusterNisCreateReader is a Reader for the ClusterNisCreate structure. type ClusterNisCreateReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterNisCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 201: result := NewClusterNisCreateCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterNisCreateDefault(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 } } // NewClusterNisCreateCreated creates a ClusterNisCreateCreated with default headers values func NewClusterNisCreateCreated() *ClusterNisCreateCreated { return &ClusterNisCreateCreated{} } /* ClusterNisCreateCreated describes a response with status code 201, with default header values. Created */ type ClusterNisCreateCreated struct { /* Useful for tracking the resource location */ Location string Payload *models.ClusterNisServiceResponse } // IsSuccess returns true when this cluster nis create created response has a 2xx status code func (o *ClusterNisCreateCreated) IsSuccess() bool { return true } // IsRedirect returns true when this cluster nis create created response has a 3xx status code func (o *ClusterNisCreateCreated) IsRedirect() bool { return false } // IsClientError returns true when this cluster nis create created response has a 4xx status code func (o *ClusterNisCreateCreated) IsClientError() bool { return false } // IsServerError returns true when this cluster nis create created response has a 5xx status code func (o *ClusterNisCreateCreated) IsServerError() bool { return false } // IsCode returns true when this cluster nis create created response a status code equal to that given func (o *ClusterNisCreateCreated) IsCode(code int) bool { return code == 201 } func (o *ClusterNisCreateCreated) Error() string { return fmt.Sprintf("[POST /security/authentication/cluster/nis][%d] clusterNisCreateCreated %+v", 201, o.Payload) } func (o *ClusterNisCreateCreated) String() string { return fmt.Sprintf("[POST /security/authentication/cluster/nis][%d] clusterNisCreateCreated %+v", 201, o.Payload) } func (o *ClusterNisCreateCreated) GetPayload() *models.ClusterNisServiceResponse { return o.Payload } func (o *ClusterNisCreateCreated) 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.ClusterNisServiceResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterNisCreateDefault creates a ClusterNisCreateDefault with default headers values func NewClusterNisCreateDefault(code int) *ClusterNisCreateDefault { return &ClusterNisCreateDefault{ _statusCode: code, } } /* ClusterNisCreateDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1966253 | IPv6 is not enabled in the cluster. | | 3276964 | The NIS domain name or NIS server domain is too long. The maximum supported for domain name is 64 characters and the maximum supported for NIS server domain is 255 characters. | | 3276933 | A maximum of 10 NIS servers can be configured per SVM. | | 13434916 | The SVM is in the process of being created. Wait a few minutes, and then try the command again. | | 23724109 | DNS resolution failed for one or more specified servers. | | 23724112 | DNS resolution failed due to an internal error. Contact technical support if this issue persists. | | 23724132 | DNS resolution failed for all the specified servers. | | 23724130 | Cannot use an IPv6 name server address because there are no IPv6 interfaces. | */ type ClusterNisCreateDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster nis create default response func (o *ClusterNisCreateDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster nis create default response has a 2xx status code func (o *ClusterNisCreateDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster nis create default response has a 3xx status code func (o *ClusterNisCreateDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster nis create default response has a 4xx status code func (o *ClusterNisCreateDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster nis create default response has a 5xx status code func (o *ClusterNisCreateDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster nis create default response a status code equal to that given func (o *ClusterNisCreateDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterNisCreateDefault) Error() string { return fmt.Sprintf("[POST /security/authentication/cluster/nis][%d] cluster_nis_create default %+v", o._statusCode, o.Payload) } func (o *ClusterNisCreateDefault) String() string { return fmt.Sprintf("[POST /security/authentication/cluster/nis][%d] cluster_nis_create default %+v", o._statusCode, o.Payload) } func (o *ClusterNisCreateDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterNisCreateDefault) 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/security/cluster_nis_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewClusterNisGetParams creates a new ClusterNisGetParams 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 NewClusterNisGetParams() *ClusterNisGetParams { return &ClusterNisGetParams{ timeout: cr.DefaultTimeout, } } // NewClusterNisGetParamsWithTimeout creates a new ClusterNisGetParams object // with the ability to set a timeout on a request. func NewClusterNisGetParamsWithTimeout(timeout time.Duration) *ClusterNisGetParams { return &ClusterNisGetParams{ timeout: timeout, } } // NewClusterNisGetParamsWithContext creates a new ClusterNisGetParams object // with the ability to set a context for a request. func NewClusterNisGetParamsWithContext(ctx context.Context) *ClusterNisGetParams { return &ClusterNisGetParams{ Context: ctx, } } // NewClusterNisGetParamsWithHTTPClient creates a new ClusterNisGetParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNisGetParamsWithHTTPClient(client *http.Client) *ClusterNisGetParams { return &ClusterNisGetParams{ HTTPClient: client, } } /* ClusterNisGetParams contains all the parameters to send to the API endpoint for the cluster nis get operation. Typically these are written to a http.Request. */ type ClusterNisGetParams struct { /* Fields. Specify the fields to return. */ Fields []string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster nis get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNisGetParams) WithDefaults() *ClusterNisGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster nis get params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNisGetParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster nis get params func (o *ClusterNisGetParams) WithTimeout(timeout time.Duration) *ClusterNisGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster nis get params func (o *ClusterNisGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster nis get params func (o *ClusterNisGetParams) WithContext(ctx context.Context) *ClusterNisGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster nis get params func (o *ClusterNisGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster nis get params func (o *ClusterNisGetParams) WithHTTPClient(client *http.Client) *ClusterNisGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster nis get params func (o *ClusterNisGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithFields adds the fields to the cluster nis get params func (o *ClusterNisGetParams) WithFields(fields []string) *ClusterNisGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the cluster nis get params func (o *ClusterNisGetParams) SetFields(fields []string) { o.Fields = fields } // WriteToRequest writes these params to a swagger request func (o *ClusterNisGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamClusterNisGet binds the parameter fields func (o *ClusterNisGetParams) 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/security/role_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewRoleDeleteParams creates a new RoleDeleteParams 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 NewRoleDeleteParams() *RoleDeleteParams { return &RoleDeleteParams{ timeout: cr.DefaultTimeout, } } // NewRoleDeleteParamsWithTimeout creates a new RoleDeleteParams object // with the ability to set a timeout on a request. func NewRoleDeleteParamsWithTimeout(timeout time.Duration) *RoleDeleteParams { return &RoleDeleteParams{ timeout: timeout, } } // NewRoleDeleteParamsWithContext creates a new RoleDeleteParams object // with the ability to set a context for a request. func NewRoleDeleteParamsWithContext(ctx context.Context) *RoleDeleteParams { return &RoleDeleteParams{ Context: ctx, } } // NewRoleDeleteParamsWithHTTPClient creates a new RoleDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewRoleDeleteParamsWithHTTPClient(client *http.Client) *RoleDeleteParams { return &RoleDeleteParams{ HTTPClient: client, } } /* RoleDeleteParams contains all the parameters to send to the API endpoint for the role delete operation. Typically these are written to a http.Request. */ type RoleDeleteParams struct { /* Name. Role name to be deleted. */ Name string /* OwnerUUID. Role owner UUID */ OwnerUUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the role delete params (not the query body). // // All values with no default are reset to their zero value. func (o *RoleDeleteParams) WithDefaults() *RoleDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the role delete params (not the query body). // // All values with no default are reset to their zero value. func (o *RoleDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the role delete params func (o *RoleDeleteParams) WithTimeout(timeout time.Duration) *RoleDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the role delete params func (o *RoleDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the role delete params func (o *RoleDeleteParams) WithContext(ctx context.Context) *RoleDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the role delete params func (o *RoleDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the role delete params func (o *RoleDeleteParams) WithHTTPClient(client *http.Client) *RoleDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the role delete params func (o *RoleDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithName adds the name to the role delete params func (o *RoleDeleteParams) WithName(name string) *RoleDeleteParams { o.SetName(name) return o } // SetName adds the name to the role delete params func (o *RoleDeleteParams) SetName(name string) { o.Name = name } // WithOwnerUUID adds the ownerUUID to the role delete params func (o *RoleDeleteParams) WithOwnerUUID(ownerUUID string) *RoleDeleteParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the role delete params func (o *RoleDeleteParams) SetOwnerUUID(ownerUUID string) { o.OwnerUUID = ownerUUID } // WriteToRequest writes these params to a swagger request func (o *RoleDeleteParams) 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 owner.uuid if err := r.SetPathParam("owner.uuid", o.OwnerUUID); 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/security/multi_admin_verify_config_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_config_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyConfigModifyParams creates a new MultiAdminVerifyConfigModifyParams 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 NewMultiAdminVerifyConfigModifyParams() *MultiAdminVerifyConfigModifyParams { return &MultiAdminVerifyConfigModifyParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyConfigModifyParamsWithTimeout creates a new MultiAdminVerifyConfigModifyParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyConfigModifyParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyConfigModifyParams { return &MultiAdminVerifyConfigModifyParams{ timeout: timeout, } } // NewMultiAdminVerifyConfigModifyParamsWithContext creates a new MultiAdminVerifyConfigModifyParams object // with the ability to set a context for a request. func NewMultiAdminVerifyConfigModifyParamsWithContext(ctx context.Context) *MultiAdminVerifyConfigModifyParams { return &MultiAdminVerifyConfigModifyParams{ Context: ctx, } } // NewMultiAdminVerifyConfigModifyParamsWithHTTPClient creates a new MultiAdminVerifyConfigModifyParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyConfigModifyParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyConfigModifyParams { return &MultiAdminVerifyConfigModifyParams{ HTTPClient: client, } } /* MultiAdminVerifyConfigModifyParams contains all the parameters to send to the API endpoint for the multi admin verify config modify operation. Typically these are written to a http.Request. */ type MultiAdminVerifyConfigModifyParams struct { /* Info. Info specification */ Info *models.MultiAdminVerifyConfig timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify config modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyConfigModifyParams) WithDefaults() *MultiAdminVerifyConfigModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify config modify params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyConfigModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyConfigModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) WithContext(ctx context.Context) *MultiAdminVerifyConfigModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyConfigModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) WithInfo(info *models.MultiAdminVerifyConfig) *MultiAdminVerifyConfigModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the multi admin verify config modify params func (o *MultiAdminVerifyConfigModifyParams) SetInfo(info *models.MultiAdminVerifyConfig) { o.Info = info } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyConfigModifyParams) 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 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/security/gcp_kms_restore_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_restore_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // GcpKmsRestoreReader is a Reader for the GcpKmsRestore structure. type GcpKmsRestoreReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *GcpKmsRestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewGcpKmsRestoreAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewGcpKmsRestoreDefault(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 } } // NewGcpKmsRestoreAccepted creates a GcpKmsRestoreAccepted with default headers values func NewGcpKmsRestoreAccepted() *GcpKmsRestoreAccepted { return &GcpKmsRestoreAccepted{} } /* GcpKmsRestoreAccepted describes a response with status code 202, with default header values. Accepted */ type GcpKmsRestoreAccepted struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this gcp kms restore accepted response has a 2xx status code func (o *GcpKmsRestoreAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this gcp kms restore accepted response has a 3xx status code func (o *GcpKmsRestoreAccepted) IsRedirect() bool { return false } // IsClientError returns true when this gcp kms restore accepted response has a 4xx status code func (o *GcpKmsRestoreAccepted) IsClientError() bool { return false } // IsServerError returns true when this gcp kms restore accepted response has a 5xx status code func (o *GcpKmsRestoreAccepted) IsServerError() bool { return false } // IsCode returns true when this gcp kms restore accepted response a status code equal to that given func (o *GcpKmsRestoreAccepted) IsCode(code int) bool { return code == 202 } func (o *GcpKmsRestoreAccepted) Error() string { return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/restore][%d] gcpKmsRestoreAccepted ", 202) } func (o *GcpKmsRestoreAccepted) String() string { return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/restore][%d] gcpKmsRestoreAccepted ", 202) } func (o *GcpKmsRestoreAccepted) 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 } // NewGcpKmsRestoreDefault creates a GcpKmsRestoreDefault with default headers values func NewGcpKmsRestoreDefault(code int) *GcpKmsRestoreDefault { return &GcpKmsRestoreDefault{ _statusCode: code, } } /* GcpKmsRestoreDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65537544 | Missing wrapped top-level internal key protection key (KEK) from internal database. | | 65537721 | The Google Cloud Key Management Service is not configured for the given SVM. | | 65537722 | Failed to restore keys on the following nodes. | */ type GcpKmsRestoreDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the gcp kms restore default response func (o *GcpKmsRestoreDefault) Code() int { return o._statusCode } // IsSuccess returns true when this gcp kms restore default response has a 2xx status code func (o *GcpKmsRestoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this gcp kms restore default response has a 3xx status code func (o *GcpKmsRestoreDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this gcp kms restore default response has a 4xx status code func (o *GcpKmsRestoreDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this gcp kms restore default response has a 5xx status code func (o *GcpKmsRestoreDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this gcp kms restore default response a status code equal to that given func (o *GcpKmsRestoreDefault) IsCode(code int) bool { return o._statusCode == code } func (o *GcpKmsRestoreDefault) Error() string { return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/restore][%d] gcp_kms_restore default %+v", o._statusCode, o.Payload) } func (o *GcpKmsRestoreDefault) String() string { return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/restore][%d] gcp_kms_restore default %+v", o._statusCode, o.Payload) } func (o *GcpKmsRestoreDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *GcpKmsRestoreDefault) 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/security/role_privilege_delete_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // RolePrivilegeDeleteReader is a Reader for the RolePrivilegeDelete structure. type RolePrivilegeDeleteReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *RolePrivilegeDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewRolePrivilegeDeleteOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewRolePrivilegeDeleteDefault(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 } } // NewRolePrivilegeDeleteOK creates a RolePrivilegeDeleteOK with default headers values func NewRolePrivilegeDeleteOK() *RolePrivilegeDeleteOK { return &RolePrivilegeDeleteOK{} } /* RolePrivilegeDeleteOK describes a response with status code 200, with default header values. OK */ type RolePrivilegeDeleteOK struct { } // IsSuccess returns true when this role privilege delete o k response has a 2xx status code func (o *RolePrivilegeDeleteOK) IsSuccess() bool { return true } // IsRedirect returns true when this role privilege delete o k response has a 3xx status code func (o *RolePrivilegeDeleteOK) IsRedirect() bool { return false } // IsClientError returns true when this role privilege delete o k response has a 4xx status code func (o *RolePrivilegeDeleteOK) IsClientError() bool { return false } // IsServerError returns true when this role privilege delete o k response has a 5xx status code func (o *RolePrivilegeDeleteOK) IsServerError() bool { return false } // IsCode returns true when this role privilege delete o k response a status code equal to that given func (o *RolePrivilegeDeleteOK) IsCode(code int) bool { return code == 200 } func (o *RolePrivilegeDeleteOK) Error() string { return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] rolePrivilegeDeleteOK ", 200) } func (o *RolePrivilegeDeleteOK) String() string { return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] rolePrivilegeDeleteOK ", 200) } func (o *RolePrivilegeDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewRolePrivilegeDeleteDefault creates a RolePrivilegeDeleteDefault with default headers values func NewRolePrivilegeDeleteDefault(code int) *RolePrivilegeDeleteDefault { return &RolePrivilegeDeleteDefault{ _statusCode: code, } } /* RolePrivilegeDeleteDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 1263347 | Cannot modify pre-defined roles. | | 5636169 | Specified URI path is invalid or not supported. Resource-qualified endpoints are not supported. | | 5636170 | URI does not exist. | | 5636172 | User accounts detected with this role assigned. Update or delete those accounts before deleting this role. | | 5636173 | This feature requires an effective cluster version of 9.6 or later. | | 5636184 | Expanded REST roles for granular resource control feature is currently disabled. | | 5636185 | The specified UUID was not found. | | 5636186 | Expanded REST roles for granular resource control requires an effective cluster version of 9.10.1 or later. | | 13434890 | Vserver-ID failed for Vserver roles. | | 13434893 | The SVM does not exist. | */ type RolePrivilegeDeleteDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the role privilege delete default response func (o *RolePrivilegeDeleteDefault) Code() int { return o._statusCode } // IsSuccess returns true when this role privilege delete default response has a 2xx status code func (o *RolePrivilegeDeleteDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this role privilege delete default response has a 3xx status code func (o *RolePrivilegeDeleteDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this role privilege delete default response has a 4xx status code func (o *RolePrivilegeDeleteDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this role privilege delete default response has a 5xx status code func (o *RolePrivilegeDeleteDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this role privilege delete default response a status code equal to that given func (o *RolePrivilegeDeleteDefault) IsCode(code int) bool { return o._statusCode == code } func (o *RolePrivilegeDeleteDefault) Error() string { return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] role_privilege_delete default %+v", o._statusCode, o.Payload) } func (o *RolePrivilegeDeleteDefault) String() string { return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}/privileges/{path}][%d] role_privilege_delete default %+v", o._statusCode, o.Payload) } func (o *RolePrivilegeDeleteDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *RolePrivilegeDeleteDefault) 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/security/gcp_kms_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewGcpKmsCollectionGetParams creates a new GcpKmsCollectionGetParams 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 NewGcpKmsCollectionGetParams() *GcpKmsCollectionGetParams { return &GcpKmsCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewGcpKmsCollectionGetParamsWithTimeout creates a new GcpKmsCollectionGetParams object // with the ability to set a timeout on a request. func NewGcpKmsCollectionGetParamsWithTimeout(timeout time.Duration) *GcpKmsCollectionGetParams { return &GcpKmsCollectionGetParams{ timeout: timeout, } } // NewGcpKmsCollectionGetParamsWithContext creates a new GcpKmsCollectionGetParams object // with the ability to set a context for a request. func NewGcpKmsCollectionGetParamsWithContext(ctx context.Context) *GcpKmsCollectionGetParams { return &GcpKmsCollectionGetParams{ Context: ctx, } } // NewGcpKmsCollectionGetParamsWithHTTPClient creates a new GcpKmsCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewGcpKmsCollectionGetParamsWithHTTPClient(client *http.Client) *GcpKmsCollectionGetParams { return &GcpKmsCollectionGetParams{ HTTPClient: client, } } /* GcpKmsCollectionGetParams contains all the parameters to send to the API endpoint for the gcp kms collection get operation. Typically these are written to a http.Request. */ type GcpKmsCollectionGetParams struct { /* EkmipReachabilityCode. Filter by ekmip_reachability.code */ EkmipReachabilityCode *string /* EkmipReachabilityMessage. Filter by ekmip_reachability.message */ EkmipReachabilityMessage *string /* EkmipReachabilityNodeName. Filter by ekmip_reachability.node.name */ EkmipReachabilityNodeName *string /* EkmipReachabilityNodeUUID. Filter by ekmip_reachability.node.uuid */ EkmipReachabilityNodeUUID *string /* EkmipReachabilityReachable. Filter by ekmip_reachability.reachable */ EkmipReachabilityReachable *bool /* Fields. Specify the fields to return. */ Fields []string /* GoogleReachabilityCode. Filter by google_reachability.code */ GoogleReachabilityCode *string /* GoogleReachabilityMessage. Filter by google_reachability.message */ GoogleReachabilityMessage *string /* GoogleReachabilityReachable. Filter by google_reachability.reachable */ GoogleReachabilityReachable *bool /* KeyName. Filter by key_name */ KeyName *string /* KeyRingLocation. Filter by key_ring_location */ KeyRingLocation *string /* KeyRingName. Filter by key_ring_name */ KeyRingName *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 /* ProjectID. Filter by project_id */ ProjectID *string /* ProxyHost. Filter by proxy_host */ ProxyHost *string /* ProxyPort. Filter by proxy_port */ ProxyPort *int64 /* ProxyType. Filter by proxy_type */ ProxyType *string /* ProxyUsername. Filter by proxy_username */ ProxyUsername *string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 /* Scope. Filter by scope */ Scope *string /* StateClusterState. Filter by state.cluster_state */ StateClusterState *bool /* StateCode. Filter by state.code */ StateCode *string /* StateMessage. Filter by state.message */ StateMessage *string /* SvmName. Filter by svm.name */ SvmName *string /* SvmUUID. Filter by svm.uuid */ SvmUUID *string /* UUID. Filter by uuid */ UUID *string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the gcp kms collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *GcpKmsCollectionGetParams) WithDefaults() *GcpKmsCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the gcp kms collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *GcpKmsCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := GcpKmsCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithTimeout(timeout time.Duration) *GcpKmsCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithContext(ctx context.Context) *GcpKmsCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithHTTPClient(client *http.Client) *GcpKmsCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithEkmipReachabilityCode adds the ekmipReachabilityCode to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithEkmipReachabilityCode(ekmipReachabilityCode *string) *GcpKmsCollectionGetParams { o.SetEkmipReachabilityCode(ekmipReachabilityCode) return o } // SetEkmipReachabilityCode adds the ekmipReachabilityCode to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetEkmipReachabilityCode(ekmipReachabilityCode *string) { o.EkmipReachabilityCode = ekmipReachabilityCode } // WithEkmipReachabilityMessage adds the ekmipReachabilityMessage to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithEkmipReachabilityMessage(ekmipReachabilityMessage *string) *GcpKmsCollectionGetParams { o.SetEkmipReachabilityMessage(ekmipReachabilityMessage) return o } // SetEkmipReachabilityMessage adds the ekmipReachabilityMessage to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetEkmipReachabilityMessage(ekmipReachabilityMessage *string) { o.EkmipReachabilityMessage = ekmipReachabilityMessage } // WithEkmipReachabilityNodeName adds the ekmipReachabilityNodeName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithEkmipReachabilityNodeName(ekmipReachabilityNodeName *string) *GcpKmsCollectionGetParams { o.SetEkmipReachabilityNodeName(ekmipReachabilityNodeName) return o } // SetEkmipReachabilityNodeName adds the ekmipReachabilityNodeName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetEkmipReachabilityNodeName(ekmipReachabilityNodeName *string) { o.EkmipReachabilityNodeName = ekmipReachabilityNodeName } // WithEkmipReachabilityNodeUUID adds the ekmipReachabilityNodeUUID to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID *string) *GcpKmsCollectionGetParams { o.SetEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID) return o } // SetEkmipReachabilityNodeUUID adds the ekmipReachabilityNodeUuid to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID *string) { o.EkmipReachabilityNodeUUID = ekmipReachabilityNodeUUID } // WithEkmipReachabilityReachable adds the ekmipReachabilityReachable to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithEkmipReachabilityReachable(ekmipReachabilityReachable *bool) *GcpKmsCollectionGetParams { o.SetEkmipReachabilityReachable(ekmipReachabilityReachable) return o } // SetEkmipReachabilityReachable adds the ekmipReachabilityReachable to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetEkmipReachabilityReachable(ekmipReachabilityReachable *bool) { o.EkmipReachabilityReachable = ekmipReachabilityReachable } // WithFields adds the fields to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithFields(fields []string) *GcpKmsCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithGoogleReachabilityCode adds the googleReachabilityCode to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithGoogleReachabilityCode(googleReachabilityCode *string) *GcpKmsCollectionGetParams { o.SetGoogleReachabilityCode(googleReachabilityCode) return o } // SetGoogleReachabilityCode adds the googleReachabilityCode to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetGoogleReachabilityCode(googleReachabilityCode *string) { o.GoogleReachabilityCode = googleReachabilityCode } // WithGoogleReachabilityMessage adds the googleReachabilityMessage to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithGoogleReachabilityMessage(googleReachabilityMessage *string) *GcpKmsCollectionGetParams { o.SetGoogleReachabilityMessage(googleReachabilityMessage) return o } // SetGoogleReachabilityMessage adds the googleReachabilityMessage to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetGoogleReachabilityMessage(googleReachabilityMessage *string) { o.GoogleReachabilityMessage = googleReachabilityMessage } // WithGoogleReachabilityReachable adds the googleReachabilityReachable to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithGoogleReachabilityReachable(googleReachabilityReachable *bool) *GcpKmsCollectionGetParams { o.SetGoogleReachabilityReachable(googleReachabilityReachable) return o } // SetGoogleReachabilityReachable adds the googleReachabilityReachable to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetGoogleReachabilityReachable(googleReachabilityReachable *bool) { o.GoogleReachabilityReachable = googleReachabilityReachable } // WithKeyName adds the keyName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithKeyName(keyName *string) *GcpKmsCollectionGetParams { o.SetKeyName(keyName) return o } // SetKeyName adds the keyName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetKeyName(keyName *string) { o.KeyName = keyName } // WithKeyRingLocation adds the keyRingLocation to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithKeyRingLocation(keyRingLocation *string) *GcpKmsCollectionGetParams { o.SetKeyRingLocation(keyRingLocation) return o } // SetKeyRingLocation adds the keyRingLocation to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetKeyRingLocation(keyRingLocation *string) { o.KeyRingLocation = keyRingLocation } // WithKeyRingName adds the keyRingName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithKeyRingName(keyRingName *string) *GcpKmsCollectionGetParams { o.SetKeyRingName(keyRingName) return o } // SetKeyRingName adds the keyRingName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetKeyRingName(keyRingName *string) { o.KeyRingName = keyRingName } // WithMaxRecords adds the maxRecords to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithMaxRecords(maxRecords *int64) *GcpKmsCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithOrderBy adds the orderBy to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithOrderBy(orderBy []string) *GcpKmsCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithProjectID adds the projectID to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithProjectID(projectID *string) *GcpKmsCollectionGetParams { o.SetProjectID(projectID) return o } // SetProjectID adds the projectId to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetProjectID(projectID *string) { o.ProjectID = projectID } // WithProxyHost adds the proxyHost to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithProxyHost(proxyHost *string) *GcpKmsCollectionGetParams { o.SetProxyHost(proxyHost) return o } // SetProxyHost adds the proxyHost to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetProxyHost(proxyHost *string) { o.ProxyHost = proxyHost } // WithProxyPort adds the proxyPort to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithProxyPort(proxyPort *int64) *GcpKmsCollectionGetParams { o.SetProxyPort(proxyPort) return o } // SetProxyPort adds the proxyPort to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetProxyPort(proxyPort *int64) { o.ProxyPort = proxyPort } // WithProxyType adds the proxyType to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithProxyType(proxyType *string) *GcpKmsCollectionGetParams { o.SetProxyType(proxyType) return o } // SetProxyType adds the proxyType to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetProxyType(proxyType *string) { o.ProxyType = proxyType } // WithProxyUsername adds the proxyUsername to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithProxyUsername(proxyUsername *string) *GcpKmsCollectionGetParams { o.SetProxyUsername(proxyUsername) return o } // SetProxyUsername adds the proxyUsername to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetProxyUsername(proxyUsername *string) { o.ProxyUsername = proxyUsername } // WithReturnRecords adds the returnRecords to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithReturnRecords(returnRecords *bool) *GcpKmsCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *GcpKmsCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WithScope adds the scope to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithScope(scope *string) *GcpKmsCollectionGetParams { o.SetScope(scope) return o } // SetScope adds the scope to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetScope(scope *string) { o.Scope = scope } // WithStateClusterState adds the stateClusterState to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithStateClusterState(stateClusterState *bool) *GcpKmsCollectionGetParams { o.SetStateClusterState(stateClusterState) return o } // SetStateClusterState adds the stateClusterState to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetStateClusterState(stateClusterState *bool) { o.StateClusterState = stateClusterState } // WithStateCode adds the stateCode to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithStateCode(stateCode *string) *GcpKmsCollectionGetParams { o.SetStateCode(stateCode) return o } // SetStateCode adds the stateCode to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetStateCode(stateCode *string) { o.StateCode = stateCode } // WithStateMessage adds the stateMessage to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithStateMessage(stateMessage *string) *GcpKmsCollectionGetParams { o.SetStateMessage(stateMessage) return o } // SetStateMessage adds the stateMessage to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetStateMessage(stateMessage *string) { o.StateMessage = stateMessage } // WithSvmName adds the svmName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithSvmName(svmName *string) *GcpKmsCollectionGetParams { o.SetSvmName(svmName) return o } // SetSvmName adds the svmName to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetSvmName(svmName *string) { o.SvmName = svmName } // WithSvmUUID adds the svmUUID to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithSvmUUID(svmUUID *string) *GcpKmsCollectionGetParams { o.SetSvmUUID(svmUUID) return o } // SetSvmUUID adds the svmUuid to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetSvmUUID(svmUUID *string) { o.SvmUUID = svmUUID } // WithUUID adds the uuid to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) WithUUID(uuid *string) *GcpKmsCollectionGetParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the gcp kms collection get params func (o *GcpKmsCollectionGetParams) SetUUID(uuid *string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *GcpKmsCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.EkmipReachabilityCode != nil { // query param ekmip_reachability.code var qrEkmipReachabilityCode string if o.EkmipReachabilityCode != nil { qrEkmipReachabilityCode = *o.EkmipReachabilityCode } qEkmipReachabilityCode := qrEkmipReachabilityCode if qEkmipReachabilityCode != "" { if err := r.SetQueryParam("ekmip_reachability.code", qEkmipReachabilityCode); err != nil { return err } } } if o.EkmipReachabilityMessage != nil { // query param ekmip_reachability.message var qrEkmipReachabilityMessage string if o.EkmipReachabilityMessage != nil { qrEkmipReachabilityMessage = *o.EkmipReachabilityMessage } qEkmipReachabilityMessage := qrEkmipReachabilityMessage if qEkmipReachabilityMessage != "" { if err := r.SetQueryParam("ekmip_reachability.message", qEkmipReachabilityMessage); err != nil { return err } } } if o.EkmipReachabilityNodeName != nil { // query param ekmip_reachability.node.name var qrEkmipReachabilityNodeName string if o.EkmipReachabilityNodeName != nil { qrEkmipReachabilityNodeName = *o.EkmipReachabilityNodeName } qEkmipReachabilityNodeName := qrEkmipReachabilityNodeName if qEkmipReachabilityNodeName != "" { if err := r.SetQueryParam("ekmip_reachability.node.name", qEkmipReachabilityNodeName); err != nil { return err } } } if o.EkmipReachabilityNodeUUID != nil { // query param ekmip_reachability.node.uuid var qrEkmipReachabilityNodeUUID string if o.EkmipReachabilityNodeUUID != nil { qrEkmipReachabilityNodeUUID = *o.EkmipReachabilityNodeUUID } qEkmipReachabilityNodeUUID := qrEkmipReachabilityNodeUUID if qEkmipReachabilityNodeUUID != "" { if err := r.SetQueryParam("ekmip_reachability.node.uuid", qEkmipReachabilityNodeUUID); err != nil { return err } } } if o.EkmipReachabilityReachable != nil { // query param ekmip_reachability.reachable var qrEkmipReachabilityReachable bool if o.EkmipReachabilityReachable != nil { qrEkmipReachabilityReachable = *o.EkmipReachabilityReachable } qEkmipReachabilityReachable := swag.FormatBool(qrEkmipReachabilityReachable) if qEkmipReachabilityReachable != "" { if err := r.SetQueryParam("ekmip_reachability.reachable", qEkmipReachabilityReachable); 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.GoogleReachabilityCode != nil { // query param google_reachability.code var qrGoogleReachabilityCode string if o.GoogleReachabilityCode != nil { qrGoogleReachabilityCode = *o.GoogleReachabilityCode } qGoogleReachabilityCode := qrGoogleReachabilityCode if qGoogleReachabilityCode != "" { if err := r.SetQueryParam("google_reachability.code", qGoogleReachabilityCode); err != nil { return err } } } if o.GoogleReachabilityMessage != nil { // query param google_reachability.message var qrGoogleReachabilityMessage string if o.GoogleReachabilityMessage != nil { qrGoogleReachabilityMessage = *o.GoogleReachabilityMessage } qGoogleReachabilityMessage := qrGoogleReachabilityMessage if qGoogleReachabilityMessage != "" { if err := r.SetQueryParam("google_reachability.message", qGoogleReachabilityMessage); err != nil { return err } } } if o.GoogleReachabilityReachable != nil { // query param google_reachability.reachable var qrGoogleReachabilityReachable bool if o.GoogleReachabilityReachable != nil { qrGoogleReachabilityReachable = *o.GoogleReachabilityReachable } qGoogleReachabilityReachable := swag.FormatBool(qrGoogleReachabilityReachable) if qGoogleReachabilityReachable != "" { if err := r.SetQueryParam("google_reachability.reachable", qGoogleReachabilityReachable); err != nil { return err } } } if o.KeyName != nil { // query param key_name var qrKeyName string if o.KeyName != nil { qrKeyName = *o.KeyName } qKeyName := qrKeyName if qKeyName != "" { if err := r.SetQueryParam("key_name", qKeyName); err != nil { return err } } } if o.KeyRingLocation != nil { // query param key_ring_location var qrKeyRingLocation string if o.KeyRingLocation != nil { qrKeyRingLocation = *o.KeyRingLocation } qKeyRingLocation := qrKeyRingLocation if qKeyRingLocation != "" { if err := r.SetQueryParam("key_ring_location", qKeyRingLocation); err != nil { return err } } } if o.KeyRingName != nil { // query param key_ring_name var qrKeyRingName string if o.KeyRingName != nil { qrKeyRingName = *o.KeyRingName } qKeyRingName := qrKeyRingName if qKeyRingName != "" { if err := r.SetQueryParam("key_ring_name", qKeyRingName); 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.ProjectID != nil { // query param project_id var qrProjectID string if o.ProjectID != nil { qrProjectID = *o.ProjectID } qProjectID := qrProjectID if qProjectID != "" { if err := r.SetQueryParam("project_id", qProjectID); err != nil { return err } } } if o.ProxyHost != nil { // query param proxy_host var qrProxyHost string if o.ProxyHost != nil { qrProxyHost = *o.ProxyHost } qProxyHost := qrProxyHost if qProxyHost != "" { if err := r.SetQueryParam("proxy_host", qProxyHost); err != nil { return err } } } if o.ProxyPort != nil { // query param proxy_port var qrProxyPort int64 if o.ProxyPort != nil { qrProxyPort = *o.ProxyPort } qProxyPort := swag.FormatInt64(qrProxyPort) if qProxyPort != "" { if err := r.SetQueryParam("proxy_port", qProxyPort); err != nil { return err } } } if o.ProxyType != nil { // query param proxy_type var qrProxyType string if o.ProxyType != nil { qrProxyType = *o.ProxyType } qProxyType := qrProxyType if qProxyType != "" { if err := r.SetQueryParam("proxy_type", qProxyType); err != nil { return err } } } if o.ProxyUsername != nil { // query param proxy_username var qrProxyUsername string if o.ProxyUsername != nil { qrProxyUsername = *o.ProxyUsername } qProxyUsername := qrProxyUsername if qProxyUsername != "" { if err := r.SetQueryParam("proxy_username", qProxyUsername); err != nil { return err } } } if o.ReturnRecords != nil { // query param return_records var qrReturnRecords bool if o.ReturnRecords != nil { qrReturnRecords = *o.ReturnRecords } qReturnRecords := swag.FormatBool(qrReturnRecords) if qReturnRecords != "" { if err := r.SetQueryParam("return_records", qReturnRecords); err != nil { return err } } } if o.ReturnTimeout != nil { // query param return_timeout var qrReturnTimeout int64 if o.ReturnTimeout != nil { qrReturnTimeout = *o.ReturnTimeout } qReturnTimeout := swag.FormatInt64(qrReturnTimeout) if qReturnTimeout != "" { if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil { return err } } } if o.Scope != nil { // query param scope var qrScope string if o.Scope != nil { qrScope = *o.Scope } qScope := qrScope if qScope != "" { if err := r.SetQueryParam("scope", qScope); err != nil { return err } } } if o.StateClusterState != nil { // query param state.cluster_state var qrStateClusterState bool if o.StateClusterState != nil { qrStateClusterState = *o.StateClusterState } qStateClusterState := swag.FormatBool(qrStateClusterState) if qStateClusterState != "" { if err := r.SetQueryParam("state.cluster_state", qStateClusterState); err != nil { return err } } } if o.StateCode != nil { // query param state.code var qrStateCode string if o.StateCode != nil { qrStateCode = *o.StateCode } qStateCode := qrStateCode if qStateCode != "" { if err := r.SetQueryParam("state.code", qStateCode); err != nil { return err } } } if o.StateMessage != nil { // query param state.message var qrStateMessage string if o.StateMessage != nil { qrStateMessage = *o.StateMessage } qStateMessage := qrStateMessage if qStateMessage != "" { if err := r.SetQueryParam("state.message", qStateMessage); err != nil { return err } } } if o.SvmName != nil { // query param svm.name var qrSvmName string if o.SvmName != nil { qrSvmName = *o.SvmName } qSvmName := qrSvmName if qSvmName != "" { if err := r.SetQueryParam("svm.name", qSvmName); err != nil { return err } } } if o.SvmUUID != nil { // query param svm.uuid var qrSvmUUID string if o.SvmUUID != nil { qrSvmUUID = *o.SvmUUID } qSvmUUID := qrSvmUUID if qSvmUUID != "" { if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil { return err } } } if o.UUID != nil { // query param uuid var qrUUID string if o.UUID != nil { qrUUID = *o.UUID } qUUID := qrUUID if qUUID != "" { if err := r.SetQueryParam("uuid", qUUID); err != nil { return err } } } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // bindParamGcpKmsCollectionGet binds the parameter fields func (o *GcpKmsCollectionGetParams) 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 } // bindParamGcpKmsCollectionGet binds the parameter order_by func (o *GcpKmsCollectionGetParams) 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/security/cluster_nis_delete_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_delete_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewClusterNisDeleteParams creates a new ClusterNisDeleteParams 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 NewClusterNisDeleteParams() *ClusterNisDeleteParams { return &ClusterNisDeleteParams{ timeout: cr.DefaultTimeout, } } // NewClusterNisDeleteParamsWithTimeout creates a new ClusterNisDeleteParams object // with the ability to set a timeout on a request. func NewClusterNisDeleteParamsWithTimeout(timeout time.Duration) *ClusterNisDeleteParams { return &ClusterNisDeleteParams{ timeout: timeout, } } // NewClusterNisDeleteParamsWithContext creates a new ClusterNisDeleteParams object // with the ability to set a context for a request. func NewClusterNisDeleteParamsWithContext(ctx context.Context) *ClusterNisDeleteParams { return &ClusterNisDeleteParams{ Context: ctx, } } // NewClusterNisDeleteParamsWithHTTPClient creates a new ClusterNisDeleteParams object // with the ability to set a custom HTTPClient for a request. func NewClusterNisDeleteParamsWithHTTPClient(client *http.Client) *ClusterNisDeleteParams { return &ClusterNisDeleteParams{ HTTPClient: client, } } /* ClusterNisDeleteParams contains all the parameters to send to the API endpoint for the cluster nis delete operation. Typically these are written to a http.Request. */ type ClusterNisDeleteParams struct { timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the cluster nis delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNisDeleteParams) WithDefaults() *ClusterNisDeleteParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the cluster nis delete params (not the query body). // // All values with no default are reset to their zero value. func (o *ClusterNisDeleteParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the cluster nis delete params func (o *ClusterNisDeleteParams) WithTimeout(timeout time.Duration) *ClusterNisDeleteParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the cluster nis delete params func (o *ClusterNisDeleteParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the cluster nis delete params func (o *ClusterNisDeleteParams) WithContext(ctx context.Context) *ClusterNisDeleteParams { o.SetContext(ctx) return o } // SetContext adds the context to the cluster nis delete params func (o *ClusterNisDeleteParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the cluster nis delete params func (o *ClusterNisDeleteParams) WithHTTPClient(client *http.Client) *ClusterNisDeleteParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the cluster nis delete params func (o *ClusterNisDeleteParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WriteToRequest writes these params to a swagger request func (o *ClusterNisDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error 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/security/multi_admin_verify_request_modify_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_request_modify_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // MultiAdminVerifyRequestModifyReader is a Reader for the MultiAdminVerifyRequestModify structure. type MultiAdminVerifyRequestModifyReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *MultiAdminVerifyRequestModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewMultiAdminVerifyRequestModifyOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewMultiAdminVerifyRequestModifyDefault(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 } } // NewMultiAdminVerifyRequestModifyOK creates a MultiAdminVerifyRequestModifyOK with default headers values func NewMultiAdminVerifyRequestModifyOK() *MultiAdminVerifyRequestModifyOK { return &MultiAdminVerifyRequestModifyOK{} } /* MultiAdminVerifyRequestModifyOK describes a response with status code 200, with default header values. OK */ type MultiAdminVerifyRequestModifyOK struct { } // IsSuccess returns true when this multi admin verify request modify o k response has a 2xx status code func (o *MultiAdminVerifyRequestModifyOK) IsSuccess() bool { return true } // IsRedirect returns true when this multi admin verify request modify o k response has a 3xx status code func (o *MultiAdminVerifyRequestModifyOK) IsRedirect() bool { return false } // IsClientError returns true when this multi admin verify request modify o k response has a 4xx status code func (o *MultiAdminVerifyRequestModifyOK) IsClientError() bool { return false } // IsServerError returns true when this multi admin verify request modify o k response has a 5xx status code func (o *MultiAdminVerifyRequestModifyOK) IsServerError() bool { return false } // IsCode returns true when this multi admin verify request modify o k response a status code equal to that given func (o *MultiAdminVerifyRequestModifyOK) IsCode(code int) bool { return code == 200 } func (o *MultiAdminVerifyRequestModifyOK) Error() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/requests/{index}][%d] multiAdminVerifyRequestModifyOK ", 200) } func (o *MultiAdminVerifyRequestModifyOK) String() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/requests/{index}][%d] multiAdminVerifyRequestModifyOK ", 200) } func (o *MultiAdminVerifyRequestModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { return nil } // NewMultiAdminVerifyRequestModifyDefault creates a MultiAdminVerifyRequestModifyDefault with default headers values func NewMultiAdminVerifyRequestModifyDefault(code int) *MultiAdminVerifyRequestModifyDefault { return &MultiAdminVerifyRequestModifyDefault{ _statusCode: code, } } /* MultiAdminVerifyRequestModifyDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 262309 | The feature must be enabled first. | | 262329 | Invalid state for PATCH. | */ type MultiAdminVerifyRequestModifyDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the multi admin verify request modify default response func (o *MultiAdminVerifyRequestModifyDefault) Code() int { return o._statusCode } // IsSuccess returns true when this multi admin verify request modify default response has a 2xx status code func (o *MultiAdminVerifyRequestModifyDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this multi admin verify request modify default response has a 3xx status code func (o *MultiAdminVerifyRequestModifyDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this multi admin verify request modify default response has a 4xx status code func (o *MultiAdminVerifyRequestModifyDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this multi admin verify request modify default response has a 5xx status code func (o *MultiAdminVerifyRequestModifyDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this multi admin verify request modify default response a status code equal to that given func (o *MultiAdminVerifyRequestModifyDefault) IsCode(code int) bool { return o._statusCode == code } func (o *MultiAdminVerifyRequestModifyDefault) Error() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/requests/{index}][%d] multi_admin_verify_request_modify default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRequestModifyDefault) String() string { return fmt.Sprintf("[PATCH /security/multi-admin-verify/requests/{index}][%d] multi_admin_verify_request_modify default %+v", o._statusCode, o.Payload) } func (o *MultiAdminVerifyRequestModifyDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *MultiAdminVerifyRequestModifyDefault) 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/security/role_collection_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_collection_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // RoleCollectionGetReader is a Reader for the RoleCollectionGet structure. type RoleCollectionGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *RoleCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewRoleCollectionGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewRoleCollectionGetDefault(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 } } // NewRoleCollectionGetOK creates a RoleCollectionGetOK with default headers values func NewRoleCollectionGetOK() *RoleCollectionGetOK { return &RoleCollectionGetOK{} } /* RoleCollectionGetOK describes a response with status code 200, with default header values. OK */ type RoleCollectionGetOK struct { Payload *models.RoleResponse } // IsSuccess returns true when this role collection get o k response has a 2xx status code func (o *RoleCollectionGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this role collection get o k response has a 3xx status code func (o *RoleCollectionGetOK) IsRedirect() bool { return false } // IsClientError returns true when this role collection get o k response has a 4xx status code func (o *RoleCollectionGetOK) IsClientError() bool { return false } // IsServerError returns true when this role collection get o k response has a 5xx status code func (o *RoleCollectionGetOK) IsServerError() bool { return false } // IsCode returns true when this role collection get o k response a status code equal to that given func (o *RoleCollectionGetOK) IsCode(code int) bool { return code == 200 } func (o *RoleCollectionGetOK) Error() string { return fmt.Sprintf("[GET /security/roles][%d] roleCollectionGetOK %+v", 200, o.Payload) } func (o *RoleCollectionGetOK) String() string { return fmt.Sprintf("[GET /security/roles][%d] roleCollectionGetOK %+v", 200, o.Payload) } func (o *RoleCollectionGetOK) GetPayload() *models.RoleResponse { return o.Payload } func (o *RoleCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.RoleResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewRoleCollectionGetDefault creates a RoleCollectionGetDefault with default headers values func NewRoleCollectionGetDefault(code int) *RoleCollectionGetDefault { return &RoleCollectionGetDefault{ _statusCode: code, } } /* RoleCollectionGetDefault describes a response with status code -1, with default header values. Error */ type RoleCollectionGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the role collection get default response func (o *RoleCollectionGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this role collection get default response has a 2xx status code func (o *RoleCollectionGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this role collection get default response has a 3xx status code func (o *RoleCollectionGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this role collection get default response has a 4xx status code func (o *RoleCollectionGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this role collection get default response has a 5xx status code func (o *RoleCollectionGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this role collection get default response a status code equal to that given func (o *RoleCollectionGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *RoleCollectionGetDefault) Error() string { return fmt.Sprintf("[GET /security/roles][%d] role_collection_get default %+v", o._statusCode, o.Payload) } func (o *RoleCollectionGetDefault) String() string { return fmt.Sprintf("[GET /security/roles][%d] role_collection_get default %+v", o._statusCode, o.Payload) } func (o *RoleCollectionGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *RoleCollectionGetDefault) 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/security/aws_kms_restore_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_restore_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // AwsKmsRestoreReader is a Reader for the AwsKmsRestore structure. type AwsKmsRestoreReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *AwsKmsRestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewAwsKmsRestoreAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewAwsKmsRestoreDefault(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 } } // NewAwsKmsRestoreAccepted creates a AwsKmsRestoreAccepted with default headers values func NewAwsKmsRestoreAccepted() *AwsKmsRestoreAccepted { return &AwsKmsRestoreAccepted{} } /* AwsKmsRestoreAccepted describes a response with status code 202, with default header values. Accepted */ type AwsKmsRestoreAccepted struct { /* Useful for tracking the resource location */ Location string } // IsSuccess returns true when this aws kms restore accepted response has a 2xx status code func (o *AwsKmsRestoreAccepted) IsSuccess() bool { return true } // IsRedirect returns true when this aws kms restore accepted response has a 3xx status code func (o *AwsKmsRestoreAccepted) IsRedirect() bool { return false } // IsClientError returns true when this aws kms restore accepted response has a 4xx status code func (o *AwsKmsRestoreAccepted) IsClientError() bool { return false } // IsServerError returns true when this aws kms restore accepted response has a 5xx status code func (o *AwsKmsRestoreAccepted) IsServerError() bool { return false } // IsCode returns true when this aws kms restore accepted response a status code equal to that given func (o *AwsKmsRestoreAccepted) IsCode(code int) bool { return code == 202 } func (o *AwsKmsRestoreAccepted) Error() string { return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/restore][%d] awsKmsRestoreAccepted ", 202) } func (o *AwsKmsRestoreAccepted) String() string { return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/restore][%d] awsKmsRestoreAccepted ", 202) } func (o *AwsKmsRestoreAccepted) 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 } // NewAwsKmsRestoreDefault creates a AwsKmsRestoreDefault with default headers values func NewAwsKmsRestoreDefault(code int) *AwsKmsRestoreDefault { return &AwsKmsRestoreDefault{ _statusCode: code, } } /* AwsKmsRestoreDefault describes a response with status code -1, with default header values. ONTAP Error Response Codes | Error Code | Description | | ---------- | ----------- | | 65536082 | Unable to restore all keys. | | 65537544 | Missing wrapped top-level internal key protection key (KEK) from internal database. | | 65537926 | The Amazon Web Service Key Management Service is not configured for the given SVM. | */ type AwsKmsRestoreDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the aws kms restore default response func (o *AwsKmsRestoreDefault) Code() int { return o._statusCode } // IsSuccess returns true when this aws kms restore default response has a 2xx status code func (o *AwsKmsRestoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this aws kms restore default response has a 3xx status code func (o *AwsKmsRestoreDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this aws kms restore default response has a 4xx status code func (o *AwsKmsRestoreDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this aws kms restore default response has a 5xx status code func (o *AwsKmsRestoreDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this aws kms restore default response a status code equal to that given func (o *AwsKmsRestoreDefault) IsCode(code int) bool { return o._statusCode == code } func (o *AwsKmsRestoreDefault) Error() string { return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/restore][%d] aws_kms_restore default %+v", o._statusCode, o.Payload) } func (o *AwsKmsRestoreDefault) String() string { return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/restore][%d] aws_kms_restore default %+v", o._statusCode, o.Payload) } func (o *AwsKmsRestoreDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *AwsKmsRestoreDefault) 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/security/multi_admin_verify_approval_group_collection_get_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_approval_group_collection_get_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewMultiAdminVerifyApprovalGroupCollectionGetParams creates a new MultiAdminVerifyApprovalGroupCollectionGetParams 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 NewMultiAdminVerifyApprovalGroupCollectionGetParams() *MultiAdminVerifyApprovalGroupCollectionGetParams { return &MultiAdminVerifyApprovalGroupCollectionGetParams{ timeout: cr.DefaultTimeout, } } // NewMultiAdminVerifyApprovalGroupCollectionGetParamsWithTimeout creates a new MultiAdminVerifyApprovalGroupCollectionGetParams object // with the ability to set a timeout on a request. func NewMultiAdminVerifyApprovalGroupCollectionGetParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupCollectionGetParams { return &MultiAdminVerifyApprovalGroupCollectionGetParams{ timeout: timeout, } } // NewMultiAdminVerifyApprovalGroupCollectionGetParamsWithContext creates a new MultiAdminVerifyApprovalGroupCollectionGetParams object // with the ability to set a context for a request. func NewMultiAdminVerifyApprovalGroupCollectionGetParamsWithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupCollectionGetParams { return &MultiAdminVerifyApprovalGroupCollectionGetParams{ Context: ctx, } } // NewMultiAdminVerifyApprovalGroupCollectionGetParamsWithHTTPClient creates a new MultiAdminVerifyApprovalGroupCollectionGetParams object // with the ability to set a custom HTTPClient for a request. func NewMultiAdminVerifyApprovalGroupCollectionGetParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupCollectionGetParams { return &MultiAdminVerifyApprovalGroupCollectionGetParams{ HTTPClient: client, } } /* MultiAdminVerifyApprovalGroupCollectionGetParams contains all the parameters to send to the API endpoint for the multi admin verify approval group collection get operation. Typically these are written to a http.Request. */ type MultiAdminVerifyApprovalGroupCollectionGetParams struct { /* Approvers. Filter by approvers */ Approvers *string /* Email. Filter by email */ Email *string /* Fields. Specify the fields to return. */ Fields []string /* MaxRecords. Limit the number of records returned. */ MaxRecords *int64 /* Name. Filter by name */ Name *string /* OrderBy. Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending. */ OrderBy []string /* OwnerName. Filter by owner.name */ OwnerName *string /* OwnerUUID. Filter by owner.uuid */ OwnerUUID *string /* ReturnRecords. The default is true for GET calls. When set to false, only the number of records is returned. Default: true */ ReturnRecords *bool /* ReturnTimeout. The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. Default: 15 */ ReturnTimeout *int64 timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the multi admin verify approval group collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithDefaults() *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the multi admin verify approval group collection get params (not the query body). // // All values with no default are reset to their zero value. func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetDefaults() { var ( returnRecordsDefault = bool(true) returnTimeoutDefault = int64(15) ) val := MultiAdminVerifyApprovalGroupCollectionGetParams{ ReturnRecords: &returnRecordsDefault, ReturnTimeout: &returnTimeoutDefault, } val.timeout = o.timeout val.Context = o.Context val.HTTPClient = o.HTTPClient *o = val } // WithTimeout adds the timeout to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetContext(ctx) return o } // SetContext adds the context to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithApprovers adds the approvers to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithApprovers(approvers *string) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetApprovers(approvers) return o } // SetApprovers adds the approvers to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetApprovers(approvers *string) { o.Approvers = approvers } // WithEmail adds the email to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithEmail(email *string) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetEmail(email) return o } // SetEmail adds the email to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetEmail(email *string) { o.Email = email } // WithFields adds the fields to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithFields(fields []string) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetFields(fields) return o } // SetFields adds the fields to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetFields(fields []string) { o.Fields = fields } // WithMaxRecords adds the maxRecords to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithMaxRecords(maxRecords *int64) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetMaxRecords(maxRecords) return o } // SetMaxRecords adds the maxRecords to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetMaxRecords(maxRecords *int64) { o.MaxRecords = maxRecords } // WithName adds the name to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithName(name *string) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetName(name) return o } // SetName adds the name to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetName(name *string) { o.Name = name } // WithOrderBy adds the orderBy to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithOrderBy(orderBy []string) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetOrderBy(orderBy) return o } // SetOrderBy adds the orderBy to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetOrderBy(orderBy []string) { o.OrderBy = orderBy } // WithOwnerName adds the ownerName to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithOwnerName(ownerName *string) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetOwnerName(ownerName) return o } // SetOwnerName adds the ownerName to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetOwnerName(ownerName *string) { o.OwnerName = ownerName } // WithOwnerUUID adds the ownerUUID to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithOwnerUUID(ownerUUID *string) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetOwnerUUID(ownerUUID) return o } // SetOwnerUUID adds the ownerUuid to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetOwnerUUID(ownerUUID *string) { o.OwnerUUID = ownerUUID } // WithReturnRecords adds the returnRecords to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithReturnRecords(returnRecords *bool) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetReturnRecords(returnRecords) return o } // SetReturnRecords adds the returnRecords to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetReturnRecords(returnRecords *bool) { o.ReturnRecords = returnRecords } // WithReturnTimeout adds the returnTimeout to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *MultiAdminVerifyApprovalGroupCollectionGetParams { o.SetReturnTimeout(returnTimeout) return o } // SetReturnTimeout adds the returnTimeout to the multi admin verify approval group collection get params func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) SetReturnTimeout(returnTimeout *int64) { o.ReturnTimeout = returnTimeout } // WriteToRequest writes these params to a swagger request func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Approvers != nil { // query param approvers var qrApprovers string if o.Approvers != nil { qrApprovers = *o.Approvers } qApprovers := qrApprovers if qApprovers != "" { if err := r.SetQueryParam("approvers", qApprovers); err != nil { return err } } } if o.Email != nil { // query param email var qrEmail string if o.Email != nil { qrEmail = *o.Email } qEmail := qrEmail if qEmail != "" { if err := r.SetQueryParam("email", qEmail); err != nil { return err } } } if o.Fields != nil { // binding items for fields joinedFields := o.bindParamFields(reg) // query array param fields if err := r.SetQueryParam("fields", joinedFields...); err != nil { return err } } if o.MaxRecords != nil { // query param max_records var qrMaxRecords int64 if o.MaxRecords != nil { qrMaxRecords = *o.MaxRecords } qMaxRecords := swag.FormatInt64(qrMaxRecords) if qMaxRecords != "" { if err := r.SetQueryParam("max_records", qMaxRecords); err != nil { return err } } } if o.Name != nil { // query param name var qrName string if o.Name != nil { qrName = *o.Name } qName := qrName if qName != "" { if err := r.SetQueryParam("name", qName); err != nil { return err } } } if o.OrderBy != nil { // binding items for order_by joinedOrderBy := o.bindParamOrderBy(reg) // query array param order_by if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil { return err } } if o.OwnerName != nil { // query param owner.name var qrOwnerName string if o.OwnerName != nil { qrOwnerName = *o.OwnerName } qOwnerName := qrOwnerName if qOwnerName != "" { if err := r.SetQueryParam("owner.name", qOwnerName); err != nil { return err } } } if o.OwnerUUID != nil { // query param owner.uuid var qrOwnerUUID string if o.OwnerUUID != nil { qrOwnerUUID = *o.OwnerUUID } qOwnerUUID := qrOwnerUUID if qOwnerUUID != "" { if err := r.SetQueryParam("owner.uuid", qOwnerUUID); 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 } // bindParamMultiAdminVerifyApprovalGroupCollectionGet binds the parameter fields func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) 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 } // bindParamMultiAdminVerifyApprovalGroupCollectionGet binds the parameter order_by func (o *MultiAdminVerifyApprovalGroupCollectionGetParams) 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/security/ipsec_policy_modify_parameters.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_modify_parameters.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // NewIpsecPolicyModifyParams creates a new IpsecPolicyModifyParams 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 NewIpsecPolicyModifyParams() *IpsecPolicyModifyParams { return &IpsecPolicyModifyParams{ timeout: cr.DefaultTimeout, } } // NewIpsecPolicyModifyParamsWithTimeout creates a new IpsecPolicyModifyParams object // with the ability to set a timeout on a request. func NewIpsecPolicyModifyParamsWithTimeout(timeout time.Duration) *IpsecPolicyModifyParams { return &IpsecPolicyModifyParams{ timeout: timeout, } } // NewIpsecPolicyModifyParamsWithContext creates a new IpsecPolicyModifyParams object // with the ability to set a context for a request. func NewIpsecPolicyModifyParamsWithContext(ctx context.Context) *IpsecPolicyModifyParams { return &IpsecPolicyModifyParams{ Context: ctx, } } // NewIpsecPolicyModifyParamsWithHTTPClient creates a new IpsecPolicyModifyParams object // with the ability to set a custom HTTPClient for a request. func NewIpsecPolicyModifyParamsWithHTTPClient(client *http.Client) *IpsecPolicyModifyParams { return &IpsecPolicyModifyParams{ HTTPClient: client, } } /* IpsecPolicyModifyParams contains all the parameters to send to the API endpoint for the ipsec policy modify operation. Typically these are written to a http.Request. */ type IpsecPolicyModifyParams struct { // Info. Info *models.IpsecPolicy /* UUID. IPsec policy UUID */ UUID string timeout time.Duration Context context.Context HTTPClient *http.Client } // WithDefaults hydrates default values in the ipsec policy modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyModifyParams) WithDefaults() *IpsecPolicyModifyParams { o.SetDefaults() return o } // SetDefaults hydrates default values in the ipsec policy modify params (not the query body). // // All values with no default are reset to their zero value. func (o *IpsecPolicyModifyParams) SetDefaults() { // no default values defined for this parameter } // WithTimeout adds the timeout to the ipsec policy modify params func (o *IpsecPolicyModifyParams) WithTimeout(timeout time.Duration) *IpsecPolicyModifyParams { o.SetTimeout(timeout) return o } // SetTimeout adds the timeout to the ipsec policy modify params func (o *IpsecPolicyModifyParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } // WithContext adds the context to the ipsec policy modify params func (o *IpsecPolicyModifyParams) WithContext(ctx context.Context) *IpsecPolicyModifyParams { o.SetContext(ctx) return o } // SetContext adds the context to the ipsec policy modify params func (o *IpsecPolicyModifyParams) SetContext(ctx context.Context) { o.Context = ctx } // WithHTTPClient adds the HTTPClient to the ipsec policy modify params func (o *IpsecPolicyModifyParams) WithHTTPClient(client *http.Client) *IpsecPolicyModifyParams { o.SetHTTPClient(client) return o } // SetHTTPClient adds the HTTPClient to the ipsec policy modify params func (o *IpsecPolicyModifyParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } // WithInfo adds the info to the ipsec policy modify params func (o *IpsecPolicyModifyParams) WithInfo(info *models.IpsecPolicy) *IpsecPolicyModifyParams { o.SetInfo(info) return o } // SetInfo adds the info to the ipsec policy modify params func (o *IpsecPolicyModifyParams) SetInfo(info *models.IpsecPolicy) { o.Info = info } // WithUUID adds the uuid to the ipsec policy modify params func (o *IpsecPolicyModifyParams) WithUUID(uuid string) *IpsecPolicyModifyParams { o.SetUUID(uuid) return o } // SetUUID adds the uuid to the ipsec policy modify params func (o *IpsecPolicyModifyParams) SetUUID(uuid string) { o.UUID = uuid } // WriteToRequest writes these params to a swagger request func (o *IpsecPolicyModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Info != nil { if err := r.SetBodyParam(o.Info); err != nil { return err } } // path param uuid if err := r.SetPathParam("uuid", o.UUID); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
go
Apache-2.0
b3b4703e958c25d54c4d48138d9e80ae32fadac3
2026-01-07T09:44:30.792320Z
false
kubev2v/forklift
https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_get_responses.go
cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_get_responses.go
// Code generated by go-swagger; DO NOT EDIT. package security // 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" ) // ClusterAccountAdProxyGetReader is a Reader for the ClusterAccountAdProxyGet structure. type ClusterAccountAdProxyGetReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ClusterAccountAdProxyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewClusterAccountAdProxyGetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewClusterAccountAdProxyGetDefault(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 } } // NewClusterAccountAdProxyGetOK creates a ClusterAccountAdProxyGetOK with default headers values func NewClusterAccountAdProxyGetOK() *ClusterAccountAdProxyGetOK { return &ClusterAccountAdProxyGetOK{} } /* ClusterAccountAdProxyGetOK describes a response with status code 200, with default header values. OK */ type ClusterAccountAdProxyGetOK struct { Payload *models.ClusterAdProxy } // IsSuccess returns true when this cluster account ad proxy get o k response has a 2xx status code func (o *ClusterAccountAdProxyGetOK) IsSuccess() bool { return true } // IsRedirect returns true when this cluster account ad proxy get o k response has a 3xx status code func (o *ClusterAccountAdProxyGetOK) IsRedirect() bool { return false } // IsClientError returns true when this cluster account ad proxy get o k response has a 4xx status code func (o *ClusterAccountAdProxyGetOK) IsClientError() bool { return false } // IsServerError returns true when this cluster account ad proxy get o k response has a 5xx status code func (o *ClusterAccountAdProxyGetOK) IsServerError() bool { return false } // IsCode returns true when this cluster account ad proxy get o k response a status code equal to that given func (o *ClusterAccountAdProxyGetOK) IsCode(code int) bool { return code == 200 } func (o *ClusterAccountAdProxyGetOK) Error() string { return fmt.Sprintf("[GET /security/authentication/cluster/ad-proxy][%d] clusterAccountAdProxyGetOK %+v", 200, o.Payload) } func (o *ClusterAccountAdProxyGetOK) String() string { return fmt.Sprintf("[GET /security/authentication/cluster/ad-proxy][%d] clusterAccountAdProxyGetOK %+v", 200, o.Payload) } func (o *ClusterAccountAdProxyGetOK) GetPayload() *models.ClusterAdProxy { return o.Payload } func (o *ClusterAccountAdProxyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ClusterAdProxy) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewClusterAccountAdProxyGetDefault creates a ClusterAccountAdProxyGetDefault with default headers values func NewClusterAccountAdProxyGetDefault(code int) *ClusterAccountAdProxyGetDefault { return &ClusterAccountAdProxyGetDefault{ _statusCode: code, } } /* ClusterAccountAdProxyGetDefault describes a response with status code -1, with default header values. Error */ type ClusterAccountAdProxyGetDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the cluster account ad proxy get default response func (o *ClusterAccountAdProxyGetDefault) Code() int { return o._statusCode } // IsSuccess returns true when this cluster account ad proxy get default response has a 2xx status code func (o *ClusterAccountAdProxyGetDefault) IsSuccess() bool { return o._statusCode/100 == 2 } // IsRedirect returns true when this cluster account ad proxy get default response has a 3xx status code func (o *ClusterAccountAdProxyGetDefault) IsRedirect() bool { return o._statusCode/100 == 3 } // IsClientError returns true when this cluster account ad proxy get default response has a 4xx status code func (o *ClusterAccountAdProxyGetDefault) IsClientError() bool { return o._statusCode/100 == 4 } // IsServerError returns true when this cluster account ad proxy get default response has a 5xx status code func (o *ClusterAccountAdProxyGetDefault) IsServerError() bool { return o._statusCode/100 == 5 } // IsCode returns true when this cluster account ad proxy get default response a status code equal to that given func (o *ClusterAccountAdProxyGetDefault) IsCode(code int) bool { return o._statusCode == code } func (o *ClusterAccountAdProxyGetDefault) Error() string { return fmt.Sprintf("[GET /security/authentication/cluster/ad-proxy][%d] cluster_account_ad_proxy_get default %+v", o._statusCode, o.Payload) } func (o *ClusterAccountAdProxyGetDefault) String() string { return fmt.Sprintf("[GET /security/authentication/cluster/ad-proxy][%d] cluster_account_ad_proxy_get default %+v", o._statusCode, o.Payload) } func (o *ClusterAccountAdProxyGetDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *ClusterAccountAdProxyGetDefault) 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