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/svm_ssh_server_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/svm_ssh_server_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"
)
// SvmSSHServerCollectionGetReader is a Reader for the SvmSSHServerCollectionGet structure.
type SvmSSHServerCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SvmSSHServerCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSvmSSHServerCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSvmSSHServerCollectionGetDefault(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
}
}
// NewSvmSSHServerCollectionGetOK creates a SvmSSHServerCollectionGetOK with default headers values
func NewSvmSSHServerCollectionGetOK() *SvmSSHServerCollectionGetOK {
return &SvmSSHServerCollectionGetOK{}
}
/*
SvmSSHServerCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type SvmSSHServerCollectionGetOK struct {
Payload *models.SvmSSHServerResponse
}
// IsSuccess returns true when this svm Ssh server collection get o k response has a 2xx status code
func (o *SvmSSHServerCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this svm Ssh server collection get o k response has a 3xx status code
func (o *SvmSSHServerCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this svm Ssh server collection get o k response has a 4xx status code
func (o *SvmSSHServerCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this svm Ssh server collection get o k response has a 5xx status code
func (o *SvmSSHServerCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this svm Ssh server collection get o k response a status code equal to that given
func (o *SvmSSHServerCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SvmSSHServerCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/ssh/svms][%d] svmSshServerCollectionGetOK %+v", 200, o.Payload)
}
func (o *SvmSSHServerCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/ssh/svms][%d] svmSshServerCollectionGetOK %+v", 200, o.Payload)
}
func (o *SvmSSHServerCollectionGetOK) GetPayload() *models.SvmSSHServerResponse {
return o.Payload
}
func (o *SvmSSHServerCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SvmSSHServerResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSvmSSHServerCollectionGetDefault creates a SvmSSHServerCollectionGetDefault with default headers values
func NewSvmSSHServerCollectionGetDefault(code int) *SvmSSHServerCollectionGetDefault {
return &SvmSSHServerCollectionGetDefault{
_statusCode: code,
}
}
/*
SvmSSHServerCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type SvmSSHServerCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the svm ssh server collection get default response
func (o *SvmSSHServerCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this svm ssh server collection get default response has a 2xx status code
func (o *SvmSSHServerCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this svm ssh server collection get default response has a 3xx status code
func (o *SvmSSHServerCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this svm ssh server collection get default response has a 4xx status code
func (o *SvmSSHServerCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this svm ssh server collection get default response has a 5xx status code
func (o *SvmSSHServerCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this svm ssh server collection get default response a status code equal to that given
func (o *SvmSSHServerCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SvmSSHServerCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/ssh/svms][%d] svm_ssh_server_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SvmSSHServerCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/ssh/svms][%d] svm_ssh_server_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SvmSSHServerCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SvmSSHServerCollectionGetDefault) 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_saml_sp_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// NewSecuritySamlSpCreateParams creates a new SecuritySamlSpCreateParams 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 NewSecuritySamlSpCreateParams() *SecuritySamlSpCreateParams {
return &SecuritySamlSpCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecuritySamlSpCreateParamsWithTimeout creates a new SecuritySamlSpCreateParams object
// with the ability to set a timeout on a request.
func NewSecuritySamlSpCreateParamsWithTimeout(timeout time.Duration) *SecuritySamlSpCreateParams {
return &SecuritySamlSpCreateParams{
timeout: timeout,
}
}
// NewSecuritySamlSpCreateParamsWithContext creates a new SecuritySamlSpCreateParams object
// with the ability to set a context for a request.
func NewSecuritySamlSpCreateParamsWithContext(ctx context.Context) *SecuritySamlSpCreateParams {
return &SecuritySamlSpCreateParams{
Context: ctx,
}
}
// NewSecuritySamlSpCreateParamsWithHTTPClient creates a new SecuritySamlSpCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecuritySamlSpCreateParamsWithHTTPClient(client *http.Client) *SecuritySamlSpCreateParams {
return &SecuritySamlSpCreateParams{
HTTPClient: client,
}
}
/*
SecuritySamlSpCreateParams contains all the parameters to send to the API endpoint
for the security saml sp create operation.
Typically these are written to a http.Request.
*/
type SecuritySamlSpCreateParams struct {
/* Info.
Information specification
*/
Info *models.SecuritySamlSp
/* 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
/* VerifyMetadataServer.
Verify IdP metadata server identity.
Default: true
*/
VerifyMetadataServer *bool
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security saml sp create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpCreateParams) WithDefaults() *SecuritySamlSpCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security saml sp create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpCreateParams) SetDefaults() {
var (
returnTimeoutDefault = int64(0)
verifyMetadataServerDefault = bool(true)
)
val := SecuritySamlSpCreateParams{
ReturnTimeout: &returnTimeoutDefault,
VerifyMetadataServer: &verifyMetadataServerDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the security saml sp create params
func (o *SecuritySamlSpCreateParams) WithTimeout(timeout time.Duration) *SecuritySamlSpCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security saml sp create params
func (o *SecuritySamlSpCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security saml sp create params
func (o *SecuritySamlSpCreateParams) WithContext(ctx context.Context) *SecuritySamlSpCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security saml sp create params
func (o *SecuritySamlSpCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security saml sp create params
func (o *SecuritySamlSpCreateParams) WithHTTPClient(client *http.Client) *SecuritySamlSpCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security saml sp create params
func (o *SecuritySamlSpCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security saml sp create params
func (o *SecuritySamlSpCreateParams) WithInfo(info *models.SecuritySamlSp) *SecuritySamlSpCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security saml sp create params
func (o *SecuritySamlSpCreateParams) SetInfo(info *models.SecuritySamlSp) {
o.Info = info
}
// WithReturnTimeout adds the returnTimeout to the security saml sp create params
func (o *SecuritySamlSpCreateParams) WithReturnTimeout(returnTimeout *int64) *SecuritySamlSpCreateParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the security saml sp create params
func (o *SecuritySamlSpCreateParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithVerifyMetadataServer adds the verifyMetadataServer to the security saml sp create params
func (o *SecuritySamlSpCreateParams) WithVerifyMetadataServer(verifyMetadataServer *bool) *SecuritySamlSpCreateParams {
o.SetVerifyMetadataServer(verifyMetadataServer)
return o
}
// SetVerifyMetadataServer adds the verifyMetadataServer to the security saml sp create params
func (o *SecuritySamlSpCreateParams) SetVerifyMetadataServer(verifyMetadataServer *bool) {
o.VerifyMetadataServer = verifyMetadataServer
}
// WriteToRequest writes these params to a swagger request
func (o *SecuritySamlSpCreateParams) 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 o.VerifyMetadataServer != nil {
// query param verify_metadata_server
var qrVerifyMetadataServer bool
if o.VerifyMetadataServer != nil {
qrVerifyMetadataServer = *o.VerifyMetadataServer
}
qVerifyMetadataServer := swag.FormatBool(qrVerifyMetadataServer)
if qVerifyMetadataServer != "" {
if err := r.SetQueryParam("verify_metadata_server", qVerifyMetadataServer); 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_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/publickey_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"
)
// NewPublickeyCreateParams creates a new PublickeyCreateParams 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 NewPublickeyCreateParams() *PublickeyCreateParams {
return &PublickeyCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewPublickeyCreateParamsWithTimeout creates a new PublickeyCreateParams object
// with the ability to set a timeout on a request.
func NewPublickeyCreateParamsWithTimeout(timeout time.Duration) *PublickeyCreateParams {
return &PublickeyCreateParams{
timeout: timeout,
}
}
// NewPublickeyCreateParamsWithContext creates a new PublickeyCreateParams object
// with the ability to set a context for a request.
func NewPublickeyCreateParamsWithContext(ctx context.Context) *PublickeyCreateParams {
return &PublickeyCreateParams{
Context: ctx,
}
}
// NewPublickeyCreateParamsWithHTTPClient creates a new PublickeyCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewPublickeyCreateParamsWithHTTPClient(client *http.Client) *PublickeyCreateParams {
return &PublickeyCreateParams{
HTTPClient: client,
}
}
/*
PublickeyCreateParams contains all the parameters to send to the API endpoint
for the publickey create operation.
Typically these are written to a http.Request.
*/
type PublickeyCreateParams struct {
/* Info.
The public key details for the user account.
*/
Info *models.Publickey
/* 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 publickey create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PublickeyCreateParams) WithDefaults() *PublickeyCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the publickey create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PublickeyCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := PublickeyCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the publickey create params
func (o *PublickeyCreateParams) WithTimeout(timeout time.Duration) *PublickeyCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the publickey create params
func (o *PublickeyCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the publickey create params
func (o *PublickeyCreateParams) WithContext(ctx context.Context) *PublickeyCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the publickey create params
func (o *PublickeyCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the publickey create params
func (o *PublickeyCreateParams) WithHTTPClient(client *http.Client) *PublickeyCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the publickey create params
func (o *PublickeyCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the publickey create params
func (o *PublickeyCreateParams) WithInfo(info *models.Publickey) *PublickeyCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the publickey create params
func (o *PublickeyCreateParams) SetInfo(info *models.Publickey) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the publickey create params
func (o *PublickeyCreateParams) WithReturnRecords(returnRecords *bool) *PublickeyCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the publickey create params
func (o *PublickeyCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *PublickeyCreateParams) 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_audit_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_audit_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"
)
// NewSecurityAuditModifyParams creates a new SecurityAuditModifyParams 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 NewSecurityAuditModifyParams() *SecurityAuditModifyParams {
return &SecurityAuditModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityAuditModifyParamsWithTimeout creates a new SecurityAuditModifyParams object
// with the ability to set a timeout on a request.
func NewSecurityAuditModifyParamsWithTimeout(timeout time.Duration) *SecurityAuditModifyParams {
return &SecurityAuditModifyParams{
timeout: timeout,
}
}
// NewSecurityAuditModifyParamsWithContext creates a new SecurityAuditModifyParams object
// with the ability to set a context for a request.
func NewSecurityAuditModifyParamsWithContext(ctx context.Context) *SecurityAuditModifyParams {
return &SecurityAuditModifyParams{
Context: ctx,
}
}
// NewSecurityAuditModifyParamsWithHTTPClient creates a new SecurityAuditModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityAuditModifyParamsWithHTTPClient(client *http.Client) *SecurityAuditModifyParams {
return &SecurityAuditModifyParams{
HTTPClient: client,
}
}
/*
SecurityAuditModifyParams contains all the parameters to send to the API endpoint
for the security audit modify operation.
Typically these are written to a http.Request.
*/
type SecurityAuditModifyParams struct {
/* Info.
Info specification
*/
Info *models.SecurityAudit
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security audit modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityAuditModifyParams) WithDefaults() *SecurityAuditModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security audit modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityAuditModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security audit modify params
func (o *SecurityAuditModifyParams) WithTimeout(timeout time.Duration) *SecurityAuditModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security audit modify params
func (o *SecurityAuditModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security audit modify params
func (o *SecurityAuditModifyParams) WithContext(ctx context.Context) *SecurityAuditModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security audit modify params
func (o *SecurityAuditModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security audit modify params
func (o *SecurityAuditModifyParams) WithHTTPClient(client *http.Client) *SecurityAuditModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security audit modify params
func (o *SecurityAuditModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security audit modify params
func (o *SecurityAuditModifyParams) WithInfo(info *models.SecurityAudit) *SecurityAuditModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security audit modify params
func (o *SecurityAuditModifyParams) SetInfo(info *models.SecurityAudit) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityAuditModifyParams) 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/cluster_ldap_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_ldap_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"
)
// ClusterLdapDeleteReader is a Reader for the ClusterLdapDelete structure.
type ClusterLdapDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ClusterLdapDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewClusterLdapDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewClusterLdapDeleteDefault(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
}
}
// NewClusterLdapDeleteOK creates a ClusterLdapDeleteOK with default headers values
func NewClusterLdapDeleteOK() *ClusterLdapDeleteOK {
return &ClusterLdapDeleteOK{}
}
/*
ClusterLdapDeleteOK describes a response with status code 200, with default header values.
OK
*/
type ClusterLdapDeleteOK struct {
}
// IsSuccess returns true when this cluster ldap delete o k response has a 2xx status code
func (o *ClusterLdapDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cluster ldap delete o k response has a 3xx status code
func (o *ClusterLdapDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cluster ldap delete o k response has a 4xx status code
func (o *ClusterLdapDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cluster ldap delete o k response has a 5xx status code
func (o *ClusterLdapDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this cluster ldap delete o k response a status code equal to that given
func (o *ClusterLdapDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *ClusterLdapDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ldap][%d] clusterLdapDeleteOK ", 200)
}
func (o *ClusterLdapDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ldap][%d] clusterLdapDeleteOK ", 200)
}
func (o *ClusterLdapDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewClusterLdapDeleteDefault creates a ClusterLdapDeleteDefault with default headers values
func NewClusterLdapDeleteDefault(code int) *ClusterLdapDeleteDefault {
return &ClusterLdapDeleteDefault{
_statusCode: code,
}
}
/*
ClusterLdapDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type ClusterLdapDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cluster ldap delete default response
func (o *ClusterLdapDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cluster ldap delete default response has a 2xx status code
func (o *ClusterLdapDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cluster ldap delete default response has a 3xx status code
func (o *ClusterLdapDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cluster ldap delete default response has a 4xx status code
func (o *ClusterLdapDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cluster ldap delete default response has a 5xx status code
func (o *ClusterLdapDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cluster ldap delete default response a status code equal to that given
func (o *ClusterLdapDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ClusterLdapDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ldap][%d] cluster_ldap_delete default %+v", o._statusCode, o.Payload)
}
func (o *ClusterLdapDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ldap][%d] cluster_ldap_delete default %+v", o._statusCode, o.Payload)
}
func (o *ClusterLdapDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ClusterLdapDeleteDefault) 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_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_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"
)
// AccountGetReader is a Reader for the AccountGet structure.
type AccountGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AccountGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAccountGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAccountGetDefault(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
}
}
// NewAccountGetOK creates a AccountGetOK with default headers values
func NewAccountGetOK() *AccountGetOK {
return &AccountGetOK{}
}
/*
AccountGetOK describes a response with status code 200, with default header values.
OK
*/
type AccountGetOK struct {
Payload *models.Account
}
// IsSuccess returns true when this account get o k response has a 2xx status code
func (o *AccountGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this account get o k response has a 3xx status code
func (o *AccountGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this account get o k response has a 4xx status code
func (o *AccountGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this account get o k response has a 5xx status code
func (o *AccountGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this account get o k response a status code equal to that given
func (o *AccountGetOK) IsCode(code int) bool {
return code == 200
}
func (o *AccountGetOK) Error() string {
return fmt.Sprintf("[GET /security/accounts/{owner.uuid}/{name}][%d] accountGetOK %+v", 200, o.Payload)
}
func (o *AccountGetOK) String() string {
return fmt.Sprintf("[GET /security/accounts/{owner.uuid}/{name}][%d] accountGetOK %+v", 200, o.Payload)
}
func (o *AccountGetOK) GetPayload() *models.Account {
return o.Payload
}
func (o *AccountGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.Account)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAccountGetDefault creates a AccountGetDefault with default headers values
func NewAccountGetDefault(code int) *AccountGetDefault {
return &AccountGetDefault{
_statusCode: code,
}
}
/*
AccountGetDefault describes a response with status code -1, with default header values.
Error
*/
type AccountGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the account get default response
func (o *AccountGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this account get default response has a 2xx status code
func (o *AccountGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this account get default response has a 3xx status code
func (o *AccountGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this account get default response has a 4xx status code
func (o *AccountGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this account get default response has a 5xx status code
func (o *AccountGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this account get default response a status code equal to that given
func (o *AccountGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AccountGetDefault) Error() string {
return fmt.Sprintf("[GET /security/accounts/{owner.uuid}/{name}][%d] account_get default %+v", o._statusCode, o.Payload)
}
func (o *AccountGetDefault) String() string {
return fmt.Sprintf("[GET /security/accounts/{owner.uuid}/{name}][%d] account_get default %+v", o._statusCode, o.Payload)
}
func (o *AccountGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AccountGetDefault) 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_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// NewAzureKeyVaultCreateParams creates a new AzureKeyVaultCreateParams 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 NewAzureKeyVaultCreateParams() *AzureKeyVaultCreateParams {
return &AzureKeyVaultCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewAzureKeyVaultCreateParamsWithTimeout creates a new AzureKeyVaultCreateParams object
// with the ability to set a timeout on a request.
func NewAzureKeyVaultCreateParamsWithTimeout(timeout time.Duration) *AzureKeyVaultCreateParams {
return &AzureKeyVaultCreateParams{
timeout: timeout,
}
}
// NewAzureKeyVaultCreateParamsWithContext creates a new AzureKeyVaultCreateParams object
// with the ability to set a context for a request.
func NewAzureKeyVaultCreateParamsWithContext(ctx context.Context) *AzureKeyVaultCreateParams {
return &AzureKeyVaultCreateParams{
Context: ctx,
}
}
// NewAzureKeyVaultCreateParamsWithHTTPClient creates a new AzureKeyVaultCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewAzureKeyVaultCreateParamsWithHTTPClient(client *http.Client) *AzureKeyVaultCreateParams {
return &AzureKeyVaultCreateParams{
HTTPClient: client,
}
}
/*
AzureKeyVaultCreateParams contains all the parameters to send to the API endpoint
for the azure key vault create operation.
Typically these are written to a http.Request.
*/
type AzureKeyVaultCreateParams struct {
/* Info.
Info specification
*/
Info *models.AzureKeyVault
/* 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 azure key vault create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultCreateParams) WithDefaults() *AzureKeyVaultCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the azure key vault create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := AzureKeyVaultCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the azure key vault create params
func (o *AzureKeyVaultCreateParams) WithTimeout(timeout time.Duration) *AzureKeyVaultCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the azure key vault create params
func (o *AzureKeyVaultCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the azure key vault create params
func (o *AzureKeyVaultCreateParams) WithContext(ctx context.Context) *AzureKeyVaultCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the azure key vault create params
func (o *AzureKeyVaultCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the azure key vault create params
func (o *AzureKeyVaultCreateParams) WithHTTPClient(client *http.Client) *AzureKeyVaultCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the azure key vault create params
func (o *AzureKeyVaultCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the azure key vault create params
func (o *AzureKeyVaultCreateParams) WithInfo(info *models.AzureKeyVault) *AzureKeyVaultCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the azure key vault create params
func (o *AzureKeyVaultCreateParams) SetInfo(info *models.AzureKeyVault) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the azure key vault create params
func (o *AzureKeyVaultCreateParams) WithReturnRecords(returnRecords *bool) *AzureKeyVaultCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the azure key vault create params
func (o *AzureKeyVaultCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *AzureKeyVaultCreateParams) 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/cluster_ldap_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_ldap_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"
)
// NewClusterLdapModifyParams creates a new ClusterLdapModifyParams 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 NewClusterLdapModifyParams() *ClusterLdapModifyParams {
return &ClusterLdapModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewClusterLdapModifyParamsWithTimeout creates a new ClusterLdapModifyParams object
// with the ability to set a timeout on a request.
func NewClusterLdapModifyParamsWithTimeout(timeout time.Duration) *ClusterLdapModifyParams {
return &ClusterLdapModifyParams{
timeout: timeout,
}
}
// NewClusterLdapModifyParamsWithContext creates a new ClusterLdapModifyParams object
// with the ability to set a context for a request.
func NewClusterLdapModifyParamsWithContext(ctx context.Context) *ClusterLdapModifyParams {
return &ClusterLdapModifyParams{
Context: ctx,
}
}
// NewClusterLdapModifyParamsWithHTTPClient creates a new ClusterLdapModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewClusterLdapModifyParamsWithHTTPClient(client *http.Client) *ClusterLdapModifyParams {
return &ClusterLdapModifyParams{
HTTPClient: client,
}
}
/*
ClusterLdapModifyParams contains all the parameters to send to the API endpoint
for the cluster ldap modify operation.
Typically these are written to a http.Request.
*/
type ClusterLdapModifyParams struct {
/* Info.
Information specification
*/
Info *models.ClusterLdap
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cluster ldap modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterLdapModifyParams) WithDefaults() *ClusterLdapModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cluster ldap modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterLdapModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cluster ldap modify params
func (o *ClusterLdapModifyParams) WithTimeout(timeout time.Duration) *ClusterLdapModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cluster ldap modify params
func (o *ClusterLdapModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cluster ldap modify params
func (o *ClusterLdapModifyParams) WithContext(ctx context.Context) *ClusterLdapModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cluster ldap modify params
func (o *ClusterLdapModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cluster ldap modify params
func (o *ClusterLdapModifyParams) WithHTTPClient(client *http.Client) *ClusterLdapModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cluster ldap modify params
func (o *ClusterLdapModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cluster ldap modify params
func (o *ClusterLdapModifyParams) WithInfo(info *models.ClusterLdap) *ClusterLdapModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cluster ldap modify params
func (o *ClusterLdapModifyParams) SetInfo(info *models.ClusterLdap) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *ClusterLdapModifyParams) 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/security_certificate_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_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"
)
// NewSecurityCertificateDeleteParams creates a new SecurityCertificateDeleteParams 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 NewSecurityCertificateDeleteParams() *SecurityCertificateDeleteParams {
return &SecurityCertificateDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityCertificateDeleteParamsWithTimeout creates a new SecurityCertificateDeleteParams object
// with the ability to set a timeout on a request.
func NewSecurityCertificateDeleteParamsWithTimeout(timeout time.Duration) *SecurityCertificateDeleteParams {
return &SecurityCertificateDeleteParams{
timeout: timeout,
}
}
// NewSecurityCertificateDeleteParamsWithContext creates a new SecurityCertificateDeleteParams object
// with the ability to set a context for a request.
func NewSecurityCertificateDeleteParamsWithContext(ctx context.Context) *SecurityCertificateDeleteParams {
return &SecurityCertificateDeleteParams{
Context: ctx,
}
}
// NewSecurityCertificateDeleteParamsWithHTTPClient creates a new SecurityCertificateDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityCertificateDeleteParamsWithHTTPClient(client *http.Client) *SecurityCertificateDeleteParams {
return &SecurityCertificateDeleteParams{
HTTPClient: client,
}
}
/*
SecurityCertificateDeleteParams contains all the parameters to send to the API endpoint
for the security certificate delete operation.
Typically these are written to a http.Request.
*/
type SecurityCertificateDeleteParams struct {
/* UUID.
Certificate UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security certificate delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityCertificateDeleteParams) WithDefaults() *SecurityCertificateDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security certificate delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityCertificateDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security certificate delete params
func (o *SecurityCertificateDeleteParams) WithTimeout(timeout time.Duration) *SecurityCertificateDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security certificate delete params
func (o *SecurityCertificateDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security certificate delete params
func (o *SecurityCertificateDeleteParams) WithContext(ctx context.Context) *SecurityCertificateDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security certificate delete params
func (o *SecurityCertificateDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security certificate delete params
func (o *SecurityCertificateDeleteParams) WithHTTPClient(client *http.Client) *SecurityCertificateDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security certificate delete params
func (o *SecurityCertificateDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithUUID adds the uuid to the security certificate delete params
func (o *SecurityCertificateDeleteParams) WithUUID(uuid string) *SecurityCertificateDeleteParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security certificate delete params
func (o *SecurityCertificateDeleteParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityCertificateDeleteParams) 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/ipsec_ca_certificate_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_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"
)
// NewIpsecCaCertificateCreateParams creates a new IpsecCaCertificateCreateParams 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 NewIpsecCaCertificateCreateParams() *IpsecCaCertificateCreateParams {
return &IpsecCaCertificateCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewIpsecCaCertificateCreateParamsWithTimeout creates a new IpsecCaCertificateCreateParams object
// with the ability to set a timeout on a request.
func NewIpsecCaCertificateCreateParamsWithTimeout(timeout time.Duration) *IpsecCaCertificateCreateParams {
return &IpsecCaCertificateCreateParams{
timeout: timeout,
}
}
// NewIpsecCaCertificateCreateParamsWithContext creates a new IpsecCaCertificateCreateParams object
// with the ability to set a context for a request.
func NewIpsecCaCertificateCreateParamsWithContext(ctx context.Context) *IpsecCaCertificateCreateParams {
return &IpsecCaCertificateCreateParams{
Context: ctx,
}
}
// NewIpsecCaCertificateCreateParamsWithHTTPClient creates a new IpsecCaCertificateCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewIpsecCaCertificateCreateParamsWithHTTPClient(client *http.Client) *IpsecCaCertificateCreateParams {
return &IpsecCaCertificateCreateParams{
HTTPClient: client,
}
}
/*
IpsecCaCertificateCreateParams contains all the parameters to send to the API endpoint
for the ipsec ca certificate create operation.
Typically these are written to a http.Request.
*/
type IpsecCaCertificateCreateParams struct {
/* Info.
IPsec CA certificate parameters.
*/
Info *models.IpsecCaCertificate
/* 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 ca certificate create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *IpsecCaCertificateCreateParams) WithDefaults() *IpsecCaCertificateCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the ipsec ca certificate create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *IpsecCaCertificateCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := IpsecCaCertificateCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) WithTimeout(timeout time.Duration) *IpsecCaCertificateCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) WithContext(ctx context.Context) *IpsecCaCertificateCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) WithHTTPClient(client *http.Client) *IpsecCaCertificateCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) WithInfo(info *models.IpsecCaCertificate) *IpsecCaCertificateCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) SetInfo(info *models.IpsecCaCertificate) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) WithReturnRecords(returnRecords *bool) *IpsecCaCertificateCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the ipsec ca certificate create params
func (o *IpsecCaCertificateCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *IpsecCaCertificateCreateParams) 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/azure_key_vault_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// AzureKeyVaultCollectionGetReader is a Reader for the AzureKeyVaultCollectionGet structure.
type AzureKeyVaultCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AzureKeyVaultCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAzureKeyVaultCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAzureKeyVaultCollectionGetDefault(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
}
}
// NewAzureKeyVaultCollectionGetOK creates a AzureKeyVaultCollectionGetOK with default headers values
func NewAzureKeyVaultCollectionGetOK() *AzureKeyVaultCollectionGetOK {
return &AzureKeyVaultCollectionGetOK{}
}
/*
AzureKeyVaultCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type AzureKeyVaultCollectionGetOK struct {
Payload *models.AzureKeyVaultResponse
}
// IsSuccess returns true when this azure key vault collection get o k response has a 2xx status code
func (o *AzureKeyVaultCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this azure key vault collection get o k response has a 3xx status code
func (o *AzureKeyVaultCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this azure key vault collection get o k response has a 4xx status code
func (o *AzureKeyVaultCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this azure key vault collection get o k response has a 5xx status code
func (o *AzureKeyVaultCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this azure key vault collection get o k response a status code equal to that given
func (o *AzureKeyVaultCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *AzureKeyVaultCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/azure-key-vaults][%d] azureKeyVaultCollectionGetOK %+v", 200, o.Payload)
}
func (o *AzureKeyVaultCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/azure-key-vaults][%d] azureKeyVaultCollectionGetOK %+v", 200, o.Payload)
}
func (o *AzureKeyVaultCollectionGetOK) GetPayload() *models.AzureKeyVaultResponse {
return o.Payload
}
func (o *AzureKeyVaultCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.AzureKeyVaultResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAzureKeyVaultCollectionGetDefault creates a AzureKeyVaultCollectionGetDefault with default headers values
func NewAzureKeyVaultCollectionGetDefault(code int) *AzureKeyVaultCollectionGetDefault {
return &AzureKeyVaultCollectionGetDefault{
_statusCode: code,
}
}
/*
AzureKeyVaultCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type AzureKeyVaultCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the azure key vault collection get default response
func (o *AzureKeyVaultCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this azure key vault collection get default response has a 2xx status code
func (o *AzureKeyVaultCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this azure key vault collection get default response has a 3xx status code
func (o *AzureKeyVaultCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this azure key vault collection get default response has a 4xx status code
func (o *AzureKeyVaultCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this azure key vault collection get default response has a 5xx status code
func (o *AzureKeyVaultCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this azure key vault collection get default response a status code equal to that given
func (o *AzureKeyVaultCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AzureKeyVaultCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/azure-key-vaults][%d] azure_key_vault_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/azure-key-vaults][%d] azure_key_vault_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AzureKeyVaultCollectionGetDefault) 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_account_ad_proxy_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_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"
)
// ClusterAccountAdProxyCreateReader is a Reader for the ClusterAccountAdProxyCreate structure.
type ClusterAccountAdProxyCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ClusterAccountAdProxyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewClusterAccountAdProxyCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewClusterAccountAdProxyCreateDefault(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
}
}
// NewClusterAccountAdProxyCreateCreated creates a ClusterAccountAdProxyCreateCreated with default headers values
func NewClusterAccountAdProxyCreateCreated() *ClusterAccountAdProxyCreateCreated {
return &ClusterAccountAdProxyCreateCreated{}
}
/*
ClusterAccountAdProxyCreateCreated describes a response with status code 201, with default header values.
Created
*/
type ClusterAccountAdProxyCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
}
// IsSuccess returns true when this cluster account ad proxy create created response has a 2xx status code
func (o *ClusterAccountAdProxyCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cluster account ad proxy create created response has a 3xx status code
func (o *ClusterAccountAdProxyCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this cluster account ad proxy create created response has a 4xx status code
func (o *ClusterAccountAdProxyCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this cluster account ad proxy create created response has a 5xx status code
func (o *ClusterAccountAdProxyCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this cluster account ad proxy create created response a status code equal to that given
func (o *ClusterAccountAdProxyCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *ClusterAccountAdProxyCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/authentication/cluster/ad-proxy][%d] clusterAccountAdProxyCreateCreated ", 201)
}
func (o *ClusterAccountAdProxyCreateCreated) String() string {
return fmt.Sprintf("[POST /security/authentication/cluster/ad-proxy][%d] clusterAccountAdProxyCreateCreated ", 201)
}
func (o *ClusterAccountAdProxyCreateCreated) 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
}
// NewClusterAccountAdProxyCreateDefault creates a ClusterAccountAdProxyCreateDefault with default headers values
func NewClusterAccountAdProxyCreateDefault(code int) *ClusterAccountAdProxyCreateDefault {
return &ClusterAccountAdProxyCreateDefault{
_statusCode: code,
}
}
/*
ClusterAccountAdProxyCreateDefault describes a response with status code -1, with default header values.
Error
*/
type ClusterAccountAdProxyCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cluster account ad proxy create default response
func (o *ClusterAccountAdProxyCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cluster account ad proxy create default response has a 2xx status code
func (o *ClusterAccountAdProxyCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cluster account ad proxy create default response has a 3xx status code
func (o *ClusterAccountAdProxyCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cluster account ad proxy create default response has a 4xx status code
func (o *ClusterAccountAdProxyCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cluster account ad proxy create default response has a 5xx status code
func (o *ClusterAccountAdProxyCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cluster account ad proxy create default response a status code equal to that given
func (o *ClusterAccountAdProxyCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ClusterAccountAdProxyCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/authentication/cluster/ad-proxy][%d] cluster_account_ad_proxy_create default %+v", o._statusCode, o.Payload)
}
func (o *ClusterAccountAdProxyCreateDefault) String() string {
return fmt.Sprintf("[POST /security/authentication/cluster/ad-proxy][%d] cluster_account_ad_proxy_create default %+v", o._statusCode, o.Payload)
}
func (o *ClusterAccountAdProxyCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ClusterAccountAdProxyCreateDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_config_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"
)
// MultiAdminVerifyConfigGetReader is a Reader for the MultiAdminVerifyConfigGet structure.
type MultiAdminVerifyConfigGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *MultiAdminVerifyConfigGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewMultiAdminVerifyConfigGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewMultiAdminVerifyConfigGetDefault(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
}
}
// NewMultiAdminVerifyConfigGetOK creates a MultiAdminVerifyConfigGetOK with default headers values
func NewMultiAdminVerifyConfigGetOK() *MultiAdminVerifyConfigGetOK {
return &MultiAdminVerifyConfigGetOK{}
}
/*
MultiAdminVerifyConfigGetOK describes a response with status code 200, with default header values.
OK
*/
type MultiAdminVerifyConfigGetOK struct {
Payload *models.MultiAdminVerifyConfig
}
// IsSuccess returns true when this multi admin verify config get o k response has a 2xx status code
func (o *MultiAdminVerifyConfigGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this multi admin verify config get o k response has a 3xx status code
func (o *MultiAdminVerifyConfigGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this multi admin verify config get o k response has a 4xx status code
func (o *MultiAdminVerifyConfigGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this multi admin verify config get o k response has a 5xx status code
func (o *MultiAdminVerifyConfigGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this multi admin verify config get o k response a status code equal to that given
func (o *MultiAdminVerifyConfigGetOK) IsCode(code int) bool {
return code == 200
}
func (o *MultiAdminVerifyConfigGetOK) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify][%d] multiAdminVerifyConfigGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyConfigGetOK) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify][%d] multiAdminVerifyConfigGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyConfigGetOK) GetPayload() *models.MultiAdminVerifyConfig {
return o.Payload
}
func (o *MultiAdminVerifyConfigGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.MultiAdminVerifyConfig)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewMultiAdminVerifyConfigGetDefault creates a MultiAdminVerifyConfigGetDefault with default headers values
func NewMultiAdminVerifyConfigGetDefault(code int) *MultiAdminVerifyConfigGetDefault {
return &MultiAdminVerifyConfigGetDefault{
_statusCode: code,
}
}
/*
MultiAdminVerifyConfigGetDefault describes a response with status code -1, with default header values.
Error
*/
type MultiAdminVerifyConfigGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the multi admin verify config get default response
func (o *MultiAdminVerifyConfigGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this multi admin verify config get default response has a 2xx status code
func (o *MultiAdminVerifyConfigGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this multi admin verify config get default response has a 3xx status code
func (o *MultiAdminVerifyConfigGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this multi admin verify config get default response has a 4xx status code
func (o *MultiAdminVerifyConfigGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this multi admin verify config get default response has a 5xx status code
func (o *MultiAdminVerifyConfigGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this multi admin verify config get default response a status code equal to that given
func (o *MultiAdminVerifyConfigGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *MultiAdminVerifyConfigGetDefault) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify][%d] multi_admin_verify_config_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyConfigGetDefault) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify][%d] multi_admin_verify_config_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyConfigGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *MultiAdminVerifyConfigGetDefault) 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_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_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"
)
// RoleGetReader is a Reader for the RoleGet structure.
type RoleGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *RoleGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewRoleGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewRoleGetDefault(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
}
}
// NewRoleGetOK creates a RoleGetOK with default headers values
func NewRoleGetOK() *RoleGetOK {
return &RoleGetOK{}
}
/*
RoleGetOK describes a response with status code 200, with default header values.
OK
*/
type RoleGetOK struct {
Payload *models.Role
}
// IsSuccess returns true when this role get o k response has a 2xx status code
func (o *RoleGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this role get o k response has a 3xx status code
func (o *RoleGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this role get o k response has a 4xx status code
func (o *RoleGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this role get o k response has a 5xx status code
func (o *RoleGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this role get o k response a status code equal to that given
func (o *RoleGetOK) IsCode(code int) bool {
return code == 200
}
func (o *RoleGetOK) Error() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}][%d] roleGetOK %+v", 200, o.Payload)
}
func (o *RoleGetOK) String() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}][%d] roleGetOK %+v", 200, o.Payload)
}
func (o *RoleGetOK) GetPayload() *models.Role {
return o.Payload
}
func (o *RoleGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.Role)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewRoleGetDefault creates a RoleGetDefault with default headers values
func NewRoleGetDefault(code int) *RoleGetDefault {
return &RoleGetDefault{
_statusCode: code,
}
}
/*
RoleGetDefault describes a response with status code -1, with default header values.
Error
*/
type RoleGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the role get default response
func (o *RoleGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this role get default response has a 2xx status code
func (o *RoleGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this role get default response has a 3xx status code
func (o *RoleGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this role get default response has a 4xx status code
func (o *RoleGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this role get default response has a 5xx status code
func (o *RoleGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this role get default response a status code equal to that given
func (o *RoleGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *RoleGetDefault) Error() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}][%d] role_get default %+v", o._statusCode, o.Payload)
}
func (o *RoleGetDefault) String() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}][%d] role_get default %+v", o._statusCode, o.Payload)
}
func (o *RoleGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *RoleGetDefault) 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_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_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"
)
// NewSecurityKeyManagerKeyServersDeleteParams creates a new SecurityKeyManagerKeyServersDeleteParams 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 NewSecurityKeyManagerKeyServersDeleteParams() *SecurityKeyManagerKeyServersDeleteParams {
return &SecurityKeyManagerKeyServersDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerKeyServersDeleteParamsWithTimeout creates a new SecurityKeyManagerKeyServersDeleteParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerKeyServersDeleteParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersDeleteParams {
return &SecurityKeyManagerKeyServersDeleteParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerKeyServersDeleteParamsWithContext creates a new SecurityKeyManagerKeyServersDeleteParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerKeyServersDeleteParamsWithContext(ctx context.Context) *SecurityKeyManagerKeyServersDeleteParams {
return &SecurityKeyManagerKeyServersDeleteParams{
Context: ctx,
}
}
// NewSecurityKeyManagerKeyServersDeleteParamsWithHTTPClient creates a new SecurityKeyManagerKeyServersDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerKeyServersDeleteParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersDeleteParams {
return &SecurityKeyManagerKeyServersDeleteParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerKeyServersDeleteParams contains all the parameters to send to the API endpoint
for the security key manager key servers delete operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerKeyServersDeleteParams struct {
/* Force.
Set the force flag to "true" to bypass out of quorum checks when removing a primary key server.
*/
Force *bool
/* Server.
Primary key server configured in the external key manager.
*/
Server string
/* UUID.
External key manager UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager key servers delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersDeleteParams) WithDefaults() *SecurityKeyManagerKeyServersDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager key servers delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersDeleteParams) SetDefaults() {
var (
forceDefault = bool(false)
)
val := SecurityKeyManagerKeyServersDeleteParams{
Force: &forceDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) WithContext(ctx context.Context) *SecurityKeyManagerKeyServersDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithForce adds the force to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) WithForce(force *bool) *SecurityKeyManagerKeyServersDeleteParams {
o.SetForce(force)
return o
}
// SetForce adds the force to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) SetForce(force *bool) {
o.Force = force
}
// WithServer adds the server to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) WithServer(server string) *SecurityKeyManagerKeyServersDeleteParams {
o.SetServer(server)
return o
}
// SetServer adds the server to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) SetServer(server string) {
o.Server = server
}
// WithUUID adds the uuid to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) WithUUID(uuid string) *SecurityKeyManagerKeyServersDeleteParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security key manager key servers delete params
func (o *SecurityKeyManagerKeyServersDeleteParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerKeyServersDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Force != nil {
// query param force
var qrForce bool
if o.Force != nil {
qrForce = *o.Force
}
qForce := swag.FormatBool(qrForce)
if qForce != "" {
if err := r.SetQueryParam("force", qForce); err != nil {
return err
}
}
}
// path param server
if err := r.SetPathParam("server", o.Server); 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_nis_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_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"
)
// ClusterNisModifyReader is a Reader for the ClusterNisModify structure.
type ClusterNisModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ClusterNisModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewClusterNisModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewClusterNisModifyDefault(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
}
}
// NewClusterNisModifyOK creates a ClusterNisModifyOK with default headers values
func NewClusterNisModifyOK() *ClusterNisModifyOK {
return &ClusterNisModifyOK{}
}
/*
ClusterNisModifyOK describes a response with status code 200, with default header values.
OK
*/
type ClusterNisModifyOK struct {
}
// IsSuccess returns true when this cluster nis modify o k response has a 2xx status code
func (o *ClusterNisModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cluster nis modify o k response has a 3xx status code
func (o *ClusterNisModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cluster nis modify o k response has a 4xx status code
func (o *ClusterNisModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cluster nis modify o k response has a 5xx status code
func (o *ClusterNisModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this cluster nis modify o k response a status code equal to that given
func (o *ClusterNisModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *ClusterNisModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/nis][%d] clusterNisModifyOK ", 200)
}
func (o *ClusterNisModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/nis][%d] clusterNisModifyOK ", 200)
}
func (o *ClusterNisModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewClusterNisModifyDefault creates a ClusterNisModifyDefault with default headers values
func NewClusterNisModifyDefault(code int) *ClusterNisModifyDefault {
return &ClusterNisModifyDefault{
_statusCode: code,
}
}
/*
ClusterNisModifyDefault 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. |
| 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 ClusterNisModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cluster nis modify default response
func (o *ClusterNisModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cluster nis modify default response has a 2xx status code
func (o *ClusterNisModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cluster nis modify default response has a 3xx status code
func (o *ClusterNisModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cluster nis modify default response has a 4xx status code
func (o *ClusterNisModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cluster nis modify default response has a 5xx status code
func (o *ClusterNisModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cluster nis modify default response a status code equal to that given
func (o *ClusterNisModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ClusterNisModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/nis][%d] cluster_nis_modify default %+v", o._statusCode, o.Payload)
}
func (o *ClusterNisModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/nis][%d] cluster_nis_modify default %+v", o._statusCode, o.Payload)
}
func (o *ClusterNisModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ClusterNisModifyDefault) 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_account_ad_proxy_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_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"
)
// NewClusterAccountAdProxyGetParams creates a new ClusterAccountAdProxyGetParams 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 NewClusterAccountAdProxyGetParams() *ClusterAccountAdProxyGetParams {
return &ClusterAccountAdProxyGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewClusterAccountAdProxyGetParamsWithTimeout creates a new ClusterAccountAdProxyGetParams object
// with the ability to set a timeout on a request.
func NewClusterAccountAdProxyGetParamsWithTimeout(timeout time.Duration) *ClusterAccountAdProxyGetParams {
return &ClusterAccountAdProxyGetParams{
timeout: timeout,
}
}
// NewClusterAccountAdProxyGetParamsWithContext creates a new ClusterAccountAdProxyGetParams object
// with the ability to set a context for a request.
func NewClusterAccountAdProxyGetParamsWithContext(ctx context.Context) *ClusterAccountAdProxyGetParams {
return &ClusterAccountAdProxyGetParams{
Context: ctx,
}
}
// NewClusterAccountAdProxyGetParamsWithHTTPClient creates a new ClusterAccountAdProxyGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewClusterAccountAdProxyGetParamsWithHTTPClient(client *http.Client) *ClusterAccountAdProxyGetParams {
return &ClusterAccountAdProxyGetParams{
HTTPClient: client,
}
}
/*
ClusterAccountAdProxyGetParams contains all the parameters to send to the API endpoint
for the cluster account ad proxy get operation.
Typically these are written to a http.Request.
*/
type ClusterAccountAdProxyGetParams struct {
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cluster account ad proxy get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterAccountAdProxyGetParams) WithDefaults() *ClusterAccountAdProxyGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cluster account ad proxy get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterAccountAdProxyGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cluster account ad proxy get params
func (o *ClusterAccountAdProxyGetParams) WithTimeout(timeout time.Duration) *ClusterAccountAdProxyGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cluster account ad proxy get params
func (o *ClusterAccountAdProxyGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cluster account ad proxy get params
func (o *ClusterAccountAdProxyGetParams) WithContext(ctx context.Context) *ClusterAccountAdProxyGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cluster account ad proxy get params
func (o *ClusterAccountAdProxyGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cluster account ad proxy get params
func (o *ClusterAccountAdProxyGetParams) WithHTTPClient(client *http.Client) *ClusterAccountAdProxyGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cluster account ad proxy get params
func (o *ClusterAccountAdProxyGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WriteToRequest writes these params to a swagger request
func (o *ClusterAccountAdProxyGetParams) 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/cluster_account_ad_proxy_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_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"
)
// ClusterAccountAdProxyDeleteReader is a Reader for the ClusterAccountAdProxyDelete structure.
type ClusterAccountAdProxyDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ClusterAccountAdProxyDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewClusterAccountAdProxyDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewClusterAccountAdProxyDeleteDefault(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
}
}
// NewClusterAccountAdProxyDeleteOK creates a ClusterAccountAdProxyDeleteOK with default headers values
func NewClusterAccountAdProxyDeleteOK() *ClusterAccountAdProxyDeleteOK {
return &ClusterAccountAdProxyDeleteOK{}
}
/*
ClusterAccountAdProxyDeleteOK describes a response with status code 200, with default header values.
OK
*/
type ClusterAccountAdProxyDeleteOK struct {
}
// IsSuccess returns true when this cluster account ad proxy delete o k response has a 2xx status code
func (o *ClusterAccountAdProxyDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cluster account ad proxy delete o k response has a 3xx status code
func (o *ClusterAccountAdProxyDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cluster account ad proxy delete o k response has a 4xx status code
func (o *ClusterAccountAdProxyDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cluster account ad proxy delete o k response has a 5xx status code
func (o *ClusterAccountAdProxyDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this cluster account ad proxy delete o k response a status code equal to that given
func (o *ClusterAccountAdProxyDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *ClusterAccountAdProxyDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ad-proxy][%d] clusterAccountAdProxyDeleteOK ", 200)
}
func (o *ClusterAccountAdProxyDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ad-proxy][%d] clusterAccountAdProxyDeleteOK ", 200)
}
func (o *ClusterAccountAdProxyDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewClusterAccountAdProxyDeleteDefault creates a ClusterAccountAdProxyDeleteDefault with default headers values
func NewClusterAccountAdProxyDeleteDefault(code int) *ClusterAccountAdProxyDeleteDefault {
return &ClusterAccountAdProxyDeleteDefault{
_statusCode: code,
}
}
/*
ClusterAccountAdProxyDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type ClusterAccountAdProxyDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cluster account ad proxy delete default response
func (o *ClusterAccountAdProxyDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cluster account ad proxy delete default response has a 2xx status code
func (o *ClusterAccountAdProxyDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cluster account ad proxy delete default response has a 3xx status code
func (o *ClusterAccountAdProxyDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cluster account ad proxy delete default response has a 4xx status code
func (o *ClusterAccountAdProxyDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cluster account ad proxy delete default response has a 5xx status code
func (o *ClusterAccountAdProxyDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cluster account ad proxy delete default response a status code equal to that given
func (o *ClusterAccountAdProxyDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ClusterAccountAdProxyDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ad-proxy][%d] cluster_account_ad_proxy_delete default %+v", o._statusCode, o.Payload)
}
func (o *ClusterAccountAdProxyDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/ad-proxy][%d] cluster_account_ad_proxy_delete default %+v", o._statusCode, o.Payload)
}
func (o *ClusterAccountAdProxyDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ClusterAccountAdProxyDeleteDefault) 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_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_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"
)
// NewAccountCollectionGetParams creates a new AccountCollectionGetParams 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 NewAccountCollectionGetParams() *AccountCollectionGetParams {
return &AccountCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewAccountCollectionGetParamsWithTimeout creates a new AccountCollectionGetParams object
// with the ability to set a timeout on a request.
func NewAccountCollectionGetParamsWithTimeout(timeout time.Duration) *AccountCollectionGetParams {
return &AccountCollectionGetParams{
timeout: timeout,
}
}
// NewAccountCollectionGetParamsWithContext creates a new AccountCollectionGetParams object
// with the ability to set a context for a request.
func NewAccountCollectionGetParamsWithContext(ctx context.Context) *AccountCollectionGetParams {
return &AccountCollectionGetParams{
Context: ctx,
}
}
// NewAccountCollectionGetParamsWithHTTPClient creates a new AccountCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewAccountCollectionGetParamsWithHTTPClient(client *http.Client) *AccountCollectionGetParams {
return &AccountCollectionGetParams{
HTTPClient: client,
}
}
/*
AccountCollectionGetParams contains all the parameters to send to the API endpoint
for the account collection get operation.
Typically these are written to a http.Request.
*/
type AccountCollectionGetParams struct {
/* ApplicationsApplication.
Filter by applications.application
*/
ApplicationsApplication *string
/* ApplicationsAuthenticationMethods.
Filter by applications.authentication_methods
*/
ApplicationsAuthenticationMethods *string
/* ApplicationsSecondAuthenticationMethod.
Filter by applications.second_authentication_method
*/
ApplicationsSecondAuthenticationMethod *string
/* Comment.
Filter by comment
*/
Comment *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* LdapFastbind.
Filter by ldap_fastbind
*/
LdapFastbind *bool
/* Locked.
Filter by locked
*/
Locked *bool
/* 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
/* PasswordHashAlgorithm.
Filter by password_hash_algorithm
*/
PasswordHashAlgorithm *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
/* RoleName.
Filter by role.name
*/
RoleName *string
/* Scope.
Filter by scope
*/
Scope *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the account collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AccountCollectionGetParams) WithDefaults() *AccountCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the account collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AccountCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := AccountCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the account collection get params
func (o *AccountCollectionGetParams) WithTimeout(timeout time.Duration) *AccountCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the account collection get params
func (o *AccountCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the account collection get params
func (o *AccountCollectionGetParams) WithContext(ctx context.Context) *AccountCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the account collection get params
func (o *AccountCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the account collection get params
func (o *AccountCollectionGetParams) WithHTTPClient(client *http.Client) *AccountCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the account collection get params
func (o *AccountCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithApplicationsApplication adds the applicationsApplication to the account collection get params
func (o *AccountCollectionGetParams) WithApplicationsApplication(applicationsApplication *string) *AccountCollectionGetParams {
o.SetApplicationsApplication(applicationsApplication)
return o
}
// SetApplicationsApplication adds the applicationsApplication to the account collection get params
func (o *AccountCollectionGetParams) SetApplicationsApplication(applicationsApplication *string) {
o.ApplicationsApplication = applicationsApplication
}
// WithApplicationsAuthenticationMethods adds the applicationsAuthenticationMethods to the account collection get params
func (o *AccountCollectionGetParams) WithApplicationsAuthenticationMethods(applicationsAuthenticationMethods *string) *AccountCollectionGetParams {
o.SetApplicationsAuthenticationMethods(applicationsAuthenticationMethods)
return o
}
// SetApplicationsAuthenticationMethods adds the applicationsAuthenticationMethods to the account collection get params
func (o *AccountCollectionGetParams) SetApplicationsAuthenticationMethods(applicationsAuthenticationMethods *string) {
o.ApplicationsAuthenticationMethods = applicationsAuthenticationMethods
}
// WithApplicationsSecondAuthenticationMethod adds the applicationsSecondAuthenticationMethod to the account collection get params
func (o *AccountCollectionGetParams) WithApplicationsSecondAuthenticationMethod(applicationsSecondAuthenticationMethod *string) *AccountCollectionGetParams {
o.SetApplicationsSecondAuthenticationMethod(applicationsSecondAuthenticationMethod)
return o
}
// SetApplicationsSecondAuthenticationMethod adds the applicationsSecondAuthenticationMethod to the account collection get params
func (o *AccountCollectionGetParams) SetApplicationsSecondAuthenticationMethod(applicationsSecondAuthenticationMethod *string) {
o.ApplicationsSecondAuthenticationMethod = applicationsSecondAuthenticationMethod
}
// WithComment adds the comment to the account collection get params
func (o *AccountCollectionGetParams) WithComment(comment *string) *AccountCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the account collection get params
func (o *AccountCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithFields adds the fields to the account collection get params
func (o *AccountCollectionGetParams) WithFields(fields []string) *AccountCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the account collection get params
func (o *AccountCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithLdapFastbind adds the ldapFastbind to the account collection get params
func (o *AccountCollectionGetParams) WithLdapFastbind(ldapFastbind *bool) *AccountCollectionGetParams {
o.SetLdapFastbind(ldapFastbind)
return o
}
// SetLdapFastbind adds the ldapFastbind to the account collection get params
func (o *AccountCollectionGetParams) SetLdapFastbind(ldapFastbind *bool) {
o.LdapFastbind = ldapFastbind
}
// WithLocked adds the locked to the account collection get params
func (o *AccountCollectionGetParams) WithLocked(locked *bool) *AccountCollectionGetParams {
o.SetLocked(locked)
return o
}
// SetLocked adds the locked to the account collection get params
func (o *AccountCollectionGetParams) SetLocked(locked *bool) {
o.Locked = locked
}
// WithMaxRecords adds the maxRecords to the account collection get params
func (o *AccountCollectionGetParams) WithMaxRecords(maxRecords *int64) *AccountCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the account collection get params
func (o *AccountCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the account collection get params
func (o *AccountCollectionGetParams) WithName(name *string) *AccountCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the account collection get params
func (o *AccountCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the account collection get params
func (o *AccountCollectionGetParams) WithOrderBy(orderBy []string) *AccountCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the account collection get params
func (o *AccountCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithOwnerName adds the ownerName to the account collection get params
func (o *AccountCollectionGetParams) WithOwnerName(ownerName *string) *AccountCollectionGetParams {
o.SetOwnerName(ownerName)
return o
}
// SetOwnerName adds the ownerName to the account collection get params
func (o *AccountCollectionGetParams) SetOwnerName(ownerName *string) {
o.OwnerName = ownerName
}
// WithOwnerUUID adds the ownerUUID to the account collection get params
func (o *AccountCollectionGetParams) WithOwnerUUID(ownerUUID *string) *AccountCollectionGetParams {
o.SetOwnerUUID(ownerUUID)
return o
}
// SetOwnerUUID adds the ownerUuid to the account collection get params
func (o *AccountCollectionGetParams) SetOwnerUUID(ownerUUID *string) {
o.OwnerUUID = ownerUUID
}
// WithPasswordHashAlgorithm adds the passwordHashAlgorithm to the account collection get params
func (o *AccountCollectionGetParams) WithPasswordHashAlgorithm(passwordHashAlgorithm *string) *AccountCollectionGetParams {
o.SetPasswordHashAlgorithm(passwordHashAlgorithm)
return o
}
// SetPasswordHashAlgorithm adds the passwordHashAlgorithm to the account collection get params
func (o *AccountCollectionGetParams) SetPasswordHashAlgorithm(passwordHashAlgorithm *string) {
o.PasswordHashAlgorithm = passwordHashAlgorithm
}
// WithReturnRecords adds the returnRecords to the account collection get params
func (o *AccountCollectionGetParams) WithReturnRecords(returnRecords *bool) *AccountCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the account collection get params
func (o *AccountCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the account collection get params
func (o *AccountCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *AccountCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the account collection get params
func (o *AccountCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithRoleName adds the roleName to the account collection get params
func (o *AccountCollectionGetParams) WithRoleName(roleName *string) *AccountCollectionGetParams {
o.SetRoleName(roleName)
return o
}
// SetRoleName adds the roleName to the account collection get params
func (o *AccountCollectionGetParams) SetRoleName(roleName *string) {
o.RoleName = roleName
}
// WithScope adds the scope to the account collection get params
func (o *AccountCollectionGetParams) WithScope(scope *string) *AccountCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the account collection get params
func (o *AccountCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WriteToRequest writes these params to a swagger request
func (o *AccountCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.ApplicationsApplication != nil {
// query param applications.application
var qrApplicationsApplication string
if o.ApplicationsApplication != nil {
qrApplicationsApplication = *o.ApplicationsApplication
}
qApplicationsApplication := qrApplicationsApplication
if qApplicationsApplication != "" {
if err := r.SetQueryParam("applications.application", qApplicationsApplication); err != nil {
return err
}
}
}
if o.ApplicationsAuthenticationMethods != nil {
// query param applications.authentication_methods
var qrApplicationsAuthenticationMethods string
if o.ApplicationsAuthenticationMethods != nil {
qrApplicationsAuthenticationMethods = *o.ApplicationsAuthenticationMethods
}
qApplicationsAuthenticationMethods := qrApplicationsAuthenticationMethods
if qApplicationsAuthenticationMethods != "" {
if err := r.SetQueryParam("applications.authentication_methods", qApplicationsAuthenticationMethods); err != nil {
return err
}
}
}
if o.ApplicationsSecondAuthenticationMethod != nil {
// query param applications.second_authentication_method
var qrApplicationsSecondAuthenticationMethod string
if o.ApplicationsSecondAuthenticationMethod != nil {
qrApplicationsSecondAuthenticationMethod = *o.ApplicationsSecondAuthenticationMethod
}
qApplicationsSecondAuthenticationMethod := qrApplicationsSecondAuthenticationMethod
if qApplicationsSecondAuthenticationMethod != "" {
if err := r.SetQueryParam("applications.second_authentication_method", qApplicationsSecondAuthenticationMethod); 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.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.LdapFastbind != nil {
// query param ldap_fastbind
var qrLdapFastbind bool
if o.LdapFastbind != nil {
qrLdapFastbind = *o.LdapFastbind
}
qLdapFastbind := swag.FormatBool(qrLdapFastbind)
if qLdapFastbind != "" {
if err := r.SetQueryParam("ldap_fastbind", qLdapFastbind); err != nil {
return err
}
}
}
if o.Locked != nil {
// query param locked
var qrLocked bool
if o.Locked != nil {
qrLocked = *o.Locked
}
qLocked := swag.FormatBool(qrLocked)
if qLocked != "" {
if err := r.SetQueryParam("locked", qLocked); 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.PasswordHashAlgorithm != nil {
// query param password_hash_algorithm
var qrPasswordHashAlgorithm string
if o.PasswordHashAlgorithm != nil {
qrPasswordHashAlgorithm = *o.PasswordHashAlgorithm
}
qPasswordHashAlgorithm := qrPasswordHashAlgorithm
if qPasswordHashAlgorithm != "" {
if err := r.SetQueryParam("password_hash_algorithm", qPasswordHashAlgorithm); 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.RoleName != nil {
// query param role.name
var qrRoleName string
if o.RoleName != nil {
qrRoleName = *o.RoleName
}
qRoleName := qrRoleName
if qRoleName != "" {
if err := r.SetQueryParam("role.name", qRoleName); 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 len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamAccountCollectionGet binds the parameter fields
func (o *AccountCollectionGetParams) 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
}
// bindParamAccountCollectionGet binds the parameter order_by
func (o *AccountCollectionGetParams) 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_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_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"
)
// RoleDeleteReader is a Reader for the RoleDelete structure.
type RoleDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *RoleDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewRoleDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewRoleDeleteDefault(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
}
}
// NewRoleDeleteOK creates a RoleDeleteOK with default headers values
func NewRoleDeleteOK() *RoleDeleteOK {
return &RoleDeleteOK{}
}
/*
RoleDeleteOK describes a response with status code 200, with default header values.
OK
*/
type RoleDeleteOK struct {
}
// IsSuccess returns true when this role delete o k response has a 2xx status code
func (o *RoleDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this role delete o k response has a 3xx status code
func (o *RoleDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this role delete o k response has a 4xx status code
func (o *RoleDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this role delete o k response has a 5xx status code
func (o *RoleDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this role delete o k response a status code equal to that given
func (o *RoleDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *RoleDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}][%d] roleDeleteOK ", 200)
}
func (o *RoleDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}][%d] roleDeleteOK ", 200)
}
func (o *RoleDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewRoleDeleteDefault creates a RoleDeleteDefault with default headers values
func NewRoleDeleteDefault(code int) *RoleDeleteDefault {
return &RoleDeleteDefault{
_statusCode: code,
}
}
/*
RoleDeleteDefault 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 | Features require 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 RoleDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the role delete default response
func (o *RoleDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this role delete default response has a 2xx status code
func (o *RoleDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this role delete default response has a 3xx status code
func (o *RoleDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this role delete default response has a 4xx status code
func (o *RoleDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this role delete default response has a 5xx status code
func (o *RoleDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this role delete default response a status code equal to that given
func (o *RoleDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *RoleDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}][%d] role_delete default %+v", o._statusCode, o.Payload)
}
func (o *RoleDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/roles/{owner.uuid}/{name}][%d] role_delete default %+v", o._statusCode, o.Payload)
}
func (o *RoleDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *RoleDeleteDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_certificate_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"
)
// SecurityCertificateCollectionGetReader is a Reader for the SecurityCertificateCollectionGet structure.
type SecurityCertificateCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityCertificateCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityCertificateCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityCertificateCollectionGetDefault(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
}
}
// NewSecurityCertificateCollectionGetOK creates a SecurityCertificateCollectionGetOK with default headers values
func NewSecurityCertificateCollectionGetOK() *SecurityCertificateCollectionGetOK {
return &SecurityCertificateCollectionGetOK{}
}
/*
SecurityCertificateCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type SecurityCertificateCollectionGetOK struct {
Payload *models.SecurityCertificateResponse
}
// IsSuccess returns true when this security certificate collection get o k response has a 2xx status code
func (o *SecurityCertificateCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security certificate collection get o k response has a 3xx status code
func (o *SecurityCertificateCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security certificate collection get o k response has a 4xx status code
func (o *SecurityCertificateCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security certificate collection get o k response has a 5xx status code
func (o *SecurityCertificateCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this security certificate collection get o k response a status code equal to that given
func (o *SecurityCertificateCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityCertificateCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/certificates][%d] securityCertificateCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityCertificateCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/certificates][%d] securityCertificateCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityCertificateCollectionGetOK) GetPayload() *models.SecurityCertificateResponse {
return o.Payload
}
func (o *SecurityCertificateCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecurityCertificateResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityCertificateCollectionGetDefault creates a SecurityCertificateCollectionGetDefault with default headers values
func NewSecurityCertificateCollectionGetDefault(code int) *SecurityCertificateCollectionGetDefault {
return &SecurityCertificateCollectionGetDefault{
_statusCode: code,
}
}
/*
SecurityCertificateCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type SecurityCertificateCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security certificate collection get default response
func (o *SecurityCertificateCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security certificate collection get default response has a 2xx status code
func (o *SecurityCertificateCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security certificate collection get default response has a 3xx status code
func (o *SecurityCertificateCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security certificate collection get default response has a 4xx status code
func (o *SecurityCertificateCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security certificate collection get default response has a 5xx status code
func (o *SecurityCertificateCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security certificate collection get default response a status code equal to that given
func (o *SecurityCertificateCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityCertificateCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/certificates][%d] security_certificate_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityCertificateCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/certificates][%d] security_certificate_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityCertificateCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityCertificateCollectionGetDefault) 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_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_auth_key_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"
)
// NewKeyManagerAuthKeyCreateParams creates a new KeyManagerAuthKeyCreateParams 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 NewKeyManagerAuthKeyCreateParams() *KeyManagerAuthKeyCreateParams {
return &KeyManagerAuthKeyCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewKeyManagerAuthKeyCreateParamsWithTimeout creates a new KeyManagerAuthKeyCreateParams object
// with the ability to set a timeout on a request.
func NewKeyManagerAuthKeyCreateParamsWithTimeout(timeout time.Duration) *KeyManagerAuthKeyCreateParams {
return &KeyManagerAuthKeyCreateParams{
timeout: timeout,
}
}
// NewKeyManagerAuthKeyCreateParamsWithContext creates a new KeyManagerAuthKeyCreateParams object
// with the ability to set a context for a request.
func NewKeyManagerAuthKeyCreateParamsWithContext(ctx context.Context) *KeyManagerAuthKeyCreateParams {
return &KeyManagerAuthKeyCreateParams{
Context: ctx,
}
}
// NewKeyManagerAuthKeyCreateParamsWithHTTPClient creates a new KeyManagerAuthKeyCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewKeyManagerAuthKeyCreateParamsWithHTTPClient(client *http.Client) *KeyManagerAuthKeyCreateParams {
return &KeyManagerAuthKeyCreateParams{
HTTPClient: client,
}
}
/*
KeyManagerAuthKeyCreateParams contains all the parameters to send to the API endpoint
for the key manager auth key create operation.
Typically these are written to a http.Request.
*/
type KeyManagerAuthKeyCreateParams struct {
/* Info.
Information specification
*/
Info *models.KeyManagerAuthKey
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* 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 create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerAuthKeyCreateParams) WithDefaults() *KeyManagerAuthKeyCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the key manager auth key create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerAuthKeyCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := KeyManagerAuthKeyCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) WithTimeout(timeout time.Duration) *KeyManagerAuthKeyCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) WithContext(ctx context.Context) *KeyManagerAuthKeyCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) WithHTTPClient(client *http.Client) *KeyManagerAuthKeyCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) WithInfo(info *models.KeyManagerAuthKey) *KeyManagerAuthKeyCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) SetInfo(info *models.KeyManagerAuthKey) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) WithReturnRecords(returnRecords *bool) *KeyManagerAuthKeyCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSecurityKeyManagerUUID adds the securityKeyManagerUUID to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) WithSecurityKeyManagerUUID(securityKeyManagerUUID string) *KeyManagerAuthKeyCreateParams {
o.SetSecurityKeyManagerUUID(securityKeyManagerUUID)
return o
}
// SetSecurityKeyManagerUUID adds the securityKeyManagerUuid to the key manager auth key create params
func (o *KeyManagerAuthKeyCreateParams) SetSecurityKeyManagerUUID(securityKeyManagerUUID string) {
o.SecurityKeyManagerUUID = securityKeyManagerUUID
}
// WriteToRequest writes these params to a swagger request
func (o *KeyManagerAuthKeyCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
// path param 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
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/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_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_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"
)
// NewSecurityKeyManagerKeyServersModifyParams creates a new SecurityKeyManagerKeyServersModifyParams 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 NewSecurityKeyManagerKeyServersModifyParams() *SecurityKeyManagerKeyServersModifyParams {
return &SecurityKeyManagerKeyServersModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerKeyServersModifyParamsWithTimeout creates a new SecurityKeyManagerKeyServersModifyParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerKeyServersModifyParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersModifyParams {
return &SecurityKeyManagerKeyServersModifyParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerKeyServersModifyParamsWithContext creates a new SecurityKeyManagerKeyServersModifyParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerKeyServersModifyParamsWithContext(ctx context.Context) *SecurityKeyManagerKeyServersModifyParams {
return &SecurityKeyManagerKeyServersModifyParams{
Context: ctx,
}
}
// NewSecurityKeyManagerKeyServersModifyParamsWithHTTPClient creates a new SecurityKeyManagerKeyServersModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerKeyServersModifyParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersModifyParams {
return &SecurityKeyManagerKeyServersModifyParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerKeyServersModifyParams contains all the parameters to send to the API endpoint
for the security key manager key servers modify operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerKeyServersModifyParams struct {
/* Info.
Key server information
*/
Info *models.KeyServer
/* Server.
Primary key server configured in the external key manager.
*/
Server string
/* UUID.
External key manager UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager key servers modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersModifyParams) WithDefaults() *SecurityKeyManagerKeyServersModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager key servers modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) WithContext(ctx context.Context) *SecurityKeyManagerKeyServersModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) WithInfo(info *models.KeyServer) *SecurityKeyManagerKeyServersModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) SetInfo(info *models.KeyServer) {
o.Info = info
}
// WithServer adds the server to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) WithServer(server string) *SecurityKeyManagerKeyServersModifyParams {
o.SetServer(server)
return o
}
// SetServer adds the server to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) SetServer(server string) {
o.Server = server
}
// WithUUID adds the uuid to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) WithUUID(uuid string) *SecurityKeyManagerKeyServersModifyParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security key manager key servers modify params
func (o *SecurityKeyManagerKeyServersModifyParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerKeyServersModifyParams) 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 server
if err := r.SetPathParam("server", o.Server); 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/azure_key_vault_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// AzureKeyVaultCreateReader is a Reader for the AzureKeyVaultCreate structure.
type AzureKeyVaultCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AzureKeyVaultCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewAzureKeyVaultCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAzureKeyVaultCreateDefault(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
}
}
// NewAzureKeyVaultCreateCreated creates a AzureKeyVaultCreateCreated with default headers values
func NewAzureKeyVaultCreateCreated() *AzureKeyVaultCreateCreated {
return &AzureKeyVaultCreateCreated{}
}
/*
AzureKeyVaultCreateCreated describes a response with status code 201, with default header values.
Created
*/
type AzureKeyVaultCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.AzureKeyVaultResponse
}
// IsSuccess returns true when this azure key vault create created response has a 2xx status code
func (o *AzureKeyVaultCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this azure key vault create created response has a 3xx status code
func (o *AzureKeyVaultCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this azure key vault create created response has a 4xx status code
func (o *AzureKeyVaultCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this azure key vault create created response has a 5xx status code
func (o *AzureKeyVaultCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this azure key vault create created response a status code equal to that given
func (o *AzureKeyVaultCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *AzureKeyVaultCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/azure-key-vaults][%d] azureKeyVaultCreateCreated %+v", 201, o.Payload)
}
func (o *AzureKeyVaultCreateCreated) String() string {
return fmt.Sprintf("[POST /security/azure-key-vaults][%d] azureKeyVaultCreateCreated %+v", 201, o.Payload)
}
func (o *AzureKeyVaultCreateCreated) GetPayload() *models.AzureKeyVaultResponse {
return o.Payload
}
func (o *AzureKeyVaultCreateCreated) 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.AzureKeyVaultResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAzureKeyVaultCreateDefault creates a AzureKeyVaultCreateDefault with default headers values
func NewAzureKeyVaultCreateDefault(code int) *AzureKeyVaultCreateDefault {
return &AzureKeyVaultCreateDefault{
_statusCode: code,
}
}
/*
AzureKeyVaultCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 3735553 | Failed to create self-signed certificate. |
| 3735664 | The specified key size is not supported in FIPS mode. |
| 3735665 | The specified hash function is not supported in FIPS mode. |
| 3735700 | The specified key size is not supported. |
| 52559972 | The certificates start date is later than the current date. |
| 65537500 | A key manager has already been configured for this SVM. |
| 65537504 | Internal error. Failed to store configuration in internal database. |
| 65537505 | One or more volume encryption keys of the given SVM are stored on a key manager configured for the admin SVM. |
| 65537506 | AKV is not supported in MetroCluster configurations. |
| 65537512 | AKV cannot be configured for the given SVM as not all nodes in the cluster can enable the Azure Key Vault feature. |
| 65537514 | Failed to check if the Azure Key Vault feature is enabled. |
| 65537518 | Failed to find an interface with Cluster role. |
| 65537523 | Invalid key ID format. Example key ID format\":" "https://mykeyvault.vault.azure.net/keys/key1". |
| 65537526 | Failed to enable Azure Key Vault feature. |
| 65537567 | No authentication method provided. |
| 65537573 | Invalid client certificate. |
*/
type AzureKeyVaultCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the azure key vault create default response
func (o *AzureKeyVaultCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this azure key vault create default response has a 2xx status code
func (o *AzureKeyVaultCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this azure key vault create default response has a 3xx status code
func (o *AzureKeyVaultCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this azure key vault create default response has a 4xx status code
func (o *AzureKeyVaultCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this azure key vault create default response has a 5xx status code
func (o *AzureKeyVaultCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this azure key vault create default response a status code equal to that given
func (o *AzureKeyVaultCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AzureKeyVaultCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/azure-key-vaults][%d] azure_key_vault_create default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultCreateDefault) String() string {
return fmt.Sprintf("[POST /security/azure-key-vaults][%d] azure_key_vault_create default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AzureKeyVaultCreateDefault) 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_rekey_external_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// NewAzureKeyVaultRekeyExternalParams creates a new AzureKeyVaultRekeyExternalParams 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 NewAzureKeyVaultRekeyExternalParams() *AzureKeyVaultRekeyExternalParams {
return &AzureKeyVaultRekeyExternalParams{
timeout: cr.DefaultTimeout,
}
}
// NewAzureKeyVaultRekeyExternalParamsWithTimeout creates a new AzureKeyVaultRekeyExternalParams object
// with the ability to set a timeout on a request.
func NewAzureKeyVaultRekeyExternalParamsWithTimeout(timeout time.Duration) *AzureKeyVaultRekeyExternalParams {
return &AzureKeyVaultRekeyExternalParams{
timeout: timeout,
}
}
// NewAzureKeyVaultRekeyExternalParamsWithContext creates a new AzureKeyVaultRekeyExternalParams object
// with the ability to set a context for a request.
func NewAzureKeyVaultRekeyExternalParamsWithContext(ctx context.Context) *AzureKeyVaultRekeyExternalParams {
return &AzureKeyVaultRekeyExternalParams{
Context: ctx,
}
}
// NewAzureKeyVaultRekeyExternalParamsWithHTTPClient creates a new AzureKeyVaultRekeyExternalParams object
// with the ability to set a custom HTTPClient for a request.
func NewAzureKeyVaultRekeyExternalParamsWithHTTPClient(client *http.Client) *AzureKeyVaultRekeyExternalParams {
return &AzureKeyVaultRekeyExternalParams{
HTTPClient: client,
}
}
/*
AzureKeyVaultRekeyExternalParams contains all the parameters to send to the API endpoint
for the azure key vault rekey external operation.
Typically these are written to a http.Request.
*/
type AzureKeyVaultRekeyExternalParams struct {
/* AzureKeyVaultUUID.
UUID of the existing AKV configuration.
*/
AzureKeyVaultUUID string
/* Info.
AKV information.
*/
Info *models.AzureKeyVaultKey
/* 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 azure key vault rekey external params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultRekeyExternalParams) WithDefaults() *AzureKeyVaultRekeyExternalParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the azure key vault rekey external params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultRekeyExternalParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := AzureKeyVaultRekeyExternalParams{
ReturnRecords: &returnRecordsDefault,
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 rekey external params
func (o *AzureKeyVaultRekeyExternalParams) WithTimeout(timeout time.Duration) *AzureKeyVaultRekeyExternalParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) WithContext(ctx context.Context) *AzureKeyVaultRekeyExternalParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) WithHTTPClient(client *http.Client) *AzureKeyVaultRekeyExternalParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAzureKeyVaultUUID adds the azureKeyVaultUUID to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) WithAzureKeyVaultUUID(azureKeyVaultUUID string) *AzureKeyVaultRekeyExternalParams {
o.SetAzureKeyVaultUUID(azureKeyVaultUUID)
return o
}
// SetAzureKeyVaultUUID adds the azureKeyVaultUuid to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) SetAzureKeyVaultUUID(azureKeyVaultUUID string) {
o.AzureKeyVaultUUID = azureKeyVaultUUID
}
// WithInfo adds the info to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) WithInfo(info *models.AzureKeyVaultKey) *AzureKeyVaultRekeyExternalParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) SetInfo(info *models.AzureKeyVaultKey) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) WithReturnRecords(returnRecords *bool) *AzureKeyVaultRekeyExternalParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) WithReturnTimeout(returnTimeout *int64) *AzureKeyVaultRekeyExternalParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the azure key vault rekey external params
func (o *AzureKeyVaultRekeyExternalParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WriteToRequest writes these params to a swagger request
func (o *AzureKeyVaultRekeyExternalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param azure_key_vault.uuid
if err := r.SetPathParam("azure_key_vault.uuid", o.AzureKeyVaultUUID); 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/ssh_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ssh_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"
)
// NewSSHGetParams creates a new SSHGetParams 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 NewSSHGetParams() *SSHGetParams {
return &SSHGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSSHGetParamsWithTimeout creates a new SSHGetParams object
// with the ability to set a timeout on a request.
func NewSSHGetParamsWithTimeout(timeout time.Duration) *SSHGetParams {
return &SSHGetParams{
timeout: timeout,
}
}
// NewSSHGetParamsWithContext creates a new SSHGetParams object
// with the ability to set a context for a request.
func NewSSHGetParamsWithContext(ctx context.Context) *SSHGetParams {
return &SSHGetParams{
Context: ctx,
}
}
// NewSSHGetParamsWithHTTPClient creates a new SSHGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSSHGetParamsWithHTTPClient(client *http.Client) *SSHGetParams {
return &SSHGetParams{
HTTPClient: client,
}
}
/*
SSHGetParams contains all the parameters to send to the API endpoint
for the ssh get operation.
Typically these are written to a http.Request.
*/
type SSHGetParams struct {
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the ssh get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SSHGetParams) WithDefaults() *SSHGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the ssh get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SSHGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the ssh get params
func (o *SSHGetParams) WithTimeout(timeout time.Duration) *SSHGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the ssh get params
func (o *SSHGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the ssh get params
func (o *SSHGetParams) WithContext(ctx context.Context) *SSHGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the ssh get params
func (o *SSHGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the ssh get params
func (o *SSHGetParams) WithHTTPClient(client *http.Client) *SSHGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the ssh get params
func (o *SSHGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WriteToRequest writes these params to a swagger request
func (o *SSHGetParams) 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_approval_group_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_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"
)
// NewMultiAdminVerifyApprovalGroupGetParams creates a new MultiAdminVerifyApprovalGroupGetParams 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 NewMultiAdminVerifyApprovalGroupGetParams() *MultiAdminVerifyApprovalGroupGetParams {
return &MultiAdminVerifyApprovalGroupGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewMultiAdminVerifyApprovalGroupGetParamsWithTimeout creates a new MultiAdminVerifyApprovalGroupGetParams object
// with the ability to set a timeout on a request.
func NewMultiAdminVerifyApprovalGroupGetParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupGetParams {
return &MultiAdminVerifyApprovalGroupGetParams{
timeout: timeout,
}
}
// NewMultiAdminVerifyApprovalGroupGetParamsWithContext creates a new MultiAdminVerifyApprovalGroupGetParams object
// with the ability to set a context for a request.
func NewMultiAdminVerifyApprovalGroupGetParamsWithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupGetParams {
return &MultiAdminVerifyApprovalGroupGetParams{
Context: ctx,
}
}
// NewMultiAdminVerifyApprovalGroupGetParamsWithHTTPClient creates a new MultiAdminVerifyApprovalGroupGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewMultiAdminVerifyApprovalGroupGetParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupGetParams {
return &MultiAdminVerifyApprovalGroupGetParams{
HTTPClient: client,
}
}
/*
MultiAdminVerifyApprovalGroupGetParams contains all the parameters to send to the API endpoint
for the multi admin verify approval group get operation.
Typically these are written to a http.Request.
*/
type MultiAdminVerifyApprovalGroupGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
// 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 get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyApprovalGroupGetParams) WithDefaults() *MultiAdminVerifyApprovalGroupGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the multi admin verify approval group get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyApprovalGroupGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) WithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) WithFields(fields []string) *MultiAdminVerifyApprovalGroupGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithName adds the name to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) WithName(name string) *MultiAdminVerifyApprovalGroupGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) SetName(name string) {
o.Name = name
}
// WithOwnerUUID adds the ownerUUID to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) WithOwnerUUID(ownerUUID string) *MultiAdminVerifyApprovalGroupGetParams {
o.SetOwnerUUID(ownerUUID)
return o
}
// SetOwnerUUID adds the ownerUuid to the multi admin verify approval group get params
func (o *MultiAdminVerifyApprovalGroupGetParams) SetOwnerUUID(ownerUUID string) {
o.OwnerUUID = ownerUUID
}
// WriteToRequest writes these params to a swagger request
func (o *MultiAdminVerifyApprovalGroupGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
// path param owner.uuid
if err := r.SetPathParam("owner.uuid", o.OwnerUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamMultiAdminVerifyApprovalGroupGet binds the parameter fields
func (o *MultiAdminVerifyApprovalGroupGetParams) 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_privilege_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_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"
)
// RolePrivilegeCreateReader is a Reader for the RolePrivilegeCreate structure.
type RolePrivilegeCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *RolePrivilegeCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewRolePrivilegeCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewRolePrivilegeCreateDefault(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
}
}
// NewRolePrivilegeCreateCreated creates a RolePrivilegeCreateCreated with default headers values
func NewRolePrivilegeCreateCreated() *RolePrivilegeCreateCreated {
return &RolePrivilegeCreateCreated{}
}
/*
RolePrivilegeCreateCreated describes a response with status code 201, with default header values.
Created
*/
type RolePrivilegeCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
}
// IsSuccess returns true when this role privilege create created response has a 2xx status code
func (o *RolePrivilegeCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this role privilege create created response has a 3xx status code
func (o *RolePrivilegeCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this role privilege create created response has a 4xx status code
func (o *RolePrivilegeCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this role privilege create created response has a 5xx status code
func (o *RolePrivilegeCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this role privilege create created response a status code equal to that given
func (o *RolePrivilegeCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *RolePrivilegeCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/roles/{owner.uuid}/{name}/privileges][%d] rolePrivilegeCreateCreated ", 201)
}
func (o *RolePrivilegeCreateCreated) String() string {
return fmt.Sprintf("[POST /security/roles/{owner.uuid}/{name}/privileges][%d] rolePrivilegeCreateCreated ", 201)
}
func (o *RolePrivilegeCreateCreated) 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
}
// NewRolePrivilegeCreateDefault creates a RolePrivilegeCreateDefault with default headers values
func NewRolePrivilegeCreateDefault(code int) *RolePrivilegeCreateDefault {
return &RolePrivilegeCreateDefault{
_statusCode: code,
}
}
/*
RolePrivilegeCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 5636129 | A role with given name has not been defined. |
| 5636143 | A Vserver admin cannot use the API with this access level. |
| 5636144 | The value specified for the access level is not valid. |
| 5636169 | A character in the URI is not valid. |
| 5636170 | The URI does not exist. |
| 5636173 | This feature requires an effective cluster version of 9.6 or later. |
| 5636175 | Vserver admin cannot have access to given API. |
| 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. |
| 13434893 | The SVM does not exist. |
*/
type RolePrivilegeCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the role privilege create default response
func (o *RolePrivilegeCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this role privilege create default response has a 2xx status code
func (o *RolePrivilegeCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this role privilege create default response has a 3xx status code
func (o *RolePrivilegeCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this role privilege create default response has a 4xx status code
func (o *RolePrivilegeCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this role privilege create default response has a 5xx status code
func (o *RolePrivilegeCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this role privilege create default response a status code equal to that given
func (o *RolePrivilegeCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *RolePrivilegeCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/roles/{owner.uuid}/{name}/privileges][%d] role_privilege_create default %+v", o._statusCode, o.Payload)
}
func (o *RolePrivilegeCreateDefault) String() string {
return fmt.Sprintf("[POST /security/roles/{owner.uuid}/{name}/privileges][%d] role_privilege_create default %+v", o._statusCode, o.Payload)
}
func (o *RolePrivilegeCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *RolePrivilegeCreateDefault) 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_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"
)
// AccountModifyReader is a Reader for the AccountModify structure.
type AccountModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AccountModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAccountModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAccountModifyDefault(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
}
}
// NewAccountModifyOK creates a AccountModifyOK with default headers values
func NewAccountModifyOK() *AccountModifyOK {
return &AccountModifyOK{}
}
/*
AccountModifyOK describes a response with status code 200, with default header values.
OK
*/
type AccountModifyOK struct {
}
// IsSuccess returns true when this account modify o k response has a 2xx status code
func (o *AccountModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this account modify o k response has a 3xx status code
func (o *AccountModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this account modify o k response has a 4xx status code
func (o *AccountModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this account modify o k response has a 5xx status code
func (o *AccountModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this account modify o k response a status code equal to that given
func (o *AccountModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *AccountModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/accounts/{owner.uuid}/{name}][%d] accountModifyOK ", 200)
}
func (o *AccountModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/accounts/{owner.uuid}/{name}][%d] accountModifyOK ", 200)
}
func (o *AccountModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAccountModifyDefault creates a AccountModifyDefault with default headers values
func NewAccountModifyDefault(code int) *AccountModifyDefault {
return &AccountModifyDefault{
_statusCode: code,
}
}
/*
AccountModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 1261215 | The role was not found. |
| 1261218 | The user was not found. |
| 1263343 | Cannot lock user with password not set or non-password authentication method. |
| 5636096 | Cannot perform the operation for this user account since the password is not set. |
| 5636097 | The operation for user account failed since user password is not set. |
| 5636100 | Modification of a service-processor user's role to a non-admin role is not supported. |
| 5636125 | The operation not supported on AutoSupport user account which is reserved. |
| 5636129 | The role does not exist. |
| 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 | 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. |
| 5636159 | For a given user and application, if the second-authentication-method is specified, only one such login entry is supported. |
| 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. |
| 7077896 | Cannot lock the account of the last console admin user. |
| 7077906 | A role with that name has not been defined for the Vserver. |
| 7077911 | The user is not configured to use the password authentication method. |
| 7077918 | The password cannot contain the username. |
| 7077919 | The minimum length for new password does not meet the policy. |
| 7077920 | The new password must have both letters and numbers. |
| 7077921 | The minimum number of special characters required do not meet the policy. |
| 7077924 | The new password must be different than last N passwords. |
| 7077925 | The new password must be different to the old password. |
| 7077929 | Cannot lock user with password not set or non-password authentication method. |
| 7077940 | The password exceeds maximum supported length. |
| 7077941 | Defined password composition exceeds the maximum password length of 128 characters. |
| 7078900 | An aAdmin password is not set. Set the password by including it in the request. |
*/
type AccountModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the account modify default response
func (o *AccountModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this account modify default response has a 2xx status code
func (o *AccountModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this account modify default response has a 3xx status code
func (o *AccountModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this account modify default response has a 4xx status code
func (o *AccountModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this account modify default response has a 5xx status code
func (o *AccountModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this account modify default response a status code equal to that given
func (o *AccountModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AccountModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/accounts/{owner.uuid}/{name}][%d] account_modify default %+v", o._statusCode, o.Payload)
}
func (o *AccountModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/accounts/{owner.uuid}/{name}][%d] account_modify default %+v", o._statusCode, o.Payload)
}
func (o *AccountModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AccountModifyDefault) 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_client.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_client.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"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
)
// New creates a new security API client.
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
/*
Client for security API
*/
type Client struct {
transport runtime.ClientTransport
formats strfmt.Registry
}
// ClientOption is the option for Client methods
type ClientOption func(*runtime.ClientOperation)
// ClientService is the interface for Client methods
type ClientService interface {
AccountCollectionGet(params *AccountCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountCollectionGetOK, error)
AccountCreate(params *AccountCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountCreateCreated, error)
AccountDelete(params *AccountDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountDeleteOK, error)
AccountGet(params *AccountGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountGetOK, error)
AccountModify(params *AccountModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountModifyOK, error)
AccountPasswordCreate(params *AccountPasswordCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountPasswordCreateCreated, error)
AccountPublickeyDelete(params *AccountPublickeyDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountPublickeyDeleteOK, error)
AntiRansomwareSuspectCollectionGet(params *AntiRansomwareSuspectCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AntiRansomwareSuspectCollectionGetOK, error)
AntiRansomwareSuspectDelete(params *AntiRansomwareSuspectDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AntiRansomwareSuspectDeleteAccepted, error)
AuditLogForwardingGet(params *AuditLogForwardingGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuditLogForwardingGetOK, error)
AwsKmsCollectionGet(params *AwsKmsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsCollectionGetOK, error)
AwsKmsCreate(params *AwsKmsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsCreateCreated, error)
AwsKmsDelete(params *AwsKmsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsDeleteOK, error)
AwsKmsGet(params *AwsKmsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsGetOK, error)
AwsKmsModify(params *AwsKmsModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsModifyOK, error)
AwsKmsRekeyExternal(params *AwsKmsRekeyExternalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsRekeyExternalAccepted, error)
AwsKmsRekeyInternal(params *AwsKmsRekeyInternalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsRekeyInternalAccepted, error)
AwsKmsRestore(params *AwsKmsRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AwsKmsRestoreAccepted, error)
AzureKeyVaultCollectionGet(params *AzureKeyVaultCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultCollectionGetOK, error)
AzureKeyVaultCreate(params *AzureKeyVaultCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultCreateCreated, error)
AzureKeyVaultDelete(params *AzureKeyVaultDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultDeleteOK, error)
AzureKeyVaultGet(params *AzureKeyVaultGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultGetOK, error)
AzureKeyVaultModify(params *AzureKeyVaultModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultModifyOK, *AzureKeyVaultModifyAccepted, error)
AzureKeyVaultRekeyExternal(params *AzureKeyVaultRekeyExternalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultRekeyExternalAccepted, error)
AzureKeyVaultRekeyInternal(params *AzureKeyVaultRekeyInternalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultRekeyInternalAccepted, error)
AzureKeyVaultRestore(params *AzureKeyVaultRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AzureKeyVaultRestoreAccepted, error)
ClusterAccountAdProxyCreate(params *ClusterAccountAdProxyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterAccountAdProxyCreateCreated, error)
ClusterAccountAdProxyDelete(params *ClusterAccountAdProxyDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterAccountAdProxyDeleteOK, error)
ClusterAccountAdProxyGet(params *ClusterAccountAdProxyGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterAccountAdProxyGetOK, error)
ClusterAccountAdProxyModify(params *ClusterAccountAdProxyModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterAccountAdProxyModifyOK, error)
ClusterLdapCreate(params *ClusterLdapCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterLdapCreateCreated, error)
ClusterLdapDelete(params *ClusterLdapDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterLdapDeleteOK, error)
ClusterLdapGet(params *ClusterLdapGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterLdapGetOK, error)
ClusterLdapModify(params *ClusterLdapModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterLdapModifyOK, error)
ClusterNisCreate(params *ClusterNisCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNisCreateCreated, error)
ClusterNisDelete(params *ClusterNisDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNisDeleteOK, error)
ClusterNisGet(params *ClusterNisGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNisGetOK, error)
ClusterNisModify(params *ClusterNisModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterNisModifyOK, error)
CreateCertificateSigningRequest(params *CreateCertificateSigningRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCertificateSigningRequestOK, error)
GcpKmsCollectionGet(params *GcpKmsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsCollectionGetOK, error)
GcpKmsCreate(params *GcpKmsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsCreateCreated, error)
GcpKmsDelete(params *GcpKmsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsDeleteOK, error)
GcpKmsGet(params *GcpKmsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsGetOK, error)
GcpKmsModify(params *GcpKmsModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsModifyOK, *GcpKmsModifyAccepted, error)
GcpKmsRekeyExternal(params *GcpKmsRekeyExternalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsRekeyExternalAccepted, error)
GcpKmsRekeyInternal(params *GcpKmsRekeyInternalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsRekeyInternalAccepted, error)
GcpKmsRestore(params *GcpKmsRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GcpKmsRestoreAccepted, error)
IpsecCaCertificateCollectionGet(params *IpsecCaCertificateCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecCaCertificateCollectionGetOK, error)
IpsecCaCertificateCreate(params *IpsecCaCertificateCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecCaCertificateCreateCreated, error)
IpsecCaCertificateDelete(params *IpsecCaCertificateDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecCaCertificateDeleteOK, error)
IpsecCaCertificateGet(params *IpsecCaCertificateGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecCaCertificateGetOK, error)
IpsecGet(params *IpsecGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecGetOK, error)
IpsecModify(params *IpsecModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecModifyOK, error)
IpsecPolicyCollectionGet(params *IpsecPolicyCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecPolicyCollectionGetOK, error)
IpsecPolicyCreate(params *IpsecPolicyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecPolicyCreateCreated, error)
IpsecPolicyDelete(params *IpsecPolicyDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecPolicyDeleteOK, error)
IpsecPolicyGet(params *IpsecPolicyGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecPolicyGetOK, error)
IpsecPolicyModify(params *IpsecPolicyModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpsecPolicyModifyOK, error)
KeyManagerAuthKeyCollectionGet(params *KeyManagerAuthKeyCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerAuthKeyCollectionGetOK, error)
KeyManagerAuthKeyCreate(params *KeyManagerAuthKeyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerAuthKeyCreateCreated, error)
KeyManagerAuthKeyDelete(params *KeyManagerAuthKeyDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerAuthKeyDeleteOK, error)
KeyManagerAuthKeyGet(params *KeyManagerAuthKeyGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerAuthKeyGetOK, error)
KeyManagerConfigGet(params *KeyManagerConfigGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerConfigGetOK, error)
KeyManagerConfigModify(params *KeyManagerConfigModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerConfigModifyOK, error)
KeyManagerKeysCollectionGet(params *KeyManagerKeysCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerKeysCollectionGetOK, error)
KeyManagerKeysGet(params *KeyManagerKeysGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KeyManagerKeysGetOK, error)
LoginMessagesCollectionGet(params *LoginMessagesCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LoginMessagesCollectionGetOK, error)
LoginMessagesGet(params *LoginMessagesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LoginMessagesGetOK, error)
LoginMessagesModify(params *LoginMessagesModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LoginMessagesModifyOK, error)
MultiAdminVerifyApprovalGroupCollectionGet(params *MultiAdminVerifyApprovalGroupCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyApprovalGroupCollectionGetOK, error)
MultiAdminVerifyApprovalGroupCreate(params *MultiAdminVerifyApprovalGroupCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyApprovalGroupCreateCreated, error)
MultiAdminVerifyApprovalGroupDelete(params *MultiAdminVerifyApprovalGroupDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyApprovalGroupDeleteOK, error)
MultiAdminVerifyApprovalGroupGet(params *MultiAdminVerifyApprovalGroupGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyApprovalGroupGetOK, error)
MultiAdminVerifyApprovalGroupModify(params *MultiAdminVerifyApprovalGroupModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyApprovalGroupModifyOK, error)
MultiAdminVerifyConfigGet(params *MultiAdminVerifyConfigGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyConfigGetOK, error)
MultiAdminVerifyConfigModify(params *MultiAdminVerifyConfigModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyConfigModifyOK, error)
MultiAdminVerifyRequestCollectionGet(params *MultiAdminVerifyRequestCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRequestCollectionGetOK, error)
MultiAdminVerifyRequestCreate(params *MultiAdminVerifyRequestCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRequestCreateCreated, error)
MultiAdminVerifyRequestDelete(params *MultiAdminVerifyRequestDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRequestDeleteOK, error)
MultiAdminVerifyRequestGet(params *MultiAdminVerifyRequestGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRequestGetOK, error)
MultiAdminVerifyRequestModify(params *MultiAdminVerifyRequestModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRequestModifyOK, error)
MultiAdminVerifyRuleCollectionGet(params *MultiAdminVerifyRuleCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRuleCollectionGetOK, error)
MultiAdminVerifyRuleCreate(params *MultiAdminVerifyRuleCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRuleCreateCreated, error)
MultiAdminVerifyRuleDelete(params *MultiAdminVerifyRuleDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRuleDeleteOK, error)
MultiAdminVerifyRuleGet(params *MultiAdminVerifyRuleGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRuleGetOK, error)
MultiAdminVerifyRuleModify(params *MultiAdminVerifyRuleModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MultiAdminVerifyRuleModifyOK, error)
PublickeyCollectionGet(params *PublickeyCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublickeyCollectionGetOK, error)
PublickeyCreate(params *PublickeyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublickeyCreateCreated, error)
PublickeyGet(params *PublickeyGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublickeyGetOK, error)
PublickeyModify(params *PublickeyModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublickeyModifyOK, error)
RoleCollectionGet(params *RoleCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleCollectionGetOK, error)
RoleCreate(params *RoleCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleCreateCreated, error)
RoleDelete(params *RoleDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleDeleteOK, error)
RoleGet(params *RoleGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RoleGetOK, error)
RolePrivilegeCollectionGet(params *RolePrivilegeCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RolePrivilegeCollectionGetOK, error)
RolePrivilegeCreate(params *RolePrivilegeCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RolePrivilegeCreateCreated, error)
RolePrivilegeDelete(params *RolePrivilegeDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RolePrivilegeDeleteOK, error)
RolePrivilegeGet(params *RolePrivilegeGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RolePrivilegeGetOK, error)
RolePrivilegeModify(params *RolePrivilegeModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RolePrivilegeModifyOK, error)
SecurityAssociationCollectionGet(params *SecurityAssociationCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityAssociationCollectionGetOK, error)
SecurityAssociationGet(params *SecurityAssociationGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityAssociationGetOK, error)
SecurityAuditGet(params *SecurityAuditGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityAuditGetOK, error)
SecurityAuditLogCollectionGet(params *SecurityAuditLogCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityAuditLogCollectionGetOK, error)
SecurityAuditModify(params *SecurityAuditModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityAuditModifyOK, error)
SecurityCertificateCollectionGet(params *SecurityCertificateCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityCertificateCollectionGetOK, error)
SecurityCertificateCreate(params *SecurityCertificateCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityCertificateCreateCreated, error)
SecurityCertificateDelete(params *SecurityCertificateDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityCertificateDeleteOK, error)
SecurityCertificateGet(params *SecurityCertificateGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityCertificateGetOK, error)
SecurityCertificateSign(params *SecurityCertificateSignParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityCertificateSignOK, error)
SecurityConfigGet(params *SecurityConfigGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityConfigGetOK, error)
SecurityConfigModify(params *SecurityConfigModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityConfigModifyAccepted, error)
SecurityKeyManagerCollectionGet(params *SecurityKeyManagerCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerCollectionGetOK, error)
SecurityKeyManagerCreate(params *SecurityKeyManagerCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerCreateCreated, error)
SecurityKeyManagerDelete(params *SecurityKeyManagerDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerDeleteOK, error)
SecurityKeyManagerGet(params *SecurityKeyManagerGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerGetOK, error)
SecurityKeyManagerKeyServersCollectionGet(params *SecurityKeyManagerKeyServersCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerKeyServersCollectionGetOK, error)
SecurityKeyManagerKeyServersCreate(params *SecurityKeyManagerKeyServersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerKeyServersCreateCreated, error)
SecurityKeyManagerKeyServersDelete(params *SecurityKeyManagerKeyServersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerKeyServersDeleteOK, error)
SecurityKeyManagerKeyServersGet(params *SecurityKeyManagerKeyServersGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerKeyServersGetOK, error)
SecurityKeyManagerKeyServersModify(params *SecurityKeyManagerKeyServersModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerKeyServersModifyOK, error)
SecurityKeyManagerMigrate(params *SecurityKeyManagerMigrateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerMigrateAccepted, error)
SecurityKeyManagerModify(params *SecurityKeyManagerModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeyManagerModifyOK, error)
SecurityKeystoreCollectionGet(params *SecurityKeystoreCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityKeystoreCollectionGetOK, error)
SecurityLogForwardingCreate(params *SecurityLogForwardingCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityLogForwardingCreateAccepted, error)
SecurityLogForwardingDelete(params *SecurityLogForwardingDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityLogForwardingDeleteOK, error)
SecurityLogForwardingGet(params *SecurityLogForwardingGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityLogForwardingGetOK, error)
SecurityLogForwardingModify(params *SecurityLogForwardingModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecurityLogForwardingModifyOK, error)
SecuritySamlSpCreate(params *SecuritySamlSpCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecuritySamlSpCreateAccepted, error)
SecuritySamlSpDelete(params *SecuritySamlSpDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecuritySamlSpDeleteOK, error)
SecuritySamlSpGet(params *SecuritySamlSpGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecuritySamlSpGetOK, error)
SecuritySamlSpModify(params *SecuritySamlSpModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecuritySamlSpModifyOK, error)
SSHGet(params *SSHGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SSHGetOK, error)
SSHModify(params *SSHModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SSHModifyOK, error)
SvmSSHServerCollectionGet(params *SvmSSHServerCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SvmSSHServerCollectionGetOK, error)
SvmSSHServerGet(params *SvmSSHServerGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SvmSSHServerGetOK, error)
SvmSSHServerModify(params *SvmSSHServerModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SvmSSHServerModifyOK, error)
SetTransport(transport runtime.ClientTransport)
}
/*
AccountCollectionGet Retrieves a list of user accounts in the cluster.
### Related ONTAP commands
* `security login show`
### Learn more
* [`DOC /security/accounts`](#docs-security-security_accounts)
*/
func (a *Client) AccountCollectionGet(params *AccountCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountCollectionGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAccountCollectionGetParams()
}
op := &runtime.ClientOperation{
ID: "account_collection_get",
Method: "GET",
PathPattern: "/security/accounts",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AccountCollectionGetReader{formats: a.formats},
AuthInfo: authInfo,
Context: params.Context,
Client: params.HTTPClient,
}
for _, opt := range opts {
opt(op)
}
result, err := a.transport.Submit(op)
if err != nil {
return nil, err
}
success, ok := result.(*AccountCollectionGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*AccountCollectionGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
AccountCreate Creates a new user account.
### Required parameters
* `name` - Account name to be created.
* `applications` - Array of one or more application tuples (of application and authentication methods).
### Optional parameters
* `owner.name` or `owner.uuid` - Name or UUID of the SVM for an SVM-scoped user account. If not supplied, a cluster-scoped user account is created.
* `role` - RBAC role for the user account. Defaulted to `admin` for cluster user account and to `vsadmin` for SVM-scoped account.
* `password` - Password for the user account (if the authentication method is opted as password for one or more of applications).
* `second_authentication_method` - Needed for MFA and only supported for ssh application. Defaults to `none` if not supplied.
* `comment` - Comment for the user account (e.g purpose of this account).
* `locked` - Locks the account after creation. Defaults to `false` if not supplied.
* `ldap_fastbind` - Needed for LDAP Fastbind Authentication and only supported for applications SSH, ONTAPI, and HTTP with authentication method "nsswitch" only. Defaults to false if not supplied.
### Related ONTAP commands
* `security login create`
### Learn more
* [`DOC /security/accounts`](#docs-security-security_accounts)
*/
func (a *Client) AccountCreate(params *AccountCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountCreateCreated, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAccountCreateParams()
}
op := &runtime.ClientOperation{
ID: "account_create",
Method: "POST",
PathPattern: "/security/accounts",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AccountCreateReader{formats: a.formats},
AuthInfo: authInfo,
Context: params.Context,
Client: params.HTTPClient,
}
for _, opt := range opts {
opt(op)
}
result, err := a.transport.Submit(op)
if err != nil {
return nil, err
}
success, ok := result.(*AccountCreateCreated)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*AccountCreateDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
AccountDelete Deletes a user account.
### Required parameters
* `name` - Account name to be deleted.
* `owner.uuid` - UUID of the SVM housing the user account to be deleted.
### Related ONTAP commands
* `security login delete`
### Learn more
* [`DOC /security/accounts/{owner.uuid}/{name}`](#docs-security-security_accounts_{owner.uuid}_{name})
* [`DOC /security/accounts`](#docs-security-security_accounts)
*/
func (a *Client) AccountDelete(params *AccountDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountDeleteOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAccountDeleteParams()
}
op := &runtime.ClientOperation{
ID: "account_delete",
Method: "DELETE",
PathPattern: "/security/accounts/{owner.uuid}/{name}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AccountDeleteReader{formats: a.formats},
AuthInfo: authInfo,
Context: params.Context,
Client: params.HTTPClient,
}
for _, opt := range opts {
opt(op)
}
result, err := a.transport.Submit(op)
if err != nil {
return nil, err
}
success, ok := result.(*AccountDeleteOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*AccountDeleteDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
AccountGet Retrieves a specific user account.
### Related ONTAP commands
* `security login show`
### Learn more
* [`DOC /security/accounts/{owner.uuid}/{name}`](#docs-security-security_accounts_{owner.uuid}_{name})
* [`DOC /security/accounts`](#docs-security-security_accounts)
*/
func (a *Client) AccountGet(params *AccountGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAccountGetParams()
}
op := &runtime.ClientOperation{
ID: "account_get",
Method: "GET",
PathPattern: "/security/accounts/{owner.uuid}/{name}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AccountGetReader{formats: a.formats},
AuthInfo: authInfo,
Context: params.Context,
Client: params.HTTPClient,
}
for _, opt := range opts {
opt(op)
}
result, err := a.transport.Submit(op)
if err != nil {
return nil, err
}
success, ok := result.(*AccountGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*AccountGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
AccountModify Updates a user account. Locks or unlocks a user account and/or updates the role, applications, and/or password for the user account.
### Required parameters
* `name` - Account name to be updated.
* `owner.uuid` - UUID of the SVM housing the user account to be updated.
### Optional parameters
* `applications` - Array of one or more tuples (of application and authentication methods).
* `role` - RBAC role for the user account.
* `password` - Password for the user account (if the authentication method is opted as password for one or more of applications).
* `second_authentication_method` - Needed for MFA and only supported for ssh application. Defaults to `none` if not supplied.
* `comment` - Comment for the user account (e.g purpose of this account).
* `locked` - Set to true/false to lock/unlock the account.
* `ldap_fastbind` - Set to true/false to enable LDAP Fastbind Authentication.
### Related ONTAP commands
* `security login create`
* `security login modify`
* `security login password`
* `security login lock`
* `security login unlock`
### Learn more
* [`DOC /security/accounts/{owner.uuid}/{name}`](#docs-security-security_accounts_{owner.uuid}_{name})
* [`DOC /security/accounts`](#docs-security-security_accounts)
*/
func (a *Client) AccountModify(params *AccountModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccountModifyOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAccountModifyParams()
}
op := &runtime.ClientOperation{
ID: "account_modify",
Method: "PATCH",
PathPattern: "/security/accounts/{owner.uuid}/{name}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AccountModifyReader{formats: a.formats},
AuthInfo: authInfo,
Context: params.Context,
Client: params.HTTPClient,
}
for _, opt := range opts {
opt(op)
}
result, err := a.transport.Submit(op)
if err != nil {
return nil, err
}
success, ok := result.(*AccountModifyOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*AccountModifyDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
AccountPasswordCreate Updates the password for a user account.
### Required parameters
* `name` - User account name.
* `password` - New password for the user account.
### Optional parameters
* `owner.name` or `owner.uuid` - Name or UUID of the SVM for an SVM-scoped user account.
* `password_hash_algorithm` - Optional property that specifies the password hash algorithm used to generate a hash of the user's password for password matching. Default value is "sha512".
### Related ONTAP commands
* `security login password`
### Learn more
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/anti_ransomware_suspect_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/anti_ransomware_suspect_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"
)
// AntiRansomwareSuspectCollectionGetReader is a Reader for the AntiRansomwareSuspectCollectionGet structure.
type AntiRansomwareSuspectCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AntiRansomwareSuspectCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAntiRansomwareSuspectCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAntiRansomwareSuspectCollectionGetDefault(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
}
}
// NewAntiRansomwareSuspectCollectionGetOK creates a AntiRansomwareSuspectCollectionGetOK with default headers values
func NewAntiRansomwareSuspectCollectionGetOK() *AntiRansomwareSuspectCollectionGetOK {
return &AntiRansomwareSuspectCollectionGetOK{}
}
/*
AntiRansomwareSuspectCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type AntiRansomwareSuspectCollectionGetOK struct {
Payload *models.AntiRansomwareSuspectResponse
}
// IsSuccess returns true when this anti ransomware suspect collection get o k response has a 2xx status code
func (o *AntiRansomwareSuspectCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this anti ransomware suspect collection get o k response has a 3xx status code
func (o *AntiRansomwareSuspectCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this anti ransomware suspect collection get o k response has a 4xx status code
func (o *AntiRansomwareSuspectCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this anti ransomware suspect collection get o k response has a 5xx status code
func (o *AntiRansomwareSuspectCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this anti ransomware suspect collection get o k response a status code equal to that given
func (o *AntiRansomwareSuspectCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *AntiRansomwareSuspectCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/anti-ransomware/suspects][%d] antiRansomwareSuspectCollectionGetOK %+v", 200, o.Payload)
}
func (o *AntiRansomwareSuspectCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/anti-ransomware/suspects][%d] antiRansomwareSuspectCollectionGetOK %+v", 200, o.Payload)
}
func (o *AntiRansomwareSuspectCollectionGetOK) GetPayload() *models.AntiRansomwareSuspectResponse {
return o.Payload
}
func (o *AntiRansomwareSuspectCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.AntiRansomwareSuspectResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAntiRansomwareSuspectCollectionGetDefault creates a AntiRansomwareSuspectCollectionGetDefault with default headers values
func NewAntiRansomwareSuspectCollectionGetDefault(code int) *AntiRansomwareSuspectCollectionGetDefault {
return &AntiRansomwareSuspectCollectionGetDefault{
_statusCode: code,
}
}
/*
AntiRansomwareSuspectCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type AntiRansomwareSuspectCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the anti ransomware suspect collection get default response
func (o *AntiRansomwareSuspectCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this anti ransomware suspect collection get default response has a 2xx status code
func (o *AntiRansomwareSuspectCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this anti ransomware suspect collection get default response has a 3xx status code
func (o *AntiRansomwareSuspectCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this anti ransomware suspect collection get default response has a 4xx status code
func (o *AntiRansomwareSuspectCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this anti ransomware suspect collection get default response has a 5xx status code
func (o *AntiRansomwareSuspectCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this anti ransomware suspect collection get default response a status code equal to that given
func (o *AntiRansomwareSuspectCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AntiRansomwareSuspectCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/anti-ransomware/suspects][%d] anti_ransomware_suspect_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AntiRansomwareSuspectCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/anti-ransomware/suspects][%d] anti_ransomware_suspect_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AntiRansomwareSuspectCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AntiRansomwareSuspectCollectionGetDefault) 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_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"
)
// SecurityLogForwardingModifyReader is a Reader for the SecurityLogForwardingModify structure.
type SecurityLogForwardingModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityLogForwardingModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityLogForwardingModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityLogForwardingModifyDefault(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
}
}
// NewSecurityLogForwardingModifyOK creates a SecurityLogForwardingModifyOK with default headers values
func NewSecurityLogForwardingModifyOK() *SecurityLogForwardingModifyOK {
return &SecurityLogForwardingModifyOK{}
}
/*
SecurityLogForwardingModifyOK describes a response with status code 200, with default header values.
OK
*/
type SecurityLogForwardingModifyOK struct {
Payload *models.SecurityAuditLogForward
}
// IsSuccess returns true when this security log forwarding modify o k response has a 2xx status code
func (o *SecurityLogForwardingModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security log forwarding modify o k response has a 3xx status code
func (o *SecurityLogForwardingModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security log forwarding modify o k response has a 4xx status code
func (o *SecurityLogForwardingModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security log forwarding modify o k response has a 5xx status code
func (o *SecurityLogForwardingModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this security log forwarding modify o k response a status code equal to that given
func (o *SecurityLogForwardingModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityLogForwardingModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/audit/destinations/{address}/{port}][%d] securityLogForwardingModifyOK %+v", 200, o.Payload)
}
func (o *SecurityLogForwardingModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/audit/destinations/{address}/{port}][%d] securityLogForwardingModifyOK %+v", 200, o.Payload)
}
func (o *SecurityLogForwardingModifyOK) GetPayload() *models.SecurityAuditLogForward {
return o.Payload
}
func (o *SecurityLogForwardingModifyOK) 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
}
// NewSecurityLogForwardingModifyDefault creates a SecurityLogForwardingModifyDefault with default headers values
func NewSecurityLogForwardingModifyDefault(code int) *SecurityLogForwardingModifyDefault {
return &SecurityLogForwardingModifyDefault{
_statusCode: code,
}
}
/*
SecurityLogForwardingModifyDefault describes a response with status code -1, with default header values.
Default
*/
type SecurityLogForwardingModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security log forwarding modify default response
func (o *SecurityLogForwardingModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security log forwarding modify default response has a 2xx status code
func (o *SecurityLogForwardingModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security log forwarding modify default response has a 3xx status code
func (o *SecurityLogForwardingModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security log forwarding modify default response has a 4xx status code
func (o *SecurityLogForwardingModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security log forwarding modify default response has a 5xx status code
func (o *SecurityLogForwardingModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security log forwarding modify default response a status code equal to that given
func (o *SecurityLogForwardingModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityLogForwardingModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/audit/destinations/{address}/{port}][%d] security_log_forwarding_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecurityLogForwardingModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/audit/destinations/{address}/{port}][%d] security_log_forwarding_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecurityLogForwardingModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityLogForwardingModifyDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_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"
)
// AccountDeleteReader is a Reader for the AccountDelete structure.
type AccountDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AccountDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAccountDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAccountDeleteDefault(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
}
}
// NewAccountDeleteOK creates a AccountDeleteOK with default headers values
func NewAccountDeleteOK() *AccountDeleteOK {
return &AccountDeleteOK{}
}
/*
AccountDeleteOK describes a response with status code 200, with default header values.
OK
*/
type AccountDeleteOK struct {
}
// IsSuccess returns true when this account delete o k response has a 2xx status code
func (o *AccountDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this account delete o k response has a 3xx status code
func (o *AccountDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this account delete o k response has a 4xx status code
func (o *AccountDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this account delete o k response has a 5xx status code
func (o *AccountDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this account delete o k response a status code equal to that given
func (o *AccountDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *AccountDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/accounts/{owner.uuid}/{name}][%d] accountDeleteOK ", 200)
}
func (o *AccountDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/accounts/{owner.uuid}/{name}][%d] accountDeleteOK ", 200)
}
func (o *AccountDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAccountDeleteDefault creates a AccountDeleteDefault with default headers values
func NewAccountDeleteDefault(code int) *AccountDeleteDefault {
return &AccountDeleteDefault{
_statusCode: code,
}
}
/*
AccountDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 5636098 | Last unlocked account that has an admin role cannot be deleted. |
| 5636125 | The operation is not supported on system accounts. |
| 5636146 | Cannot delete the last console account with admin role. |
*/
type AccountDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the account delete default response
func (o *AccountDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this account delete default response has a 2xx status code
func (o *AccountDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this account delete default response has a 3xx status code
func (o *AccountDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this account delete default response has a 4xx status code
func (o *AccountDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this account delete default response has a 5xx status code
func (o *AccountDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this account delete default response a status code equal to that given
func (o *AccountDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AccountDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/accounts/{owner.uuid}/{name}][%d] account_delete default %+v", o._statusCode, o.Payload)
}
func (o *AccountDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/accounts/{owner.uuid}/{name}][%d] account_delete default %+v", o._statusCode, o.Payload)
}
func (o *AccountDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AccountDeleteDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_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"
)
// IpsecPolicyGetReader is a Reader for the IpsecPolicyGet structure.
type IpsecPolicyGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *IpsecPolicyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewIpsecPolicyGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewIpsecPolicyGetDefault(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
}
}
// NewIpsecPolicyGetOK creates a IpsecPolicyGetOK with default headers values
func NewIpsecPolicyGetOK() *IpsecPolicyGetOK {
return &IpsecPolicyGetOK{}
}
/*
IpsecPolicyGetOK describes a response with status code 200, with default header values.
OK
*/
type IpsecPolicyGetOK struct {
Payload *models.IpsecPolicy
}
// IsSuccess returns true when this ipsec policy get o k response has a 2xx status code
func (o *IpsecPolicyGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this ipsec policy get o k response has a 3xx status code
func (o *IpsecPolicyGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this ipsec policy get o k response has a 4xx status code
func (o *IpsecPolicyGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this ipsec policy get o k response has a 5xx status code
func (o *IpsecPolicyGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this ipsec policy get o k response a status code equal to that given
func (o *IpsecPolicyGetOK) IsCode(code int) bool {
return code == 200
}
func (o *IpsecPolicyGetOK) Error() string {
return fmt.Sprintf("[GET /security/ipsec/policies/{uuid}][%d] ipsecPolicyGetOK %+v", 200, o.Payload)
}
func (o *IpsecPolicyGetOK) String() string {
return fmt.Sprintf("[GET /security/ipsec/policies/{uuid}][%d] ipsecPolicyGetOK %+v", 200, o.Payload)
}
func (o *IpsecPolicyGetOK) GetPayload() *models.IpsecPolicy {
return o.Payload
}
func (o *IpsecPolicyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.IpsecPolicy)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewIpsecPolicyGetDefault creates a IpsecPolicyGetDefault with default headers values
func NewIpsecPolicyGetDefault(code int) *IpsecPolicyGetDefault {
return &IpsecPolicyGetDefault{
_statusCode: code,
}
}
/*
IpsecPolicyGetDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 66257116 | IPsec policy with the specified UUID was not found. |
*/
type IpsecPolicyGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the ipsec policy get default response
func (o *IpsecPolicyGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this ipsec policy get default response has a 2xx status code
func (o *IpsecPolicyGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this ipsec policy get default response has a 3xx status code
func (o *IpsecPolicyGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this ipsec policy get default response has a 4xx status code
func (o *IpsecPolicyGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this ipsec policy get default response has a 5xx status code
func (o *IpsecPolicyGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this ipsec policy get default response a status code equal to that given
func (o *IpsecPolicyGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *IpsecPolicyGetDefault) Error() string {
return fmt.Sprintf("[GET /security/ipsec/policies/{uuid}][%d] ipsec_policy_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecPolicyGetDefault) String() string {
return fmt.Sprintf("[GET /security/ipsec/policies/{uuid}][%d] ipsec_policy_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecPolicyGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *IpsecPolicyGetDefault) 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_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_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"
)
// NewRoleCollectionGetParams creates a new RoleCollectionGetParams 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 NewRoleCollectionGetParams() *RoleCollectionGetParams {
return &RoleCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewRoleCollectionGetParamsWithTimeout creates a new RoleCollectionGetParams object
// with the ability to set a timeout on a request.
func NewRoleCollectionGetParamsWithTimeout(timeout time.Duration) *RoleCollectionGetParams {
return &RoleCollectionGetParams{
timeout: timeout,
}
}
// NewRoleCollectionGetParamsWithContext creates a new RoleCollectionGetParams object
// with the ability to set a context for a request.
func NewRoleCollectionGetParamsWithContext(ctx context.Context) *RoleCollectionGetParams {
return &RoleCollectionGetParams{
Context: ctx,
}
}
// NewRoleCollectionGetParamsWithHTTPClient creates a new RoleCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewRoleCollectionGetParamsWithHTTPClient(client *http.Client) *RoleCollectionGetParams {
return &RoleCollectionGetParams{
HTTPClient: client,
}
}
/*
RoleCollectionGetParams contains all the parameters to send to the API endpoint
for the role collection get operation.
Typically these are written to a http.Request.
*/
type RoleCollectionGetParams struct {
/* Builtin.
Filter by builtin
*/
Builtin *bool
/* 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
/* PrivilegesAccess.
Filter by privileges.access
*/
PrivilegesAccess *string
/* PrivilegesPath.
Filter by privileges.path
*/
PrivilegesPath *string
/* PrivilegesQuery.
Filter by privileges.query
*/
PrivilegesQuery *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
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the role collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *RoleCollectionGetParams) WithDefaults() *RoleCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the role collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *RoleCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := RoleCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the role collection get params
func (o *RoleCollectionGetParams) WithTimeout(timeout time.Duration) *RoleCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the role collection get params
func (o *RoleCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the role collection get params
func (o *RoleCollectionGetParams) WithContext(ctx context.Context) *RoleCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the role collection get params
func (o *RoleCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the role collection get params
func (o *RoleCollectionGetParams) WithHTTPClient(client *http.Client) *RoleCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the role collection get params
func (o *RoleCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithBuiltin adds the builtin to the role collection get params
func (o *RoleCollectionGetParams) WithBuiltin(builtin *bool) *RoleCollectionGetParams {
o.SetBuiltin(builtin)
return o
}
// SetBuiltin adds the builtin to the role collection get params
func (o *RoleCollectionGetParams) SetBuiltin(builtin *bool) {
o.Builtin = builtin
}
// WithFields adds the fields to the role collection get params
func (o *RoleCollectionGetParams) WithFields(fields []string) *RoleCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the role collection get params
func (o *RoleCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithMaxRecords adds the maxRecords to the role collection get params
func (o *RoleCollectionGetParams) WithMaxRecords(maxRecords *int64) *RoleCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the role collection get params
func (o *RoleCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the role collection get params
func (o *RoleCollectionGetParams) WithName(name *string) *RoleCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the role collection get params
func (o *RoleCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the role collection get params
func (o *RoleCollectionGetParams) WithOrderBy(orderBy []string) *RoleCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the role collection get params
func (o *RoleCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithOwnerName adds the ownerName to the role collection get params
func (o *RoleCollectionGetParams) WithOwnerName(ownerName *string) *RoleCollectionGetParams {
o.SetOwnerName(ownerName)
return o
}
// SetOwnerName adds the ownerName to the role collection get params
func (o *RoleCollectionGetParams) SetOwnerName(ownerName *string) {
o.OwnerName = ownerName
}
// WithOwnerUUID adds the ownerUUID to the role collection get params
func (o *RoleCollectionGetParams) WithOwnerUUID(ownerUUID *string) *RoleCollectionGetParams {
o.SetOwnerUUID(ownerUUID)
return o
}
// SetOwnerUUID adds the ownerUuid to the role collection get params
func (o *RoleCollectionGetParams) SetOwnerUUID(ownerUUID *string) {
o.OwnerUUID = ownerUUID
}
// WithPrivilegesAccess adds the privilegesAccess to the role collection get params
func (o *RoleCollectionGetParams) WithPrivilegesAccess(privilegesAccess *string) *RoleCollectionGetParams {
o.SetPrivilegesAccess(privilegesAccess)
return o
}
// SetPrivilegesAccess adds the privilegesAccess to the role collection get params
func (o *RoleCollectionGetParams) SetPrivilegesAccess(privilegesAccess *string) {
o.PrivilegesAccess = privilegesAccess
}
// WithPrivilegesPath adds the privilegesPath to the role collection get params
func (o *RoleCollectionGetParams) WithPrivilegesPath(privilegesPath *string) *RoleCollectionGetParams {
o.SetPrivilegesPath(privilegesPath)
return o
}
// SetPrivilegesPath adds the privilegesPath to the role collection get params
func (o *RoleCollectionGetParams) SetPrivilegesPath(privilegesPath *string) {
o.PrivilegesPath = privilegesPath
}
// WithPrivilegesQuery adds the privilegesQuery to the role collection get params
func (o *RoleCollectionGetParams) WithPrivilegesQuery(privilegesQuery *string) *RoleCollectionGetParams {
o.SetPrivilegesQuery(privilegesQuery)
return o
}
// SetPrivilegesQuery adds the privilegesQuery to the role collection get params
func (o *RoleCollectionGetParams) SetPrivilegesQuery(privilegesQuery *string) {
o.PrivilegesQuery = privilegesQuery
}
// WithReturnRecords adds the returnRecords to the role collection get params
func (o *RoleCollectionGetParams) WithReturnRecords(returnRecords *bool) *RoleCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the role collection get params
func (o *RoleCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the role collection get params
func (o *RoleCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *RoleCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the role collection get params
func (o *RoleCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithScope adds the scope to the role collection get params
func (o *RoleCollectionGetParams) WithScope(scope *string) *RoleCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the role collection get params
func (o *RoleCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WriteToRequest writes these params to a swagger request
func (o *RoleCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Builtin != nil {
// query param builtin
var qrBuiltin bool
if o.Builtin != nil {
qrBuiltin = *o.Builtin
}
qBuiltin := swag.FormatBool(qrBuiltin)
if qBuiltin != "" {
if err := r.SetQueryParam("builtin", qBuiltin); 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.PrivilegesAccess != nil {
// query param privileges.access
var qrPrivilegesAccess string
if o.PrivilegesAccess != nil {
qrPrivilegesAccess = *o.PrivilegesAccess
}
qPrivilegesAccess := qrPrivilegesAccess
if qPrivilegesAccess != "" {
if err := r.SetQueryParam("privileges.access", qPrivilegesAccess); err != nil {
return err
}
}
}
if o.PrivilegesPath != nil {
// query param privileges.path
var qrPrivilegesPath string
if o.PrivilegesPath != nil {
qrPrivilegesPath = *o.PrivilegesPath
}
qPrivilegesPath := qrPrivilegesPath
if qPrivilegesPath != "" {
if err := r.SetQueryParam("privileges.path", qPrivilegesPath); err != nil {
return err
}
}
}
if o.PrivilegesQuery != nil {
// query param privileges.query
var qrPrivilegesQuery string
if o.PrivilegesQuery != nil {
qrPrivilegesQuery = *o.PrivilegesQuery
}
qPrivilegesQuery := qrPrivilegesQuery
if qPrivilegesQuery != "" {
if err := r.SetQueryParam("privileges.query", qPrivilegesQuery); 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 len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamRoleCollectionGet binds the parameter fields
func (o *RoleCollectionGetParams) 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
}
// bindParamRoleCollectionGet binds the parameter order_by
func (o *RoleCollectionGetParams) 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_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_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"
)
// NewRolePrivilegeCollectionGetParams creates a new RolePrivilegeCollectionGetParams 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 NewRolePrivilegeCollectionGetParams() *RolePrivilegeCollectionGetParams {
return &RolePrivilegeCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewRolePrivilegeCollectionGetParamsWithTimeout creates a new RolePrivilegeCollectionGetParams object
// with the ability to set a timeout on a request.
func NewRolePrivilegeCollectionGetParamsWithTimeout(timeout time.Duration) *RolePrivilegeCollectionGetParams {
return &RolePrivilegeCollectionGetParams{
timeout: timeout,
}
}
// NewRolePrivilegeCollectionGetParamsWithContext creates a new RolePrivilegeCollectionGetParams object
// with the ability to set a context for a request.
func NewRolePrivilegeCollectionGetParamsWithContext(ctx context.Context) *RolePrivilegeCollectionGetParams {
return &RolePrivilegeCollectionGetParams{
Context: ctx,
}
}
// NewRolePrivilegeCollectionGetParamsWithHTTPClient creates a new RolePrivilegeCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewRolePrivilegeCollectionGetParamsWithHTTPClient(client *http.Client) *RolePrivilegeCollectionGetParams {
return &RolePrivilegeCollectionGetParams{
HTTPClient: client,
}
}
/*
RolePrivilegeCollectionGetParams contains all the parameters to send to the API endpoint
for the role privilege collection get operation.
Typically these are written to a http.Request.
*/
type RolePrivilegeCollectionGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Name.
Role name
*/
Name string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* OwnerUUID.
Role 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 role privilege collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *RolePrivilegeCollectionGetParams) WithDefaults() *RolePrivilegeCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the role privilege collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *RolePrivilegeCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := RolePrivilegeCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithTimeout(timeout time.Duration) *RolePrivilegeCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithContext(ctx context.Context) *RolePrivilegeCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithHTTPClient(client *http.Client) *RolePrivilegeCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithFields(fields []string) *RolePrivilegeCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithMaxRecords adds the maxRecords to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithMaxRecords(maxRecords *int64) *RolePrivilegeCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithName(name string) *RolePrivilegeCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetName(name string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithOrderBy(orderBy []string) *RolePrivilegeCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithOwnerUUID adds the ownerUUID to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithOwnerUUID(ownerUUID string) *RolePrivilegeCollectionGetParams {
o.SetOwnerUUID(ownerUUID)
return o
}
// SetOwnerUUID adds the ownerUuid to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetOwnerUUID(ownerUUID string) {
o.OwnerUUID = ownerUUID
}
// WithReturnRecords adds the returnRecords to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithReturnRecords(returnRecords *bool) *RolePrivilegeCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *RolePrivilegeCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the role privilege collection get params
func (o *RolePrivilegeCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WriteToRequest writes these params to a swagger request
func (o *RolePrivilegeCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
if o.MaxRecords != nil {
// query param max_records
var qrMaxRecords int64
if o.MaxRecords != nil {
qrMaxRecords = *o.MaxRecords
}
qMaxRecords := swag.FormatInt64(qrMaxRecords)
if qMaxRecords != "" {
if err := r.SetQueryParam("max_records", qMaxRecords); err != nil {
return err
}
}
}
// path param name
if err := r.SetPathParam("name", o.Name); 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
}
// bindParamRolePrivilegeCollectionGet binds the parameter fields
func (o *RolePrivilegeCollectionGetParams) 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
}
// bindParamRolePrivilegeCollectionGet binds the parameter order_by
func (o *RolePrivilegeCollectionGetParams) 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/azure_key_vault_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// NewAzureKeyVaultCollectionGetParams creates a new AzureKeyVaultCollectionGetParams 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 NewAzureKeyVaultCollectionGetParams() *AzureKeyVaultCollectionGetParams {
return &AzureKeyVaultCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewAzureKeyVaultCollectionGetParamsWithTimeout creates a new AzureKeyVaultCollectionGetParams object
// with the ability to set a timeout on a request.
func NewAzureKeyVaultCollectionGetParamsWithTimeout(timeout time.Duration) *AzureKeyVaultCollectionGetParams {
return &AzureKeyVaultCollectionGetParams{
timeout: timeout,
}
}
// NewAzureKeyVaultCollectionGetParamsWithContext creates a new AzureKeyVaultCollectionGetParams object
// with the ability to set a context for a request.
func NewAzureKeyVaultCollectionGetParamsWithContext(ctx context.Context) *AzureKeyVaultCollectionGetParams {
return &AzureKeyVaultCollectionGetParams{
Context: ctx,
}
}
// NewAzureKeyVaultCollectionGetParamsWithHTTPClient creates a new AzureKeyVaultCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewAzureKeyVaultCollectionGetParamsWithHTTPClient(client *http.Client) *AzureKeyVaultCollectionGetParams {
return &AzureKeyVaultCollectionGetParams{
HTTPClient: client,
}
}
/*
AzureKeyVaultCollectionGetParams contains all the parameters to send to the API endpoint
for the azure key vault collection get operation.
Typically these are written to a http.Request.
*/
type AzureKeyVaultCollectionGetParams struct {
/* AuthenticationMethod.
Filter by authentication_method
*/
AuthenticationMethod *string
/* AzureReachabilityCode.
Filter by azure_reachability.code
*/
AzureReachabilityCode *string
/* AzureReachabilityMessage.
Filter by azure_reachability.message
*/
AzureReachabilityMessage *string
/* AzureReachabilityReachable.
Filter by azure_reachability.reachable
*/
AzureReachabilityReachable *bool
/* ClientID.
Filter by client_id
*/
ClientID *string
/* 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
/* KeyID.
Filter by key_id
*/
KeyID *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
/* 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
/* StateAvailable.
Filter by state.available
*/
StateAvailable *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
/* TenantID.
Filter by tenant_id
*/
TenantID *string
/* UUID.
Filter by uuid
*/
UUID *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the azure key vault collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultCollectionGetParams) WithDefaults() *AzureKeyVaultCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the azure key vault collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := AzureKeyVaultCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
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 collection get params
func (o *AzureKeyVaultCollectionGetParams) WithTimeout(timeout time.Duration) *AzureKeyVaultCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithContext(ctx context.Context) *AzureKeyVaultCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithHTTPClient(client *http.Client) *AzureKeyVaultCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAuthenticationMethod adds the authenticationMethod to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithAuthenticationMethod(authenticationMethod *string) *AzureKeyVaultCollectionGetParams {
o.SetAuthenticationMethod(authenticationMethod)
return o
}
// SetAuthenticationMethod adds the authenticationMethod to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetAuthenticationMethod(authenticationMethod *string) {
o.AuthenticationMethod = authenticationMethod
}
// WithAzureReachabilityCode adds the azureReachabilityCode to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithAzureReachabilityCode(azureReachabilityCode *string) *AzureKeyVaultCollectionGetParams {
o.SetAzureReachabilityCode(azureReachabilityCode)
return o
}
// SetAzureReachabilityCode adds the azureReachabilityCode to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetAzureReachabilityCode(azureReachabilityCode *string) {
o.AzureReachabilityCode = azureReachabilityCode
}
// WithAzureReachabilityMessage adds the azureReachabilityMessage to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithAzureReachabilityMessage(azureReachabilityMessage *string) *AzureKeyVaultCollectionGetParams {
o.SetAzureReachabilityMessage(azureReachabilityMessage)
return o
}
// SetAzureReachabilityMessage adds the azureReachabilityMessage to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetAzureReachabilityMessage(azureReachabilityMessage *string) {
o.AzureReachabilityMessage = azureReachabilityMessage
}
// WithAzureReachabilityReachable adds the azureReachabilityReachable to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithAzureReachabilityReachable(azureReachabilityReachable *bool) *AzureKeyVaultCollectionGetParams {
o.SetAzureReachabilityReachable(azureReachabilityReachable)
return o
}
// SetAzureReachabilityReachable adds the azureReachabilityReachable to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetAzureReachabilityReachable(azureReachabilityReachable *bool) {
o.AzureReachabilityReachable = azureReachabilityReachable
}
// WithClientID adds the clientID to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithClientID(clientID *string) *AzureKeyVaultCollectionGetParams {
o.SetClientID(clientID)
return o
}
// SetClientID adds the clientId to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetClientID(clientID *string) {
o.ClientID = clientID
}
// WithEkmipReachabilityCode adds the ekmipReachabilityCode to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithEkmipReachabilityCode(ekmipReachabilityCode *string) *AzureKeyVaultCollectionGetParams {
o.SetEkmipReachabilityCode(ekmipReachabilityCode)
return o
}
// SetEkmipReachabilityCode adds the ekmipReachabilityCode to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetEkmipReachabilityCode(ekmipReachabilityCode *string) {
o.EkmipReachabilityCode = ekmipReachabilityCode
}
// WithEkmipReachabilityMessage adds the ekmipReachabilityMessage to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithEkmipReachabilityMessage(ekmipReachabilityMessage *string) *AzureKeyVaultCollectionGetParams {
o.SetEkmipReachabilityMessage(ekmipReachabilityMessage)
return o
}
// SetEkmipReachabilityMessage adds the ekmipReachabilityMessage to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetEkmipReachabilityMessage(ekmipReachabilityMessage *string) {
o.EkmipReachabilityMessage = ekmipReachabilityMessage
}
// WithEkmipReachabilityNodeName adds the ekmipReachabilityNodeName to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithEkmipReachabilityNodeName(ekmipReachabilityNodeName *string) *AzureKeyVaultCollectionGetParams {
o.SetEkmipReachabilityNodeName(ekmipReachabilityNodeName)
return o
}
// SetEkmipReachabilityNodeName adds the ekmipReachabilityNodeName to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetEkmipReachabilityNodeName(ekmipReachabilityNodeName *string) {
o.EkmipReachabilityNodeName = ekmipReachabilityNodeName
}
// WithEkmipReachabilityNodeUUID adds the ekmipReachabilityNodeUUID to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID *string) *AzureKeyVaultCollectionGetParams {
o.SetEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID)
return o
}
// SetEkmipReachabilityNodeUUID adds the ekmipReachabilityNodeUuid to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID *string) {
o.EkmipReachabilityNodeUUID = ekmipReachabilityNodeUUID
}
// WithEkmipReachabilityReachable adds the ekmipReachabilityReachable to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithEkmipReachabilityReachable(ekmipReachabilityReachable *bool) *AzureKeyVaultCollectionGetParams {
o.SetEkmipReachabilityReachable(ekmipReachabilityReachable)
return o
}
// SetEkmipReachabilityReachable adds the ekmipReachabilityReachable to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetEkmipReachabilityReachable(ekmipReachabilityReachable *bool) {
o.EkmipReachabilityReachable = ekmipReachabilityReachable
}
// WithFields adds the fields to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithFields(fields []string) *AzureKeyVaultCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithKeyID adds the keyID to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithKeyID(keyID *string) *AzureKeyVaultCollectionGetParams {
o.SetKeyID(keyID)
return o
}
// SetKeyID adds the keyId to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetKeyID(keyID *string) {
o.KeyID = keyID
}
// WithMaxRecords adds the maxRecords to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithMaxRecords(maxRecords *int64) *AzureKeyVaultCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithName(name *string) *AzureKeyVaultCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithOrderBy(orderBy []string) *AzureKeyVaultCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithProxyHost adds the proxyHost to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithProxyHost(proxyHost *string) *AzureKeyVaultCollectionGetParams {
o.SetProxyHost(proxyHost)
return o
}
// SetProxyHost adds the proxyHost to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetProxyHost(proxyHost *string) {
o.ProxyHost = proxyHost
}
// WithProxyPort adds the proxyPort to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithProxyPort(proxyPort *int64) *AzureKeyVaultCollectionGetParams {
o.SetProxyPort(proxyPort)
return o
}
// SetProxyPort adds the proxyPort to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetProxyPort(proxyPort *int64) {
o.ProxyPort = proxyPort
}
// WithProxyType adds the proxyType to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithProxyType(proxyType *string) *AzureKeyVaultCollectionGetParams {
o.SetProxyType(proxyType)
return o
}
// SetProxyType adds the proxyType to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetProxyType(proxyType *string) {
o.ProxyType = proxyType
}
// WithProxyUsername adds the proxyUsername to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithProxyUsername(proxyUsername *string) *AzureKeyVaultCollectionGetParams {
o.SetProxyUsername(proxyUsername)
return o
}
// SetProxyUsername adds the proxyUsername to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetProxyUsername(proxyUsername *string) {
o.ProxyUsername = proxyUsername
}
// WithReturnRecords adds the returnRecords to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithReturnRecords(returnRecords *bool) *AzureKeyVaultCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *AzureKeyVaultCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithScope adds the scope to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithScope(scope *string) *AzureKeyVaultCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WithStateAvailable adds the stateAvailable to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithStateAvailable(stateAvailable *bool) *AzureKeyVaultCollectionGetParams {
o.SetStateAvailable(stateAvailable)
return o
}
// SetStateAvailable adds the stateAvailable to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetStateAvailable(stateAvailable *bool) {
o.StateAvailable = stateAvailable
}
// WithStateCode adds the stateCode to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithStateCode(stateCode *string) *AzureKeyVaultCollectionGetParams {
o.SetStateCode(stateCode)
return o
}
// SetStateCode adds the stateCode to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetStateCode(stateCode *string) {
o.StateCode = stateCode
}
// WithStateMessage adds the stateMessage to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithStateMessage(stateMessage *string) *AzureKeyVaultCollectionGetParams {
o.SetStateMessage(stateMessage)
return o
}
// SetStateMessage adds the stateMessage to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetStateMessage(stateMessage *string) {
o.StateMessage = stateMessage
}
// WithSvmName adds the svmName to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithSvmName(svmName *string) *AzureKeyVaultCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithSvmUUID(svmUUID *string) *AzureKeyVaultCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithTenantID adds the tenantID to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithTenantID(tenantID *string) *AzureKeyVaultCollectionGetParams {
o.SetTenantID(tenantID)
return o
}
// SetTenantID adds the tenantId to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetTenantID(tenantID *string) {
o.TenantID = tenantID
}
// WithUUID adds the uuid to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) WithUUID(uuid *string) *AzureKeyVaultCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the azure key vault collection get params
func (o *AzureKeyVaultCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *AzureKeyVaultCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.AuthenticationMethod != nil {
// query param authentication_method
var qrAuthenticationMethod string
if o.AuthenticationMethod != nil {
qrAuthenticationMethod = *o.AuthenticationMethod
}
qAuthenticationMethod := qrAuthenticationMethod
if qAuthenticationMethod != "" {
if err := r.SetQueryParam("authentication_method", qAuthenticationMethod); err != nil {
return err
}
}
}
if o.AzureReachabilityCode != nil {
// query param azure_reachability.code
var qrAzureReachabilityCode string
if o.AzureReachabilityCode != nil {
qrAzureReachabilityCode = *o.AzureReachabilityCode
}
qAzureReachabilityCode := qrAzureReachabilityCode
if qAzureReachabilityCode != "" {
if err := r.SetQueryParam("azure_reachability.code", qAzureReachabilityCode); err != nil {
return err
}
}
}
if o.AzureReachabilityMessage != nil {
// query param azure_reachability.message
var qrAzureReachabilityMessage string
if o.AzureReachabilityMessage != nil {
qrAzureReachabilityMessage = *o.AzureReachabilityMessage
}
qAzureReachabilityMessage := qrAzureReachabilityMessage
if qAzureReachabilityMessage != "" {
if err := r.SetQueryParam("azure_reachability.message", qAzureReachabilityMessage); err != nil {
return err
}
}
}
if o.AzureReachabilityReachable != nil {
// query param azure_reachability.reachable
var qrAzureReachabilityReachable bool
if o.AzureReachabilityReachable != nil {
qrAzureReachabilityReachable = *o.AzureReachabilityReachable
}
qAzureReachabilityReachable := swag.FormatBool(qrAzureReachabilityReachable)
if qAzureReachabilityReachable != "" {
if err := r.SetQueryParam("azure_reachability.reachable", qAzureReachabilityReachable); err != nil {
return err
}
}
}
if o.ClientID != nil {
// query param client_id
var qrClientID string
if o.ClientID != nil {
qrClientID = *o.ClientID
}
qClientID := qrClientID
if qClientID != "" {
if err := r.SetQueryParam("client_id", qClientID); err != nil {
return err
}
}
}
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.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.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.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.StateAvailable != nil {
// query param state.available
var qrStateAvailable bool
if o.StateAvailable != nil {
qrStateAvailable = *o.StateAvailable
}
qStateAvailable := swag.FormatBool(qrStateAvailable)
if qStateAvailable != "" {
if err := r.SetQueryParam("state.available", qStateAvailable); 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.TenantID != nil {
// query param tenant_id
var qrTenantID string
if o.TenantID != nil {
qrTenantID = *o.TenantID
}
qTenantID := qrTenantID
if qTenantID != "" {
if err := r.SetQueryParam("tenant_id", qTenantID); 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
}
// bindParamAzureKeyVaultCollectionGet binds the parameter fields
func (o *AzureKeyVaultCollectionGetParams) 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
}
// bindParamAzureKeyVaultCollectionGet binds the parameter order_by
func (o *AzureKeyVaultCollectionGetParams) 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_saml_sp_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// SecuritySamlSpDeleteReader is a Reader for the SecuritySamlSpDelete structure.
type SecuritySamlSpDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecuritySamlSpDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecuritySamlSpDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecuritySamlSpDeleteDefault(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
}
}
// NewSecuritySamlSpDeleteOK creates a SecuritySamlSpDeleteOK with default headers values
func NewSecuritySamlSpDeleteOK() *SecuritySamlSpDeleteOK {
return &SecuritySamlSpDeleteOK{}
}
/*
SecuritySamlSpDeleteOK describes a response with status code 200, with default header values.
OK
*/
type SecuritySamlSpDeleteOK struct {
}
// IsSuccess returns true when this security saml sp delete o k response has a 2xx status code
func (o *SecuritySamlSpDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security saml sp delete o k response has a 3xx status code
func (o *SecuritySamlSpDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security saml sp delete o k response has a 4xx status code
func (o *SecuritySamlSpDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security saml sp delete o k response has a 5xx status code
func (o *SecuritySamlSpDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this security saml sp delete o k response a status code equal to that given
func (o *SecuritySamlSpDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *SecuritySamlSpDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/saml-sp][%d] securitySamlSpDeleteOK ", 200)
}
func (o *SecuritySamlSpDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/saml-sp][%d] securitySamlSpDeleteOK ", 200)
}
func (o *SecuritySamlSpDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewSecuritySamlSpDeleteDefault creates a SecuritySamlSpDeleteDefault with default headers values
func NewSecuritySamlSpDeleteDefault(code int) *SecuritySamlSpDeleteDefault {
return &SecuritySamlSpDeleteDefault{
_statusCode: code,
}
}
/*
SecuritySamlSpDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 12320803 | SAML must be disabled before the configuration can be removed. |
*/
type SecuritySamlSpDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security saml sp delete default response
func (o *SecuritySamlSpDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security saml sp delete default response has a 2xx status code
func (o *SecuritySamlSpDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security saml sp delete default response has a 3xx status code
func (o *SecuritySamlSpDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security saml sp delete default response has a 4xx status code
func (o *SecuritySamlSpDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security saml sp delete default response has a 5xx status code
func (o *SecuritySamlSpDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security saml sp delete default response a status code equal to that given
func (o *SecuritySamlSpDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecuritySamlSpDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/saml-sp][%d] security_saml_sp_delete default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/authentication/cluster/saml-sp][%d] security_saml_sp_delete default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecuritySamlSpDeleteDefault) 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_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_association_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"
)
// NewSecurityAssociationCollectionGetParams creates a new SecurityAssociationCollectionGetParams 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 NewSecurityAssociationCollectionGetParams() *SecurityAssociationCollectionGetParams {
return &SecurityAssociationCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityAssociationCollectionGetParamsWithTimeout creates a new SecurityAssociationCollectionGetParams object
// with the ability to set a timeout on a request.
func NewSecurityAssociationCollectionGetParamsWithTimeout(timeout time.Duration) *SecurityAssociationCollectionGetParams {
return &SecurityAssociationCollectionGetParams{
timeout: timeout,
}
}
// NewSecurityAssociationCollectionGetParamsWithContext creates a new SecurityAssociationCollectionGetParams object
// with the ability to set a context for a request.
func NewSecurityAssociationCollectionGetParamsWithContext(ctx context.Context) *SecurityAssociationCollectionGetParams {
return &SecurityAssociationCollectionGetParams{
Context: ctx,
}
}
// NewSecurityAssociationCollectionGetParamsWithHTTPClient creates a new SecurityAssociationCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityAssociationCollectionGetParamsWithHTTPClient(client *http.Client) *SecurityAssociationCollectionGetParams {
return &SecurityAssociationCollectionGetParams{
HTTPClient: client,
}
}
/*
SecurityAssociationCollectionGetParams contains all the parameters to send to the API endpoint
for the security association collection get operation.
Typically these are written to a http.Request.
*/
type SecurityAssociationCollectionGetParams struct {
/* CipherSuite.
Filter by cipher_suite
*/
CipherSuite *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* IkeAuthentication.
Filter by ike.authentication
*/
IkeAuthentication *string
/* IkeInitiatorSecurityParameterIndex.
Filter by ike.initiator_security_parameter_index
*/
IkeInitiatorSecurityParameterIndex *string
/* IkeIsInitiator.
Filter by ike.is_initiator
*/
IkeIsInitiator *bool
/* IkeResponderSecurityParameterIndex.
Filter by ike.responder_security_parameter_index
*/
IkeResponderSecurityParameterIndex *string
/* IkeState.
Filter by ike.state
*/
IkeState *string
/* IkeVersion.
Filter by ike.version
*/
IkeVersion *int64
/* IpsecAction.
Filter by ipsec.action
*/
IpsecAction *string
/* IpsecInboundBytes.
Filter by ipsec.inbound.bytes
*/
IpsecInboundBytes *int64
/* IpsecInboundPackets.
Filter by ipsec.inbound.packets
*/
IpsecInboundPackets *int64
/* IpsecInboundSecurityParameterIndex.
Filter by ipsec.inbound.security_parameter_index
*/
IpsecInboundSecurityParameterIndex *string
/* IpsecOutboundBytes.
Filter by ipsec.outbound.bytes
*/
IpsecOutboundBytes *int64
/* IpsecOutboundPackets.
Filter by ipsec.outbound.packets
*/
IpsecOutboundPackets *int64
/* IpsecOutboundSecurityParameterIndex.
Filter by ipsec.outbound.security_parameter_index
*/
IpsecOutboundSecurityParameterIndex *string
/* IpsecState.
Filter by ipsec.state
*/
IpsecState *string
/* Lifetime.
Filter by lifetime
*/
Lifetime *int64
/* LocalAddress.
Filter by local_address
*/
LocalAddress *string
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* NodeName.
Filter by node.name
*/
NodeName *string
/* NodeUUID.
Filter by node.uuid
*/
NodeUUID *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* PolicyName.
Filter by policy_name
*/
PolicyName *string
/* RemoteAddress.
Filter by remote_address
*/
RemoteAddress *string
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* Scope.
Filter by scope
*/
Scope *string
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* Type.
Filter by type
*/
Type *string
/* UUID.
Filter by uuid
*/
UUID *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security association collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityAssociationCollectionGetParams) WithDefaults() *SecurityAssociationCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security association collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityAssociationCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := SecurityAssociationCollectionGetParams{
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 association collection get params
func (o *SecurityAssociationCollectionGetParams) WithTimeout(timeout time.Duration) *SecurityAssociationCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithContext(ctx context.Context) *SecurityAssociationCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithHTTPClient(client *http.Client) *SecurityAssociationCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithCipherSuite adds the cipherSuite to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithCipherSuite(cipherSuite *string) *SecurityAssociationCollectionGetParams {
o.SetCipherSuite(cipherSuite)
return o
}
// SetCipherSuite adds the cipherSuite to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetCipherSuite(cipherSuite *string) {
o.CipherSuite = cipherSuite
}
// WithFields adds the fields to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithFields(fields []string) *SecurityAssociationCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIkeAuthentication adds the ikeAuthentication to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIkeAuthentication(ikeAuthentication *string) *SecurityAssociationCollectionGetParams {
o.SetIkeAuthentication(ikeAuthentication)
return o
}
// SetIkeAuthentication adds the ikeAuthentication to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIkeAuthentication(ikeAuthentication *string) {
o.IkeAuthentication = ikeAuthentication
}
// WithIkeInitiatorSecurityParameterIndex adds the ikeInitiatorSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIkeInitiatorSecurityParameterIndex(ikeInitiatorSecurityParameterIndex *string) *SecurityAssociationCollectionGetParams {
o.SetIkeInitiatorSecurityParameterIndex(ikeInitiatorSecurityParameterIndex)
return o
}
// SetIkeInitiatorSecurityParameterIndex adds the ikeInitiatorSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIkeInitiatorSecurityParameterIndex(ikeInitiatorSecurityParameterIndex *string) {
o.IkeInitiatorSecurityParameterIndex = ikeInitiatorSecurityParameterIndex
}
// WithIkeIsInitiator adds the ikeIsInitiator to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIkeIsInitiator(ikeIsInitiator *bool) *SecurityAssociationCollectionGetParams {
o.SetIkeIsInitiator(ikeIsInitiator)
return o
}
// SetIkeIsInitiator adds the ikeIsInitiator to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIkeIsInitiator(ikeIsInitiator *bool) {
o.IkeIsInitiator = ikeIsInitiator
}
// WithIkeResponderSecurityParameterIndex adds the ikeResponderSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIkeResponderSecurityParameterIndex(ikeResponderSecurityParameterIndex *string) *SecurityAssociationCollectionGetParams {
o.SetIkeResponderSecurityParameterIndex(ikeResponderSecurityParameterIndex)
return o
}
// SetIkeResponderSecurityParameterIndex adds the ikeResponderSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIkeResponderSecurityParameterIndex(ikeResponderSecurityParameterIndex *string) {
o.IkeResponderSecurityParameterIndex = ikeResponderSecurityParameterIndex
}
// WithIkeState adds the ikeState to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIkeState(ikeState *string) *SecurityAssociationCollectionGetParams {
o.SetIkeState(ikeState)
return o
}
// SetIkeState adds the ikeState to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIkeState(ikeState *string) {
o.IkeState = ikeState
}
// WithIkeVersion adds the ikeVersion to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIkeVersion(ikeVersion *int64) *SecurityAssociationCollectionGetParams {
o.SetIkeVersion(ikeVersion)
return o
}
// SetIkeVersion adds the ikeVersion to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIkeVersion(ikeVersion *int64) {
o.IkeVersion = ikeVersion
}
// WithIpsecAction adds the ipsecAction to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecAction(ipsecAction *string) *SecurityAssociationCollectionGetParams {
o.SetIpsecAction(ipsecAction)
return o
}
// SetIpsecAction adds the ipsecAction to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecAction(ipsecAction *string) {
o.IpsecAction = ipsecAction
}
// WithIpsecInboundBytes adds the ipsecInboundBytes to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecInboundBytes(ipsecInboundBytes *int64) *SecurityAssociationCollectionGetParams {
o.SetIpsecInboundBytes(ipsecInboundBytes)
return o
}
// SetIpsecInboundBytes adds the ipsecInboundBytes to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecInboundBytes(ipsecInboundBytes *int64) {
o.IpsecInboundBytes = ipsecInboundBytes
}
// WithIpsecInboundPackets adds the ipsecInboundPackets to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecInboundPackets(ipsecInboundPackets *int64) *SecurityAssociationCollectionGetParams {
o.SetIpsecInboundPackets(ipsecInboundPackets)
return o
}
// SetIpsecInboundPackets adds the ipsecInboundPackets to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecInboundPackets(ipsecInboundPackets *int64) {
o.IpsecInboundPackets = ipsecInboundPackets
}
// WithIpsecInboundSecurityParameterIndex adds the ipsecInboundSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecInboundSecurityParameterIndex(ipsecInboundSecurityParameterIndex *string) *SecurityAssociationCollectionGetParams {
o.SetIpsecInboundSecurityParameterIndex(ipsecInboundSecurityParameterIndex)
return o
}
// SetIpsecInboundSecurityParameterIndex adds the ipsecInboundSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecInboundSecurityParameterIndex(ipsecInboundSecurityParameterIndex *string) {
o.IpsecInboundSecurityParameterIndex = ipsecInboundSecurityParameterIndex
}
// WithIpsecOutboundBytes adds the ipsecOutboundBytes to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecOutboundBytes(ipsecOutboundBytes *int64) *SecurityAssociationCollectionGetParams {
o.SetIpsecOutboundBytes(ipsecOutboundBytes)
return o
}
// SetIpsecOutboundBytes adds the ipsecOutboundBytes to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecOutboundBytes(ipsecOutboundBytes *int64) {
o.IpsecOutboundBytes = ipsecOutboundBytes
}
// WithIpsecOutboundPackets adds the ipsecOutboundPackets to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecOutboundPackets(ipsecOutboundPackets *int64) *SecurityAssociationCollectionGetParams {
o.SetIpsecOutboundPackets(ipsecOutboundPackets)
return o
}
// SetIpsecOutboundPackets adds the ipsecOutboundPackets to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecOutboundPackets(ipsecOutboundPackets *int64) {
o.IpsecOutboundPackets = ipsecOutboundPackets
}
// WithIpsecOutboundSecurityParameterIndex adds the ipsecOutboundSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecOutboundSecurityParameterIndex(ipsecOutboundSecurityParameterIndex *string) *SecurityAssociationCollectionGetParams {
o.SetIpsecOutboundSecurityParameterIndex(ipsecOutboundSecurityParameterIndex)
return o
}
// SetIpsecOutboundSecurityParameterIndex adds the ipsecOutboundSecurityParameterIndex to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecOutboundSecurityParameterIndex(ipsecOutboundSecurityParameterIndex *string) {
o.IpsecOutboundSecurityParameterIndex = ipsecOutboundSecurityParameterIndex
}
// WithIpsecState adds the ipsecState to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithIpsecState(ipsecState *string) *SecurityAssociationCollectionGetParams {
o.SetIpsecState(ipsecState)
return o
}
// SetIpsecState adds the ipsecState to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetIpsecState(ipsecState *string) {
o.IpsecState = ipsecState
}
// WithLifetime adds the lifetime to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithLifetime(lifetime *int64) *SecurityAssociationCollectionGetParams {
o.SetLifetime(lifetime)
return o
}
// SetLifetime adds the lifetime to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetLifetime(lifetime *int64) {
o.Lifetime = lifetime
}
// WithLocalAddress adds the localAddress to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithLocalAddress(localAddress *string) *SecurityAssociationCollectionGetParams {
o.SetLocalAddress(localAddress)
return o
}
// SetLocalAddress adds the localAddress to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetLocalAddress(localAddress *string) {
o.LocalAddress = localAddress
}
// WithMaxRecords adds the maxRecords to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithMaxRecords(maxRecords *int64) *SecurityAssociationCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithNodeName adds the nodeName to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithNodeName(nodeName *string) *SecurityAssociationCollectionGetParams {
o.SetNodeName(nodeName)
return o
}
// SetNodeName adds the nodeName to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetNodeName(nodeName *string) {
o.NodeName = nodeName
}
// WithNodeUUID adds the nodeUUID to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithNodeUUID(nodeUUID *string) *SecurityAssociationCollectionGetParams {
o.SetNodeUUID(nodeUUID)
return o
}
// SetNodeUUID adds the nodeUuid to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetNodeUUID(nodeUUID *string) {
o.NodeUUID = nodeUUID
}
// WithOrderBy adds the orderBy to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithOrderBy(orderBy []string) *SecurityAssociationCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPolicyName adds the policyName to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithPolicyName(policyName *string) *SecurityAssociationCollectionGetParams {
o.SetPolicyName(policyName)
return o
}
// SetPolicyName adds the policyName to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetPolicyName(policyName *string) {
o.PolicyName = policyName
}
// WithRemoteAddress adds the remoteAddress to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithRemoteAddress(remoteAddress *string) *SecurityAssociationCollectionGetParams {
o.SetRemoteAddress(remoteAddress)
return o
}
// SetRemoteAddress adds the remoteAddress to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetRemoteAddress(remoteAddress *string) {
o.RemoteAddress = remoteAddress
}
// WithReturnRecords adds the returnRecords to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithReturnRecords(returnRecords *bool) *SecurityAssociationCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SecurityAssociationCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithScope adds the scope to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithScope(scope *string) *SecurityAssociationCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WithSvmName adds the svmName to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithSvmName(svmName *string) *SecurityAssociationCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithSvmUUID(svmUUID *string) *SecurityAssociationCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithType adds the typeVar to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithType(typeVar *string) *SecurityAssociationCollectionGetParams {
o.SetType(typeVar)
return o
}
// SetType adds the type to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetType(typeVar *string) {
o.Type = typeVar
}
// WithUUID adds the uuid to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) WithUUID(uuid *string) *SecurityAssociationCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security association collection get params
func (o *SecurityAssociationCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityAssociationCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.CipherSuite != nil {
// query param cipher_suite
var qrCipherSuite string
if o.CipherSuite != nil {
qrCipherSuite = *o.CipherSuite
}
qCipherSuite := qrCipherSuite
if qCipherSuite != "" {
if err := r.SetQueryParam("cipher_suite", qCipherSuite); 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.IkeAuthentication != nil {
// query param ike.authentication
var qrIkeAuthentication string
if o.IkeAuthentication != nil {
qrIkeAuthentication = *o.IkeAuthentication
}
qIkeAuthentication := qrIkeAuthentication
if qIkeAuthentication != "" {
if err := r.SetQueryParam("ike.authentication", qIkeAuthentication); err != nil {
return err
}
}
}
if o.IkeInitiatorSecurityParameterIndex != nil {
// query param ike.initiator_security_parameter_index
var qrIkeInitiatorSecurityParameterIndex string
if o.IkeInitiatorSecurityParameterIndex != nil {
qrIkeInitiatorSecurityParameterIndex = *o.IkeInitiatorSecurityParameterIndex
}
qIkeInitiatorSecurityParameterIndex := qrIkeInitiatorSecurityParameterIndex
if qIkeInitiatorSecurityParameterIndex != "" {
if err := r.SetQueryParam("ike.initiator_security_parameter_index", qIkeInitiatorSecurityParameterIndex); err != nil {
return err
}
}
}
if o.IkeIsInitiator != nil {
// query param ike.is_initiator
var qrIkeIsInitiator bool
if o.IkeIsInitiator != nil {
qrIkeIsInitiator = *o.IkeIsInitiator
}
qIkeIsInitiator := swag.FormatBool(qrIkeIsInitiator)
if qIkeIsInitiator != "" {
if err := r.SetQueryParam("ike.is_initiator", qIkeIsInitiator); err != nil {
return err
}
}
}
if o.IkeResponderSecurityParameterIndex != nil {
// query param ike.responder_security_parameter_index
var qrIkeResponderSecurityParameterIndex string
if o.IkeResponderSecurityParameterIndex != nil {
qrIkeResponderSecurityParameterIndex = *o.IkeResponderSecurityParameterIndex
}
qIkeResponderSecurityParameterIndex := qrIkeResponderSecurityParameterIndex
if qIkeResponderSecurityParameterIndex != "" {
if err := r.SetQueryParam("ike.responder_security_parameter_index", qIkeResponderSecurityParameterIndex); err != nil {
return err
}
}
}
if o.IkeState != nil {
// query param ike.state
var qrIkeState string
if o.IkeState != nil {
qrIkeState = *o.IkeState
}
qIkeState := qrIkeState
if qIkeState != "" {
if err := r.SetQueryParam("ike.state", qIkeState); err != nil {
return err
}
}
}
if o.IkeVersion != nil {
// query param ike.version
var qrIkeVersion int64
if o.IkeVersion != nil {
qrIkeVersion = *o.IkeVersion
}
qIkeVersion := swag.FormatInt64(qrIkeVersion)
if qIkeVersion != "" {
if err := r.SetQueryParam("ike.version", qIkeVersion); err != nil {
return err
}
}
}
if o.IpsecAction != nil {
// query param ipsec.action
var qrIpsecAction string
if o.IpsecAction != nil {
qrIpsecAction = *o.IpsecAction
}
qIpsecAction := qrIpsecAction
if qIpsecAction != "" {
if err := r.SetQueryParam("ipsec.action", qIpsecAction); err != nil {
return err
}
}
}
if o.IpsecInboundBytes != nil {
// query param ipsec.inbound.bytes
var qrIpsecInboundBytes int64
if o.IpsecInboundBytes != nil {
qrIpsecInboundBytes = *o.IpsecInboundBytes
}
qIpsecInboundBytes := swag.FormatInt64(qrIpsecInboundBytes)
if qIpsecInboundBytes != "" {
if err := r.SetQueryParam("ipsec.inbound.bytes", qIpsecInboundBytes); err != nil {
return err
}
}
}
if o.IpsecInboundPackets != nil {
// query param ipsec.inbound.packets
var qrIpsecInboundPackets int64
if o.IpsecInboundPackets != nil {
qrIpsecInboundPackets = *o.IpsecInboundPackets
}
qIpsecInboundPackets := swag.FormatInt64(qrIpsecInboundPackets)
if qIpsecInboundPackets != "" {
if err := r.SetQueryParam("ipsec.inbound.packets", qIpsecInboundPackets); err != nil {
return err
}
}
}
if o.IpsecInboundSecurityParameterIndex != nil {
// query param ipsec.inbound.security_parameter_index
var qrIpsecInboundSecurityParameterIndex string
if o.IpsecInboundSecurityParameterIndex != nil {
qrIpsecInboundSecurityParameterIndex = *o.IpsecInboundSecurityParameterIndex
}
qIpsecInboundSecurityParameterIndex := qrIpsecInboundSecurityParameterIndex
if qIpsecInboundSecurityParameterIndex != "" {
if err := r.SetQueryParam("ipsec.inbound.security_parameter_index", qIpsecInboundSecurityParameterIndex); err != nil {
return err
}
}
}
if o.IpsecOutboundBytes != nil {
// query param ipsec.outbound.bytes
var qrIpsecOutboundBytes int64
if o.IpsecOutboundBytes != nil {
qrIpsecOutboundBytes = *o.IpsecOutboundBytes
}
qIpsecOutboundBytes := swag.FormatInt64(qrIpsecOutboundBytes)
if qIpsecOutboundBytes != "" {
if err := r.SetQueryParam("ipsec.outbound.bytes", qIpsecOutboundBytes); err != nil {
return err
}
}
}
if o.IpsecOutboundPackets != nil {
// query param ipsec.outbound.packets
var qrIpsecOutboundPackets int64
if o.IpsecOutboundPackets != nil {
qrIpsecOutboundPackets = *o.IpsecOutboundPackets
}
qIpsecOutboundPackets := swag.FormatInt64(qrIpsecOutboundPackets)
if qIpsecOutboundPackets != "" {
if err := r.SetQueryParam("ipsec.outbound.packets", qIpsecOutboundPackets); err != nil {
return err
}
}
}
if o.IpsecOutboundSecurityParameterIndex != nil {
// query param ipsec.outbound.security_parameter_index
var qrIpsecOutboundSecurityParameterIndex string
if o.IpsecOutboundSecurityParameterIndex != nil {
qrIpsecOutboundSecurityParameterIndex = *o.IpsecOutboundSecurityParameterIndex
}
qIpsecOutboundSecurityParameterIndex := qrIpsecOutboundSecurityParameterIndex
if qIpsecOutboundSecurityParameterIndex != "" {
if err := r.SetQueryParam("ipsec.outbound.security_parameter_index", qIpsecOutboundSecurityParameterIndex); err != nil {
return err
}
}
}
if o.IpsecState != nil {
// query param ipsec.state
var qrIpsecState string
if o.IpsecState != nil {
qrIpsecState = *o.IpsecState
}
qIpsecState := qrIpsecState
if qIpsecState != "" {
if err := r.SetQueryParam("ipsec.state", qIpsecState); err != nil {
return err
}
}
}
if o.Lifetime != nil {
// query param lifetime
var qrLifetime int64
if o.Lifetime != nil {
qrLifetime = *o.Lifetime
}
qLifetime := swag.FormatInt64(qrLifetime)
if qLifetime != "" {
if err := r.SetQueryParam("lifetime", qLifetime); err != nil {
return err
}
}
}
if o.LocalAddress != nil {
// query param local_address
var qrLocalAddress string
if o.LocalAddress != nil {
qrLocalAddress = *o.LocalAddress
}
qLocalAddress := qrLocalAddress
if qLocalAddress != "" {
if err := r.SetQueryParam("local_address", qLocalAddress); err != nil {
return err
}
}
}
if o.MaxRecords != nil {
// query param max_records
var qrMaxRecords int64
if o.MaxRecords != nil {
qrMaxRecords = *o.MaxRecords
}
qMaxRecords := swag.FormatInt64(qrMaxRecords)
if qMaxRecords != "" {
if err := r.SetQueryParam("max_records", qMaxRecords); err != nil {
return err
}
}
}
if o.NodeName != nil {
// query param node.name
var qrNodeName string
if o.NodeName != nil {
qrNodeName = *o.NodeName
}
qNodeName := qrNodeName
if qNodeName != "" {
if err := r.SetQueryParam("node.name", qNodeName); err != nil {
return err
}
}
}
if o.NodeUUID != nil {
// query param node.uuid
var qrNodeUUID string
if o.NodeUUID != nil {
qrNodeUUID = *o.NodeUUID
}
qNodeUUID := qrNodeUUID
if qNodeUUID != "" {
if err := r.SetQueryParam("node.uuid", qNodeUUID); err != nil {
return err
}
}
}
if o.OrderBy != nil {
// binding items for order_by
joinedOrderBy := o.bindParamOrderBy(reg)
// query array param order_by
if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil {
return err
}
}
if o.PolicyName != nil {
// query param policy_name
var qrPolicyName string
if o.PolicyName != nil {
qrPolicyName = *o.PolicyName
}
qPolicyName := qrPolicyName
if qPolicyName != "" {
if err := r.SetQueryParam("policy_name", qPolicyName); err != nil {
return err
}
}
}
if o.RemoteAddress != nil {
// query param remote_address
var qrRemoteAddress string
if o.RemoteAddress != nil {
qrRemoteAddress = *o.RemoteAddress
}
qRemoteAddress := qrRemoteAddress
if qRemoteAddress != "" {
if err := r.SetQueryParam("remote_address", qRemoteAddress); 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
}
}
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_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"
)
// NewSecurityKeyManagerDeleteParams creates a new SecurityKeyManagerDeleteParams 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 NewSecurityKeyManagerDeleteParams() *SecurityKeyManagerDeleteParams {
return &SecurityKeyManagerDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerDeleteParamsWithTimeout creates a new SecurityKeyManagerDeleteParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerDeleteParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerDeleteParams {
return &SecurityKeyManagerDeleteParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerDeleteParamsWithContext creates a new SecurityKeyManagerDeleteParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerDeleteParamsWithContext(ctx context.Context) *SecurityKeyManagerDeleteParams {
return &SecurityKeyManagerDeleteParams{
Context: ctx,
}
}
// NewSecurityKeyManagerDeleteParamsWithHTTPClient creates a new SecurityKeyManagerDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerDeleteParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerDeleteParams {
return &SecurityKeyManagerDeleteParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerDeleteParams contains all the parameters to send to the API endpoint
for the security key manager delete operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerDeleteParams struct {
/* UUID.
Key manager UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerDeleteParams) WithDefaults() *SecurityKeyManagerDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) WithContext(ctx context.Context) *SecurityKeyManagerDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithUUID adds the uuid to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) WithUUID(uuid string) *SecurityKeyManagerDeleteParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security key manager delete params
func (o *SecurityKeyManagerDeleteParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerDeleteParams) 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/ssh_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ssh_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"
)
// NewSSHModifyParams creates a new SSHModifyParams 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 NewSSHModifyParams() *SSHModifyParams {
return &SSHModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewSSHModifyParamsWithTimeout creates a new SSHModifyParams object
// with the ability to set a timeout on a request.
func NewSSHModifyParamsWithTimeout(timeout time.Duration) *SSHModifyParams {
return &SSHModifyParams{
timeout: timeout,
}
}
// NewSSHModifyParamsWithContext creates a new SSHModifyParams object
// with the ability to set a context for a request.
func NewSSHModifyParamsWithContext(ctx context.Context) *SSHModifyParams {
return &SSHModifyParams{
Context: ctx,
}
}
// NewSSHModifyParamsWithHTTPClient creates a new SSHModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewSSHModifyParamsWithHTTPClient(client *http.Client) *SSHModifyParams {
return &SSHModifyParams{
HTTPClient: client,
}
}
/*
SSHModifyParams contains all the parameters to send to the API endpoint
for the ssh modify operation.
Typically these are written to a http.Request.
*/
type SSHModifyParams struct {
/* Info.
SSH server algorithms and limits configuration details.
*/
Info *models.ClusterSSHServer
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the ssh modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SSHModifyParams) WithDefaults() *SSHModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the ssh modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SSHModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the ssh modify params
func (o *SSHModifyParams) WithTimeout(timeout time.Duration) *SSHModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the ssh modify params
func (o *SSHModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the ssh modify params
func (o *SSHModifyParams) WithContext(ctx context.Context) *SSHModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the ssh modify params
func (o *SSHModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the ssh modify params
func (o *SSHModifyParams) WithHTTPClient(client *http.Client) *SSHModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the ssh modify params
func (o *SSHModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the ssh modify params
func (o *SSHModifyParams) WithInfo(info *models.ClusterSSHServer) *SSHModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the ssh modify params
func (o *SSHModifyParams) SetInfo(info *models.ClusterSSHServer) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *SSHModifyParams) 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/key_manager_auth_key_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_auth_key_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"
)
// NewKeyManagerAuthKeyGetParams creates a new KeyManagerAuthKeyGetParams 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 NewKeyManagerAuthKeyGetParams() *KeyManagerAuthKeyGetParams {
return &KeyManagerAuthKeyGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewKeyManagerAuthKeyGetParamsWithTimeout creates a new KeyManagerAuthKeyGetParams object
// with the ability to set a timeout on a request.
func NewKeyManagerAuthKeyGetParamsWithTimeout(timeout time.Duration) *KeyManagerAuthKeyGetParams {
return &KeyManagerAuthKeyGetParams{
timeout: timeout,
}
}
// NewKeyManagerAuthKeyGetParamsWithContext creates a new KeyManagerAuthKeyGetParams object
// with the ability to set a context for a request.
func NewKeyManagerAuthKeyGetParamsWithContext(ctx context.Context) *KeyManagerAuthKeyGetParams {
return &KeyManagerAuthKeyGetParams{
Context: ctx,
}
}
// NewKeyManagerAuthKeyGetParamsWithHTTPClient creates a new KeyManagerAuthKeyGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewKeyManagerAuthKeyGetParamsWithHTTPClient(client *http.Client) *KeyManagerAuthKeyGetParams {
return &KeyManagerAuthKeyGetParams{
HTTPClient: client,
}
}
/*
KeyManagerAuthKeyGetParams contains all the parameters to send to the API endpoint
for the key manager auth key get operation.
Typically these are written to a http.Request.
*/
type KeyManagerAuthKeyGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* KeyID.
Key ID of the authentication key to be deleted.
*/
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 get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerAuthKeyGetParams) WithDefaults() *KeyManagerAuthKeyGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the key manager auth key get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerAuthKeyGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := KeyManagerAuthKeyGetParams{
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 get params
func (o *KeyManagerAuthKeyGetParams) WithTimeout(timeout time.Duration) *KeyManagerAuthKeyGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithContext(ctx context.Context) *KeyManagerAuthKeyGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithHTTPClient(client *http.Client) *KeyManagerAuthKeyGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithFields(fields []string) *KeyManagerAuthKeyGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithKeyID adds the keyID to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithKeyID(keyID string) *KeyManagerAuthKeyGetParams {
o.SetKeyID(keyID)
return o
}
// SetKeyID adds the keyId to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetKeyID(keyID string) {
o.KeyID = keyID
}
// WithKeyTag adds the keyTag to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithKeyTag(keyTag *string) *KeyManagerAuthKeyGetParams {
o.SetKeyTag(keyTag)
return o
}
// SetKeyTag adds the keyTag to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetKeyTag(keyTag *string) {
o.KeyTag = keyTag
}
// WithMaxRecords adds the maxRecords to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithMaxRecords(maxRecords *int64) *KeyManagerAuthKeyGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithOrderBy(orderBy []string) *KeyManagerAuthKeyGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithReturnRecords(returnRecords *bool) *KeyManagerAuthKeyGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithReturnTimeout(returnTimeout *int64) *KeyManagerAuthKeyGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSecurityKeyManagerUUID adds the securityKeyManagerUUID to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) WithSecurityKeyManagerUUID(securityKeyManagerUUID string) *KeyManagerAuthKeyGetParams {
o.SetSecurityKeyManagerUUID(securityKeyManagerUUID)
return o
}
// SetSecurityKeyManagerUUID adds the securityKeyManagerUuid to the key manager auth key get params
func (o *KeyManagerAuthKeyGetParams) SetSecurityKeyManagerUUID(securityKeyManagerUUID string) {
o.SecurityKeyManagerUUID = securityKeyManagerUUID
}
// WriteToRequest writes these params to a swagger request
func (o *KeyManagerAuthKeyGetParams) 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 key_id
if err := r.SetPathParam("key_id", o.KeyID); 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
}
// bindParamKeyManagerAuthKeyGet binds the parameter fields
func (o *KeyManagerAuthKeyGetParams) 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
}
// bindParamKeyManagerAuthKeyGet binds the parameter order_by
func (o *KeyManagerAuthKeyGetParams) 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_rekey_internal_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_rekey_internal_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"
)
// GcpKmsRekeyInternalReader is a Reader for the GcpKmsRekeyInternal structure.
type GcpKmsRekeyInternalReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GcpKmsRekeyInternalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewGcpKmsRekeyInternalAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewGcpKmsRekeyInternalDefault(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
}
}
// NewGcpKmsRekeyInternalAccepted creates a GcpKmsRekeyInternalAccepted with default headers values
func NewGcpKmsRekeyInternalAccepted() *GcpKmsRekeyInternalAccepted {
return &GcpKmsRekeyInternalAccepted{}
}
/*
GcpKmsRekeyInternalAccepted describes a response with status code 202, with default header values.
Accepted
*/
type GcpKmsRekeyInternalAccepted struct {
}
// IsSuccess returns true when this gcp kms rekey internal accepted response has a 2xx status code
func (o *GcpKmsRekeyInternalAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this gcp kms rekey internal accepted response has a 3xx status code
func (o *GcpKmsRekeyInternalAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this gcp kms rekey internal accepted response has a 4xx status code
func (o *GcpKmsRekeyInternalAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this gcp kms rekey internal accepted response has a 5xx status code
func (o *GcpKmsRekeyInternalAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this gcp kms rekey internal accepted response a status code equal to that given
func (o *GcpKmsRekeyInternalAccepted) IsCode(code int) bool {
return code == 202
}
func (o *GcpKmsRekeyInternalAccepted) Error() string {
return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/rekey-internal][%d] gcpKmsRekeyInternalAccepted ", 202)
}
func (o *GcpKmsRekeyInternalAccepted) String() string {
return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/rekey-internal][%d] gcpKmsRekeyInternalAccepted ", 202)
}
func (o *GcpKmsRekeyInternalAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewGcpKmsRekeyInternalDefault creates a GcpKmsRekeyInternalDefault with default headers values
func NewGcpKmsRekeyInternalDefault(code int) *GcpKmsRekeyInternalDefault {
return &GcpKmsRekeyInternalDefault{
_statusCode: code,
}
}
/*
GcpKmsRekeyInternalDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 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. |
| 65537559 | There are no existing internal keys for the SVM. A rekey operation is allowed for an SVM with one or more encryption keys. |
| 65537721 | Google Cloud KMS is not configured for the given SVM. |
*/
type GcpKmsRekeyInternalDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the gcp kms rekey internal default response
func (o *GcpKmsRekeyInternalDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this gcp kms rekey internal default response has a 2xx status code
func (o *GcpKmsRekeyInternalDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this gcp kms rekey internal default response has a 3xx status code
func (o *GcpKmsRekeyInternalDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this gcp kms rekey internal default response has a 4xx status code
func (o *GcpKmsRekeyInternalDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this gcp kms rekey internal default response has a 5xx status code
func (o *GcpKmsRekeyInternalDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this gcp kms rekey internal default response a status code equal to that given
func (o *GcpKmsRekeyInternalDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *GcpKmsRekeyInternalDefault) Error() string {
return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/rekey-internal][%d] gcp_kms_rekey_internal default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsRekeyInternalDefault) String() string {
return fmt.Sprintf("[POST /security/gcp-kms/{uuid}/rekey-internal][%d] gcp_kms_rekey_internal default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsRekeyInternalDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *GcpKmsRekeyInternalDefault) 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_saml_sp_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// NewSecuritySamlSpGetParams creates a new SecuritySamlSpGetParams 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 NewSecuritySamlSpGetParams() *SecuritySamlSpGetParams {
return &SecuritySamlSpGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecuritySamlSpGetParamsWithTimeout creates a new SecuritySamlSpGetParams object
// with the ability to set a timeout on a request.
func NewSecuritySamlSpGetParamsWithTimeout(timeout time.Duration) *SecuritySamlSpGetParams {
return &SecuritySamlSpGetParams{
timeout: timeout,
}
}
// NewSecuritySamlSpGetParamsWithContext creates a new SecuritySamlSpGetParams object
// with the ability to set a context for a request.
func NewSecuritySamlSpGetParamsWithContext(ctx context.Context) *SecuritySamlSpGetParams {
return &SecuritySamlSpGetParams{
Context: ctx,
}
}
// NewSecuritySamlSpGetParamsWithHTTPClient creates a new SecuritySamlSpGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecuritySamlSpGetParamsWithHTTPClient(client *http.Client) *SecuritySamlSpGetParams {
return &SecuritySamlSpGetParams{
HTTPClient: client,
}
}
/*
SecuritySamlSpGetParams contains all the parameters to send to the API endpoint
for the security saml sp get operation.
Typically these are written to a http.Request.
*/
type SecuritySamlSpGetParams struct {
/* CertificateCa.
Filter by certificate.ca
*/
CertificateCa *string
/* CertificateCommonName.
Filter by certificate.common_name
*/
CertificateCommonName *string
/* CertificateSerialNumber.
Filter by certificate.serial_number
*/
CertificateSerialNumber *string
/* Enabled.
Filter by enabled
*/
Enabled *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Host.
Filter by host
*/
Host *string
/* IdpURI.
Filter by idp_uri
*/
IdpURI *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security saml sp get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpGetParams) WithDefaults() *SecuritySamlSpGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security saml sp get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithTimeout(timeout time.Duration) *SecuritySamlSpGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithContext(ctx context.Context) *SecuritySamlSpGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithHTTPClient(client *http.Client) *SecuritySamlSpGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithCertificateCa adds the certificateCa to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithCertificateCa(certificateCa *string) *SecuritySamlSpGetParams {
o.SetCertificateCa(certificateCa)
return o
}
// SetCertificateCa adds the certificateCa to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetCertificateCa(certificateCa *string) {
o.CertificateCa = certificateCa
}
// WithCertificateCommonName adds the certificateCommonName to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithCertificateCommonName(certificateCommonName *string) *SecuritySamlSpGetParams {
o.SetCertificateCommonName(certificateCommonName)
return o
}
// SetCertificateCommonName adds the certificateCommonName to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetCertificateCommonName(certificateCommonName *string) {
o.CertificateCommonName = certificateCommonName
}
// WithCertificateSerialNumber adds the certificateSerialNumber to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithCertificateSerialNumber(certificateSerialNumber *string) *SecuritySamlSpGetParams {
o.SetCertificateSerialNumber(certificateSerialNumber)
return o
}
// SetCertificateSerialNumber adds the certificateSerialNumber to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetCertificateSerialNumber(certificateSerialNumber *string) {
o.CertificateSerialNumber = certificateSerialNumber
}
// WithEnabled adds the enabled to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithEnabled(enabled *bool) *SecuritySamlSpGetParams {
o.SetEnabled(enabled)
return o
}
// SetEnabled adds the enabled to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetEnabled(enabled *bool) {
o.Enabled = enabled
}
// WithFields adds the fields to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithFields(fields []string) *SecuritySamlSpGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithHost adds the host to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithHost(host *string) *SecuritySamlSpGetParams {
o.SetHost(host)
return o
}
// SetHost adds the host to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetHost(host *string) {
o.Host = host
}
// WithIdpURI adds the idpURI to the security saml sp get params
func (o *SecuritySamlSpGetParams) WithIdpURI(idpURI *string) *SecuritySamlSpGetParams {
o.SetIdpURI(idpURI)
return o
}
// SetIdpURI adds the idpUri to the security saml sp get params
func (o *SecuritySamlSpGetParams) SetIdpURI(idpURI *string) {
o.IdpURI = idpURI
}
// WriteToRequest writes these params to a swagger request
func (o *SecuritySamlSpGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.CertificateCa != nil {
// query param certificate.ca
var qrCertificateCa string
if o.CertificateCa != nil {
qrCertificateCa = *o.CertificateCa
}
qCertificateCa := qrCertificateCa
if qCertificateCa != "" {
if err := r.SetQueryParam("certificate.ca", qCertificateCa); err != nil {
return err
}
}
}
if o.CertificateCommonName != nil {
// query param certificate.common_name
var qrCertificateCommonName string
if o.CertificateCommonName != nil {
qrCertificateCommonName = *o.CertificateCommonName
}
qCertificateCommonName := qrCertificateCommonName
if qCertificateCommonName != "" {
if err := r.SetQueryParam("certificate.common_name", qCertificateCommonName); err != nil {
return err
}
}
}
if o.CertificateSerialNumber != nil {
// query param certificate.serial_number
var qrCertificateSerialNumber string
if o.CertificateSerialNumber != nil {
qrCertificateSerialNumber = *o.CertificateSerialNumber
}
qCertificateSerialNumber := qrCertificateSerialNumber
if qCertificateSerialNumber != "" {
if err := r.SetQueryParam("certificate.serial_number", qCertificateSerialNumber); err != nil {
return err
}
}
}
if o.Enabled != nil {
// query param enabled
var qrEnabled bool
if o.Enabled != nil {
qrEnabled = *o.Enabled
}
qEnabled := swag.FormatBool(qrEnabled)
if qEnabled != "" {
if err := r.SetQueryParam("enabled", qEnabled); err != nil {
return err
}
}
}
if o.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.Host != nil {
// query param host
var qrHost string
if o.Host != nil {
qrHost = *o.Host
}
qHost := qrHost
if qHost != "" {
if err := r.SetQueryParam("host", qHost); err != nil {
return err
}
}
}
if o.IdpURI != nil {
// query param idp_uri
var qrIdpURI string
if o.IdpURI != nil {
qrIdpURI = *o.IdpURI
}
qIdpURI := qrIdpURI
if qIdpURI != "" {
if err := r.SetQueryParam("idp_uri", qIdpURI); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamSecuritySamlSpGet binds the parameter fields
func (o *SecuritySamlSpGetParams) 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_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_certificate_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"
)
// SecurityCertificateCreateReader is a Reader for the SecurityCertificateCreate structure.
type SecurityCertificateCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityCertificateCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewSecurityCertificateCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityCertificateCreateDefault(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
}
}
// NewSecurityCertificateCreateCreated creates a SecurityCertificateCreateCreated with default headers values
func NewSecurityCertificateCreateCreated() *SecurityCertificateCreateCreated {
return &SecurityCertificateCreateCreated{}
}
/*
SecurityCertificateCreateCreated describes a response with status code 201, with default header values.
Created
*/
type SecurityCertificateCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.SecurityCertificateResponse
}
// IsSuccess returns true when this security certificate create created response has a 2xx status code
func (o *SecurityCertificateCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security certificate create created response has a 3xx status code
func (o *SecurityCertificateCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this security certificate create created response has a 4xx status code
func (o *SecurityCertificateCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this security certificate create created response has a 5xx status code
func (o *SecurityCertificateCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this security certificate create created response a status code equal to that given
func (o *SecurityCertificateCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *SecurityCertificateCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/certificates][%d] securityCertificateCreateCreated %+v", 201, o.Payload)
}
func (o *SecurityCertificateCreateCreated) String() string {
return fmt.Sprintf("[POST /security/certificates][%d] securityCertificateCreateCreated %+v", 201, o.Payload)
}
func (o *SecurityCertificateCreateCreated) GetPayload() *models.SecurityCertificateResponse {
return o.Payload
}
func (o *SecurityCertificateCreateCreated) 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.SecurityCertificateResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityCertificateCreateDefault creates a SecurityCertificateCreateDefault with default headers values
func NewSecurityCertificateCreateDefault(code int) *SecurityCertificateCreateDefault {
return &SecurityCertificateCreateDefault{
_statusCode: code,
}
}
/*
SecurityCertificateCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 3735645 | Cannot specify a value for serial. It is generated automatically. |
| 3735622 | The certificate type is not supported. |
| 3735664 | The specified key size is not supported in FIPS mode. |
| 3735665 | The specified hash function is not supported in FIPS mode. |
| 3735553 | Failed to create self-signed Certificate. |
| 3735646 | Failed to store the certificates. |
| 3735693 | The certificate installation failed as private key was empty. |
| 3735618 | Cannot accept private key for server_ca or client_ca. |
| 52363365 | Failed to allocate memory. |
| 52559975 | Failed to read the certificate due to incorrect formatting. |
| 52363366 | Unsupported key type. |
| 52560123 | Failed to read the key due to incorrect formatting. |
| 52559972 | The certificates start date is later than the current date. |
| 52559976 | The certificate and private key do not match. |
| 52559973 | The certificate has expired. |
| 52363366 | Logic error: use of a dead object. |
| 3735696 | Intermediate certificates are not supported with client_ca and server_ca type certificates. |
| 52559974 | The certificate is not supported in FIPS mode. |
| 3735676 | Cannot continue the installation without a value for the common name. Since the subject field in the certificate is empty, the field "common_name" must have a value to continue with the installation. |
| 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. |
*/
type SecurityCertificateCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security certificate create default response
func (o *SecurityCertificateCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security certificate create default response has a 2xx status code
func (o *SecurityCertificateCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security certificate create default response has a 3xx status code
func (o *SecurityCertificateCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security certificate create default response has a 4xx status code
func (o *SecurityCertificateCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security certificate create default response has a 5xx status code
func (o *SecurityCertificateCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security certificate create default response a status code equal to that given
func (o *SecurityCertificateCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityCertificateCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/certificates][%d] security_certificate_create default %+v", o._statusCode, o.Payload)
}
func (o *SecurityCertificateCreateDefault) String() string {
return fmt.Sprintf("[POST /security/certificates][%d] security_certificate_create default %+v", o._statusCode, o.Payload)
}
func (o *SecurityCertificateCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityCertificateCreateDefault) 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_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_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"
)
// NewSecurityKeyManagerKeyServersGetParams creates a new SecurityKeyManagerKeyServersGetParams 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 NewSecurityKeyManagerKeyServersGetParams() *SecurityKeyManagerKeyServersGetParams {
return &SecurityKeyManagerKeyServersGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerKeyServersGetParamsWithTimeout creates a new SecurityKeyManagerKeyServersGetParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerKeyServersGetParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersGetParams {
return &SecurityKeyManagerKeyServersGetParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerKeyServersGetParamsWithContext creates a new SecurityKeyManagerKeyServersGetParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerKeyServersGetParamsWithContext(ctx context.Context) *SecurityKeyManagerKeyServersGetParams {
return &SecurityKeyManagerKeyServersGetParams{
Context: ctx,
}
}
// NewSecurityKeyManagerKeyServersGetParamsWithHTTPClient creates a new SecurityKeyManagerKeyServersGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerKeyServersGetParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersGetParams {
return &SecurityKeyManagerKeyServersGetParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerKeyServersGetParams contains all the parameters to send to the API endpoint
for the security key manager key servers get operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerKeyServersGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Server.
Primary Key server configured in the key manager.
*/
Server string
/* UUID.
External key manager UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager key servers get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersGetParams) WithDefaults() *SecurityKeyManagerKeyServersGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager key servers get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) WithContext(ctx context.Context) *SecurityKeyManagerKeyServersGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) WithFields(fields []string) *SecurityKeyManagerKeyServersGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithServer adds the server to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) WithServer(server string) *SecurityKeyManagerKeyServersGetParams {
o.SetServer(server)
return o
}
// SetServer adds the server to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) SetServer(server string) {
o.Server = server
}
// WithUUID adds the uuid to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) WithUUID(uuid string) *SecurityKeyManagerKeyServersGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security key manager key servers get params
func (o *SecurityKeyManagerKeyServersGetParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerKeyServersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param server
if err := r.SetPathParam("server", o.Server); err != nil {
return err
}
// path param uuid
if err := r.SetPathParam("uuid", o.UUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamSecurityKeyManagerKeyServersGet binds the parameter fields
func (o *SecurityKeyManagerKeyServersGetParams) 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_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_nis_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"
)
// NewClusterNisModifyParams creates a new ClusterNisModifyParams 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 NewClusterNisModifyParams() *ClusterNisModifyParams {
return &ClusterNisModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewClusterNisModifyParamsWithTimeout creates a new ClusterNisModifyParams object
// with the ability to set a timeout on a request.
func NewClusterNisModifyParamsWithTimeout(timeout time.Duration) *ClusterNisModifyParams {
return &ClusterNisModifyParams{
timeout: timeout,
}
}
// NewClusterNisModifyParamsWithContext creates a new ClusterNisModifyParams object
// with the ability to set a context for a request.
func NewClusterNisModifyParamsWithContext(ctx context.Context) *ClusterNisModifyParams {
return &ClusterNisModifyParams{
Context: ctx,
}
}
// NewClusterNisModifyParamsWithHTTPClient creates a new ClusterNisModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewClusterNisModifyParamsWithHTTPClient(client *http.Client) *ClusterNisModifyParams {
return &ClusterNisModifyParams{
HTTPClient: client,
}
}
/*
ClusterNisModifyParams contains all the parameters to send to the API endpoint
for the cluster nis modify operation.
Typically these are written to a http.Request.
*/
type ClusterNisModifyParams struct {
/* Info.
Info specification
*/
Info *models.ClusterNisService
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cluster nis modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterNisModifyParams) WithDefaults() *ClusterNisModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cluster nis modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterNisModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cluster nis modify params
func (o *ClusterNisModifyParams) WithTimeout(timeout time.Duration) *ClusterNisModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cluster nis modify params
func (o *ClusterNisModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cluster nis modify params
func (o *ClusterNisModifyParams) WithContext(ctx context.Context) *ClusterNisModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cluster nis modify params
func (o *ClusterNisModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cluster nis modify params
func (o *ClusterNisModifyParams) WithHTTPClient(client *http.Client) *ClusterNisModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cluster nis modify params
func (o *ClusterNisModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cluster nis modify params
func (o *ClusterNisModifyParams) WithInfo(info *models.ClusterNisService) *ClusterNisModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cluster nis modify params
func (o *ClusterNisModifyParams) SetInfo(info *models.ClusterNisService) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *ClusterNisModifyParams) 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/key_manager_auth_key_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_auth_key_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"
)
// KeyManagerAuthKeyCreateReader is a Reader for the KeyManagerAuthKeyCreate structure.
type KeyManagerAuthKeyCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *KeyManagerAuthKeyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewKeyManagerAuthKeyCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewKeyManagerAuthKeyCreateDefault(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
}
}
// NewKeyManagerAuthKeyCreateCreated creates a KeyManagerAuthKeyCreateCreated with default headers values
func NewKeyManagerAuthKeyCreateCreated() *KeyManagerAuthKeyCreateCreated {
return &KeyManagerAuthKeyCreateCreated{}
}
/*
KeyManagerAuthKeyCreateCreated describes a response with status code 201, with default header values.
Created
*/
type KeyManagerAuthKeyCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.KeyManagerAuthKeyResponse
}
// IsSuccess returns true when this key manager auth key create created response has a 2xx status code
func (o *KeyManagerAuthKeyCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this key manager auth key create created response has a 3xx status code
func (o *KeyManagerAuthKeyCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this key manager auth key create created response has a 4xx status code
func (o *KeyManagerAuthKeyCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this key manager auth key create created response has a 5xx status code
func (o *KeyManagerAuthKeyCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this key manager auth key create created response a status code equal to that given
func (o *KeyManagerAuthKeyCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *KeyManagerAuthKeyCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] keyManagerAuthKeyCreateCreated %+v", 201, o.Payload)
}
func (o *KeyManagerAuthKeyCreateCreated) String() string {
return fmt.Sprintf("[POST /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] keyManagerAuthKeyCreateCreated %+v", 201, o.Payload)
}
func (o *KeyManagerAuthKeyCreateCreated) GetPayload() *models.KeyManagerAuthKeyResponse {
return o.Payload
}
func (o *KeyManagerAuthKeyCreateCreated) 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.KeyManagerAuthKeyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewKeyManagerAuthKeyCreateDefault creates a KeyManagerAuthKeyCreateDefault with default headers values
func NewKeyManagerAuthKeyCreateDefault(code int) *KeyManagerAuthKeyCreateDefault {
return &KeyManagerAuthKeyCreateDefault{
_statusCode: code,
}
}
/*
KeyManagerAuthKeyCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65536048 | The maximum number of authentication keys are already configured. |
| 65536053 | Invalid passphrase length; passphrase must be 20-32 ASCII-range characters. |
| 65536056 | The key tag value provided contains invalid characters. |
| 65536056 | The key-tag option cannot contain any spaces, tabs or new lines. |
| 65536074 | No key servers found. |
| 65536076 | Failed to push authentication key to any registered key servers. |
| 65536160 | Unable to determine the current number of configured authentication keys. |
| 65536264 | Failed to create authentication key. |
| 65536265 | Failed to create a key-id for the authentication key. |
| 65536828 | External key management is not enabled for the SVM. |
| 65536856 | No key servers found. |
| 65536872 | Error cleaning up key database after key creation error. |
| 65536896 | External key management is not configured on the partner site. |
| 65538800 | External KMIP DKMIP keymanager not configured on administrative Vserver. |
| 65538801 | Internal error while accessing keymanager database. |
| 65538802 | The UUID provided is not associated with the administrator SVM key manager. |
| 66060289 | Failed to store authentication key on key server. |
| 66060302 | Failed to create authentication key. |
| 66060304 | Invalid key length. |
*/
type KeyManagerAuthKeyCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the key manager auth key create default response
func (o *KeyManagerAuthKeyCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this key manager auth key create default response has a 2xx status code
func (o *KeyManagerAuthKeyCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this key manager auth key create default response has a 3xx status code
func (o *KeyManagerAuthKeyCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this key manager auth key create default response has a 4xx status code
func (o *KeyManagerAuthKeyCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this key manager auth key create default response has a 5xx status code
func (o *KeyManagerAuthKeyCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this key manager auth key create default response a status code equal to that given
func (o *KeyManagerAuthKeyCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *KeyManagerAuthKeyCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] key_manager_auth_key_create default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerAuthKeyCreateDefault) String() string {
return fmt.Sprintf("[POST /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] key_manager_auth_key_create default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerAuthKeyCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *KeyManagerAuthKeyCreateDefault) 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_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/role_privilege_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"
)
// RolePrivilegeCollectionGetReader is a Reader for the RolePrivilegeCollectionGet structure.
type RolePrivilegeCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *RolePrivilegeCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewRolePrivilegeCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewRolePrivilegeCollectionGetDefault(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
}
}
// NewRolePrivilegeCollectionGetOK creates a RolePrivilegeCollectionGetOK with default headers values
func NewRolePrivilegeCollectionGetOK() *RolePrivilegeCollectionGetOK {
return &RolePrivilegeCollectionGetOK{}
}
/*
RolePrivilegeCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type RolePrivilegeCollectionGetOK struct {
Payload *models.RolePrivilegeResponse
}
// IsSuccess returns true when this role privilege collection get o k response has a 2xx status code
func (o *RolePrivilegeCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this role privilege collection get o k response has a 3xx status code
func (o *RolePrivilegeCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this role privilege collection get o k response has a 4xx status code
func (o *RolePrivilegeCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this role privilege collection get o k response has a 5xx status code
func (o *RolePrivilegeCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this role privilege collection get o k response a status code equal to that given
func (o *RolePrivilegeCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *RolePrivilegeCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges][%d] rolePrivilegeCollectionGetOK %+v", 200, o.Payload)
}
func (o *RolePrivilegeCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges][%d] rolePrivilegeCollectionGetOK %+v", 200, o.Payload)
}
func (o *RolePrivilegeCollectionGetOK) GetPayload() *models.RolePrivilegeResponse {
return o.Payload
}
func (o *RolePrivilegeCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.RolePrivilegeResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewRolePrivilegeCollectionGetDefault creates a RolePrivilegeCollectionGetDefault with default headers values
func NewRolePrivilegeCollectionGetDefault(code int) *RolePrivilegeCollectionGetDefault {
return &RolePrivilegeCollectionGetDefault{
_statusCode: code,
}
}
/*
RolePrivilegeCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type RolePrivilegeCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the role privilege collection get default response
func (o *RolePrivilegeCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this role privilege collection get default response has a 2xx status code
func (o *RolePrivilegeCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this role privilege collection get default response has a 3xx status code
func (o *RolePrivilegeCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this role privilege collection get default response has a 4xx status code
func (o *RolePrivilegeCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this role privilege collection get default response has a 5xx status code
func (o *RolePrivilegeCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this role privilege collection get default response a status code equal to that given
func (o *RolePrivilegeCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *RolePrivilegeCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges][%d] role_privilege_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *RolePrivilegeCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/roles/{owner.uuid}/{name}/privileges][%d] role_privilege_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *RolePrivilegeCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *RolePrivilegeCollectionGetDefault) 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_rekey_internal_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_rekey_internal_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"
)
// NewGcpKmsRekeyInternalParams creates a new GcpKmsRekeyInternalParams 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 NewGcpKmsRekeyInternalParams() *GcpKmsRekeyInternalParams {
return &GcpKmsRekeyInternalParams{
timeout: cr.DefaultTimeout,
}
}
// NewGcpKmsRekeyInternalParamsWithTimeout creates a new GcpKmsRekeyInternalParams object
// with the ability to set a timeout on a request.
func NewGcpKmsRekeyInternalParamsWithTimeout(timeout time.Duration) *GcpKmsRekeyInternalParams {
return &GcpKmsRekeyInternalParams{
timeout: timeout,
}
}
// NewGcpKmsRekeyInternalParamsWithContext creates a new GcpKmsRekeyInternalParams object
// with the ability to set a context for a request.
func NewGcpKmsRekeyInternalParamsWithContext(ctx context.Context) *GcpKmsRekeyInternalParams {
return &GcpKmsRekeyInternalParams{
Context: ctx,
}
}
// NewGcpKmsRekeyInternalParamsWithHTTPClient creates a new GcpKmsRekeyInternalParams object
// with the ability to set a custom HTTPClient for a request.
func NewGcpKmsRekeyInternalParamsWithHTTPClient(client *http.Client) *GcpKmsRekeyInternalParams {
return &GcpKmsRekeyInternalParams{
HTTPClient: client,
}
}
/*
GcpKmsRekeyInternalParams contains all the parameters to send to the API endpoint
for the gcp kms rekey internal operation.
Typically these are written to a http.Request.
*/
type GcpKmsRekeyInternalParams 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 rekey internal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsRekeyInternalParams) WithDefaults() *GcpKmsRekeyInternalParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the gcp kms rekey internal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsRekeyInternalParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := GcpKmsRekeyInternalParams{
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 rekey internal params
func (o *GcpKmsRekeyInternalParams) WithTimeout(timeout time.Duration) *GcpKmsRekeyInternalParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) WithContext(ctx context.Context) *GcpKmsRekeyInternalParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) WithHTTPClient(client *http.Client) *GcpKmsRekeyInternalParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithReturnRecords adds the returnRecords to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) WithReturnRecords(returnRecords *bool) *GcpKmsRekeyInternalParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) WithReturnTimeout(returnTimeout *int64) *GcpKmsRekeyInternalParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithUUID adds the uuid to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) WithUUID(uuid string) *GcpKmsRekeyInternalParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the gcp kms rekey internal params
func (o *GcpKmsRekeyInternalParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *GcpKmsRekeyInternalParams) 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/security_log_forwarding_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_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"
)
// NewSecurityLogForwardingModifyParams creates a new SecurityLogForwardingModifyParams 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 NewSecurityLogForwardingModifyParams() *SecurityLogForwardingModifyParams {
return &SecurityLogForwardingModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityLogForwardingModifyParamsWithTimeout creates a new SecurityLogForwardingModifyParams object
// with the ability to set a timeout on a request.
func NewSecurityLogForwardingModifyParamsWithTimeout(timeout time.Duration) *SecurityLogForwardingModifyParams {
return &SecurityLogForwardingModifyParams{
timeout: timeout,
}
}
// NewSecurityLogForwardingModifyParamsWithContext creates a new SecurityLogForwardingModifyParams object
// with the ability to set a context for a request.
func NewSecurityLogForwardingModifyParamsWithContext(ctx context.Context) *SecurityLogForwardingModifyParams {
return &SecurityLogForwardingModifyParams{
Context: ctx,
}
}
// NewSecurityLogForwardingModifyParamsWithHTTPClient creates a new SecurityLogForwardingModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityLogForwardingModifyParamsWithHTTPClient(client *http.Client) *SecurityLogForwardingModifyParams {
return &SecurityLogForwardingModifyParams{
HTTPClient: client,
}
}
/*
SecurityLogForwardingModifyParams contains all the parameters to send to the API endpoint
for the security log forwarding modify operation.
Typically these are written to a http.Request.
*/
type SecurityLogForwardingModifyParams struct {
/* Address.
IP address of remote syslog/splunk server.
*/
Address string
/* Info.
Modify remote syslog/splunk server information.
*/
Info *models.SecurityAuditLogForward
/* 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 modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityLogForwardingModifyParams) WithDefaults() *SecurityLogForwardingModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security log forwarding modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityLogForwardingModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) WithTimeout(timeout time.Duration) *SecurityLogForwardingModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) WithContext(ctx context.Context) *SecurityLogForwardingModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) WithHTTPClient(client *http.Client) *SecurityLogForwardingModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAddress adds the address to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) WithAddress(address string) *SecurityLogForwardingModifyParams {
o.SetAddress(address)
return o
}
// SetAddress adds the address to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) SetAddress(address string) {
o.Address = address
}
// WithInfo adds the info to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) WithInfo(info *models.SecurityAuditLogForward) *SecurityLogForwardingModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) SetInfo(info *models.SecurityAuditLogForward) {
o.Info = info
}
// WithPort adds the port to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) WithPort(port int64) *SecurityLogForwardingModifyParams {
o.SetPort(port)
return o
}
// SetPort adds the port to the security log forwarding modify params
func (o *SecurityLogForwardingModifyParams) SetPort(port int64) {
o.Port = port
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityLogForwardingModifyParams) 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.Info != nil {
if err := r.SetBodyParam(o.Info); 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
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/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_saml_sp_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// NewSecuritySamlSpDeleteParams creates a new SecuritySamlSpDeleteParams 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 NewSecuritySamlSpDeleteParams() *SecuritySamlSpDeleteParams {
return &SecuritySamlSpDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecuritySamlSpDeleteParamsWithTimeout creates a new SecuritySamlSpDeleteParams object
// with the ability to set a timeout on a request.
func NewSecuritySamlSpDeleteParamsWithTimeout(timeout time.Duration) *SecuritySamlSpDeleteParams {
return &SecuritySamlSpDeleteParams{
timeout: timeout,
}
}
// NewSecuritySamlSpDeleteParamsWithContext creates a new SecuritySamlSpDeleteParams object
// with the ability to set a context for a request.
func NewSecuritySamlSpDeleteParamsWithContext(ctx context.Context) *SecuritySamlSpDeleteParams {
return &SecuritySamlSpDeleteParams{
Context: ctx,
}
}
// NewSecuritySamlSpDeleteParamsWithHTTPClient creates a new SecuritySamlSpDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecuritySamlSpDeleteParamsWithHTTPClient(client *http.Client) *SecuritySamlSpDeleteParams {
return &SecuritySamlSpDeleteParams{
HTTPClient: client,
}
}
/*
SecuritySamlSpDeleteParams contains all the parameters to send to the API endpoint
for the security saml sp delete operation.
Typically these are written to a http.Request.
*/
type SecuritySamlSpDeleteParams struct {
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security saml sp delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpDeleteParams) WithDefaults() *SecuritySamlSpDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security saml sp delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security saml sp delete params
func (o *SecuritySamlSpDeleteParams) WithTimeout(timeout time.Duration) *SecuritySamlSpDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security saml sp delete params
func (o *SecuritySamlSpDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security saml sp delete params
func (o *SecuritySamlSpDeleteParams) WithContext(ctx context.Context) *SecuritySamlSpDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security saml sp delete params
func (o *SecuritySamlSpDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security saml sp delete params
func (o *SecuritySamlSpDeleteParams) WithHTTPClient(client *http.Client) *SecuritySamlSpDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security saml sp delete params
func (o *SecuritySamlSpDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WriteToRequest writes these params to a swagger request
func (o *SecuritySamlSpDeleteParams) 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_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_request_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"
)
// NewMultiAdminVerifyRequestDeleteParams creates a new MultiAdminVerifyRequestDeleteParams 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 NewMultiAdminVerifyRequestDeleteParams() *MultiAdminVerifyRequestDeleteParams {
return &MultiAdminVerifyRequestDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewMultiAdminVerifyRequestDeleteParamsWithTimeout creates a new MultiAdminVerifyRequestDeleteParams object
// with the ability to set a timeout on a request.
func NewMultiAdminVerifyRequestDeleteParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRequestDeleteParams {
return &MultiAdminVerifyRequestDeleteParams{
timeout: timeout,
}
}
// NewMultiAdminVerifyRequestDeleteParamsWithContext creates a new MultiAdminVerifyRequestDeleteParams object
// with the ability to set a context for a request.
func NewMultiAdminVerifyRequestDeleteParamsWithContext(ctx context.Context) *MultiAdminVerifyRequestDeleteParams {
return &MultiAdminVerifyRequestDeleteParams{
Context: ctx,
}
}
// NewMultiAdminVerifyRequestDeleteParamsWithHTTPClient creates a new MultiAdminVerifyRequestDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewMultiAdminVerifyRequestDeleteParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRequestDeleteParams {
return &MultiAdminVerifyRequestDeleteParams{
HTTPClient: client,
}
}
/*
MultiAdminVerifyRequestDeleteParams contains all the parameters to send to the API endpoint
for the multi admin verify request delete operation.
Typically these are written to a http.Request.
*/
type MultiAdminVerifyRequestDeleteParams struct {
// Index.
Index string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the multi admin verify request delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyRequestDeleteParams) WithDefaults() *MultiAdminVerifyRequestDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the multi admin verify request delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyRequestDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRequestDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) WithContext(ctx context.Context) *MultiAdminVerifyRequestDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRequestDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithIndex adds the index to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) WithIndex(index string) *MultiAdminVerifyRequestDeleteParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the multi admin verify request delete params
func (o *MultiAdminVerifyRequestDeleteParams) SetIndex(index string) {
o.Index = index
}
// WriteToRequest writes these params to a swagger request
func (o *MultiAdminVerifyRequestDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param index
if err := r.SetPathParam("index", o.Index); 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_rekey_external_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_rekey_external_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"
)
// GcpKmsRekeyExternalReader is a Reader for the GcpKmsRekeyExternal structure.
type GcpKmsRekeyExternalReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GcpKmsRekeyExternalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewGcpKmsRekeyExternalAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewGcpKmsRekeyExternalDefault(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
}
}
// NewGcpKmsRekeyExternalAccepted creates a GcpKmsRekeyExternalAccepted with default headers values
func NewGcpKmsRekeyExternalAccepted() *GcpKmsRekeyExternalAccepted {
return &GcpKmsRekeyExternalAccepted{}
}
/*
GcpKmsRekeyExternalAccepted describes a response with status code 202, with default header values.
Accepted
*/
type GcpKmsRekeyExternalAccepted struct {
}
// IsSuccess returns true when this gcp kms rekey external accepted response has a 2xx status code
func (o *GcpKmsRekeyExternalAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this gcp kms rekey external accepted response has a 3xx status code
func (o *GcpKmsRekeyExternalAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this gcp kms rekey external accepted response has a 4xx status code
func (o *GcpKmsRekeyExternalAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this gcp kms rekey external accepted response has a 5xx status code
func (o *GcpKmsRekeyExternalAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this gcp kms rekey external accepted response a status code equal to that given
func (o *GcpKmsRekeyExternalAccepted) IsCode(code int) bool {
return code == 202
}
func (o *GcpKmsRekeyExternalAccepted) Error() string {
return fmt.Sprintf("[POST /security/gcp-kms/{gcp_kms.uuid}/rekey-external][%d] gcpKmsRekeyExternalAccepted ", 202)
}
func (o *GcpKmsRekeyExternalAccepted) String() string {
return fmt.Sprintf("[POST /security/gcp-kms/{gcp_kms.uuid}/rekey-external][%d] gcpKmsRekeyExternalAccepted ", 202)
}
func (o *GcpKmsRekeyExternalAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewGcpKmsRekeyExternalDefault creates a GcpKmsRekeyExternalDefault with default headers values
func NewGcpKmsRekeyExternalDefault(code int) *GcpKmsRekeyExternalDefault {
return &GcpKmsRekeyExternalDefault{
_statusCode: code,
}
}
/*
GcpKmsRekeyExternalDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 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. |
| 65537721 | Google Cloud KMS is not configured for the given SVM. |
| 65537729 | External rekey failed on one or more nodes. Use the REST API POST method \"/api/security/gcp-kms/{uuid}/rekey-external\" to try the rekey operation again. |
*/
type GcpKmsRekeyExternalDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the gcp kms rekey external default response
func (o *GcpKmsRekeyExternalDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this gcp kms rekey external default response has a 2xx status code
func (o *GcpKmsRekeyExternalDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this gcp kms rekey external default response has a 3xx status code
func (o *GcpKmsRekeyExternalDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this gcp kms rekey external default response has a 4xx status code
func (o *GcpKmsRekeyExternalDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this gcp kms rekey external default response has a 5xx status code
func (o *GcpKmsRekeyExternalDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this gcp kms rekey external default response a status code equal to that given
func (o *GcpKmsRekeyExternalDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *GcpKmsRekeyExternalDefault) Error() string {
return fmt.Sprintf("[POST /security/gcp-kms/{gcp_kms.uuid}/rekey-external][%d] gcp_kms_rekey_external default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsRekeyExternalDefault) String() string {
return fmt.Sprintf("[POST /security/gcp-kms/{gcp_kms.uuid}/rekey-external][%d] gcp_kms_rekey_external default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsRekeyExternalDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *GcpKmsRekeyExternalDefault) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_ldap_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"
)
// NewClusterLdapGetParams creates a new ClusterLdapGetParams 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 NewClusterLdapGetParams() *ClusterLdapGetParams {
return &ClusterLdapGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewClusterLdapGetParamsWithTimeout creates a new ClusterLdapGetParams object
// with the ability to set a timeout on a request.
func NewClusterLdapGetParamsWithTimeout(timeout time.Duration) *ClusterLdapGetParams {
return &ClusterLdapGetParams{
timeout: timeout,
}
}
// NewClusterLdapGetParamsWithContext creates a new ClusterLdapGetParams object
// with the ability to set a context for a request.
func NewClusterLdapGetParamsWithContext(ctx context.Context) *ClusterLdapGetParams {
return &ClusterLdapGetParams{
Context: ctx,
}
}
// NewClusterLdapGetParamsWithHTTPClient creates a new ClusterLdapGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewClusterLdapGetParamsWithHTTPClient(client *http.Client) *ClusterLdapGetParams {
return &ClusterLdapGetParams{
HTTPClient: client,
}
}
/*
ClusterLdapGetParams contains all the parameters to send to the API endpoint
for the cluster ldap get operation.
Typically these are written to a http.Request.
*/
type ClusterLdapGetParams 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 ldap get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterLdapGetParams) WithDefaults() *ClusterLdapGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cluster ldap get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterLdapGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cluster ldap get params
func (o *ClusterLdapGetParams) WithTimeout(timeout time.Duration) *ClusterLdapGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cluster ldap get params
func (o *ClusterLdapGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cluster ldap get params
func (o *ClusterLdapGetParams) WithContext(ctx context.Context) *ClusterLdapGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cluster ldap get params
func (o *ClusterLdapGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cluster ldap get params
func (o *ClusterLdapGetParams) WithHTTPClient(client *http.Client) *ClusterLdapGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cluster ldap get params
func (o *ClusterLdapGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the cluster ldap get params
func (o *ClusterLdapGetParams) WithFields(fields []string) *ClusterLdapGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cluster ldap get params
func (o *ClusterLdapGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WriteToRequest writes these params to a swagger request
func (o *ClusterLdapGetParams) 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
}
// bindParamClusterLdapGet binds the parameter fields
func (o *ClusterLdapGetParams) 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_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/svm_ssh_server_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"
)
// NewSvmSSHServerCollectionGetParams creates a new SvmSSHServerCollectionGetParams 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 NewSvmSSHServerCollectionGetParams() *SvmSSHServerCollectionGetParams {
return &SvmSSHServerCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSvmSSHServerCollectionGetParamsWithTimeout creates a new SvmSSHServerCollectionGetParams object
// with the ability to set a timeout on a request.
func NewSvmSSHServerCollectionGetParamsWithTimeout(timeout time.Duration) *SvmSSHServerCollectionGetParams {
return &SvmSSHServerCollectionGetParams{
timeout: timeout,
}
}
// NewSvmSSHServerCollectionGetParamsWithContext creates a new SvmSSHServerCollectionGetParams object
// with the ability to set a context for a request.
func NewSvmSSHServerCollectionGetParamsWithContext(ctx context.Context) *SvmSSHServerCollectionGetParams {
return &SvmSSHServerCollectionGetParams{
Context: ctx,
}
}
// NewSvmSSHServerCollectionGetParamsWithHTTPClient creates a new SvmSSHServerCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSvmSSHServerCollectionGetParamsWithHTTPClient(client *http.Client) *SvmSSHServerCollectionGetParams {
return &SvmSSHServerCollectionGetParams{
HTTPClient: client,
}
}
/*
SvmSSHServerCollectionGetParams contains all the parameters to send to the API endpoint
for the svm ssh server collection get operation.
Typically these are written to a http.Request.
*/
type SvmSSHServerCollectionGetParams struct {
/* Ciphers.
Filter by ciphers
*/
Ciphers *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* KeyExchangeAlgorithms.
Filter by key_exchange_algorithms
*/
KeyExchangeAlgorithms *string
/* MacAlgorithms.
Filter by mac_algorithms
*/
MacAlgorithms *string
/* MaxAuthenticationRetryCount.
Filter by max_authentication_retry_count
*/
MaxAuthenticationRetryCount *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* 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 svm ssh server collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SvmSSHServerCollectionGetParams) WithDefaults() *SvmSSHServerCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the svm ssh server collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SvmSSHServerCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := SvmSSHServerCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithTimeout(timeout time.Duration) *SvmSSHServerCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithContext(ctx context.Context) *SvmSSHServerCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithHTTPClient(client *http.Client) *SvmSSHServerCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithCiphers adds the ciphers to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithCiphers(ciphers *string) *SvmSSHServerCollectionGetParams {
o.SetCiphers(ciphers)
return o
}
// SetCiphers adds the ciphers to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetCiphers(ciphers *string) {
o.Ciphers = ciphers
}
// WithFields adds the fields to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithFields(fields []string) *SvmSSHServerCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithKeyExchangeAlgorithms adds the keyExchangeAlgorithms to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithKeyExchangeAlgorithms(keyExchangeAlgorithms *string) *SvmSSHServerCollectionGetParams {
o.SetKeyExchangeAlgorithms(keyExchangeAlgorithms)
return o
}
// SetKeyExchangeAlgorithms adds the keyExchangeAlgorithms to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetKeyExchangeAlgorithms(keyExchangeAlgorithms *string) {
o.KeyExchangeAlgorithms = keyExchangeAlgorithms
}
// WithMacAlgorithms adds the macAlgorithms to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithMacAlgorithms(macAlgorithms *string) *SvmSSHServerCollectionGetParams {
o.SetMacAlgorithms(macAlgorithms)
return o
}
// SetMacAlgorithms adds the macAlgorithms to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetMacAlgorithms(macAlgorithms *string) {
o.MacAlgorithms = macAlgorithms
}
// WithMaxAuthenticationRetryCount adds the maxAuthenticationRetryCount to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithMaxAuthenticationRetryCount(maxAuthenticationRetryCount *int64) *SvmSSHServerCollectionGetParams {
o.SetMaxAuthenticationRetryCount(maxAuthenticationRetryCount)
return o
}
// SetMaxAuthenticationRetryCount adds the maxAuthenticationRetryCount to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetMaxAuthenticationRetryCount(maxAuthenticationRetryCount *int64) {
o.MaxAuthenticationRetryCount = maxAuthenticationRetryCount
}
// WithMaxRecords adds the maxRecords to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithMaxRecords(maxRecords *int64) *SvmSSHServerCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithOrderBy(orderBy []string) *SvmSSHServerCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithReturnRecords(returnRecords *bool) *SvmSSHServerCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SvmSSHServerCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmName adds the svmName to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithSvmName(svmName *string) *SvmSSHServerCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) WithSvmUUID(svmUUID *string) *SvmSSHServerCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the svm ssh server collection get params
func (o *SvmSSHServerCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *SvmSSHServerCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Ciphers != nil {
// query param ciphers
var qrCiphers string
if o.Ciphers != nil {
qrCiphers = *o.Ciphers
}
qCiphers := qrCiphers
if qCiphers != "" {
if err := r.SetQueryParam("ciphers", qCiphers); 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.KeyExchangeAlgorithms != nil {
// query param key_exchange_algorithms
var qrKeyExchangeAlgorithms string
if o.KeyExchangeAlgorithms != nil {
qrKeyExchangeAlgorithms = *o.KeyExchangeAlgorithms
}
qKeyExchangeAlgorithms := qrKeyExchangeAlgorithms
if qKeyExchangeAlgorithms != "" {
if err := r.SetQueryParam("key_exchange_algorithms", qKeyExchangeAlgorithms); err != nil {
return err
}
}
}
if o.MacAlgorithms != nil {
// query param mac_algorithms
var qrMacAlgorithms string
if o.MacAlgorithms != nil {
qrMacAlgorithms = *o.MacAlgorithms
}
qMacAlgorithms := qrMacAlgorithms
if qMacAlgorithms != "" {
if err := r.SetQueryParam("mac_algorithms", qMacAlgorithms); err != nil {
return err
}
}
}
if o.MaxAuthenticationRetryCount != nil {
// query param max_authentication_retry_count
var qrMaxAuthenticationRetryCount int64
if o.MaxAuthenticationRetryCount != nil {
qrMaxAuthenticationRetryCount = *o.MaxAuthenticationRetryCount
}
qMaxAuthenticationRetryCount := swag.FormatInt64(qrMaxAuthenticationRetryCount)
if qMaxAuthenticationRetryCount != "" {
if err := r.SetQueryParam("max_authentication_retry_count", qMaxAuthenticationRetryCount); err != nil {
return err
}
}
}
if o.MaxRecords != nil {
// query param max_records
var qrMaxRecords int64
if o.MaxRecords != nil {
qrMaxRecords = *o.MaxRecords
}
qMaxRecords := swag.FormatInt64(qrMaxRecords)
if qMaxRecords != "" {
if err := r.SetQueryParam("max_records", qMaxRecords); err != nil {
return err
}
}
}
if o.OrderBy != nil {
// binding items for order_by
joinedOrderBy := o.bindParamOrderBy(reg)
// query array param order_by
if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
if o.SvmName != nil {
// query param svm.name
var qrSvmName string
if o.SvmName != nil {
qrSvmName = *o.SvmName
}
qSvmName := qrSvmName
if qSvmName != "" {
if err := r.SetQueryParam("svm.name", qSvmName); err != nil {
return err
}
}
}
if o.SvmUUID != nil {
// query param svm.uuid
var qrSvmUUID string
if o.SvmUUID != nil {
qrSvmUUID = *o.SvmUUID
}
qSvmUUID := qrSvmUUID
if qSvmUUID != "" {
if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamSvmSSHServerCollectionGet binds the parameter fields
func (o *SvmSSHServerCollectionGetParams) 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
}
// bindParamSvmSSHServerCollectionGet binds the parameter order_by
func (o *SvmSSHServerCollectionGetParams) 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_account_ad_proxy_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_account_ad_proxy_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"
)
// NewClusterAccountAdProxyCreateParams creates a new ClusterAccountAdProxyCreateParams 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 NewClusterAccountAdProxyCreateParams() *ClusterAccountAdProxyCreateParams {
return &ClusterAccountAdProxyCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewClusterAccountAdProxyCreateParamsWithTimeout creates a new ClusterAccountAdProxyCreateParams object
// with the ability to set a timeout on a request.
func NewClusterAccountAdProxyCreateParamsWithTimeout(timeout time.Duration) *ClusterAccountAdProxyCreateParams {
return &ClusterAccountAdProxyCreateParams{
timeout: timeout,
}
}
// NewClusterAccountAdProxyCreateParamsWithContext creates a new ClusterAccountAdProxyCreateParams object
// with the ability to set a context for a request.
func NewClusterAccountAdProxyCreateParamsWithContext(ctx context.Context) *ClusterAccountAdProxyCreateParams {
return &ClusterAccountAdProxyCreateParams{
Context: ctx,
}
}
// NewClusterAccountAdProxyCreateParamsWithHTTPClient creates a new ClusterAccountAdProxyCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewClusterAccountAdProxyCreateParamsWithHTTPClient(client *http.Client) *ClusterAccountAdProxyCreateParams {
return &ClusterAccountAdProxyCreateParams{
HTTPClient: client,
}
}
/*
ClusterAccountAdProxyCreateParams contains all the parameters to send to the API endpoint
for the cluster account ad proxy create operation.
Typically these are written to a http.Request.
*/
type ClusterAccountAdProxyCreateParams 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 create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterAccountAdProxyCreateParams) WithDefaults() *ClusterAccountAdProxyCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cluster account ad proxy create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterAccountAdProxyCreateParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) WithTimeout(timeout time.Duration) *ClusterAccountAdProxyCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) WithContext(ctx context.Context) *ClusterAccountAdProxyCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) WithHTTPClient(client *http.Client) *ClusterAccountAdProxyCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) WithInfo(info *models.ClusterAdProxy) *ClusterAccountAdProxyCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cluster account ad proxy create params
func (o *ClusterAccountAdProxyCreateParams) SetInfo(info *models.ClusterAdProxy) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *ClusterAccountAdProxyCreateParams) 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/key_manager_auth_key_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_auth_key_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"
)
// KeyManagerAuthKeyGetReader is a Reader for the KeyManagerAuthKeyGet structure.
type KeyManagerAuthKeyGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *KeyManagerAuthKeyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewKeyManagerAuthKeyGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewKeyManagerAuthKeyGetDefault(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
}
}
// NewKeyManagerAuthKeyGetOK creates a KeyManagerAuthKeyGetOK with default headers values
func NewKeyManagerAuthKeyGetOK() *KeyManagerAuthKeyGetOK {
return &KeyManagerAuthKeyGetOK{}
}
/*
KeyManagerAuthKeyGetOK describes a response with status code 200, with default header values.
OK
*/
type KeyManagerAuthKeyGetOK struct {
Payload *models.KeyManagerAuthKey
}
// IsSuccess returns true when this key manager auth key get o k response has a 2xx status code
func (o *KeyManagerAuthKeyGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this key manager auth key get o k response has a 3xx status code
func (o *KeyManagerAuthKeyGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this key manager auth key get o k response has a 4xx status code
func (o *KeyManagerAuthKeyGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this key manager auth key get o k response has a 5xx status code
func (o *KeyManagerAuthKeyGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this key manager auth key get o k response a status code equal to that given
func (o *KeyManagerAuthKeyGetOK) IsCode(code int) bool {
return code == 200
}
func (o *KeyManagerAuthKeyGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys/{key_id}][%d] keyManagerAuthKeyGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerAuthKeyGetOK) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys/{key_id}][%d] keyManagerAuthKeyGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerAuthKeyGetOK) GetPayload() *models.KeyManagerAuthKey {
return o.Payload
}
func (o *KeyManagerAuthKeyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.KeyManagerAuthKey)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewKeyManagerAuthKeyGetDefault creates a KeyManagerAuthKeyGetDefault with default headers values
func NewKeyManagerAuthKeyGetDefault(code int) *KeyManagerAuthKeyGetDefault {
return &KeyManagerAuthKeyGetDefault{
_statusCode: code,
}
}
/*
KeyManagerAuthKeyGetDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65536074 | No key servers found. |
| 65536828 | External key management is not enabled for the SVM. |
| 65536856 | No key servers found. |
| 65536896 | External key management is not configured on the partner site. |
| 65538800 | External KMIP DKMIP keymanager not configured on administrative Vserver. |
| 65538801 | Internal error while accessing keymanager database. |
| 65538802 | The UUID provided is not associated with the administrator SVM key manager. |
*/
type KeyManagerAuthKeyGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the key manager auth key get default response
func (o *KeyManagerAuthKeyGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this key manager auth key get default response has a 2xx status code
func (o *KeyManagerAuthKeyGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this key manager auth key get default response has a 3xx status code
func (o *KeyManagerAuthKeyGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this key manager auth key get default response has a 4xx status code
func (o *KeyManagerAuthKeyGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this key manager auth key get default response has a 5xx status code
func (o *KeyManagerAuthKeyGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this key manager auth key get default response a status code equal to that given
func (o *KeyManagerAuthKeyGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *KeyManagerAuthKeyGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys/{key_id}][%d] key_manager_auth_key_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerAuthKeyGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys/{key_id}][%d] key_manager_auth_key_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerAuthKeyGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *KeyManagerAuthKeyGetDefault) 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_sign_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_certificate_sign_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"
)
// NewSecurityCertificateSignParams creates a new SecurityCertificateSignParams 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 NewSecurityCertificateSignParams() *SecurityCertificateSignParams {
return &SecurityCertificateSignParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityCertificateSignParamsWithTimeout creates a new SecurityCertificateSignParams object
// with the ability to set a timeout on a request.
func NewSecurityCertificateSignParamsWithTimeout(timeout time.Duration) *SecurityCertificateSignParams {
return &SecurityCertificateSignParams{
timeout: timeout,
}
}
// NewSecurityCertificateSignParamsWithContext creates a new SecurityCertificateSignParams object
// with the ability to set a context for a request.
func NewSecurityCertificateSignParamsWithContext(ctx context.Context) *SecurityCertificateSignParams {
return &SecurityCertificateSignParams{
Context: ctx,
}
}
// NewSecurityCertificateSignParamsWithHTTPClient creates a new SecurityCertificateSignParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityCertificateSignParamsWithHTTPClient(client *http.Client) *SecurityCertificateSignParams {
return &SecurityCertificateSignParams{
HTTPClient: client,
}
}
/*
SecurityCertificateSignParams contains all the parameters to send to the API endpoint
for the security certificate sign operation.
Typically these are written to a http.Request.
*/
type SecurityCertificateSignParams struct {
/* CaUUID.
UUID of the existing certificate authority certificate
*/
CaUUID string
/* Info.
Certificate sign information specification
*/
Info *models.SecurityCertificateSign
/* 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 sign params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityCertificateSignParams) WithDefaults() *SecurityCertificateSignParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security certificate sign params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityCertificateSignParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := SecurityCertificateSignParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the security certificate sign params
func (o *SecurityCertificateSignParams) WithTimeout(timeout time.Duration) *SecurityCertificateSignParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security certificate sign params
func (o *SecurityCertificateSignParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security certificate sign params
func (o *SecurityCertificateSignParams) WithContext(ctx context.Context) *SecurityCertificateSignParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security certificate sign params
func (o *SecurityCertificateSignParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security certificate sign params
func (o *SecurityCertificateSignParams) WithHTTPClient(client *http.Client) *SecurityCertificateSignParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security certificate sign params
func (o *SecurityCertificateSignParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithCaUUID adds the caUUID to the security certificate sign params
func (o *SecurityCertificateSignParams) WithCaUUID(caUUID string) *SecurityCertificateSignParams {
o.SetCaUUID(caUUID)
return o
}
// SetCaUUID adds the caUuid to the security certificate sign params
func (o *SecurityCertificateSignParams) SetCaUUID(caUUID string) {
o.CaUUID = caUUID
}
// WithInfo adds the info to the security certificate sign params
func (o *SecurityCertificateSignParams) WithInfo(info *models.SecurityCertificateSign) *SecurityCertificateSignParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security certificate sign params
func (o *SecurityCertificateSignParams) SetInfo(info *models.SecurityCertificateSign) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the security certificate sign params
func (o *SecurityCertificateSignParams) WithReturnRecords(returnRecords *bool) *SecurityCertificateSignParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the security certificate sign params
func (o *SecurityCertificateSignParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityCertificateSignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param ca.uuid
if err := r.SetPathParam("ca.uuid", o.CaUUID); 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 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_rekey_external_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_rekey_external_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"
)
// AzureKeyVaultRekeyExternalReader is a Reader for the AzureKeyVaultRekeyExternal structure.
type AzureKeyVaultRekeyExternalReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AzureKeyVaultRekeyExternalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewAzureKeyVaultRekeyExternalAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAzureKeyVaultRekeyExternalDefault(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
}
}
// NewAzureKeyVaultRekeyExternalAccepted creates a AzureKeyVaultRekeyExternalAccepted with default headers values
func NewAzureKeyVaultRekeyExternalAccepted() *AzureKeyVaultRekeyExternalAccepted {
return &AzureKeyVaultRekeyExternalAccepted{}
}
/*
AzureKeyVaultRekeyExternalAccepted describes a response with status code 202, with default header values.
Accepted
*/
type AzureKeyVaultRekeyExternalAccepted struct {
}
// IsSuccess returns true when this azure key vault rekey external accepted response has a 2xx status code
func (o *AzureKeyVaultRekeyExternalAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this azure key vault rekey external accepted response has a 3xx status code
func (o *AzureKeyVaultRekeyExternalAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this azure key vault rekey external accepted response has a 4xx status code
func (o *AzureKeyVaultRekeyExternalAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this azure key vault rekey external accepted response has a 5xx status code
func (o *AzureKeyVaultRekeyExternalAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this azure key vault rekey external accepted response a status code equal to that given
func (o *AzureKeyVaultRekeyExternalAccepted) IsCode(code int) bool {
return code == 202
}
func (o *AzureKeyVaultRekeyExternalAccepted) Error() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{azure_key_vault.uuid}/rekey-external][%d] azureKeyVaultRekeyExternalAccepted ", 202)
}
func (o *AzureKeyVaultRekeyExternalAccepted) String() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{azure_key_vault.uuid}/rekey-external][%d] azureKeyVaultRekeyExternalAccepted ", 202)
}
func (o *AzureKeyVaultRekeyExternalAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAzureKeyVaultRekeyExternalDefault creates a AzureKeyVaultRekeyExternalDefault with default headers values
func NewAzureKeyVaultRekeyExternalDefault(code int) *AzureKeyVaultRekeyExternalDefault {
return &AzureKeyVaultRekeyExternalDefault{
_statusCode: code,
}
}
/*
AzureKeyVaultRekeyExternalDefault 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. |
| 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. |
*/
type AzureKeyVaultRekeyExternalDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the azure key vault rekey external default response
func (o *AzureKeyVaultRekeyExternalDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this azure key vault rekey external default response has a 2xx status code
func (o *AzureKeyVaultRekeyExternalDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this azure key vault rekey external default response has a 3xx status code
func (o *AzureKeyVaultRekeyExternalDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this azure key vault rekey external default response has a 4xx status code
func (o *AzureKeyVaultRekeyExternalDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this azure key vault rekey external default response has a 5xx status code
func (o *AzureKeyVaultRekeyExternalDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this azure key vault rekey external default response a status code equal to that given
func (o *AzureKeyVaultRekeyExternalDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AzureKeyVaultRekeyExternalDefault) Error() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{azure_key_vault.uuid}/rekey-external][%d] azure_key_vault_rekey_external default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultRekeyExternalDefault) String() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{azure_key_vault.uuid}/rekey-external][%d] azure_key_vault_rekey_external default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultRekeyExternalDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AzureKeyVaultRekeyExternalDefault) 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_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_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"
)
// NewSecurityKeyManagerKeyServersCreateParams creates a new SecurityKeyManagerKeyServersCreateParams 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 NewSecurityKeyManagerKeyServersCreateParams() *SecurityKeyManagerKeyServersCreateParams {
return &SecurityKeyManagerKeyServersCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerKeyServersCreateParamsWithTimeout creates a new SecurityKeyManagerKeyServersCreateParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerKeyServersCreateParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersCreateParams {
return &SecurityKeyManagerKeyServersCreateParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerKeyServersCreateParamsWithContext creates a new SecurityKeyManagerKeyServersCreateParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerKeyServersCreateParamsWithContext(ctx context.Context) *SecurityKeyManagerKeyServersCreateParams {
return &SecurityKeyManagerKeyServersCreateParams{
Context: ctx,
}
}
// NewSecurityKeyManagerKeyServersCreateParamsWithHTTPClient creates a new SecurityKeyManagerKeyServersCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerKeyServersCreateParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersCreateParams {
return &SecurityKeyManagerKeyServersCreateParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerKeyServersCreateParams contains all the parameters to send to the API endpoint
for the security key manager key servers create operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerKeyServersCreateParams struct {
/* Info.
Information specification
*/
Info *models.KeyServer
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* UUID.
External key manager UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager key servers create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersCreateParams) WithDefaults() *SecurityKeyManagerKeyServersCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager key servers create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerKeyServersCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := SecurityKeyManagerKeyServersCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerKeyServersCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) WithContext(ctx context.Context) *SecurityKeyManagerKeyServersCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerKeyServersCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) WithInfo(info *models.KeyServer) *SecurityKeyManagerKeyServersCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) SetInfo(info *models.KeyServer) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) WithReturnRecords(returnRecords *bool) *SecurityKeyManagerKeyServersCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithUUID adds the uuid to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) WithUUID(uuid string) *SecurityKeyManagerKeyServersCreateParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security key manager key servers create params
func (o *SecurityKeyManagerKeyServersCreateParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerKeyServersCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
// path param 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/key_manager_keys_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_keys_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"
)
// KeyManagerKeysGetReader is a Reader for the KeyManagerKeysGet structure.
type KeyManagerKeysGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *KeyManagerKeysGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewKeyManagerKeysGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewKeyManagerKeysGetDefault(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
}
}
// NewKeyManagerKeysGetOK creates a KeyManagerKeysGetOK with default headers values
func NewKeyManagerKeysGetOK() *KeyManagerKeysGetOK {
return &KeyManagerKeysGetOK{}
}
/*
KeyManagerKeysGetOK describes a response with status code 200, with default header values.
OK
*/
type KeyManagerKeysGetOK struct {
Payload *models.KeyManagerKeys
}
// IsSuccess returns true when this key manager keys get o k response has a 2xx status code
func (o *KeyManagerKeysGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this key manager keys get o k response has a 3xx status code
func (o *KeyManagerKeysGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this key manager keys get o k response has a 4xx status code
func (o *KeyManagerKeysGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this key manager keys get o k response has a 5xx status code
func (o *KeyManagerKeysGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this key manager keys get o k response a status code equal to that given
func (o *KeyManagerKeysGetOK) IsCode(code int) bool {
return code == 200
}
func (o *KeyManagerKeysGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids/{key_id}][%d] keyManagerKeysGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerKeysGetOK) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids/{key_id}][%d] keyManagerKeysGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerKeysGetOK) GetPayload() *models.KeyManagerKeys {
return o.Payload
}
func (o *KeyManagerKeysGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.KeyManagerKeys)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewKeyManagerKeysGetDefault creates a KeyManagerKeysGetDefault with default headers values
func NewKeyManagerKeysGetDefault(code int) *KeyManagerKeysGetDefault {
return &KeyManagerKeysGetDefault{
_statusCode: code,
}
}
/*
KeyManagerKeysGetDefault describes a response with status code -1, with default header values.
Error
*/
type KeyManagerKeysGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the key manager keys get default response
func (o *KeyManagerKeysGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this key manager keys get default response has a 2xx status code
func (o *KeyManagerKeysGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this key manager keys get default response has a 3xx status code
func (o *KeyManagerKeysGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this key manager keys get default response has a 4xx status code
func (o *KeyManagerKeysGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this key manager keys get default response has a 5xx status code
func (o *KeyManagerKeysGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this key manager keys get default response a status code equal to that given
func (o *KeyManagerKeysGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *KeyManagerKeysGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids/{key_id}][%d] key_manager_keys_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerKeysGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids/{key_id}][%d] key_manager_keys_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerKeysGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *KeyManagerKeysGetDefault) 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/svm_ssh_server_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/svm_ssh_server_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"
)
// NewSvmSSHServerModifyParams creates a new SvmSSHServerModifyParams 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 NewSvmSSHServerModifyParams() *SvmSSHServerModifyParams {
return &SvmSSHServerModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewSvmSSHServerModifyParamsWithTimeout creates a new SvmSSHServerModifyParams object
// with the ability to set a timeout on a request.
func NewSvmSSHServerModifyParamsWithTimeout(timeout time.Duration) *SvmSSHServerModifyParams {
return &SvmSSHServerModifyParams{
timeout: timeout,
}
}
// NewSvmSSHServerModifyParamsWithContext creates a new SvmSSHServerModifyParams object
// with the ability to set a context for a request.
func NewSvmSSHServerModifyParamsWithContext(ctx context.Context) *SvmSSHServerModifyParams {
return &SvmSSHServerModifyParams{
Context: ctx,
}
}
// NewSvmSSHServerModifyParamsWithHTTPClient creates a new SvmSSHServerModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewSvmSSHServerModifyParamsWithHTTPClient(client *http.Client) *SvmSSHServerModifyParams {
return &SvmSSHServerModifyParams{
HTTPClient: client,
}
}
/*
SvmSSHServerModifyParams contains all the parameters to send to the API endpoint
for the svm ssh server modify operation.
Typically these are written to a http.Request.
*/
type SvmSSHServerModifyParams struct {
/* Info.
SSH server algorithm configuration details.
*/
Info *models.SvmSSHServer
/* SvmUUID.
SVM UUID
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the svm ssh server modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SvmSSHServerModifyParams) WithDefaults() *SvmSSHServerModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the svm ssh server modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SvmSSHServerModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) WithTimeout(timeout time.Duration) *SvmSSHServerModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) WithContext(ctx context.Context) *SvmSSHServerModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) WithHTTPClient(client *http.Client) *SvmSSHServerModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) WithInfo(info *models.SvmSSHServer) *SvmSSHServerModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) SetInfo(info *models.SvmSSHServer) {
o.Info = info
}
// WithSvmUUID adds the svmUUID to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) WithSvmUUID(svmUUID string) *SvmSSHServerModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the svm ssh server modify params
func (o *SvmSSHServerModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *SvmSSHServerModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
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_ldap_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_ldap_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"
)
// NewClusterLdapCreateParams creates a new ClusterLdapCreateParams 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 NewClusterLdapCreateParams() *ClusterLdapCreateParams {
return &ClusterLdapCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewClusterLdapCreateParamsWithTimeout creates a new ClusterLdapCreateParams object
// with the ability to set a timeout on a request.
func NewClusterLdapCreateParamsWithTimeout(timeout time.Duration) *ClusterLdapCreateParams {
return &ClusterLdapCreateParams{
timeout: timeout,
}
}
// NewClusterLdapCreateParamsWithContext creates a new ClusterLdapCreateParams object
// with the ability to set a context for a request.
func NewClusterLdapCreateParamsWithContext(ctx context.Context) *ClusterLdapCreateParams {
return &ClusterLdapCreateParams{
Context: ctx,
}
}
// NewClusterLdapCreateParamsWithHTTPClient creates a new ClusterLdapCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewClusterLdapCreateParamsWithHTTPClient(client *http.Client) *ClusterLdapCreateParams {
return &ClusterLdapCreateParams{
HTTPClient: client,
}
}
/*
ClusterLdapCreateParams contains all the parameters to send to the API endpoint
for the cluster ldap create operation.
Typically these are written to a http.Request.
*/
type ClusterLdapCreateParams struct {
/* Info.
Info specification
*/
Info *models.ClusterLdap
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cluster ldap create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterLdapCreateParams) WithDefaults() *ClusterLdapCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cluster ldap create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ClusterLdapCreateParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cluster ldap create params
func (o *ClusterLdapCreateParams) WithTimeout(timeout time.Duration) *ClusterLdapCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cluster ldap create params
func (o *ClusterLdapCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cluster ldap create params
func (o *ClusterLdapCreateParams) WithContext(ctx context.Context) *ClusterLdapCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cluster ldap create params
func (o *ClusterLdapCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cluster ldap create params
func (o *ClusterLdapCreateParams) WithHTTPClient(client *http.Client) *ClusterLdapCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cluster ldap create params
func (o *ClusterLdapCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the cluster ldap create params
func (o *ClusterLdapCreateParams) WithInfo(info *models.ClusterLdap) *ClusterLdapCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cluster ldap create params
func (o *ClusterLdapCreateParams) SetInfo(info *models.ClusterLdap) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *ClusterLdapCreateParams) 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/security_saml_sp_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// NewSecuritySamlSpModifyParams creates a new SecuritySamlSpModifyParams 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 NewSecuritySamlSpModifyParams() *SecuritySamlSpModifyParams {
return &SecuritySamlSpModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecuritySamlSpModifyParamsWithTimeout creates a new SecuritySamlSpModifyParams object
// with the ability to set a timeout on a request.
func NewSecuritySamlSpModifyParamsWithTimeout(timeout time.Duration) *SecuritySamlSpModifyParams {
return &SecuritySamlSpModifyParams{
timeout: timeout,
}
}
// NewSecuritySamlSpModifyParamsWithContext creates a new SecuritySamlSpModifyParams object
// with the ability to set a context for a request.
func NewSecuritySamlSpModifyParamsWithContext(ctx context.Context) *SecuritySamlSpModifyParams {
return &SecuritySamlSpModifyParams{
Context: ctx,
}
}
// NewSecuritySamlSpModifyParamsWithHTTPClient creates a new SecuritySamlSpModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecuritySamlSpModifyParamsWithHTTPClient(client *http.Client) *SecuritySamlSpModifyParams {
return &SecuritySamlSpModifyParams{
HTTPClient: client,
}
}
/*
SecuritySamlSpModifyParams contains all the parameters to send to the API endpoint
for the security saml sp modify operation.
Typically these are written to a http.Request.
*/
type SecuritySamlSpModifyParams struct {
/* Info.
Information specification
*/
Info *models.SecuritySamlSp
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security saml sp modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpModifyParams) WithDefaults() *SecuritySamlSpModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security saml sp modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecuritySamlSpModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) WithTimeout(timeout time.Duration) *SecuritySamlSpModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) WithContext(ctx context.Context) *SecuritySamlSpModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) WithHTTPClient(client *http.Client) *SecuritySamlSpModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) WithInfo(info *models.SecuritySamlSp) *SecuritySamlSpModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security saml sp modify params
func (o *SecuritySamlSpModifyParams) SetInfo(info *models.SecuritySamlSp) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *SecuritySamlSpModifyParams) 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/security_keystore_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_keystore_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"
)
// SecurityKeystoreCollectionGetReader is a Reader for the SecurityKeystoreCollectionGet structure.
type SecurityKeystoreCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityKeystoreCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityKeystoreCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityKeystoreCollectionGetDefault(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
}
}
// NewSecurityKeystoreCollectionGetOK creates a SecurityKeystoreCollectionGetOK with default headers values
func NewSecurityKeystoreCollectionGetOK() *SecurityKeystoreCollectionGetOK {
return &SecurityKeystoreCollectionGetOK{}
}
/*
SecurityKeystoreCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type SecurityKeystoreCollectionGetOK struct {
Payload *models.SecurityKeystoreResponse
}
// IsSuccess returns true when this security keystore collection get o k response has a 2xx status code
func (o *SecurityKeystoreCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security keystore collection get o k response has a 3xx status code
func (o *SecurityKeystoreCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security keystore collection get o k response has a 4xx status code
func (o *SecurityKeystoreCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security keystore collection get o k response has a 5xx status code
func (o *SecurityKeystoreCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this security keystore collection get o k response a status code equal to that given
func (o *SecurityKeystoreCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityKeystoreCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-stores][%d] securityKeystoreCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityKeystoreCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/key-stores][%d] securityKeystoreCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityKeystoreCollectionGetOK) GetPayload() *models.SecurityKeystoreResponse {
return o.Payload
}
func (o *SecurityKeystoreCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecurityKeystoreResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityKeystoreCollectionGetDefault creates a SecurityKeystoreCollectionGetDefault with default headers values
func NewSecurityKeystoreCollectionGetDefault(code int) *SecurityKeystoreCollectionGetDefault {
return &SecurityKeystoreCollectionGetDefault{
_statusCode: code,
}
}
/*
SecurityKeystoreCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type SecurityKeystoreCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security keystore collection get default response
func (o *SecurityKeystoreCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security keystore collection get default response has a 2xx status code
func (o *SecurityKeystoreCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security keystore collection get default response has a 3xx status code
func (o *SecurityKeystoreCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security keystore collection get default response has a 4xx status code
func (o *SecurityKeystoreCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security keystore collection get default response has a 5xx status code
func (o *SecurityKeystoreCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security keystore collection get default response a status code equal to that given
func (o *SecurityKeystoreCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityKeystoreCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-stores][%d] security_keystore_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeystoreCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-stores][%d] security_keystore_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeystoreCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityKeystoreCollectionGetDefault) 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_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_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"
)
// SecurityKeyManagerCollectionGetReader is a Reader for the SecurityKeyManagerCollectionGet structure.
type SecurityKeyManagerCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityKeyManagerCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityKeyManagerCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityKeyManagerCollectionGetDefault(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
}
}
// NewSecurityKeyManagerCollectionGetOK creates a SecurityKeyManagerCollectionGetOK with default headers values
func NewSecurityKeyManagerCollectionGetOK() *SecurityKeyManagerCollectionGetOK {
return &SecurityKeyManagerCollectionGetOK{}
}
/*
SecurityKeyManagerCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type SecurityKeyManagerCollectionGetOK struct {
Payload *models.SecurityKeyManagerResponse
}
// IsSuccess returns true when this security key manager collection get o k response has a 2xx status code
func (o *SecurityKeyManagerCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security key manager collection get o k response has a 3xx status code
func (o *SecurityKeyManagerCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security key manager collection get o k response has a 4xx status code
func (o *SecurityKeyManagerCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security key manager collection get o k response has a 5xx status code
func (o *SecurityKeyManagerCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this security key manager collection get o k response a status code equal to that given
func (o *SecurityKeyManagerCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityKeyManagerCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-managers][%d] securityKeyManagerCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityKeyManagerCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/key-managers][%d] securityKeyManagerCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityKeyManagerCollectionGetOK) GetPayload() *models.SecurityKeyManagerResponse {
return o.Payload
}
func (o *SecurityKeyManagerCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecurityKeyManagerResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityKeyManagerCollectionGetDefault creates a SecurityKeyManagerCollectionGetDefault with default headers values
func NewSecurityKeyManagerCollectionGetDefault(code int) *SecurityKeyManagerCollectionGetDefault {
return &SecurityKeyManagerCollectionGetDefault{
_statusCode: code,
}
}
/*
SecurityKeyManagerCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type SecurityKeyManagerCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security key manager collection get default response
func (o *SecurityKeyManagerCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security key manager collection get default response has a 2xx status code
func (o *SecurityKeyManagerCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security key manager collection get default response has a 3xx status code
func (o *SecurityKeyManagerCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security key manager collection get default response has a 4xx status code
func (o *SecurityKeyManagerCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security key manager collection get default response has a 5xx status code
func (o *SecurityKeyManagerCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security key manager collection get default response a status code equal to that given
func (o *SecurityKeyManagerCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityKeyManagerCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-managers][%d] security_key_manager_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-managers][%d] security_key_manager_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityKeyManagerCollectionGetDefault) 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_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"
)
// SecurityKeyManagerModifyReader is a Reader for the SecurityKeyManagerModify structure.
type SecurityKeyManagerModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityKeyManagerModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityKeyManagerModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityKeyManagerModifyDefault(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
}
}
// NewSecurityKeyManagerModifyOK creates a SecurityKeyManagerModifyOK with default headers values
func NewSecurityKeyManagerModifyOK() *SecurityKeyManagerModifyOK {
return &SecurityKeyManagerModifyOK{}
}
/*
SecurityKeyManagerModifyOK describes a response with status code 200, with default header values.
OK
*/
type SecurityKeyManagerModifyOK struct {
}
// IsSuccess returns true when this security key manager modify o k response has a 2xx status code
func (o *SecurityKeyManagerModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security key manager modify o k response has a 3xx status code
func (o *SecurityKeyManagerModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security key manager modify o k response has a 4xx status code
func (o *SecurityKeyManagerModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security key manager modify o k response has a 5xx status code
func (o *SecurityKeyManagerModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this security key manager modify o k response a status code equal to that given
func (o *SecurityKeyManagerModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityKeyManagerModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/key-managers/{uuid}][%d] securityKeyManagerModifyOK ", 200)
}
func (o *SecurityKeyManagerModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/key-managers/{uuid}][%d] securityKeyManagerModifyOK ", 200)
}
func (o *SecurityKeyManagerModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewSecurityKeyManagerModifyDefault creates a SecurityKeyManagerModifyDefault with default headers values
func NewSecurityKeyManagerModifyDefault(code int) *SecurityKeyManagerModifyDefault {
return &SecurityKeyManagerModifyDefault{
_statusCode: code,
}
}
/*
SecurityKeyManagerModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65536139 | The existing passphrase value provided does not match the configured passphrase. |
| 65536150 | The new passphrase is same as old passphrase. |
| 65536404 | The passphrase does not match the accepted length. |
| 65536406 | The change of passphrase failed. |
| 65536407 | The passphrase update failed on some nodes. |
| 65536802 | The passphrase does not match the accepted length in common criteria mode. |
| 65536821 | The certificate is not installed. |
| 65536822 | Multitenant key management is not supported in the current cluster version. |
| 65536828 | External key management is not enabled for the SVM. |
| 65536850 | New client certificate public or private keys are different from the existing client certificate. |
| 65536852 | Failed to query supported KMIP protocol versions. |
| 65536917 | Updating an onboard passhrase requires both new and existing cluster passphrase. |
| 65537242 | The Onboard Key Manager existing_passphrase must be provided when performing a PATCH/synchronize operation. |
| 65537243 | The Onboard Key Manager passphrase must not be provided when performing a PATCH/synchronize operation. |
| 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 SecurityKeyManagerModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security key manager modify default response
func (o *SecurityKeyManagerModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security key manager modify default response has a 2xx status code
func (o *SecurityKeyManagerModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security key manager modify default response has a 3xx status code
func (o *SecurityKeyManagerModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security key manager modify default response has a 4xx status code
func (o *SecurityKeyManagerModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security key manager modify default response has a 5xx status code
func (o *SecurityKeyManagerModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security key manager modify default response a status code equal to that given
func (o *SecurityKeyManagerModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityKeyManagerModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/key-managers/{uuid}][%d] security_key_manager_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/key-managers/{uuid}][%d] security_key_manager_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityKeyManagerModifyDefault) 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_ca_certificate_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_certificate_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"
)
// IpsecCaCertificateCollectionGetReader is a Reader for the IpsecCaCertificateCollectionGet structure.
type IpsecCaCertificateCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *IpsecCaCertificateCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewIpsecCaCertificateCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewIpsecCaCertificateCollectionGetDefault(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
}
}
// NewIpsecCaCertificateCollectionGetOK creates a IpsecCaCertificateCollectionGetOK with default headers values
func NewIpsecCaCertificateCollectionGetOK() *IpsecCaCertificateCollectionGetOK {
return &IpsecCaCertificateCollectionGetOK{}
}
/*
IpsecCaCertificateCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type IpsecCaCertificateCollectionGetOK struct {
Payload *models.IpsecCaCertificateResponse
}
// IsSuccess returns true when this ipsec ca certificate collection get o k response has a 2xx status code
func (o *IpsecCaCertificateCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this ipsec ca certificate collection get o k response has a 3xx status code
func (o *IpsecCaCertificateCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this ipsec ca certificate collection get o k response has a 4xx status code
func (o *IpsecCaCertificateCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this ipsec ca certificate collection get o k response has a 5xx status code
func (o *IpsecCaCertificateCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this ipsec ca certificate collection get o k response a status code equal to that given
func (o *IpsecCaCertificateCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *IpsecCaCertificateCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates][%d] ipsecCaCertificateCollectionGetOK %+v", 200, o.Payload)
}
func (o *IpsecCaCertificateCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates][%d] ipsecCaCertificateCollectionGetOK %+v", 200, o.Payload)
}
func (o *IpsecCaCertificateCollectionGetOK) GetPayload() *models.IpsecCaCertificateResponse {
return o.Payload
}
func (o *IpsecCaCertificateCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.IpsecCaCertificateResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewIpsecCaCertificateCollectionGetDefault creates a IpsecCaCertificateCollectionGetDefault with default headers values
func NewIpsecCaCertificateCollectionGetDefault(code int) *IpsecCaCertificateCollectionGetDefault {
return &IpsecCaCertificateCollectionGetDefault{
_statusCode: code,
}
}
/*
IpsecCaCertificateCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type IpsecCaCertificateCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the ipsec ca certificate collection get default response
func (o *IpsecCaCertificateCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this ipsec ca certificate collection get default response has a 2xx status code
func (o *IpsecCaCertificateCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this ipsec ca certificate collection get default response has a 3xx status code
func (o *IpsecCaCertificateCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this ipsec ca certificate collection get default response has a 4xx status code
func (o *IpsecCaCertificateCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this ipsec ca certificate collection get default response has a 5xx status code
func (o *IpsecCaCertificateCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this ipsec ca certificate collection get default response a status code equal to that given
func (o *IpsecCaCertificateCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *IpsecCaCertificateCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates][%d] ipsec_ca_certificate_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecCaCertificateCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates][%d] ipsec_ca_certificate_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecCaCertificateCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *IpsecCaCertificateCollectionGetDefault) 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_config_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_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"
)
// NewSecurityConfigGetParams creates a new SecurityConfigGetParams 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 NewSecurityConfigGetParams() *SecurityConfigGetParams {
return &SecurityConfigGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityConfigGetParamsWithTimeout creates a new SecurityConfigGetParams object
// with the ability to set a timeout on a request.
func NewSecurityConfigGetParamsWithTimeout(timeout time.Duration) *SecurityConfigGetParams {
return &SecurityConfigGetParams{
timeout: timeout,
}
}
// NewSecurityConfigGetParamsWithContext creates a new SecurityConfigGetParams object
// with the ability to set a context for a request.
func NewSecurityConfigGetParamsWithContext(ctx context.Context) *SecurityConfigGetParams {
return &SecurityConfigGetParams{
Context: ctx,
}
}
// NewSecurityConfigGetParamsWithHTTPClient creates a new SecurityConfigGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityConfigGetParamsWithHTTPClient(client *http.Client) *SecurityConfigGetParams {
return &SecurityConfigGetParams{
HTTPClient: client,
}
}
/*
SecurityConfigGetParams contains all the parameters to send to the API endpoint
for the security config get operation.
Typically these are written to a http.Request.
*/
type SecurityConfigGetParams 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 config get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityConfigGetParams) WithDefaults() *SecurityConfigGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security config get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityConfigGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security config get params
func (o *SecurityConfigGetParams) WithTimeout(timeout time.Duration) *SecurityConfigGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security config get params
func (o *SecurityConfigGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security config get params
func (o *SecurityConfigGetParams) WithContext(ctx context.Context) *SecurityConfigGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security config get params
func (o *SecurityConfigGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security config get params
func (o *SecurityConfigGetParams) WithHTTPClient(client *http.Client) *SecurityConfigGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security config get params
func (o *SecurityConfigGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the security config get params
func (o *SecurityConfigGetParams) WithFields(fields []string) *SecurityConfigGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the security config get params
func (o *SecurityConfigGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityConfigGetParams) 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
}
// bindParamSecurityConfigGet binds the parameter fields
func (o *SecurityConfigGetParams) 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_approval_group_collection_get_responses.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_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"
)
// MultiAdminVerifyApprovalGroupCollectionGetReader is a Reader for the MultiAdminVerifyApprovalGroupCollectionGet structure.
type MultiAdminVerifyApprovalGroupCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *MultiAdminVerifyApprovalGroupCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewMultiAdminVerifyApprovalGroupCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewMultiAdminVerifyApprovalGroupCollectionGetDefault(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
}
}
// NewMultiAdminVerifyApprovalGroupCollectionGetOK creates a MultiAdminVerifyApprovalGroupCollectionGetOK with default headers values
func NewMultiAdminVerifyApprovalGroupCollectionGetOK() *MultiAdminVerifyApprovalGroupCollectionGetOK {
return &MultiAdminVerifyApprovalGroupCollectionGetOK{}
}
/*
MultiAdminVerifyApprovalGroupCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type MultiAdminVerifyApprovalGroupCollectionGetOK struct {
Payload *models.MultiAdminVerifyApprovalGroupResponse
}
// IsSuccess returns true when this multi admin verify approval group collection get o k response has a 2xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this multi admin verify approval group collection get o k response has a 3xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this multi admin verify approval group collection get o k response has a 4xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this multi admin verify approval group collection get o k response has a 5xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this multi admin verify approval group collection get o k response a status code equal to that given
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups][%d] multiAdminVerifyApprovalGroupCollectionGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups][%d] multiAdminVerifyApprovalGroupCollectionGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) GetPayload() *models.MultiAdminVerifyApprovalGroupResponse {
return o.Payload
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.MultiAdminVerifyApprovalGroupResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewMultiAdminVerifyApprovalGroupCollectionGetDefault creates a MultiAdminVerifyApprovalGroupCollectionGetDefault with default headers values
func NewMultiAdminVerifyApprovalGroupCollectionGetDefault(code int) *MultiAdminVerifyApprovalGroupCollectionGetDefault {
return &MultiAdminVerifyApprovalGroupCollectionGetDefault{
_statusCode: code,
}
}
/*
MultiAdminVerifyApprovalGroupCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type MultiAdminVerifyApprovalGroupCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the multi admin verify approval group collection get default response
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this multi admin verify approval group collection get default response has a 2xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this multi admin verify approval group collection get default response has a 3xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this multi admin verify approval group collection get default response has a 4xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this multi admin verify approval group collection get default response has a 5xx status code
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this multi admin verify approval group collection get default response a status code equal to that given
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups][%d] multi_admin_verify_approval_group_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups][%d] multi_admin_verify_approval_group_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *MultiAdminVerifyApprovalGroupCollectionGetDefault) 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/publickey_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"
)
// PublickeyModifyReader is a Reader for the PublickeyModify structure.
type PublickeyModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *PublickeyModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewPublickeyModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewPublickeyModifyDefault(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
}
}
// NewPublickeyModifyOK creates a PublickeyModifyOK with default headers values
func NewPublickeyModifyOK() *PublickeyModifyOK {
return &PublickeyModifyOK{}
}
/*
PublickeyModifyOK describes a response with status code 200, with default header values.
OK
*/
type PublickeyModifyOK struct {
}
// IsSuccess returns true when this publickey modify o k response has a 2xx status code
func (o *PublickeyModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this publickey modify o k response has a 3xx status code
func (o *PublickeyModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this publickey modify o k response has a 4xx status code
func (o *PublickeyModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this publickey modify o k response has a 5xx status code
func (o *PublickeyModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this publickey modify o k response a status code equal to that given
func (o *PublickeyModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *PublickeyModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickeyModifyOK ", 200)
}
func (o *PublickeyModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickeyModifyOK ", 200)
}
func (o *PublickeyModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewPublickeyModifyDefault creates a PublickeyModifyDefault with default headers values
func NewPublickeyModifyDefault(code int) *PublickeyModifyDefault {
return &PublickeyModifyDefault{
_statusCode: code,
}
}
/*
PublickeyModifyDefault describes a response with status code -1, with default header values.
Error
*/
type PublickeyModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the publickey modify default response
func (o *PublickeyModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this publickey modify default response has a 2xx status code
func (o *PublickeyModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this publickey modify default response has a 3xx status code
func (o *PublickeyModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this publickey modify default response has a 4xx status code
func (o *PublickeyModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this publickey modify default response has a 5xx status code
func (o *PublickeyModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this publickey modify default response a status code equal to that given
func (o *PublickeyModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *PublickeyModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickey_modify default %+v", o._statusCode, o.Payload)
}
func (o *PublickeyModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/authentication/publickeys/{owner.uuid}/{account.name}/{index}][%d] publickey_modify default %+v", o._statusCode, o.Payload)
}
func (o *PublickeyModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *PublickeyModifyDefault) 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_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_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"
)
// NewGcpKmsCreateParams creates a new GcpKmsCreateParams 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 NewGcpKmsCreateParams() *GcpKmsCreateParams {
return &GcpKmsCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewGcpKmsCreateParamsWithTimeout creates a new GcpKmsCreateParams object
// with the ability to set a timeout on a request.
func NewGcpKmsCreateParamsWithTimeout(timeout time.Duration) *GcpKmsCreateParams {
return &GcpKmsCreateParams{
timeout: timeout,
}
}
// NewGcpKmsCreateParamsWithContext creates a new GcpKmsCreateParams object
// with the ability to set a context for a request.
func NewGcpKmsCreateParamsWithContext(ctx context.Context) *GcpKmsCreateParams {
return &GcpKmsCreateParams{
Context: ctx,
}
}
// NewGcpKmsCreateParamsWithHTTPClient creates a new GcpKmsCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewGcpKmsCreateParamsWithHTTPClient(client *http.Client) *GcpKmsCreateParams {
return &GcpKmsCreateParams{
HTTPClient: client,
}
}
/*
GcpKmsCreateParams contains all the parameters to send to the API endpoint
for the gcp kms create operation.
Typically these are written to a http.Request.
*/
type GcpKmsCreateParams struct {
/* Info.
Info specification
*/
Info *models.GcpKms
/* 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 gcp kms create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsCreateParams) WithDefaults() *GcpKmsCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the gcp kms create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := GcpKmsCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the gcp kms create params
func (o *GcpKmsCreateParams) WithTimeout(timeout time.Duration) *GcpKmsCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the gcp kms create params
func (o *GcpKmsCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the gcp kms create params
func (o *GcpKmsCreateParams) WithContext(ctx context.Context) *GcpKmsCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the gcp kms create params
func (o *GcpKmsCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the gcp kms create params
func (o *GcpKmsCreateParams) WithHTTPClient(client *http.Client) *GcpKmsCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the gcp kms create params
func (o *GcpKmsCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the gcp kms create params
func (o *GcpKmsCreateParams) WithInfo(info *models.GcpKms) *GcpKmsCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the gcp kms create params
func (o *GcpKmsCreateParams) SetInfo(info *models.GcpKms) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the gcp kms create params
func (o *GcpKmsCreateParams) WithReturnRecords(returnRecords *bool) *GcpKmsCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the gcp kms create params
func (o *GcpKmsCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *GcpKmsCreateParams) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_certificate_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"
)
// NewIpsecCaCertificateGetParams creates a new IpsecCaCertificateGetParams 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 NewIpsecCaCertificateGetParams() *IpsecCaCertificateGetParams {
return &IpsecCaCertificateGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewIpsecCaCertificateGetParamsWithTimeout creates a new IpsecCaCertificateGetParams object
// with the ability to set a timeout on a request.
func NewIpsecCaCertificateGetParamsWithTimeout(timeout time.Duration) *IpsecCaCertificateGetParams {
return &IpsecCaCertificateGetParams{
timeout: timeout,
}
}
// NewIpsecCaCertificateGetParamsWithContext creates a new IpsecCaCertificateGetParams object
// with the ability to set a context for a request.
func NewIpsecCaCertificateGetParamsWithContext(ctx context.Context) *IpsecCaCertificateGetParams {
return &IpsecCaCertificateGetParams{
Context: ctx,
}
}
// NewIpsecCaCertificateGetParamsWithHTTPClient creates a new IpsecCaCertificateGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewIpsecCaCertificateGetParamsWithHTTPClient(client *http.Client) *IpsecCaCertificateGetParams {
return &IpsecCaCertificateGetParams{
HTTPClient: client,
}
}
/*
IpsecCaCertificateGetParams contains all the parameters to send to the API endpoint
for the ipsec ca certificate get operation.
Typically these are written to a http.Request.
*/
type IpsecCaCertificateGetParams struct {
/* CertificateUUID.
UUID of the IPsec CA certificate.
*/
CertificateUUID string
/* Fields.
Specify the fields to return.
*/
Fields []string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the ipsec ca certificate get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *IpsecCaCertificateGetParams) WithDefaults() *IpsecCaCertificateGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the ipsec ca certificate get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *IpsecCaCertificateGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) WithTimeout(timeout time.Duration) *IpsecCaCertificateGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) WithContext(ctx context.Context) *IpsecCaCertificateGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) WithHTTPClient(client *http.Client) *IpsecCaCertificateGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithCertificateUUID adds the certificateUUID to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) WithCertificateUUID(certificateUUID string) *IpsecCaCertificateGetParams {
o.SetCertificateUUID(certificateUUID)
return o
}
// SetCertificateUUID adds the certificateUuid to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) SetCertificateUUID(certificateUUID string) {
o.CertificateUUID = certificateUUID
}
// WithFields adds the fields to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) WithFields(fields []string) *IpsecCaCertificateGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the ipsec ca certificate get params
func (o *IpsecCaCertificateGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WriteToRequest writes these params to a swagger request
func (o *IpsecCaCertificateGetParams) 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 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
}
// bindParamIpsecCaCertificateGet binds the parameter fields
func (o *IpsecCaCertificateGetParams) 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_approval_group_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_approval_group_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"
)
// NewMultiAdminVerifyApprovalGroupCreateParams creates a new MultiAdminVerifyApprovalGroupCreateParams 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 NewMultiAdminVerifyApprovalGroupCreateParams() *MultiAdminVerifyApprovalGroupCreateParams {
return &MultiAdminVerifyApprovalGroupCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewMultiAdminVerifyApprovalGroupCreateParamsWithTimeout creates a new MultiAdminVerifyApprovalGroupCreateParams object
// with the ability to set a timeout on a request.
func NewMultiAdminVerifyApprovalGroupCreateParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupCreateParams {
return &MultiAdminVerifyApprovalGroupCreateParams{
timeout: timeout,
}
}
// NewMultiAdminVerifyApprovalGroupCreateParamsWithContext creates a new MultiAdminVerifyApprovalGroupCreateParams object
// with the ability to set a context for a request.
func NewMultiAdminVerifyApprovalGroupCreateParamsWithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupCreateParams {
return &MultiAdminVerifyApprovalGroupCreateParams{
Context: ctx,
}
}
// NewMultiAdminVerifyApprovalGroupCreateParamsWithHTTPClient creates a new MultiAdminVerifyApprovalGroupCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewMultiAdminVerifyApprovalGroupCreateParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupCreateParams {
return &MultiAdminVerifyApprovalGroupCreateParams{
HTTPClient: client,
}
}
/*
MultiAdminVerifyApprovalGroupCreateParams contains all the parameters to send to the API endpoint
for the multi admin verify approval group create operation.
Typically these are written to a http.Request.
*/
type MultiAdminVerifyApprovalGroupCreateParams struct {
/* Info.
Info specification
*/
Info *models.MultiAdminVerifyApprovalGroup
/* 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 approval group create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyApprovalGroupCreateParams) WithDefaults() *MultiAdminVerifyApprovalGroupCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the multi admin verify approval group create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyApprovalGroupCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := MultiAdminVerifyApprovalGroupCreateParams{
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 approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) WithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) WithInfo(info *models.MultiAdminVerifyApprovalGroup) *MultiAdminVerifyApprovalGroupCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) SetInfo(info *models.MultiAdminVerifyApprovalGroup) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) WithReturnRecords(returnRecords *bool) *MultiAdminVerifyApprovalGroupCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the multi admin verify approval group create params
func (o *MultiAdminVerifyApprovalGroupCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *MultiAdminVerifyApprovalGroupCreateParams) 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/azure_key_vault_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// AzureKeyVaultDeleteReader is a Reader for the AzureKeyVaultDelete structure.
type AzureKeyVaultDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AzureKeyVaultDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAzureKeyVaultDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAzureKeyVaultDeleteDefault(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
}
}
// NewAzureKeyVaultDeleteOK creates a AzureKeyVaultDeleteOK with default headers values
func NewAzureKeyVaultDeleteOK() *AzureKeyVaultDeleteOK {
return &AzureKeyVaultDeleteOK{}
}
/*
AzureKeyVaultDeleteOK describes a response with status code 200, with default header values.
OK
*/
type AzureKeyVaultDeleteOK struct {
}
// IsSuccess returns true when this azure key vault delete o k response has a 2xx status code
func (o *AzureKeyVaultDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this azure key vault delete o k response has a 3xx status code
func (o *AzureKeyVaultDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this azure key vault delete o k response has a 4xx status code
func (o *AzureKeyVaultDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this azure key vault delete o k response has a 5xx status code
func (o *AzureKeyVaultDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this azure key vault delete o k response a status code equal to that given
func (o *AzureKeyVaultDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *AzureKeyVaultDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/azure-key-vaults/{uuid}][%d] azureKeyVaultDeleteOK ", 200)
}
func (o *AzureKeyVaultDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/azure-key-vaults/{uuid}][%d] azureKeyVaultDeleteOK ", 200)
}
func (o *AzureKeyVaultDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAzureKeyVaultDeleteDefault creates a AzureKeyVaultDeleteDefault with default headers values
func NewAzureKeyVaultDeleteDefault(code int) *AzureKeyVaultDeleteDefault {
return &AzureKeyVaultDeleteDefault{
_statusCode: code,
}
}
/*
AzureKeyVaultDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65536242 | One or more self-encrypting drives are assigned an authentication key. |
| 65536243 | Cannot determine authentication key presence on one or more self-encrypting drives. |
| 65536817 | Internal error. Failed to determine if key manager is safe to disable. |
| 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. |
| 65536867 | Volume encryption keys (VEK) for one or more encrypted volumes are stored on the key manager configured 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. |
| 65536924 | Cannot remove key manager that still contains one or more NSE authentication keys. |
| 65537120 | Azure Key Vault is not configured for the given 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. |
| 196608305 | NAE aggregates found in the cluster. |
*/
type AzureKeyVaultDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the azure key vault delete default response
func (o *AzureKeyVaultDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this azure key vault delete default response has a 2xx status code
func (o *AzureKeyVaultDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this azure key vault delete default response has a 3xx status code
func (o *AzureKeyVaultDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this azure key vault delete default response has a 4xx status code
func (o *AzureKeyVaultDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this azure key vault delete default response has a 5xx status code
func (o *AzureKeyVaultDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this azure key vault delete default response a status code equal to that given
func (o *AzureKeyVaultDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AzureKeyVaultDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/azure-key-vaults/{uuid}][%d] azure_key_vault_delete default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/azure-key-vaults/{uuid}][%d] azure_key_vault_delete default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AzureKeyVaultDeleteDefault) 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/create_certificate_signing_request_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/create_certificate_signing_request_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"
)
// CreateCertificateSigningRequestReader is a Reader for the CreateCertificateSigningRequest structure.
type CreateCertificateSigningRequestReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CreateCertificateSigningRequestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewCreateCertificateSigningRequestOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCreateCertificateSigningRequestDefault(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
}
}
// NewCreateCertificateSigningRequestOK creates a CreateCertificateSigningRequestOK with default headers values
func NewCreateCertificateSigningRequestOK() *CreateCertificateSigningRequestOK {
return &CreateCertificateSigningRequestOK{}
}
/*
CreateCertificateSigningRequestOK describes a response with status code 200, with default header values.
OK
*/
type CreateCertificateSigningRequestOK struct {
Payload *models.CertificateSigningRequest
}
// IsSuccess returns true when this create certificate signing request o k response has a 2xx status code
func (o *CreateCertificateSigningRequestOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this create certificate signing request o k response has a 3xx status code
func (o *CreateCertificateSigningRequestOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this create certificate signing request o k response has a 4xx status code
func (o *CreateCertificateSigningRequestOK) IsClientError() bool {
return false
}
// IsServerError returns true when this create certificate signing request o k response has a 5xx status code
func (o *CreateCertificateSigningRequestOK) IsServerError() bool {
return false
}
// IsCode returns true when this create certificate signing request o k response a status code equal to that given
func (o *CreateCertificateSigningRequestOK) IsCode(code int) bool {
return code == 200
}
func (o *CreateCertificateSigningRequestOK) Error() string {
return fmt.Sprintf("[POST /security/certificate-signing-request][%d] createCertificateSigningRequestOK %+v", 200, o.Payload)
}
func (o *CreateCertificateSigningRequestOK) String() string {
return fmt.Sprintf("[POST /security/certificate-signing-request][%d] createCertificateSigningRequestOK %+v", 200, o.Payload)
}
func (o *CreateCertificateSigningRequestOK) GetPayload() *models.CertificateSigningRequest {
return o.Payload
}
func (o *CreateCertificateSigningRequestOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.CertificateSigningRequest)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCreateCertificateSigningRequestDefault creates a CreateCertificateSigningRequestDefault with default headers values
func NewCreateCertificateSigningRequestDefault(code int) *CreateCertificateSigningRequestDefault {
return &CreateCertificateSigningRequestDefault{
_statusCode: code,
}
}
/*
CreateCertificateSigningRequestDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 3735554 | Certificate signing request failed. |
| 3735664 | Key size is not supported in FIPS mode. |
| 3735665 | Hash function is not supported in FIPS mode. |
| 3735700 | Key size is not supported. |
| 3735713 | Security strength bits length is not supported. |
| 3735714 | Security strength bits length is not supported in FIPS mode. |
| 3735715 | Certificate creation requires a common name or SAN extensions. |
| 3735741 | Key size is not applicable with the EC encryption algorithm. |
| 52560173 | Hash function is not supported for digital signatures. |
| 52560423 | Failed to read the relative distinguished names. |
*/
type CreateCertificateSigningRequestDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the create certificate signing request default response
func (o *CreateCertificateSigningRequestDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this create certificate signing request default response has a 2xx status code
func (o *CreateCertificateSigningRequestDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this create certificate signing request default response has a 3xx status code
func (o *CreateCertificateSigningRequestDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this create certificate signing request default response has a 4xx status code
func (o *CreateCertificateSigningRequestDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this create certificate signing request default response has a 5xx status code
func (o *CreateCertificateSigningRequestDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this create certificate signing request default response a status code equal to that given
func (o *CreateCertificateSigningRequestDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CreateCertificateSigningRequestDefault) Error() string {
return fmt.Sprintf("[POST /security/certificate-signing-request][%d] create_certificate_signing_request default %+v", o._statusCode, o.Payload)
}
func (o *CreateCertificateSigningRequestDefault) String() string {
return fmt.Sprintf("[POST /security/certificate-signing-request][%d] create_certificate_signing_request default %+v", o._statusCode, o.Payload)
}
func (o *CreateCertificateSigningRequestDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CreateCertificateSigningRequestDefault) 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/create_certificate_signing_request_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/create_certificate_signing_request_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"
)
// NewCreateCertificateSigningRequestParams creates a new CreateCertificateSigningRequestParams 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 NewCreateCertificateSigningRequestParams() *CreateCertificateSigningRequestParams {
return &CreateCertificateSigningRequestParams{
timeout: cr.DefaultTimeout,
}
}
// NewCreateCertificateSigningRequestParamsWithTimeout creates a new CreateCertificateSigningRequestParams object
// with the ability to set a timeout on a request.
func NewCreateCertificateSigningRequestParamsWithTimeout(timeout time.Duration) *CreateCertificateSigningRequestParams {
return &CreateCertificateSigningRequestParams{
timeout: timeout,
}
}
// NewCreateCertificateSigningRequestParamsWithContext creates a new CreateCertificateSigningRequestParams object
// with the ability to set a context for a request.
func NewCreateCertificateSigningRequestParamsWithContext(ctx context.Context) *CreateCertificateSigningRequestParams {
return &CreateCertificateSigningRequestParams{
Context: ctx,
}
}
// NewCreateCertificateSigningRequestParamsWithHTTPClient creates a new CreateCertificateSigningRequestParams object
// with the ability to set a custom HTTPClient for a request.
func NewCreateCertificateSigningRequestParamsWithHTTPClient(client *http.Client) *CreateCertificateSigningRequestParams {
return &CreateCertificateSigningRequestParams{
HTTPClient: client,
}
}
/*
CreateCertificateSigningRequestParams contains all the parameters to send to the API endpoint
for the create certificate signing request operation.
Typically these are written to a http.Request.
*/
type CreateCertificateSigningRequestParams struct {
/* Info.
CSR info specification
*/
Info *models.CertificateSigningRequest
/* 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 create certificate signing request params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CreateCertificateSigningRequestParams) WithDefaults() *CreateCertificateSigningRequestParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the create certificate signing request params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CreateCertificateSigningRequestParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := CreateCertificateSigningRequestParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) WithTimeout(timeout time.Duration) *CreateCertificateSigningRequestParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) WithContext(ctx context.Context) *CreateCertificateSigningRequestParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) WithHTTPClient(client *http.Client) *CreateCertificateSigningRequestParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) WithInfo(info *models.CertificateSigningRequest) *CreateCertificateSigningRequestParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) SetInfo(info *models.CertificateSigningRequest) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) WithReturnRecords(returnRecords *bool) *CreateCertificateSigningRequestParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the create certificate signing request params
func (o *CreateCertificateSigningRequestParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *CreateCertificateSigningRequestParams) 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/key_manager_config_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_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"
)
// NewKeyManagerConfigGetParams creates a new KeyManagerConfigGetParams 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 NewKeyManagerConfigGetParams() *KeyManagerConfigGetParams {
return &KeyManagerConfigGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewKeyManagerConfigGetParamsWithTimeout creates a new KeyManagerConfigGetParams object
// with the ability to set a timeout on a request.
func NewKeyManagerConfigGetParamsWithTimeout(timeout time.Duration) *KeyManagerConfigGetParams {
return &KeyManagerConfigGetParams{
timeout: timeout,
}
}
// NewKeyManagerConfigGetParamsWithContext creates a new KeyManagerConfigGetParams object
// with the ability to set a context for a request.
func NewKeyManagerConfigGetParamsWithContext(ctx context.Context) *KeyManagerConfigGetParams {
return &KeyManagerConfigGetParams{
Context: ctx,
}
}
// NewKeyManagerConfigGetParamsWithHTTPClient creates a new KeyManagerConfigGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewKeyManagerConfigGetParamsWithHTTPClient(client *http.Client) *KeyManagerConfigGetParams {
return &KeyManagerConfigGetParams{
HTTPClient: client,
}
}
/*
KeyManagerConfigGetParams contains all the parameters to send to the API endpoint
for the key manager config get operation.
Typically these are written to a http.Request.
*/
type KeyManagerConfigGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the key manager config get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerConfigGetParams) WithDefaults() *KeyManagerConfigGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the key manager config get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerConfigGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the key manager config get params
func (o *KeyManagerConfigGetParams) WithTimeout(timeout time.Duration) *KeyManagerConfigGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the key manager config get params
func (o *KeyManagerConfigGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the key manager config get params
func (o *KeyManagerConfigGetParams) WithContext(ctx context.Context) *KeyManagerConfigGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the key manager config get params
func (o *KeyManagerConfigGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the key manager config get params
func (o *KeyManagerConfigGetParams) WithHTTPClient(client *http.Client) *KeyManagerConfigGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the key manager config get params
func (o *KeyManagerConfigGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the key manager config get params
func (o *KeyManagerConfigGetParams) WithFields(fields []string) *KeyManagerConfigGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the key manager config get params
func (o *KeyManagerConfigGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WriteToRequest writes these params to a swagger request
func (o *KeyManagerConfigGetParams) 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
}
// bindParamKeyManagerConfigGet binds the parameter fields
func (o *KeyManagerConfigGetParams) 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/gcp_kms_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_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"
)
// NewGcpKmsDeleteParams creates a new GcpKmsDeleteParams 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 NewGcpKmsDeleteParams() *GcpKmsDeleteParams {
return &GcpKmsDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewGcpKmsDeleteParamsWithTimeout creates a new GcpKmsDeleteParams object
// with the ability to set a timeout on a request.
func NewGcpKmsDeleteParamsWithTimeout(timeout time.Duration) *GcpKmsDeleteParams {
return &GcpKmsDeleteParams{
timeout: timeout,
}
}
// NewGcpKmsDeleteParamsWithContext creates a new GcpKmsDeleteParams object
// with the ability to set a context for a request.
func NewGcpKmsDeleteParamsWithContext(ctx context.Context) *GcpKmsDeleteParams {
return &GcpKmsDeleteParams{
Context: ctx,
}
}
// NewGcpKmsDeleteParamsWithHTTPClient creates a new GcpKmsDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewGcpKmsDeleteParamsWithHTTPClient(client *http.Client) *GcpKmsDeleteParams {
return &GcpKmsDeleteParams{
HTTPClient: client,
}
}
/*
GcpKmsDeleteParams contains all the parameters to send to the API endpoint
for the gcp kms delete operation.
Typically these are written to a http.Request.
*/
type GcpKmsDeleteParams struct {
/* UUID.
Google Cloud KMS UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the gcp kms delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsDeleteParams) WithDefaults() *GcpKmsDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the gcp kms delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the gcp kms delete params
func (o *GcpKmsDeleteParams) WithTimeout(timeout time.Duration) *GcpKmsDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the gcp kms delete params
func (o *GcpKmsDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the gcp kms delete params
func (o *GcpKmsDeleteParams) WithContext(ctx context.Context) *GcpKmsDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the gcp kms delete params
func (o *GcpKmsDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the gcp kms delete params
func (o *GcpKmsDeleteParams) WithHTTPClient(client *http.Client) *GcpKmsDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the gcp kms delete params
func (o *GcpKmsDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithUUID adds the uuid to the gcp kms delete params
func (o *GcpKmsDeleteParams) WithUUID(uuid string) *GcpKmsDeleteParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the gcp kms delete params
func (o *GcpKmsDeleteParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *GcpKmsDeleteParams) 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/azure_key_vault_rekey_internal_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_rekey_internal_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"
)
// NewAzureKeyVaultRekeyInternalParams creates a new AzureKeyVaultRekeyInternalParams 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 NewAzureKeyVaultRekeyInternalParams() *AzureKeyVaultRekeyInternalParams {
return &AzureKeyVaultRekeyInternalParams{
timeout: cr.DefaultTimeout,
}
}
// NewAzureKeyVaultRekeyInternalParamsWithTimeout creates a new AzureKeyVaultRekeyInternalParams object
// with the ability to set a timeout on a request.
func NewAzureKeyVaultRekeyInternalParamsWithTimeout(timeout time.Duration) *AzureKeyVaultRekeyInternalParams {
return &AzureKeyVaultRekeyInternalParams{
timeout: timeout,
}
}
// NewAzureKeyVaultRekeyInternalParamsWithContext creates a new AzureKeyVaultRekeyInternalParams object
// with the ability to set a context for a request.
func NewAzureKeyVaultRekeyInternalParamsWithContext(ctx context.Context) *AzureKeyVaultRekeyInternalParams {
return &AzureKeyVaultRekeyInternalParams{
Context: ctx,
}
}
// NewAzureKeyVaultRekeyInternalParamsWithHTTPClient creates a new AzureKeyVaultRekeyInternalParams object
// with the ability to set a custom HTTPClient for a request.
func NewAzureKeyVaultRekeyInternalParamsWithHTTPClient(client *http.Client) *AzureKeyVaultRekeyInternalParams {
return &AzureKeyVaultRekeyInternalParams{
HTTPClient: client,
}
}
/*
AzureKeyVaultRekeyInternalParams contains all the parameters to send to the API endpoint
for the azure key vault rekey internal operation.
Typically these are written to a http.Request.
*/
type AzureKeyVaultRekeyInternalParams 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 AKV configuration.
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the azure key vault rekey internal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultRekeyInternalParams) WithDefaults() *AzureKeyVaultRekeyInternalParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the azure key vault rekey internal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultRekeyInternalParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := AzureKeyVaultRekeyInternalParams{
ReturnRecords: &returnRecordsDefault,
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 rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) WithTimeout(timeout time.Duration) *AzureKeyVaultRekeyInternalParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) WithContext(ctx context.Context) *AzureKeyVaultRekeyInternalParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) WithHTTPClient(client *http.Client) *AzureKeyVaultRekeyInternalParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithReturnRecords adds the returnRecords to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) WithReturnRecords(returnRecords *bool) *AzureKeyVaultRekeyInternalParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) WithReturnTimeout(returnTimeout *int64) *AzureKeyVaultRekeyInternalParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithUUID adds the uuid to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) WithUUID(uuid string) *AzureKeyVaultRekeyInternalParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the azure key vault rekey internal params
func (o *AzureKeyVaultRekeyInternalParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *AzureKeyVaultRekeyInternalParams) 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/multi_admin_verify_request_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_request_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"
)
// MultiAdminVerifyRequestDeleteReader is a Reader for the MultiAdminVerifyRequestDelete structure.
type MultiAdminVerifyRequestDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *MultiAdminVerifyRequestDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewMultiAdminVerifyRequestDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewMultiAdminVerifyRequestDeleteDefault(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
}
}
// NewMultiAdminVerifyRequestDeleteOK creates a MultiAdminVerifyRequestDeleteOK with default headers values
func NewMultiAdminVerifyRequestDeleteOK() *MultiAdminVerifyRequestDeleteOK {
return &MultiAdminVerifyRequestDeleteOK{}
}
/*
MultiAdminVerifyRequestDeleteOK describes a response with status code 200, with default header values.
OK
*/
type MultiAdminVerifyRequestDeleteOK struct {
}
// IsSuccess returns true when this multi admin verify request delete o k response has a 2xx status code
func (o *MultiAdminVerifyRequestDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this multi admin verify request delete o k response has a 3xx status code
func (o *MultiAdminVerifyRequestDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this multi admin verify request delete o k response has a 4xx status code
func (o *MultiAdminVerifyRequestDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this multi admin verify request delete o k response has a 5xx status code
func (o *MultiAdminVerifyRequestDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this multi admin verify request delete o k response a status code equal to that given
func (o *MultiAdminVerifyRequestDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *MultiAdminVerifyRequestDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/multi-admin-verify/requests/{index}][%d] multiAdminVerifyRequestDeleteOK ", 200)
}
func (o *MultiAdminVerifyRequestDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/multi-admin-verify/requests/{index}][%d] multiAdminVerifyRequestDeleteOK ", 200)
}
func (o *MultiAdminVerifyRequestDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewMultiAdminVerifyRequestDeleteDefault creates a MultiAdminVerifyRequestDeleteDefault with default headers values
func NewMultiAdminVerifyRequestDeleteDefault(code int) *MultiAdminVerifyRequestDeleteDefault {
return &MultiAdminVerifyRequestDeleteDefault{
_statusCode: code,
}
}
/*
MultiAdminVerifyRequestDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type MultiAdminVerifyRequestDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the multi admin verify request delete default response
func (o *MultiAdminVerifyRequestDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this multi admin verify request delete default response has a 2xx status code
func (o *MultiAdminVerifyRequestDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this multi admin verify request delete default response has a 3xx status code
func (o *MultiAdminVerifyRequestDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this multi admin verify request delete default response has a 4xx status code
func (o *MultiAdminVerifyRequestDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this multi admin verify request delete default response has a 5xx status code
func (o *MultiAdminVerifyRequestDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this multi admin verify request delete default response a status code equal to that given
func (o *MultiAdminVerifyRequestDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *MultiAdminVerifyRequestDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/multi-admin-verify/requests/{index}][%d] multi_admin_verify_request_delete default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyRequestDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/multi-admin-verify/requests/{index}][%d] multi_admin_verify_request_delete default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyRequestDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *MultiAdminVerifyRequestDeleteDefault) 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_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_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"
)
// NewSecurityKeyManagerModifyParams creates a new SecurityKeyManagerModifyParams 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 NewSecurityKeyManagerModifyParams() *SecurityKeyManagerModifyParams {
return &SecurityKeyManagerModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerModifyParamsWithTimeout creates a new SecurityKeyManagerModifyParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerModifyParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerModifyParams {
return &SecurityKeyManagerModifyParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerModifyParamsWithContext creates a new SecurityKeyManagerModifyParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerModifyParamsWithContext(ctx context.Context) *SecurityKeyManagerModifyParams {
return &SecurityKeyManagerModifyParams{
Context: ctx,
}
}
// NewSecurityKeyManagerModifyParamsWithHTTPClient creates a new SecurityKeyManagerModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerModifyParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerModifyParams {
return &SecurityKeyManagerModifyParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerModifyParams contains all the parameters to send to the API endpoint
for the security key manager modify operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerModifyParams struct {
/* Info.
Key manager information
*/
Info *models.SecurityKeyManager
/* UUID.
Key manager UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerModifyParams) WithDefaults() *SecurityKeyManagerModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) WithContext(ctx context.Context) *SecurityKeyManagerModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) WithInfo(info *models.SecurityKeyManager) *SecurityKeyManagerModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) SetInfo(info *models.SecurityKeyManager) {
o.Info = info
}
// WithUUID adds the uuid to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) WithUUID(uuid string) *SecurityKeyManagerModifyParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security key manager modify params
func (o *SecurityKeyManagerModifyParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerModifyParams) 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/ipsec_ca_certificate_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_certificate_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"
)
// IpsecCaCertificateGetReader is a Reader for the IpsecCaCertificateGet structure.
type IpsecCaCertificateGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *IpsecCaCertificateGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewIpsecCaCertificateGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewIpsecCaCertificateGetDefault(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
}
}
// NewIpsecCaCertificateGetOK creates a IpsecCaCertificateGetOK with default headers values
func NewIpsecCaCertificateGetOK() *IpsecCaCertificateGetOK {
return &IpsecCaCertificateGetOK{}
}
/*
IpsecCaCertificateGetOK describes a response with status code 200, with default header values.
OK
*/
type IpsecCaCertificateGetOK struct {
Payload *models.IpsecCaCertificate
}
// IsSuccess returns true when this ipsec ca certificate get o k response has a 2xx status code
func (o *IpsecCaCertificateGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this ipsec ca certificate get o k response has a 3xx status code
func (o *IpsecCaCertificateGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this ipsec ca certificate get o k response has a 4xx status code
func (o *IpsecCaCertificateGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this ipsec ca certificate get o k response has a 5xx status code
func (o *IpsecCaCertificateGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this ipsec ca certificate get o k response a status code equal to that given
func (o *IpsecCaCertificateGetOK) IsCode(code int) bool {
return code == 200
}
func (o *IpsecCaCertificateGetOK) Error() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates/{certificate.uuid}][%d] ipsecCaCertificateGetOK %+v", 200, o.Payload)
}
func (o *IpsecCaCertificateGetOK) String() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates/{certificate.uuid}][%d] ipsecCaCertificateGetOK %+v", 200, o.Payload)
}
func (o *IpsecCaCertificateGetOK) GetPayload() *models.IpsecCaCertificate {
return o.Payload
}
func (o *IpsecCaCertificateGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.IpsecCaCertificate)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewIpsecCaCertificateGetDefault creates a IpsecCaCertificateGetDefault with default headers values
func NewIpsecCaCertificateGetDefault(code int) *IpsecCaCertificateGetDefault {
return &IpsecCaCertificateGetDefault{
_statusCode: code,
}
}
/*
IpsecCaCertificateGetDefault describes a response with status code -1, with default header values.
Error
*/
type IpsecCaCertificateGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the ipsec ca certificate get default response
func (o *IpsecCaCertificateGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this ipsec ca certificate get default response has a 2xx status code
func (o *IpsecCaCertificateGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this ipsec ca certificate get default response has a 3xx status code
func (o *IpsecCaCertificateGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this ipsec ca certificate get default response has a 4xx status code
func (o *IpsecCaCertificateGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this ipsec ca certificate get default response has a 5xx status code
func (o *IpsecCaCertificateGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this ipsec ca certificate get default response a status code equal to that given
func (o *IpsecCaCertificateGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *IpsecCaCertificateGetDefault) Error() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates/{certificate.uuid}][%d] ipsec_ca_certificate_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecCaCertificateGetDefault) String() string {
return fmt.Sprintf("[GET /security/ipsec/ca-certificates/{certificate.uuid}][%d] ipsec_ca_certificate_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecCaCertificateGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *IpsecCaCertificateGetDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_rekey_external_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"
)
// AwsKmsRekeyExternalReader is a Reader for the AwsKmsRekeyExternal structure.
type AwsKmsRekeyExternalReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AwsKmsRekeyExternalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewAwsKmsRekeyExternalAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAwsKmsRekeyExternalDefault(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
}
}
// NewAwsKmsRekeyExternalAccepted creates a AwsKmsRekeyExternalAccepted with default headers values
func NewAwsKmsRekeyExternalAccepted() *AwsKmsRekeyExternalAccepted {
return &AwsKmsRekeyExternalAccepted{}
}
/*
AwsKmsRekeyExternalAccepted describes a response with status code 202, with default header values.
Accepted
*/
type AwsKmsRekeyExternalAccepted struct {
}
// IsSuccess returns true when this aws kms rekey external accepted response has a 2xx status code
func (o *AwsKmsRekeyExternalAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this aws kms rekey external accepted response has a 3xx status code
func (o *AwsKmsRekeyExternalAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this aws kms rekey external accepted response has a 4xx status code
func (o *AwsKmsRekeyExternalAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this aws kms rekey external accepted response has a 5xx status code
func (o *AwsKmsRekeyExternalAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this aws kms rekey external accepted response a status code equal to that given
func (o *AwsKmsRekeyExternalAccepted) IsCode(code int) bool {
return code == 202
}
func (o *AwsKmsRekeyExternalAccepted) Error() string {
return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/rekey-external][%d] awsKmsRekeyExternalAccepted ", 202)
}
func (o *AwsKmsRekeyExternalAccepted) String() string {
return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/rekey-external][%d] awsKmsRekeyExternalAccepted ", 202)
}
func (o *AwsKmsRekeyExternalAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAwsKmsRekeyExternalDefault creates a AwsKmsRekeyExternalDefault with default headers values
func NewAwsKmsRekeyExternalDefault(code int) *AwsKmsRekeyExternalDefault {
return &AwsKmsRekeyExternalDefault{
_statusCode: code,
}
}
/*
AwsKmsRekeyExternalDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65537538 | Internal error. Failed to get unwrapped key for a given key ID. |
| 65537543 | Internal Error. Missing top-level internal key protection key (KEK) on a node. |
| 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 before running the rekey operation. |
| 65537919 | External rekey failed on one or more nodes. |
| 65537926 | AWS KMS is not configured for the given SVM. |
*/
type AwsKmsRekeyExternalDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the aws kms rekey external default response
func (o *AwsKmsRekeyExternalDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this aws kms rekey external default response has a 2xx status code
func (o *AwsKmsRekeyExternalDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this aws kms rekey external default response has a 3xx status code
func (o *AwsKmsRekeyExternalDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this aws kms rekey external default response has a 4xx status code
func (o *AwsKmsRekeyExternalDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this aws kms rekey external default response has a 5xx status code
func (o *AwsKmsRekeyExternalDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this aws kms rekey external default response a status code equal to that given
func (o *AwsKmsRekeyExternalDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AwsKmsRekeyExternalDefault) Error() string {
return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/rekey-external][%d] aws_kms_rekey_external default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsRekeyExternalDefault) String() string {
return fmt.Sprintf("[POST /security/aws-kms/{aws_kms.uuid}/rekey-external][%d] aws_kms_rekey_external default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsRekeyExternalDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AwsKmsRekeyExternalDefault) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// NewAzureKeyVaultGetParams creates a new AzureKeyVaultGetParams 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 NewAzureKeyVaultGetParams() *AzureKeyVaultGetParams {
return &AzureKeyVaultGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewAzureKeyVaultGetParamsWithTimeout creates a new AzureKeyVaultGetParams object
// with the ability to set a timeout on a request.
func NewAzureKeyVaultGetParamsWithTimeout(timeout time.Duration) *AzureKeyVaultGetParams {
return &AzureKeyVaultGetParams{
timeout: timeout,
}
}
// NewAzureKeyVaultGetParamsWithContext creates a new AzureKeyVaultGetParams object
// with the ability to set a context for a request.
func NewAzureKeyVaultGetParamsWithContext(ctx context.Context) *AzureKeyVaultGetParams {
return &AzureKeyVaultGetParams{
Context: ctx,
}
}
// NewAzureKeyVaultGetParamsWithHTTPClient creates a new AzureKeyVaultGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewAzureKeyVaultGetParamsWithHTTPClient(client *http.Client) *AzureKeyVaultGetParams {
return &AzureKeyVaultGetParams{
HTTPClient: client,
}
}
/*
AzureKeyVaultGetParams contains all the parameters to send to the API endpoint
for the azure key vault get operation.
Typically these are written to a http.Request.
*/
type AzureKeyVaultGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* UUID.
AKV UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the azure key vault get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultGetParams) WithDefaults() *AzureKeyVaultGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the azure key vault get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the azure key vault get params
func (o *AzureKeyVaultGetParams) WithTimeout(timeout time.Duration) *AzureKeyVaultGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the azure key vault get params
func (o *AzureKeyVaultGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the azure key vault get params
func (o *AzureKeyVaultGetParams) WithContext(ctx context.Context) *AzureKeyVaultGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the azure key vault get params
func (o *AzureKeyVaultGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the azure key vault get params
func (o *AzureKeyVaultGetParams) WithHTTPClient(client *http.Client) *AzureKeyVaultGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the azure key vault get params
func (o *AzureKeyVaultGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the azure key vault get params
func (o *AzureKeyVaultGetParams) WithFields(fields []string) *AzureKeyVaultGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the azure key vault get params
func (o *AzureKeyVaultGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithUUID adds the uuid to the azure key vault get params
func (o *AzureKeyVaultGetParams) WithUUID(uuid string) *AzureKeyVaultGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the azure key vault get params
func (o *AzureKeyVaultGetParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *AzureKeyVaultGetParams) 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
}
// bindParamAzureKeyVaultGet binds the parameter fields
func (o *AzureKeyVaultGetParams) 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_association_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_association_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"
)
// SecurityAssociationGetReader is a Reader for the SecurityAssociationGet structure.
type SecurityAssociationGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityAssociationGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityAssociationGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityAssociationGetDefault(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
}
}
// NewSecurityAssociationGetOK creates a SecurityAssociationGetOK with default headers values
func NewSecurityAssociationGetOK() *SecurityAssociationGetOK {
return &SecurityAssociationGetOK{}
}
/*
SecurityAssociationGetOK describes a response with status code 200, with default header values.
OK
*/
type SecurityAssociationGetOK struct {
Payload *models.SecurityAssociation
}
// IsSuccess returns true when this security association get o k response has a 2xx status code
func (o *SecurityAssociationGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security association get o k response has a 3xx status code
func (o *SecurityAssociationGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security association get o k response has a 4xx status code
func (o *SecurityAssociationGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security association get o k response has a 5xx status code
func (o *SecurityAssociationGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this security association get o k response a status code equal to that given
func (o *SecurityAssociationGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityAssociationGetOK) Error() string {
return fmt.Sprintf("[GET /security/ipsec/security-associations/{uuid}][%d] securityAssociationGetOK %+v", 200, o.Payload)
}
func (o *SecurityAssociationGetOK) String() string {
return fmt.Sprintf("[GET /security/ipsec/security-associations/{uuid}][%d] securityAssociationGetOK %+v", 200, o.Payload)
}
func (o *SecurityAssociationGetOK) GetPayload() *models.SecurityAssociation {
return o.Payload
}
func (o *SecurityAssociationGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecurityAssociation)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityAssociationGetDefault creates a SecurityAssociationGetDefault with default headers values
func NewSecurityAssociationGetDefault(code int) *SecurityAssociationGetDefault {
return &SecurityAssociationGetDefault{
_statusCode: code,
}
}
/*
SecurityAssociationGetDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 66257118 | IPsec SA with the specified UUID was not found. |
| 66257119 | IPsec SA with the specified UUID was not found. |
*/
type SecurityAssociationGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security association get default response
func (o *SecurityAssociationGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security association get default response has a 2xx status code
func (o *SecurityAssociationGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security association get default response has a 3xx status code
func (o *SecurityAssociationGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security association get default response has a 4xx status code
func (o *SecurityAssociationGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security association get default response has a 5xx status code
func (o *SecurityAssociationGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security association get default response a status code equal to that given
func (o *SecurityAssociationGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityAssociationGetDefault) Error() string {
return fmt.Sprintf("[GET /security/ipsec/security-associations/{uuid}][%d] security_association_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityAssociationGetDefault) String() string {
return fmt.Sprintf("[GET /security/ipsec/security-associations/{uuid}][%d] security_association_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityAssociationGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityAssociationGetDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_auth_key_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"
)
// KeyManagerAuthKeyCollectionGetReader is a Reader for the KeyManagerAuthKeyCollectionGet structure.
type KeyManagerAuthKeyCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *KeyManagerAuthKeyCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewKeyManagerAuthKeyCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewKeyManagerAuthKeyCollectionGetDefault(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
}
}
// NewKeyManagerAuthKeyCollectionGetOK creates a KeyManagerAuthKeyCollectionGetOK with default headers values
func NewKeyManagerAuthKeyCollectionGetOK() *KeyManagerAuthKeyCollectionGetOK {
return &KeyManagerAuthKeyCollectionGetOK{}
}
/*
KeyManagerAuthKeyCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type KeyManagerAuthKeyCollectionGetOK struct {
Payload *models.KeyManagerAuthKeyResponse
}
// IsSuccess returns true when this key manager auth key collection get o k response has a 2xx status code
func (o *KeyManagerAuthKeyCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this key manager auth key collection get o k response has a 3xx status code
func (o *KeyManagerAuthKeyCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this key manager auth key collection get o k response has a 4xx status code
func (o *KeyManagerAuthKeyCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this key manager auth key collection get o k response has a 5xx status code
func (o *KeyManagerAuthKeyCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this key manager auth key collection get o k response a status code equal to that given
func (o *KeyManagerAuthKeyCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *KeyManagerAuthKeyCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] keyManagerAuthKeyCollectionGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerAuthKeyCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] keyManagerAuthKeyCollectionGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerAuthKeyCollectionGetOK) GetPayload() *models.KeyManagerAuthKeyResponse {
return o.Payload
}
func (o *KeyManagerAuthKeyCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.KeyManagerAuthKeyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewKeyManagerAuthKeyCollectionGetDefault creates a KeyManagerAuthKeyCollectionGetDefault with default headers values
func NewKeyManagerAuthKeyCollectionGetDefault(code int) *KeyManagerAuthKeyCollectionGetDefault {
return &KeyManagerAuthKeyCollectionGetDefault{
_statusCode: code,
}
}
/*
KeyManagerAuthKeyCollectionGetDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65536074 | No key servers found. |
| 65536828 | External key management is not enabled for the SVM. |
| 65536856 | No key servers found. |
| 65536896 | External key management is not configured on the partner site. |
| 65538800 | External KMIP DKMIP keymanager not configured on administrative Vserver. |
| 65538801 | Internal error while accessing keymanager database. |
| 65538802 | The UUID provided is not associated with the administrator SVM key manager. |
*/
type KeyManagerAuthKeyCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the key manager auth key collection get default response
func (o *KeyManagerAuthKeyCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this key manager auth key collection get default response has a 2xx status code
func (o *KeyManagerAuthKeyCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this key manager auth key collection get default response has a 3xx status code
func (o *KeyManagerAuthKeyCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this key manager auth key collection get default response has a 4xx status code
func (o *KeyManagerAuthKeyCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this key manager auth key collection get default response has a 5xx status code
func (o *KeyManagerAuthKeyCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this key manager auth key collection get default response a status code equal to that given
func (o *KeyManagerAuthKeyCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *KeyManagerAuthKeyCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] key_manager_auth_key_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerAuthKeyCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/auth-keys][%d] key_manager_auth_key_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerAuthKeyCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *KeyManagerAuthKeyCollectionGetDefault) 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_rekey_external_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_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"
)
// NewGcpKmsRekeyExternalParams creates a new GcpKmsRekeyExternalParams 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 NewGcpKmsRekeyExternalParams() *GcpKmsRekeyExternalParams {
return &GcpKmsRekeyExternalParams{
timeout: cr.DefaultTimeout,
}
}
// NewGcpKmsRekeyExternalParamsWithTimeout creates a new GcpKmsRekeyExternalParams object
// with the ability to set a timeout on a request.
func NewGcpKmsRekeyExternalParamsWithTimeout(timeout time.Duration) *GcpKmsRekeyExternalParams {
return &GcpKmsRekeyExternalParams{
timeout: timeout,
}
}
// NewGcpKmsRekeyExternalParamsWithContext creates a new GcpKmsRekeyExternalParams object
// with the ability to set a context for a request.
func NewGcpKmsRekeyExternalParamsWithContext(ctx context.Context) *GcpKmsRekeyExternalParams {
return &GcpKmsRekeyExternalParams{
Context: ctx,
}
}
// NewGcpKmsRekeyExternalParamsWithHTTPClient creates a new GcpKmsRekeyExternalParams object
// with the ability to set a custom HTTPClient for a request.
func NewGcpKmsRekeyExternalParamsWithHTTPClient(client *http.Client) *GcpKmsRekeyExternalParams {
return &GcpKmsRekeyExternalParams{
HTTPClient: client,
}
}
/*
GcpKmsRekeyExternalParams contains all the parameters to send to the API endpoint
for the gcp kms rekey external operation.
Typically these are written to a http.Request.
*/
type GcpKmsRekeyExternalParams struct {
/* GcpKmsUUID.
UUID of the existing Google Cloud KMS configuration.
*/
GcpKmsUUID string
/* Info.
Google Cloud KMS information.
*/
Info *models.GcpKmsKey
/* 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 gcp kms rekey external params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsRekeyExternalParams) WithDefaults() *GcpKmsRekeyExternalParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the gcp kms rekey external params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *GcpKmsRekeyExternalParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := GcpKmsRekeyExternalParams{
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 rekey external params
func (o *GcpKmsRekeyExternalParams) WithTimeout(timeout time.Duration) *GcpKmsRekeyExternalParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) WithContext(ctx context.Context) *GcpKmsRekeyExternalParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) WithHTTPClient(client *http.Client) *GcpKmsRekeyExternalParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithGcpKmsUUID adds the gcpKmsUUID to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) WithGcpKmsUUID(gcpKmsUUID string) *GcpKmsRekeyExternalParams {
o.SetGcpKmsUUID(gcpKmsUUID)
return o
}
// SetGcpKmsUUID adds the gcpKmsUuid to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) SetGcpKmsUUID(gcpKmsUUID string) {
o.GcpKmsUUID = gcpKmsUUID
}
// WithInfo adds the info to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) WithInfo(info *models.GcpKmsKey) *GcpKmsRekeyExternalParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) SetInfo(info *models.GcpKmsKey) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) WithReturnRecords(returnRecords *bool) *GcpKmsRekeyExternalParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) WithReturnTimeout(returnTimeout *int64) *GcpKmsRekeyExternalParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the gcp kms rekey external params
func (o *GcpKmsRekeyExternalParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WriteToRequest writes these params to a swagger request
func (o *GcpKmsRekeyExternalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param gcp_kms.uuid
if err := r.SetPathParam("gcp_kms.uuid", o.GcpKmsUUID); 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_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_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"
)
// AwsKmsCollectionGetReader is a Reader for the AwsKmsCollectionGet structure.
type AwsKmsCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AwsKmsCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAwsKmsCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAwsKmsCollectionGetDefault(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
}
}
// NewAwsKmsCollectionGetOK creates a AwsKmsCollectionGetOK with default headers values
func NewAwsKmsCollectionGetOK() *AwsKmsCollectionGetOK {
return &AwsKmsCollectionGetOK{}
}
/*
AwsKmsCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type AwsKmsCollectionGetOK struct {
Payload *models.AwsKmsResponse
}
// IsSuccess returns true when this aws kms collection get o k response has a 2xx status code
func (o *AwsKmsCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this aws kms collection get o k response has a 3xx status code
func (o *AwsKmsCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this aws kms collection get o k response has a 4xx status code
func (o *AwsKmsCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this aws kms collection get o k response has a 5xx status code
func (o *AwsKmsCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this aws kms collection get o k response a status code equal to that given
func (o *AwsKmsCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *AwsKmsCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/aws-kms][%d] awsKmsCollectionGetOK %+v", 200, o.Payload)
}
func (o *AwsKmsCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/aws-kms][%d] awsKmsCollectionGetOK %+v", 200, o.Payload)
}
func (o *AwsKmsCollectionGetOK) GetPayload() *models.AwsKmsResponse {
return o.Payload
}
func (o *AwsKmsCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.AwsKmsResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAwsKmsCollectionGetDefault creates a AwsKmsCollectionGetDefault with default headers values
func NewAwsKmsCollectionGetDefault(code int) *AwsKmsCollectionGetDefault {
return &AwsKmsCollectionGetDefault{
_statusCode: code,
}
}
/*
AwsKmsCollectionGetDefault 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 AwsKmsCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the aws kms collection get default response
func (o *AwsKmsCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this aws kms collection get default response has a 2xx status code
func (o *AwsKmsCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this aws kms collection get default response has a 3xx status code
func (o *AwsKmsCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this aws kms collection get default response has a 4xx status code
func (o *AwsKmsCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this aws kms collection get default response has a 5xx status code
func (o *AwsKmsCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this aws kms collection get default response a status code equal to that given
func (o *AwsKmsCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AwsKmsCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/aws-kms][%d] aws_kms_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/aws-kms][%d] aws_kms_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AwsKmsCollectionGetDefault) 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_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_approval_group_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"
)
// NewMultiAdminVerifyApprovalGroupDeleteParams creates a new MultiAdminVerifyApprovalGroupDeleteParams 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 NewMultiAdminVerifyApprovalGroupDeleteParams() *MultiAdminVerifyApprovalGroupDeleteParams {
return &MultiAdminVerifyApprovalGroupDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewMultiAdminVerifyApprovalGroupDeleteParamsWithTimeout creates a new MultiAdminVerifyApprovalGroupDeleteParams object
// with the ability to set a timeout on a request.
func NewMultiAdminVerifyApprovalGroupDeleteParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupDeleteParams {
return &MultiAdminVerifyApprovalGroupDeleteParams{
timeout: timeout,
}
}
// NewMultiAdminVerifyApprovalGroupDeleteParamsWithContext creates a new MultiAdminVerifyApprovalGroupDeleteParams object
// with the ability to set a context for a request.
func NewMultiAdminVerifyApprovalGroupDeleteParamsWithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupDeleteParams {
return &MultiAdminVerifyApprovalGroupDeleteParams{
Context: ctx,
}
}
// NewMultiAdminVerifyApprovalGroupDeleteParamsWithHTTPClient creates a new MultiAdminVerifyApprovalGroupDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewMultiAdminVerifyApprovalGroupDeleteParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupDeleteParams {
return &MultiAdminVerifyApprovalGroupDeleteParams{
HTTPClient: client,
}
}
/*
MultiAdminVerifyApprovalGroupDeleteParams contains all the parameters to send to the API endpoint
for the multi admin verify approval group delete operation.
Typically these are written to a http.Request.
*/
type MultiAdminVerifyApprovalGroupDeleteParams struct {
// 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 delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyApprovalGroupDeleteParams) WithDefaults() *MultiAdminVerifyApprovalGroupDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the multi admin verify approval group delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyApprovalGroupDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyApprovalGroupDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) WithContext(ctx context.Context) *MultiAdminVerifyApprovalGroupDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyApprovalGroupDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithName adds the name to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) WithName(name string) *MultiAdminVerifyApprovalGroupDeleteParams {
o.SetName(name)
return o
}
// SetName adds the name to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) SetName(name string) {
o.Name = name
}
// WithOwnerUUID adds the ownerUUID to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) WithOwnerUUID(ownerUUID string) *MultiAdminVerifyApprovalGroupDeleteParams {
o.SetOwnerUUID(ownerUUID)
return o
}
// SetOwnerUUID adds the ownerUuid to the multi admin verify approval group delete params
func (o *MultiAdminVerifyApprovalGroupDeleteParams) SetOwnerUUID(ownerUUID string) {
o.OwnerUUID = ownerUUID
}
// WriteToRequest writes these params to a swagger request
func (o *MultiAdminVerifyApprovalGroupDeleteParams) 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/ipsec_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_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"
)
// IpsecGetReader is a Reader for the IpsecGet structure.
type IpsecGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *IpsecGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewIpsecGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewIpsecGetDefault(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
}
}
// NewIpsecGetOK creates a IpsecGetOK with default headers values
func NewIpsecGetOK() *IpsecGetOK {
return &IpsecGetOK{}
}
/*
IpsecGetOK describes a response with status code 200, with default header values.
OK
*/
type IpsecGetOK struct {
Payload *models.Ipsec
}
// IsSuccess returns true when this ipsec get o k response has a 2xx status code
func (o *IpsecGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this ipsec get o k response has a 3xx status code
func (o *IpsecGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this ipsec get o k response has a 4xx status code
func (o *IpsecGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this ipsec get o k response has a 5xx status code
func (o *IpsecGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this ipsec get o k response a status code equal to that given
func (o *IpsecGetOK) IsCode(code int) bool {
return code == 200
}
func (o *IpsecGetOK) Error() string {
return fmt.Sprintf("[GET /security/ipsec][%d] ipsecGetOK %+v", 200, o.Payload)
}
func (o *IpsecGetOK) String() string {
return fmt.Sprintf("[GET /security/ipsec][%d] ipsecGetOK %+v", 200, o.Payload)
}
func (o *IpsecGetOK) GetPayload() *models.Ipsec {
return o.Payload
}
func (o *IpsecGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.Ipsec)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewIpsecGetDefault creates a IpsecGetDefault with default headers values
func NewIpsecGetDefault(code int) *IpsecGetDefault {
return &IpsecGetDefault{
_statusCode: code,
}
}
/*
IpsecGetDefault describes a response with status code -1, with default header values.
Error
*/
type IpsecGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the ipsec get default response
func (o *IpsecGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this ipsec get default response has a 2xx status code
func (o *IpsecGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this ipsec get default response has a 3xx status code
func (o *IpsecGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this ipsec get default response has a 4xx status code
func (o *IpsecGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this ipsec get default response has a 5xx status code
func (o *IpsecGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this ipsec get default response a status code equal to that given
func (o *IpsecGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *IpsecGetDefault) Error() string {
return fmt.Sprintf("[GET /security/ipsec][%d] ipsec_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecGetDefault) String() string {
return fmt.Sprintf("[GET /security/ipsec][%d] ipsec_get default %+v", o._statusCode, o.Payload)
}
func (o *IpsecGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *IpsecGetDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_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"
)
// MultiAdminVerifyRuleGetReader is a Reader for the MultiAdminVerifyRuleGet structure.
type MultiAdminVerifyRuleGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *MultiAdminVerifyRuleGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewMultiAdminVerifyRuleGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewMultiAdminVerifyRuleGetDefault(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
}
}
// NewMultiAdminVerifyRuleGetOK creates a MultiAdminVerifyRuleGetOK with default headers values
func NewMultiAdminVerifyRuleGetOK() *MultiAdminVerifyRuleGetOK {
return &MultiAdminVerifyRuleGetOK{}
}
/*
MultiAdminVerifyRuleGetOK describes a response with status code 200, with default header values.
OK
*/
type MultiAdminVerifyRuleGetOK struct {
Payload *models.MultiAdminVerifyRule
}
// IsSuccess returns true when this multi admin verify rule get o k response has a 2xx status code
func (o *MultiAdminVerifyRuleGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this multi admin verify rule get o k response has a 3xx status code
func (o *MultiAdminVerifyRuleGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this multi admin verify rule get o k response has a 4xx status code
func (o *MultiAdminVerifyRuleGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this multi admin verify rule get o k response has a 5xx status code
func (o *MultiAdminVerifyRuleGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this multi admin verify rule get o k response a status code equal to that given
func (o *MultiAdminVerifyRuleGetOK) IsCode(code int) bool {
return code == 200
}
func (o *MultiAdminVerifyRuleGetOK) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multiAdminVerifyRuleGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyRuleGetOK) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multiAdminVerifyRuleGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyRuleGetOK) GetPayload() *models.MultiAdminVerifyRule {
return o.Payload
}
func (o *MultiAdminVerifyRuleGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.MultiAdminVerifyRule)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewMultiAdminVerifyRuleGetDefault creates a MultiAdminVerifyRuleGetDefault with default headers values
func NewMultiAdminVerifyRuleGetDefault(code int) *MultiAdminVerifyRuleGetDefault {
return &MultiAdminVerifyRuleGetDefault{
_statusCode: code,
}
}
/*
MultiAdminVerifyRuleGetDefault describes a response with status code -1, with default header values.
Error
*/
type MultiAdminVerifyRuleGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the multi admin verify rule get default response
func (o *MultiAdminVerifyRuleGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this multi admin verify rule get default response has a 2xx status code
func (o *MultiAdminVerifyRuleGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this multi admin verify rule get default response has a 3xx status code
func (o *MultiAdminVerifyRuleGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this multi admin verify rule get default response has a 4xx status code
func (o *MultiAdminVerifyRuleGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this multi admin verify rule get default response has a 5xx status code
func (o *MultiAdminVerifyRuleGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this multi admin verify rule get default response a status code equal to that given
func (o *MultiAdminVerifyRuleGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *MultiAdminVerifyRuleGetDefault) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multi_admin_verify_rule_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyRuleGetDefault) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/rules/{owner.uuid}/{operation}][%d] multi_admin_verify_rule_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyRuleGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *MultiAdminVerifyRuleGetDefault) 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_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_key_servers_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"
)
// SecurityKeyManagerKeyServersCreateReader is a Reader for the SecurityKeyManagerKeyServersCreate structure.
type SecurityKeyManagerKeyServersCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityKeyManagerKeyServersCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewSecurityKeyManagerKeyServersCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityKeyManagerKeyServersCreateDefault(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
}
}
// NewSecurityKeyManagerKeyServersCreateCreated creates a SecurityKeyManagerKeyServersCreateCreated with default headers values
func NewSecurityKeyManagerKeyServersCreateCreated() *SecurityKeyManagerKeyServersCreateCreated {
return &SecurityKeyManagerKeyServersCreateCreated{}
}
/*
SecurityKeyManagerKeyServersCreateCreated describes a response with status code 201, with default header values.
Created
*/
type SecurityKeyManagerKeyServersCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.KeyServerResponse
}
// IsSuccess returns true when this security key manager key servers create created response has a 2xx status code
func (o *SecurityKeyManagerKeyServersCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security key manager key servers create created response has a 3xx status code
func (o *SecurityKeyManagerKeyServersCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this security key manager key servers create created response has a 4xx status code
func (o *SecurityKeyManagerKeyServersCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this security key manager key servers create created response has a 5xx status code
func (o *SecurityKeyManagerKeyServersCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this security key manager key servers create created response a status code equal to that given
func (o *SecurityKeyManagerKeyServersCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *SecurityKeyManagerKeyServersCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/key-managers/{uuid}/key-servers][%d] securityKeyManagerKeyServersCreateCreated %+v", 201, o.Payload)
}
func (o *SecurityKeyManagerKeyServersCreateCreated) String() string {
return fmt.Sprintf("[POST /security/key-managers/{uuid}/key-servers][%d] securityKeyManagerKeyServersCreateCreated %+v", 201, o.Payload)
}
func (o *SecurityKeyManagerKeyServersCreateCreated) GetPayload() *models.KeyServerResponse {
return o.Payload
}
func (o *SecurityKeyManagerKeyServersCreateCreated) 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.KeyServerResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityKeyManagerKeyServersCreateDefault creates a SecurityKeyManagerKeyServersCreateDefault with default headers values
func NewSecurityKeyManagerKeyServersCreateDefault(code int) *SecurityKeyManagerKeyServersCreateDefault {
return &SecurityKeyManagerKeyServersCreateDefault{
_statusCode: code,
}
}
/*
SecurityKeyManagerKeyServersCreateDefault 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. |
| 65536042 | Cannot add key server because it is already a secondary key server. |
| 65536600 | Cannot add a key server while a node is out quorum. |
| 65536821 | The certificate is not installed. |
| 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. |
| 65536834 | Failed to get existing key-server details for the SVM. |
| 65536852 | Failed to query supported KMIP protocol versions. |
| 65536870 | Key management servers are already configured. |
| 65536871 | Duplicate key management servers exist. |
| 65536921 | The following issues were found. Unable to execute command on KMIP server. |
| 66060338 | Unable to establish secure connection to KMIP server due to incorrect server_ca certificates. |
| 66060339 | Unable to establish secure connection to KMIP server due to incorrect client certificates. |
| 66060340 | Unable to establish secure connection to KMIP server due to Cryptsoft error. |
*/
type SecurityKeyManagerKeyServersCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security key manager key servers create default response
func (o *SecurityKeyManagerKeyServersCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security key manager key servers create default response has a 2xx status code
func (o *SecurityKeyManagerKeyServersCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security key manager key servers create default response has a 3xx status code
func (o *SecurityKeyManagerKeyServersCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security key manager key servers create default response has a 4xx status code
func (o *SecurityKeyManagerKeyServersCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security key manager key servers create default response has a 5xx status code
func (o *SecurityKeyManagerKeyServersCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security key manager key servers create default response a status code equal to that given
func (o *SecurityKeyManagerKeyServersCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityKeyManagerKeyServersCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/key-managers/{uuid}/key-servers][%d] security_key_manager_key_servers_create default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerKeyServersCreateDefault) String() string {
return fmt.Sprintf("[POST /security/key-managers/{uuid}/key-servers][%d] security_key_manager_key_servers_create default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerKeyServersCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityKeyManagerKeyServersCreateDefault) 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_saml_sp_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// SecuritySamlSpModifyReader is a Reader for the SecuritySamlSpModify structure.
type SecuritySamlSpModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecuritySamlSpModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecuritySamlSpModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecuritySamlSpModifyDefault(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
}
}
// NewSecuritySamlSpModifyOK creates a SecuritySamlSpModifyOK with default headers values
func NewSecuritySamlSpModifyOK() *SecuritySamlSpModifyOK {
return &SecuritySamlSpModifyOK{}
}
/*
SecuritySamlSpModifyOK describes a response with status code 200, with default header values.
OK
*/
type SecuritySamlSpModifyOK struct {
}
// IsSuccess returns true when this security saml sp modify o k response has a 2xx status code
func (o *SecuritySamlSpModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security saml sp modify o k response has a 3xx status code
func (o *SecuritySamlSpModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security saml sp modify o k response has a 4xx status code
func (o *SecuritySamlSpModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security saml sp modify o k response has a 5xx status code
func (o *SecuritySamlSpModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this security saml sp modify o k response a status code equal to that given
func (o *SecuritySamlSpModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *SecuritySamlSpModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/saml-sp][%d] securitySamlSpModifyOK ", 200)
}
func (o *SecuritySamlSpModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/saml-sp][%d] securitySamlSpModifyOK ", 200)
}
func (o *SecuritySamlSpModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewSecuritySamlSpModifyDefault creates a SecuritySamlSpModifyDefault with default headers values
func NewSecuritySamlSpModifyDefault(code int) *SecuritySamlSpModifyDefault {
return &SecuritySamlSpModifyDefault{
_statusCode: code,
}
}
/*
SecuritySamlSpModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 12320791 | SAML can only be disabled using the console or a SAML-authenticated application. |
*/
type SecuritySamlSpModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security saml sp modify default response
func (o *SecuritySamlSpModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security saml sp modify default response has a 2xx status code
func (o *SecuritySamlSpModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security saml sp modify default response has a 3xx status code
func (o *SecuritySamlSpModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security saml sp modify default response has a 4xx status code
func (o *SecuritySamlSpModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security saml sp modify default response has a 5xx status code
func (o *SecuritySamlSpModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security saml sp modify default response a status code equal to that given
func (o *SecuritySamlSpModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecuritySamlSpModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/saml-sp][%d] security_saml_sp_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/authentication/cluster/saml-sp][%d] security_saml_sp_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecuritySamlSpModifyDefault) 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_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_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"
)
// SecurityKeyManagerKeyServersGetReader is a Reader for the SecurityKeyManagerKeyServersGet structure.
type SecurityKeyManagerKeyServersGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityKeyManagerKeyServersGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityKeyManagerKeyServersGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityKeyManagerKeyServersGetDefault(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
}
}
// NewSecurityKeyManagerKeyServersGetOK creates a SecurityKeyManagerKeyServersGetOK with default headers values
func NewSecurityKeyManagerKeyServersGetOK() *SecurityKeyManagerKeyServersGetOK {
return &SecurityKeyManagerKeyServersGetOK{}
}
/*
SecurityKeyManagerKeyServersGetOK describes a response with status code 200, with default header values.
OK
*/
type SecurityKeyManagerKeyServersGetOK struct {
Payload *models.KeyServer
}
// IsSuccess returns true when this security key manager key servers get o k response has a 2xx status code
func (o *SecurityKeyManagerKeyServersGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security key manager key servers get o k response has a 3xx status code
func (o *SecurityKeyManagerKeyServersGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security key manager key servers get o k response has a 4xx status code
func (o *SecurityKeyManagerKeyServersGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security key manager key servers get o k response has a 5xx status code
func (o *SecurityKeyManagerKeyServersGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this security key manager key servers get o k response a status code equal to that given
func (o *SecurityKeyManagerKeyServersGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityKeyManagerKeyServersGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers/{server}][%d] securityKeyManagerKeyServersGetOK %+v", 200, o.Payload)
}
func (o *SecurityKeyManagerKeyServersGetOK) String() string {
return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers/{server}][%d] securityKeyManagerKeyServersGetOK %+v", 200, o.Payload)
}
func (o *SecurityKeyManagerKeyServersGetOK) GetPayload() *models.KeyServer {
return o.Payload
}
func (o *SecurityKeyManagerKeyServersGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.KeyServer)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityKeyManagerKeyServersGetDefault creates a SecurityKeyManagerKeyServersGetDefault with default headers values
func NewSecurityKeyManagerKeyServersGetDefault(code int) *SecurityKeyManagerKeyServersGetDefault {
return &SecurityKeyManagerKeyServersGetDefault{
_statusCode: code,
}
}
/*
SecurityKeyManagerKeyServersGetDefault describes a response with status code -1, with default header values.
Error
*/
type SecurityKeyManagerKeyServersGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security key manager key servers get default response
func (o *SecurityKeyManagerKeyServersGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security key manager key servers get default response has a 2xx status code
func (o *SecurityKeyManagerKeyServersGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security key manager key servers get default response has a 3xx status code
func (o *SecurityKeyManagerKeyServersGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security key manager key servers get default response has a 4xx status code
func (o *SecurityKeyManagerKeyServersGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security key manager key servers get default response has a 5xx status code
func (o *SecurityKeyManagerKeyServersGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security key manager key servers get default response a status code equal to that given
func (o *SecurityKeyManagerKeyServersGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityKeyManagerKeyServersGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers/{server}][%d] security_key_manager_key_servers_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerKeyServersGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-managers/{uuid}/key-servers/{server}][%d] security_key_manager_key_servers_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityKeyManagerKeyServersGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityKeyManagerKeyServersGetDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_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"
)
// KeyManagerConfigModifyReader is a Reader for the KeyManagerConfigModify structure.
type KeyManagerConfigModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *KeyManagerConfigModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewKeyManagerConfigModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewKeyManagerConfigModifyDefault(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
}
}
// NewKeyManagerConfigModifyOK creates a KeyManagerConfigModifyOK with default headers values
func NewKeyManagerConfigModifyOK() *KeyManagerConfigModifyOK {
return &KeyManagerConfigModifyOK{}
}
/*
KeyManagerConfigModifyOK describes a response with status code 200, with default header values.
OK
*/
type KeyManagerConfigModifyOK struct {
}
// IsSuccess returns true when this key manager config modify o k response has a 2xx status code
func (o *KeyManagerConfigModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this key manager config modify o k response has a 3xx status code
func (o *KeyManagerConfigModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this key manager config modify o k response has a 4xx status code
func (o *KeyManagerConfigModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this key manager config modify o k response has a 5xx status code
func (o *KeyManagerConfigModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this key manager config modify o k response a status code equal to that given
func (o *KeyManagerConfigModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *KeyManagerConfigModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/key-manager-configs][%d] keyManagerConfigModifyOK ", 200)
}
func (o *KeyManagerConfigModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/key-manager-configs][%d] keyManagerConfigModifyOK ", 200)
}
func (o *KeyManagerConfigModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewKeyManagerConfigModifyDefault creates a KeyManagerConfigModifyDefault with default headers values
func NewKeyManagerConfigModifyDefault(code int) *KeyManagerConfigModifyDefault {
return &KeyManagerConfigModifyDefault{
_statusCode: code,
}
}
/*
KeyManagerConfigModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65536139 | Cluster-wide passphrase is incorrect. |
| 65536805 | Common Criteria Mode requires an effective cluster version of ONTAP 9.4 or later. |
| 65536806 | Passphrase length error. |
| 65536807 | MetroCluster cannot be configured while in Common Criteria mode. |
| 65536809 | Common Criteria mode is disabled on the cluster. Contact technical support for assistance in enabling Common Criteria mode. |
| 65537302 | The passphrase field is required when changing cc_mode_enabled to true. |
| 65537303 | Modifying polling period requires an effective cluster version of ONTAP 9.10 or later. |
| 65537304 | Unable to modify polling period because no external key management is configured on the cluster. |
| 65538404 | Modifying cloud keymanager retry count requires an effective cluster version of ONTAP 9.11 or later. |
*/
type KeyManagerConfigModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the key manager config modify default response
func (o *KeyManagerConfigModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this key manager config modify default response has a 2xx status code
func (o *KeyManagerConfigModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this key manager config modify default response has a 3xx status code
func (o *KeyManagerConfigModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this key manager config modify default response has a 4xx status code
func (o *KeyManagerConfigModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this key manager config modify default response has a 5xx status code
func (o *KeyManagerConfigModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this key manager config modify default response a status code equal to that given
func (o *KeyManagerConfigModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *KeyManagerConfigModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/key-manager-configs][%d] key_manager_config_modify default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerConfigModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/key-manager-configs][%d] key_manager_config_modify default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerConfigModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *KeyManagerConfigModifyDefault) 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_migrate_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_migrate_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"
)
// NewSecurityKeyManagerMigrateParams creates a new SecurityKeyManagerMigrateParams 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 NewSecurityKeyManagerMigrateParams() *SecurityKeyManagerMigrateParams {
return &SecurityKeyManagerMigrateParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerMigrateParamsWithTimeout creates a new SecurityKeyManagerMigrateParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerMigrateParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerMigrateParams {
return &SecurityKeyManagerMigrateParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerMigrateParamsWithContext creates a new SecurityKeyManagerMigrateParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerMigrateParamsWithContext(ctx context.Context) *SecurityKeyManagerMigrateParams {
return &SecurityKeyManagerMigrateParams{
Context: ctx,
}
}
// NewSecurityKeyManagerMigrateParamsWithHTTPClient creates a new SecurityKeyManagerMigrateParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerMigrateParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerMigrateParams {
return &SecurityKeyManagerMigrateParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerMigrateParams contains all the parameters to send to the API endpoint
for the security key manager migrate operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerMigrateParams struct {
/* Info.
Information specification
*/
Info SecurityKeyManagerMigrateBody
/* 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
/* SourceUUID.
Migration source key manager UUID
*/
SourceUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager migrate params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerMigrateParams) WithDefaults() *SecurityKeyManagerMigrateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager migrate params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerMigrateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := SecurityKeyManagerMigrateParams{
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 key manager migrate params
func (o *SecurityKeyManagerMigrateParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerMigrateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) WithContext(ctx context.Context) *SecurityKeyManagerMigrateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerMigrateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) WithInfo(info SecurityKeyManagerMigrateBody) *SecurityKeyManagerMigrateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) SetInfo(info SecurityKeyManagerMigrateBody) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) WithReturnRecords(returnRecords *bool) *SecurityKeyManagerMigrateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) WithReturnTimeout(returnTimeout *int64) *SecurityKeyManagerMigrateParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSourceUUID adds the sourceUUID to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) WithSourceUUID(sourceUUID string) *SecurityKeyManagerMigrateParams {
o.SetSourceUUID(sourceUUID)
return o
}
// SetSourceUUID adds the sourceUuid to the security key manager migrate params
func (o *SecurityKeyManagerMigrateParams) SetSourceUUID(sourceUUID string) {
o.SourceUUID = sourceUUID
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerMigrateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
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
}
}
}
// path param source.uuid
if err := r.SetPathParam("source.uuid", o.SourceUUID); 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_config_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_config_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"
)
// KeyManagerConfigGetReader is a Reader for the KeyManagerConfigGet structure.
type KeyManagerConfigGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *KeyManagerConfigGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewKeyManagerConfigGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewKeyManagerConfigGetDefault(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
}
}
// NewKeyManagerConfigGetOK creates a KeyManagerConfigGetOK with default headers values
func NewKeyManagerConfigGetOK() *KeyManagerConfigGetOK {
return &KeyManagerConfigGetOK{}
}
/*
KeyManagerConfigGetOK describes a response with status code 200, with default header values.
OK
*/
type KeyManagerConfigGetOK struct {
Payload *models.KeyManagerConfig
}
// IsSuccess returns true when this key manager config get o k response has a 2xx status code
func (o *KeyManagerConfigGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this key manager config get o k response has a 3xx status code
func (o *KeyManagerConfigGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this key manager config get o k response has a 4xx status code
func (o *KeyManagerConfigGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this key manager config get o k response has a 5xx status code
func (o *KeyManagerConfigGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this key manager config get o k response a status code equal to that given
func (o *KeyManagerConfigGetOK) IsCode(code int) bool {
return code == 200
}
func (o *KeyManagerConfigGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-manager-configs][%d] keyManagerConfigGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerConfigGetOK) String() string {
return fmt.Sprintf("[GET /security/key-manager-configs][%d] keyManagerConfigGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerConfigGetOK) GetPayload() *models.KeyManagerConfig {
return o.Payload
}
func (o *KeyManagerConfigGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.KeyManagerConfig)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewKeyManagerConfigGetDefault creates a KeyManagerConfigGetDefault with default headers values
func NewKeyManagerConfigGetDefault(code int) *KeyManagerConfigGetDefault {
return &KeyManagerConfigGetDefault{
_statusCode: code,
}
}
/*
KeyManagerConfigGetDefault describes a response with status code -1, with default header values.
Error
*/
type KeyManagerConfigGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the key manager config get default response
func (o *KeyManagerConfigGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this key manager config get default response has a 2xx status code
func (o *KeyManagerConfigGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this key manager config get default response has a 3xx status code
func (o *KeyManagerConfigGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this key manager config get default response has a 4xx status code
func (o *KeyManagerConfigGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this key manager config get default response has a 5xx status code
func (o *KeyManagerConfigGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this key manager config get default response a status code equal to that given
func (o *KeyManagerConfigGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *KeyManagerConfigGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-manager-configs][%d] key_manager_config_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerConfigGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-manager-configs][%d] key_manager_config_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerConfigGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *KeyManagerConfigGetDefault) 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_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_approval_group_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"
)
// MultiAdminVerifyApprovalGroupGetReader is a Reader for the MultiAdminVerifyApprovalGroupGet structure.
type MultiAdminVerifyApprovalGroupGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *MultiAdminVerifyApprovalGroupGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewMultiAdminVerifyApprovalGroupGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewMultiAdminVerifyApprovalGroupGetDefault(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
}
}
// NewMultiAdminVerifyApprovalGroupGetOK creates a MultiAdminVerifyApprovalGroupGetOK with default headers values
func NewMultiAdminVerifyApprovalGroupGetOK() *MultiAdminVerifyApprovalGroupGetOK {
return &MultiAdminVerifyApprovalGroupGetOK{}
}
/*
MultiAdminVerifyApprovalGroupGetOK describes a response with status code 200, with default header values.
OK
*/
type MultiAdminVerifyApprovalGroupGetOK struct {
Payload *models.MultiAdminVerifyApprovalGroup
}
// IsSuccess returns true when this multi admin verify approval group get o k response has a 2xx status code
func (o *MultiAdminVerifyApprovalGroupGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this multi admin verify approval group get o k response has a 3xx status code
func (o *MultiAdminVerifyApprovalGroupGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this multi admin verify approval group get o k response has a 4xx status code
func (o *MultiAdminVerifyApprovalGroupGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this multi admin verify approval group get o k response has a 5xx status code
func (o *MultiAdminVerifyApprovalGroupGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this multi admin verify approval group get o k response a status code equal to that given
func (o *MultiAdminVerifyApprovalGroupGetOK) IsCode(code int) bool {
return code == 200
}
func (o *MultiAdminVerifyApprovalGroupGetOK) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multiAdminVerifyApprovalGroupGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupGetOK) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multiAdminVerifyApprovalGroupGetOK %+v", 200, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupGetOK) GetPayload() *models.MultiAdminVerifyApprovalGroup {
return o.Payload
}
func (o *MultiAdminVerifyApprovalGroupGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.MultiAdminVerifyApprovalGroup)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewMultiAdminVerifyApprovalGroupGetDefault creates a MultiAdminVerifyApprovalGroupGetDefault with default headers values
func NewMultiAdminVerifyApprovalGroupGetDefault(code int) *MultiAdminVerifyApprovalGroupGetDefault {
return &MultiAdminVerifyApprovalGroupGetDefault{
_statusCode: code,
}
}
/*
MultiAdminVerifyApprovalGroupGetDefault describes a response with status code -1, with default header values.
Error
*/
type MultiAdminVerifyApprovalGroupGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the multi admin verify approval group get default response
func (o *MultiAdminVerifyApprovalGroupGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this multi admin verify approval group get default response has a 2xx status code
func (o *MultiAdminVerifyApprovalGroupGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this multi admin verify approval group get default response has a 3xx status code
func (o *MultiAdminVerifyApprovalGroupGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this multi admin verify approval group get default response has a 4xx status code
func (o *MultiAdminVerifyApprovalGroupGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this multi admin verify approval group get default response has a 5xx status code
func (o *MultiAdminVerifyApprovalGroupGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this multi admin verify approval group get default response a status code equal to that given
func (o *MultiAdminVerifyApprovalGroupGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *MultiAdminVerifyApprovalGroupGetDefault) Error() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multi_admin_verify_approval_group_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupGetDefault) String() string {
return fmt.Sprintf("[GET /security/multi-admin-verify/approval-groups/{owner.uuid}/{name}][%d] multi_admin_verify_approval_group_get default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyApprovalGroupGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *MultiAdminVerifyApprovalGroupGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ErrorResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.