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/gcp_kms_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_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"
)
// GcpKmsCollectionGetReader is a Reader for the GcpKmsCollectionGet structure.
type GcpKmsCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GcpKmsCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGcpKmsCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewGcpKmsCollectionGetDefault(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
}
}
// NewGcpKmsCollectionGetOK creates a GcpKmsCollectionGetOK with default headers values
func NewGcpKmsCollectionGetOK() *GcpKmsCollectionGetOK {
return &GcpKmsCollectionGetOK{}
}
/*
GcpKmsCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type GcpKmsCollectionGetOK struct {
Payload *models.GcpKmsResponse
}
// IsSuccess returns true when this gcp kms collection get o k response has a 2xx status code
func (o *GcpKmsCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this gcp kms collection get o k response has a 3xx status code
func (o *GcpKmsCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this gcp kms collection get o k response has a 4xx status code
func (o *GcpKmsCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this gcp kms collection get o k response has a 5xx status code
func (o *GcpKmsCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this gcp kms collection get o k response a status code equal to that given
func (o *GcpKmsCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *GcpKmsCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/gcp-kms][%d] gcpKmsCollectionGetOK %+v", 200, o.Payload)
}
func (o *GcpKmsCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/gcp-kms][%d] gcpKmsCollectionGetOK %+v", 200, o.Payload)
}
func (o *GcpKmsCollectionGetOK) GetPayload() *models.GcpKmsResponse {
return o.Payload
}
func (o *GcpKmsCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.GcpKmsResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewGcpKmsCollectionGetDefault creates a GcpKmsCollectionGetDefault with default headers values
func NewGcpKmsCollectionGetDefault(code int) *GcpKmsCollectionGetDefault {
return &GcpKmsCollectionGetDefault{
_statusCode: code,
}
}
/*
GcpKmsCollectionGetDefault 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. |
| 65537730 | The Google Cloud Key Management Service is unreachable from one or more nodes. |
*/
type GcpKmsCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the gcp kms collection get default response
func (o *GcpKmsCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this gcp kms collection get default response has a 2xx status code
func (o *GcpKmsCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this gcp kms collection get default response has a 3xx status code
func (o *GcpKmsCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this gcp kms collection get default response has a 4xx status code
func (o *GcpKmsCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this gcp kms collection get default response has a 5xx status code
func (o *GcpKmsCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this gcp kms collection get default response a status code equal to that given
func (o *GcpKmsCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *GcpKmsCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/gcp-kms][%d] gcp_kms_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/gcp-kms][%d] gcp_kms_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *GcpKmsCollectionGetDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// SecuritySamlSpCreateReader is a Reader for the SecuritySamlSpCreate structure.
type SecuritySamlSpCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecuritySamlSpCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewSecuritySamlSpCreateAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecuritySamlSpCreateDefault(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
}
}
// NewSecuritySamlSpCreateAccepted creates a SecuritySamlSpCreateAccepted with default headers values
func NewSecuritySamlSpCreateAccepted() *SecuritySamlSpCreateAccepted {
return &SecuritySamlSpCreateAccepted{}
}
/*
SecuritySamlSpCreateAccepted describes a response with status code 202, with default header values.
Accepted
*/
type SecuritySamlSpCreateAccepted struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this security saml sp create accepted response has a 2xx status code
func (o *SecuritySamlSpCreateAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security saml sp create accepted response has a 3xx status code
func (o *SecuritySamlSpCreateAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this security saml sp create accepted response has a 4xx status code
func (o *SecuritySamlSpCreateAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this security saml sp create accepted response has a 5xx status code
func (o *SecuritySamlSpCreateAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this security saml sp create accepted response a status code equal to that given
func (o *SecuritySamlSpCreateAccepted) IsCode(code int) bool {
return code == 202
}
func (o *SecuritySamlSpCreateAccepted) Error() string {
return fmt.Sprintf("[POST /security/authentication/cluster/saml-sp][%d] securitySamlSpCreateAccepted %+v", 202, o.Payload)
}
func (o *SecuritySamlSpCreateAccepted) String() string {
return fmt.Sprintf("[POST /security/authentication/cluster/saml-sp][%d] securitySamlSpCreateAccepted %+v", 202, o.Payload)
}
func (o *SecuritySamlSpCreateAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *SecuritySamlSpCreateAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
// hydrates response header Location
hdrLocation := response.GetHeader("Location")
if hdrLocation != "" {
o.Location = hdrLocation
}
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecuritySamlSpCreateDefault creates a SecuritySamlSpCreateDefault with default headers values
func NewSecuritySamlSpCreateDefault(code int) *SecuritySamlSpCreateDefault {
return &SecuritySamlSpCreateDefault{
_statusCode: code,
}
}
/*
SecuritySamlSpCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 12320789 | Failed to download data file from specified URI. |
| 12320794 | The host parameter provided must be the cluster management interface's IP address. If the cluster management interface is not available, the node management interface's IP address must be used. |
| 12320795 | A valid cluster or node management interface IP address must be provided. |
| 12320805 | The certificate information provided does not match any installed certificates. |
| 12320806 | The certificate information entered does not match any installed certificates. |
| 12320814 | An invalid IDP URI has been entered. |
| 12320815 | An IDP URI must be an HTTPS or FTPS URI. |
*/
type SecuritySamlSpCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security saml sp create default response
func (o *SecuritySamlSpCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security saml sp create default response has a 2xx status code
func (o *SecuritySamlSpCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security saml sp create default response has a 3xx status code
func (o *SecuritySamlSpCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security saml sp create default response has a 4xx status code
func (o *SecuritySamlSpCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security saml sp create default response has a 5xx status code
func (o *SecuritySamlSpCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security saml sp create default response a status code equal to that given
func (o *SecuritySamlSpCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecuritySamlSpCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/authentication/cluster/saml-sp][%d] security_saml_sp_create default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpCreateDefault) String() string {
return fmt.Sprintf("[POST /security/authentication/cluster/saml-sp][%d] security_saml_sp_create default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecuritySamlSpCreateDefault) 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_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_auth_key_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"
)
// NewKeyManagerAuthKeyDeleteParams creates a new KeyManagerAuthKeyDeleteParams 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 NewKeyManagerAuthKeyDeleteParams() *KeyManagerAuthKeyDeleteParams {
return &KeyManagerAuthKeyDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewKeyManagerAuthKeyDeleteParamsWithTimeout creates a new KeyManagerAuthKeyDeleteParams object
// with the ability to set a timeout on a request.
func NewKeyManagerAuthKeyDeleteParamsWithTimeout(timeout time.Duration) *KeyManagerAuthKeyDeleteParams {
return &KeyManagerAuthKeyDeleteParams{
timeout: timeout,
}
}
// NewKeyManagerAuthKeyDeleteParamsWithContext creates a new KeyManagerAuthKeyDeleteParams object
// with the ability to set a context for a request.
func NewKeyManagerAuthKeyDeleteParamsWithContext(ctx context.Context) *KeyManagerAuthKeyDeleteParams {
return &KeyManagerAuthKeyDeleteParams{
Context: ctx,
}
}
// NewKeyManagerAuthKeyDeleteParamsWithHTTPClient creates a new KeyManagerAuthKeyDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewKeyManagerAuthKeyDeleteParamsWithHTTPClient(client *http.Client) *KeyManagerAuthKeyDeleteParams {
return &KeyManagerAuthKeyDeleteParams{
HTTPClient: client,
}
}
/*
KeyManagerAuthKeyDeleteParams contains all the parameters to send to the API endpoint
for the key manager auth key delete operation.
Typically these are written to a http.Request.
*/
type KeyManagerAuthKeyDeleteParams struct {
/* KeyID.
Key ID of the authentication key to be deleted.
*/
KeyID string
/* 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 delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerAuthKeyDeleteParams) WithDefaults() *KeyManagerAuthKeyDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the key manager auth key delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *KeyManagerAuthKeyDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) WithTimeout(timeout time.Duration) *KeyManagerAuthKeyDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) WithContext(ctx context.Context) *KeyManagerAuthKeyDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) WithHTTPClient(client *http.Client) *KeyManagerAuthKeyDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithKeyID adds the keyID to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) WithKeyID(keyID string) *KeyManagerAuthKeyDeleteParams {
o.SetKeyID(keyID)
return o
}
// SetKeyID adds the keyId to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) SetKeyID(keyID string) {
o.KeyID = keyID
}
// WithSecurityKeyManagerUUID adds the securityKeyManagerUUID to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) WithSecurityKeyManagerUUID(securityKeyManagerUUID string) *KeyManagerAuthKeyDeleteParams {
o.SetSecurityKeyManagerUUID(securityKeyManagerUUID)
return o
}
// SetSecurityKeyManagerUUID adds the securityKeyManagerUuid to the key manager auth key delete params
func (o *KeyManagerAuthKeyDeleteParams) SetSecurityKeyManagerUUID(securityKeyManagerUUID string) {
o.SecurityKeyManagerUUID = securityKeyManagerUUID
}
// WriteToRequest writes these params to a swagger request
func (o *KeyManagerAuthKeyDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param key_id
if err := r.SetPathParam("key_id", o.KeyID); 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/gcp_kms_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/gcp_kms_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package security
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
"github.com/netapp/trident/storage_drivers/ontap/api/rest/models"
)
// GcpKmsDeleteReader is a Reader for the GcpKmsDelete structure.
type GcpKmsDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *GcpKmsDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGcpKmsDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewGcpKmsDeleteDefault(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
}
}
// NewGcpKmsDeleteOK creates a GcpKmsDeleteOK with default headers values
func NewGcpKmsDeleteOK() *GcpKmsDeleteOK {
return &GcpKmsDeleteOK{}
}
/*
GcpKmsDeleteOK describes a response with status code 200, with default header values.
OK
*/
type GcpKmsDeleteOK struct {
}
// IsSuccess returns true when this gcp kms delete o k response has a 2xx status code
func (o *GcpKmsDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this gcp kms delete o k response has a 3xx status code
func (o *GcpKmsDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this gcp kms delete o k response has a 4xx status code
func (o *GcpKmsDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this gcp kms delete o k response has a 5xx status code
func (o *GcpKmsDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this gcp kms delete o k response a status code equal to that given
func (o *GcpKmsDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *GcpKmsDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /security/gcp-kms/{uuid}][%d] gcpKmsDeleteOK ", 200)
}
func (o *GcpKmsDeleteOK) String() string {
return fmt.Sprintf("[DELETE /security/gcp-kms/{uuid}][%d] gcpKmsDeleteOK ", 200)
}
func (o *GcpKmsDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewGcpKmsDeleteDefault creates a GcpKmsDeleteDefault with default headers values
func NewGcpKmsDeleteDefault(code int) *GcpKmsDeleteDefault {
return &GcpKmsDeleteDefault{
_statusCode: code,
}
}
/*
GcpKmsDeleteDefault 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 it is safe to disable key manager. |
| 65536827 | Internal error. Failed to determine if the given SVM has any encrypted volumes. |
| 65536834 | Internal error. Failed to get existing key-server details for the given SVM. |
| 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 authentication keys for self-encrypting drives. |
| 65537721 | The Google Cloud Key Management Service is not configured for the 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 GcpKmsDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the gcp kms delete default response
func (o *GcpKmsDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this gcp kms delete default response has a 2xx status code
func (o *GcpKmsDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this gcp kms delete default response has a 3xx status code
func (o *GcpKmsDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this gcp kms delete default response has a 4xx status code
func (o *GcpKmsDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this gcp kms delete default response has a 5xx status code
func (o *GcpKmsDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this gcp kms delete default response a status code equal to that given
func (o *GcpKmsDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *GcpKmsDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /security/gcp-kms/{uuid}][%d] gcp_kms_delete default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /security/gcp-kms/{uuid}][%d] gcp_kms_delete default %+v", o._statusCode, o.Payload)
}
func (o *GcpKmsDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *GcpKmsDeleteDefault) 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_internal_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_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"
)
// NewAwsKmsRekeyInternalParams creates a new AwsKmsRekeyInternalParams 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 NewAwsKmsRekeyInternalParams() *AwsKmsRekeyInternalParams {
return &AwsKmsRekeyInternalParams{
timeout: cr.DefaultTimeout,
}
}
// NewAwsKmsRekeyInternalParamsWithTimeout creates a new AwsKmsRekeyInternalParams object
// with the ability to set a timeout on a request.
func NewAwsKmsRekeyInternalParamsWithTimeout(timeout time.Duration) *AwsKmsRekeyInternalParams {
return &AwsKmsRekeyInternalParams{
timeout: timeout,
}
}
// NewAwsKmsRekeyInternalParamsWithContext creates a new AwsKmsRekeyInternalParams object
// with the ability to set a context for a request.
func NewAwsKmsRekeyInternalParamsWithContext(ctx context.Context) *AwsKmsRekeyInternalParams {
return &AwsKmsRekeyInternalParams{
Context: ctx,
}
}
// NewAwsKmsRekeyInternalParamsWithHTTPClient creates a new AwsKmsRekeyInternalParams object
// with the ability to set a custom HTTPClient for a request.
func NewAwsKmsRekeyInternalParamsWithHTTPClient(client *http.Client) *AwsKmsRekeyInternalParams {
return &AwsKmsRekeyInternalParams{
HTTPClient: client,
}
}
/*
AwsKmsRekeyInternalParams contains all the parameters to send to the API endpoint
for the aws kms rekey internal operation.
Typically these are written to a http.Request.
*/
type AwsKmsRekeyInternalParams struct {
/* AwsKmsUUID.
UUID of the existing AWS KMS configuration.
*/
AwsKmsUUID string
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202.
*/
ReturnTimeout *int64
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the aws kms rekey internal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AwsKmsRekeyInternalParams) WithDefaults() *AwsKmsRekeyInternalParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the aws kms rekey internal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AwsKmsRekeyInternalParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := AwsKmsRekeyInternalParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) WithTimeout(timeout time.Duration) *AwsKmsRekeyInternalParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) WithContext(ctx context.Context) *AwsKmsRekeyInternalParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) WithHTTPClient(client *http.Client) *AwsKmsRekeyInternalParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAwsKmsUUID adds the awsKmsUUID to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) WithAwsKmsUUID(awsKmsUUID string) *AwsKmsRekeyInternalParams {
o.SetAwsKmsUUID(awsKmsUUID)
return o
}
// SetAwsKmsUUID adds the awsKmsUuid to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) SetAwsKmsUUID(awsKmsUUID string) {
o.AwsKmsUUID = awsKmsUUID
}
// WithReturnRecords adds the returnRecords to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) WithReturnRecords(returnRecords *bool) *AwsKmsRekeyInternalParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) WithReturnTimeout(returnTimeout *int64) *AwsKmsRekeyInternalParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the aws kms rekey internal params
func (o *AwsKmsRekeyInternalParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WriteToRequest writes these params to a swagger request
func (o *AwsKmsRekeyInternalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param aws_kms.uuid
if err := r.SetPathParam("aws_kms.uuid", o.AwsKmsUUID); err != nil {
return err
}
if o.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/ipsec_ca_certificate_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_ca_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"
)
// IpsecCaCertificateCreateReader is a Reader for the IpsecCaCertificateCreate structure.
type IpsecCaCertificateCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *IpsecCaCertificateCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewIpsecCaCertificateCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewIpsecCaCertificateCreateDefault(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
}
}
// NewIpsecCaCertificateCreateCreated creates a IpsecCaCertificateCreateCreated with default headers values
func NewIpsecCaCertificateCreateCreated() *IpsecCaCertificateCreateCreated {
return &IpsecCaCertificateCreateCreated{}
}
/*
IpsecCaCertificateCreateCreated describes a response with status code 201, with default header values.
Created
*/
type IpsecCaCertificateCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.IpsecCaCertificateResponse
}
// IsSuccess returns true when this ipsec ca certificate create created response has a 2xx status code
func (o *IpsecCaCertificateCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this ipsec ca certificate create created response has a 3xx status code
func (o *IpsecCaCertificateCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this ipsec ca certificate create created response has a 4xx status code
func (o *IpsecCaCertificateCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this ipsec ca certificate create created response has a 5xx status code
func (o *IpsecCaCertificateCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this ipsec ca certificate create created response a status code equal to that given
func (o *IpsecCaCertificateCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *IpsecCaCertificateCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/ipsec/ca-certificates][%d] ipsecCaCertificateCreateCreated %+v", 201, o.Payload)
}
func (o *IpsecCaCertificateCreateCreated) String() string {
return fmt.Sprintf("[POST /security/ipsec/ca-certificates][%d] ipsecCaCertificateCreateCreated %+v", 201, o.Payload)
}
func (o *IpsecCaCertificateCreateCreated) GetPayload() *models.IpsecCaCertificateResponse {
return o.Payload
}
func (o *IpsecCaCertificateCreateCreated) 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.IpsecCaCertificateResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewIpsecCaCertificateCreateDefault creates a IpsecCaCertificateCreateDefault with default headers values
func NewIpsecCaCertificateCreateDefault(code int) *IpsecCaCertificateCreateDefault {
return &IpsecCaCertificateCreateDefault{
_statusCode: code,
}
}
/*
IpsecCaCertificateCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 66257296 | CA certificate is not installed. |
*/
type IpsecCaCertificateCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the ipsec ca certificate create default response
func (o *IpsecCaCertificateCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this ipsec ca certificate create default response has a 2xx status code
func (o *IpsecCaCertificateCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this ipsec ca certificate create default response has a 3xx status code
func (o *IpsecCaCertificateCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this ipsec ca certificate create default response has a 4xx status code
func (o *IpsecCaCertificateCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this ipsec ca certificate create default response has a 5xx status code
func (o *IpsecCaCertificateCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this ipsec ca certificate create default response a status code equal to that given
func (o *IpsecCaCertificateCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *IpsecCaCertificateCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/ipsec/ca-certificates][%d] ipsec_ca_certificate_create default %+v", o._statusCode, o.Payload)
}
func (o *IpsecCaCertificateCreateDefault) String() string {
return fmt.Sprintf("[POST /security/ipsec/ca-certificates][%d] ipsec_ca_certificate_create default %+v", o._statusCode, o.Payload)
}
func (o *IpsecCaCertificateCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *IpsecCaCertificateCreateDefault) 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_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/cluster_ldap_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"
)
// ClusterLdapGetReader is a Reader for the ClusterLdapGet structure.
type ClusterLdapGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *ClusterLdapGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewClusterLdapGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewClusterLdapGetDefault(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
}
}
// NewClusterLdapGetOK creates a ClusterLdapGetOK with default headers values
func NewClusterLdapGetOK() *ClusterLdapGetOK {
return &ClusterLdapGetOK{}
}
/*
ClusterLdapGetOK describes a response with status code 200, with default header values.
OK
*/
type ClusterLdapGetOK struct {
Payload *models.ClusterLdap
}
// IsSuccess returns true when this cluster ldap get o k response has a 2xx status code
func (o *ClusterLdapGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cluster ldap get o k response has a 3xx status code
func (o *ClusterLdapGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cluster ldap get o k response has a 4xx status code
func (o *ClusterLdapGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cluster ldap get o k response has a 5xx status code
func (o *ClusterLdapGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this cluster ldap get o k response a status code equal to that given
func (o *ClusterLdapGetOK) IsCode(code int) bool {
return code == 200
}
func (o *ClusterLdapGetOK) Error() string {
return fmt.Sprintf("[GET /security/authentication/cluster/ldap][%d] clusterLdapGetOK %+v", 200, o.Payload)
}
func (o *ClusterLdapGetOK) String() string {
return fmt.Sprintf("[GET /security/authentication/cluster/ldap][%d] clusterLdapGetOK %+v", 200, o.Payload)
}
func (o *ClusterLdapGetOK) GetPayload() *models.ClusterLdap {
return o.Payload
}
func (o *ClusterLdapGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ClusterLdap)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewClusterLdapGetDefault creates a ClusterLdapGetDefault with default headers values
func NewClusterLdapGetDefault(code int) *ClusterLdapGetDefault {
return &ClusterLdapGetDefault{
_statusCode: code,
}
}
/*
ClusterLdapGetDefault describes a response with status code -1, with default header values.
Error
*/
type ClusterLdapGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cluster ldap get default response
func (o *ClusterLdapGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cluster ldap get default response has a 2xx status code
func (o *ClusterLdapGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cluster ldap get default response has a 3xx status code
func (o *ClusterLdapGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cluster ldap get default response has a 4xx status code
func (o *ClusterLdapGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cluster ldap get default response has a 5xx status code
func (o *ClusterLdapGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cluster ldap get default response a status code equal to that given
func (o *ClusterLdapGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *ClusterLdapGetDefault) Error() string {
return fmt.Sprintf("[GET /security/authentication/cluster/ldap][%d] cluster_ldap_get default %+v", o._statusCode, o.Payload)
}
func (o *ClusterLdapGetDefault) String() string {
return fmt.Sprintf("[GET /security/authentication/cluster/ldap][%d] cluster_ldap_get default %+v", o._statusCode, o.Payload)
}
func (o *ClusterLdapGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *ClusterLdapGetDefault) 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_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_rule_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"
)
// MultiAdminVerifyRuleCreateReader is a Reader for the MultiAdminVerifyRuleCreate structure.
type MultiAdminVerifyRuleCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *MultiAdminVerifyRuleCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewMultiAdminVerifyRuleCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewMultiAdminVerifyRuleCreateDefault(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
}
}
// NewMultiAdminVerifyRuleCreateCreated creates a MultiAdminVerifyRuleCreateCreated with default headers values
func NewMultiAdminVerifyRuleCreateCreated() *MultiAdminVerifyRuleCreateCreated {
return &MultiAdminVerifyRuleCreateCreated{}
}
/*
MultiAdminVerifyRuleCreateCreated describes a response with status code 201, with default header values.
Created
*/
type MultiAdminVerifyRuleCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.MultiAdminVerifyRuleResponse
}
// IsSuccess returns true when this multi admin verify rule create created response has a 2xx status code
func (o *MultiAdminVerifyRuleCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this multi admin verify rule create created response has a 3xx status code
func (o *MultiAdminVerifyRuleCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this multi admin verify rule create created response has a 4xx status code
func (o *MultiAdminVerifyRuleCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this multi admin verify rule create created response has a 5xx status code
func (o *MultiAdminVerifyRuleCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this multi admin verify rule create created response a status code equal to that given
func (o *MultiAdminVerifyRuleCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *MultiAdminVerifyRuleCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/multi-admin-verify/rules][%d] multiAdminVerifyRuleCreateCreated %+v", 201, o.Payload)
}
func (o *MultiAdminVerifyRuleCreateCreated) String() string {
return fmt.Sprintf("[POST /security/multi-admin-verify/rules][%d] multiAdminVerifyRuleCreateCreated %+v", 201, o.Payload)
}
func (o *MultiAdminVerifyRuleCreateCreated) GetPayload() *models.MultiAdminVerifyRuleResponse {
return o.Payload
}
func (o *MultiAdminVerifyRuleCreateCreated) 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.MultiAdminVerifyRuleResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewMultiAdminVerifyRuleCreateDefault creates a MultiAdminVerifyRuleCreateDefault with default headers values
func NewMultiAdminVerifyRuleCreateDefault(code int) *MultiAdminVerifyRuleCreateDefault {
return &MultiAdminVerifyRuleCreateDefault{
_statusCode: code,
}
}
/*
MultiAdminVerifyRuleCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 262148 | The specified command is not recognized. |
| 262308 | The specified command is not supported by this feature. |
| 262309 | The feature must be enabled first. |
| 262311 | Value must be greater than zero. |
| 262312 | Number of required approvers must be less than the total number of unique approvers in the approval-groups. |
| 262313 | Number of unique approvers in the approval-groups must be greater than the number of required approvers. |
| 262314 | Some approval-groups were not found. |
| 262316 | Value must be in the range one second to two weeks. |
| 262326 | Failed to parse query. |
| 262335 | The query string must be contained in either the "operation" or "query" parameters but not in both. |
*/
type MultiAdminVerifyRuleCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the multi admin verify rule create default response
func (o *MultiAdminVerifyRuleCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this multi admin verify rule create default response has a 2xx status code
func (o *MultiAdminVerifyRuleCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this multi admin verify rule create default response has a 3xx status code
func (o *MultiAdminVerifyRuleCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this multi admin verify rule create default response has a 4xx status code
func (o *MultiAdminVerifyRuleCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this multi admin verify rule create default response has a 5xx status code
func (o *MultiAdminVerifyRuleCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this multi admin verify rule create default response a status code equal to that given
func (o *MultiAdminVerifyRuleCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *MultiAdminVerifyRuleCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/multi-admin-verify/rules][%d] multi_admin_verify_rule_create default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyRuleCreateDefault) String() string {
return fmt.Sprintf("[POST /security/multi-admin-verify/rules][%d] multi_admin_verify_rule_create default %+v", o._statusCode, o.Payload)
}
func (o *MultiAdminVerifyRuleCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *MultiAdminVerifyRuleCreateDefault) 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_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_create_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package security
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
"github.com/netapp/trident/storage_drivers/ontap/api/rest/models"
)
// AwsKmsCreateReader is a Reader for the AwsKmsCreate structure.
type AwsKmsCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AwsKmsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewAwsKmsCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAwsKmsCreateDefault(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
}
}
// NewAwsKmsCreateCreated creates a AwsKmsCreateCreated with default headers values
func NewAwsKmsCreateCreated() *AwsKmsCreateCreated {
return &AwsKmsCreateCreated{}
}
/*
AwsKmsCreateCreated describes a response with status code 201, with default header values.
Created
*/
type AwsKmsCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.AwsKmsResponse
}
// IsSuccess returns true when this aws kms create created response has a 2xx status code
func (o *AwsKmsCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this aws kms create created response has a 3xx status code
func (o *AwsKmsCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this aws kms create created response has a 4xx status code
func (o *AwsKmsCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this aws kms create created response has a 5xx status code
func (o *AwsKmsCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this aws kms create created response a status code equal to that given
func (o *AwsKmsCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *AwsKmsCreateCreated) Error() string {
return fmt.Sprintf("[POST /security/aws-kms][%d] awsKmsCreateCreated %+v", 201, o.Payload)
}
func (o *AwsKmsCreateCreated) String() string {
return fmt.Sprintf("[POST /security/aws-kms][%d] awsKmsCreateCreated %+v", 201, o.Payload)
}
func (o *AwsKmsCreateCreated) GetPayload() *models.AwsKmsResponse {
return o.Payload
}
func (o *AwsKmsCreateCreated) 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.AwsKmsResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAwsKmsCreateDefault creates a AwsKmsCreateDefault with default headers values
func NewAwsKmsCreateDefault(code int) *AwsKmsCreateDefault {
return &AwsKmsCreateDefault{
_statusCode: code,
}
}
/*
AwsKmsCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 3735622 | Certificate type not supported for create operation. |
| 3735645 | You cannot specify a value for serial as it is generated automatically. |
| 3735657 | Specifying \\\"-subtype\\\" when creating a certificate is not supported. |
| 3735664 | Specified key size is not supported in FIPS mode. |
| 3735665 | Specified hash function is not supported in FIPS mode. |
| 3735700 | Specified key size is not supported. |
| 65536600 | Nodes are out of quorum. |
| 65537518 | Failed to find a LIF with Cluster role on node. One or more nodes may be out of quorum. |
| 65537900 | Failed to enable the Amazon Web Service Key Management Service for an SVM due to an invalid secret access key. |
| 65537901 | The Amazon Web Service Key Management Service (AWSKMS) cannot be enabled because all nodes in the cluster are not running a version that supports the AWSKMS feature. |
| 65537906 | Failed to store the secret access key. |
| 65537907 | The Amazon Web Service Key Management Service is disabled on the cluster. For further assistance, contact technical support. |
| 65537908 | The Amazon Web Service Key Management Service is not supported for the admin SVM. |
| 65537910 | Failed to configure Amazon Web Service Key Management Service for an SVM because a key manager has already been configured for the SVM. |
| 65537911 | The Amazon Web Service Key Management Service is not supported in MetroCluster configurations. |
| 65537912 | The Amazon Web Service Key Management Service cannot be configured for an SVM because one or more volume encryption keys of the SVM are stored on the admin SVM. |
| 65537926 | The Amazon Web Service Key Management Service is not configured for this SVM. |
*/
type AwsKmsCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the aws kms create default response
func (o *AwsKmsCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this aws kms create default response has a 2xx status code
func (o *AwsKmsCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this aws kms create default response has a 3xx status code
func (o *AwsKmsCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this aws kms create default response has a 4xx status code
func (o *AwsKmsCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this aws kms create default response has a 5xx status code
func (o *AwsKmsCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this aws kms create default response a status code equal to that given
func (o *AwsKmsCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AwsKmsCreateDefault) Error() string {
return fmt.Sprintf("[POST /security/aws-kms][%d] aws_kms_create default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsCreateDefault) String() string {
return fmt.Sprintf("[POST /security/aws-kms][%d] aws_kms_create default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AwsKmsCreateDefault) 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_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_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"
)
// NewAwsKmsCreateParams creates a new AwsKmsCreateParams 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 NewAwsKmsCreateParams() *AwsKmsCreateParams {
return &AwsKmsCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewAwsKmsCreateParamsWithTimeout creates a new AwsKmsCreateParams object
// with the ability to set a timeout on a request.
func NewAwsKmsCreateParamsWithTimeout(timeout time.Duration) *AwsKmsCreateParams {
return &AwsKmsCreateParams{
timeout: timeout,
}
}
// NewAwsKmsCreateParamsWithContext creates a new AwsKmsCreateParams object
// with the ability to set a context for a request.
func NewAwsKmsCreateParamsWithContext(ctx context.Context) *AwsKmsCreateParams {
return &AwsKmsCreateParams{
Context: ctx,
}
}
// NewAwsKmsCreateParamsWithHTTPClient creates a new AwsKmsCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewAwsKmsCreateParamsWithHTTPClient(client *http.Client) *AwsKmsCreateParams {
return &AwsKmsCreateParams{
HTTPClient: client,
}
}
/*
AwsKmsCreateParams contains all the parameters to send to the API endpoint
for the aws kms create operation.
Typically these are written to a http.Request.
*/
type AwsKmsCreateParams struct {
/* Info.
Info specification
*/
Info *models.AwsKms
/* 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 aws kms create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AwsKmsCreateParams) WithDefaults() *AwsKmsCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the aws kms create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AwsKmsCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := AwsKmsCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the aws kms create params
func (o *AwsKmsCreateParams) WithTimeout(timeout time.Duration) *AwsKmsCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the aws kms create params
func (o *AwsKmsCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the aws kms create params
func (o *AwsKmsCreateParams) WithContext(ctx context.Context) *AwsKmsCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the aws kms create params
func (o *AwsKmsCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the aws kms create params
func (o *AwsKmsCreateParams) WithHTTPClient(client *http.Client) *AwsKmsCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the aws kms create params
func (o *AwsKmsCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the aws kms create params
func (o *AwsKmsCreateParams) WithInfo(info *models.AwsKms) *AwsKmsCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the aws kms create params
func (o *AwsKmsCreateParams) SetInfo(info *models.AwsKms) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the aws kms create params
func (o *AwsKmsCreateParams) WithReturnRecords(returnRecords *bool) *AwsKmsCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the aws kms create params
func (o *AwsKmsCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *AwsKmsCreateParams) 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/aws_kms_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package security
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// NewAwsKmsCollectionGetParams creates a new AwsKmsCollectionGetParams 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 NewAwsKmsCollectionGetParams() *AwsKmsCollectionGetParams {
return &AwsKmsCollectionGetParams{
requestTimeout: cr.DefaultTimeout,
}
}
// NewAwsKmsCollectionGetParamsWithTimeout creates a new AwsKmsCollectionGetParams object
// with the ability to set a timeout on a request.
func NewAwsKmsCollectionGetParamsWithTimeout(timeout time.Duration) *AwsKmsCollectionGetParams {
return &AwsKmsCollectionGetParams{
requestTimeout: timeout,
}
}
// NewAwsKmsCollectionGetParamsWithContext creates a new AwsKmsCollectionGetParams object
// with the ability to set a context for a request.
func NewAwsKmsCollectionGetParamsWithContext(ctx context.Context) *AwsKmsCollectionGetParams {
return &AwsKmsCollectionGetParams{
Context: ctx,
}
}
// NewAwsKmsCollectionGetParamsWithHTTPClient creates a new AwsKmsCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewAwsKmsCollectionGetParamsWithHTTPClient(client *http.Client) *AwsKmsCollectionGetParams {
return &AwsKmsCollectionGetParams{
HTTPClient: client,
}
}
/*
AwsKmsCollectionGetParams contains all the parameters to send to the API endpoint
for the aws kms collection get operation.
Typically these are written to a http.Request.
*/
type AwsKmsCollectionGetParams struct {
/* AccessKeyID.
Filter by access_key_id
*/
AccessKeyID *string
/* AmazonReachabilityCode.
Filter by amazon_reachability.code
*/
AmazonReachabilityCode *string
/* AmazonReachabilityMessage.
Filter by amazon_reachability.message
*/
AmazonReachabilityMessage *string
/* AmazonReachabilityReachable.
Filter by amazon_reachability.reachable
*/
AmazonReachabilityReachable *bool
/* DefaultDomain.
Filter by default_domain
*/
DefaultDomain *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
/* EncryptionContext.
Filter by encryption_context
*/
EncryptionContext *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Host.
Filter by host
*/
Host *string
/* KeyID.
Filter by key_id
*/
KeyID *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
/* PollingPeriod.
Filter by polling_period
*/
PollingPeriod *int64
/* Port.
Filter by port
*/
Port *int64
/* 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
/* Region.
Filter by region
*/
Region *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
/* Service.
Filter by service
*/
Service *string
/* SkipVerify.
Filter by skip_verify
*/
SkipVerify *bool
/* StateClusterState.
Filter by state.cluster_state
*/
StateClusterState *bool
/* StateCode.
Filter by state.code
*/
StateCode *string
/* StateMessage.
Filter by state.message
*/
StateMessage *string
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* Timeout.
Filter by timeout
*/
Timeout *int64
/* UUID.
Filter by uuid
*/
UUID *string
/* Verify.
Filter by verify
*/
Verify *bool
/* VerifyHost.
Filter by verify_host
*/
VerifyHost *bool
/* VerifyIP.
Filter by verify_ip
*/
VerifyIP *bool
requestTimeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the aws kms collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AwsKmsCollectionGetParams) WithDefaults() *AwsKmsCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the aws kms collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AwsKmsCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := AwsKmsCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.requestTimeout = o.requestTimeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithRequestTimeout adds the timeout to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithRequestTimeout(timeout time.Duration) *AwsKmsCollectionGetParams {
o.SetRequestTimeout(timeout)
return o
}
// SetRequestTimeout adds the timeout to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetRequestTimeout(timeout time.Duration) {
o.requestTimeout = timeout
}
// WithContext adds the context to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithContext(ctx context.Context) *AwsKmsCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithHTTPClient(client *http.Client) *AwsKmsCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccessKeyID adds the accessKeyID to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithAccessKeyID(accessKeyID *string) *AwsKmsCollectionGetParams {
o.SetAccessKeyID(accessKeyID)
return o
}
// SetAccessKeyID adds the accessKeyId to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetAccessKeyID(accessKeyID *string) {
o.AccessKeyID = accessKeyID
}
// WithAmazonReachabilityCode adds the amazonReachabilityCode to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithAmazonReachabilityCode(amazonReachabilityCode *string) *AwsKmsCollectionGetParams {
o.SetAmazonReachabilityCode(amazonReachabilityCode)
return o
}
// SetAmazonReachabilityCode adds the amazonReachabilityCode to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetAmazonReachabilityCode(amazonReachabilityCode *string) {
o.AmazonReachabilityCode = amazonReachabilityCode
}
// WithAmazonReachabilityMessage adds the amazonReachabilityMessage to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithAmazonReachabilityMessage(amazonReachabilityMessage *string) *AwsKmsCollectionGetParams {
o.SetAmazonReachabilityMessage(amazonReachabilityMessage)
return o
}
// SetAmazonReachabilityMessage adds the amazonReachabilityMessage to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetAmazonReachabilityMessage(amazonReachabilityMessage *string) {
o.AmazonReachabilityMessage = amazonReachabilityMessage
}
// WithAmazonReachabilityReachable adds the amazonReachabilityReachable to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithAmazonReachabilityReachable(amazonReachabilityReachable *bool) *AwsKmsCollectionGetParams {
o.SetAmazonReachabilityReachable(amazonReachabilityReachable)
return o
}
// SetAmazonReachabilityReachable adds the amazonReachabilityReachable to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetAmazonReachabilityReachable(amazonReachabilityReachable *bool) {
o.AmazonReachabilityReachable = amazonReachabilityReachable
}
// WithDefaultDomain adds the defaultDomain to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithDefaultDomain(defaultDomain *string) *AwsKmsCollectionGetParams {
o.SetDefaultDomain(defaultDomain)
return o
}
// SetDefaultDomain adds the defaultDomain to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetDefaultDomain(defaultDomain *string) {
o.DefaultDomain = defaultDomain
}
// WithEkmipReachabilityCode adds the ekmipReachabilityCode to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithEkmipReachabilityCode(ekmipReachabilityCode *string) *AwsKmsCollectionGetParams {
o.SetEkmipReachabilityCode(ekmipReachabilityCode)
return o
}
// SetEkmipReachabilityCode adds the ekmipReachabilityCode to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetEkmipReachabilityCode(ekmipReachabilityCode *string) {
o.EkmipReachabilityCode = ekmipReachabilityCode
}
// WithEkmipReachabilityMessage adds the ekmipReachabilityMessage to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithEkmipReachabilityMessage(ekmipReachabilityMessage *string) *AwsKmsCollectionGetParams {
o.SetEkmipReachabilityMessage(ekmipReachabilityMessage)
return o
}
// SetEkmipReachabilityMessage adds the ekmipReachabilityMessage to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetEkmipReachabilityMessage(ekmipReachabilityMessage *string) {
o.EkmipReachabilityMessage = ekmipReachabilityMessage
}
// WithEkmipReachabilityNodeName adds the ekmipReachabilityNodeName to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithEkmipReachabilityNodeName(ekmipReachabilityNodeName *string) *AwsKmsCollectionGetParams {
o.SetEkmipReachabilityNodeName(ekmipReachabilityNodeName)
return o
}
// SetEkmipReachabilityNodeName adds the ekmipReachabilityNodeName to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetEkmipReachabilityNodeName(ekmipReachabilityNodeName *string) {
o.EkmipReachabilityNodeName = ekmipReachabilityNodeName
}
// WithEkmipReachabilityNodeUUID adds the ekmipReachabilityNodeUUID to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID *string) *AwsKmsCollectionGetParams {
o.SetEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID)
return o
}
// SetEkmipReachabilityNodeUUID adds the ekmipReachabilityNodeUuid to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetEkmipReachabilityNodeUUID(ekmipReachabilityNodeUUID *string) {
o.EkmipReachabilityNodeUUID = ekmipReachabilityNodeUUID
}
// WithEkmipReachabilityReachable adds the ekmipReachabilityReachable to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithEkmipReachabilityReachable(ekmipReachabilityReachable *bool) *AwsKmsCollectionGetParams {
o.SetEkmipReachabilityReachable(ekmipReachabilityReachable)
return o
}
// SetEkmipReachabilityReachable adds the ekmipReachabilityReachable to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetEkmipReachabilityReachable(ekmipReachabilityReachable *bool) {
o.EkmipReachabilityReachable = ekmipReachabilityReachable
}
// WithEncryptionContext adds the encryptionContext to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithEncryptionContext(encryptionContext *string) *AwsKmsCollectionGetParams {
o.SetEncryptionContext(encryptionContext)
return o
}
// SetEncryptionContext adds the encryptionContext to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetEncryptionContext(encryptionContext *string) {
o.EncryptionContext = encryptionContext
}
// WithFields adds the fields to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithFields(fields []string) *AwsKmsCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithHost adds the host to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithHost(host *string) *AwsKmsCollectionGetParams {
o.SetHost(host)
return o
}
// SetHost adds the host to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetHost(host *string) {
o.Host = host
}
// WithKeyID adds the keyID to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithKeyID(keyID *string) *AwsKmsCollectionGetParams {
o.SetKeyID(keyID)
return o
}
// SetKeyID adds the keyId to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetKeyID(keyID *string) {
o.KeyID = keyID
}
// WithMaxRecords adds the maxRecords to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithMaxRecords(maxRecords *int64) *AwsKmsCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithOrderBy(orderBy []string) *AwsKmsCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPollingPeriod adds the pollingPeriod to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithPollingPeriod(pollingPeriod *int64) *AwsKmsCollectionGetParams {
o.SetPollingPeriod(pollingPeriod)
return o
}
// SetPollingPeriod adds the pollingPeriod to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetPollingPeriod(pollingPeriod *int64) {
o.PollingPeriod = pollingPeriod
}
// WithPort adds the port to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithPort(port *int64) *AwsKmsCollectionGetParams {
o.SetPort(port)
return o
}
// SetPort adds the port to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetPort(port *int64) {
o.Port = port
}
// WithProxyHost adds the proxyHost to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithProxyHost(proxyHost *string) *AwsKmsCollectionGetParams {
o.SetProxyHost(proxyHost)
return o
}
// SetProxyHost adds the proxyHost to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetProxyHost(proxyHost *string) {
o.ProxyHost = proxyHost
}
// WithProxyPort adds the proxyPort to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithProxyPort(proxyPort *int64) *AwsKmsCollectionGetParams {
o.SetProxyPort(proxyPort)
return o
}
// SetProxyPort adds the proxyPort to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetProxyPort(proxyPort *int64) {
o.ProxyPort = proxyPort
}
// WithProxyType adds the proxyType to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithProxyType(proxyType *string) *AwsKmsCollectionGetParams {
o.SetProxyType(proxyType)
return o
}
// SetProxyType adds the proxyType to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetProxyType(proxyType *string) {
o.ProxyType = proxyType
}
// WithProxyUsername adds the proxyUsername to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithProxyUsername(proxyUsername *string) *AwsKmsCollectionGetParams {
o.SetProxyUsername(proxyUsername)
return o
}
// SetProxyUsername adds the proxyUsername to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetProxyUsername(proxyUsername *string) {
o.ProxyUsername = proxyUsername
}
// WithRegion adds the region to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithRegion(region *string) *AwsKmsCollectionGetParams {
o.SetRegion(region)
return o
}
// SetRegion adds the region to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetRegion(region *string) {
o.Region = region
}
// WithReturnRecords adds the returnRecords to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithReturnRecords(returnRecords *bool) *AwsKmsCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *AwsKmsCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithScope adds the scope to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithScope(scope *string) *AwsKmsCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WithService adds the service to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithService(service *string) *AwsKmsCollectionGetParams {
o.SetService(service)
return o
}
// SetService adds the service to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetService(service *string) {
o.Service = service
}
// WithSkipVerify adds the skipVerify to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithSkipVerify(skipVerify *bool) *AwsKmsCollectionGetParams {
o.SetSkipVerify(skipVerify)
return o
}
// SetSkipVerify adds the skipVerify to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetSkipVerify(skipVerify *bool) {
o.SkipVerify = skipVerify
}
// WithStateClusterState adds the stateClusterState to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithStateClusterState(stateClusterState *bool) *AwsKmsCollectionGetParams {
o.SetStateClusterState(stateClusterState)
return o
}
// SetStateClusterState adds the stateClusterState to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetStateClusterState(stateClusterState *bool) {
o.StateClusterState = stateClusterState
}
// WithStateCode adds the stateCode to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithStateCode(stateCode *string) *AwsKmsCollectionGetParams {
o.SetStateCode(stateCode)
return o
}
// SetStateCode adds the stateCode to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetStateCode(stateCode *string) {
o.StateCode = stateCode
}
// WithStateMessage adds the stateMessage to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithStateMessage(stateMessage *string) *AwsKmsCollectionGetParams {
o.SetStateMessage(stateMessage)
return o
}
// SetStateMessage adds the stateMessage to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetStateMessage(stateMessage *string) {
o.StateMessage = stateMessage
}
// WithSvmName adds the svmName to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithSvmName(svmName *string) *AwsKmsCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithSvmUUID(svmUUID *string) *AwsKmsCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithTimeout adds the timeout to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithTimeout(timeout *int64) *AwsKmsCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetTimeout(timeout *int64) {
o.Timeout = timeout
}
// WithUUID adds the uuid to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithUUID(uuid *string) *AwsKmsCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WithVerify adds the verify to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithVerify(verify *bool) *AwsKmsCollectionGetParams {
o.SetVerify(verify)
return o
}
// SetVerify adds the verify to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetVerify(verify *bool) {
o.Verify = verify
}
// WithVerifyHost adds the verifyHost to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithVerifyHost(verifyHost *bool) *AwsKmsCollectionGetParams {
o.SetVerifyHost(verifyHost)
return o
}
// SetVerifyHost adds the verifyHost to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetVerifyHost(verifyHost *bool) {
o.VerifyHost = verifyHost
}
// WithVerifyIP adds the verifyIP to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) WithVerifyIP(verifyIP *bool) *AwsKmsCollectionGetParams {
o.SetVerifyIP(verifyIP)
return o
}
// SetVerifyIP adds the verifyIp to the aws kms collection get params
func (o *AwsKmsCollectionGetParams) SetVerifyIP(verifyIP *bool) {
o.VerifyIP = verifyIP
}
// WriteToRequest writes these params to a swagger request
func (o *AwsKmsCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.requestTimeout); err != nil {
return err
}
var res []error
if o.AccessKeyID != nil {
// query param access_key_id
var qrAccessKeyID string
if o.AccessKeyID != nil {
qrAccessKeyID = *o.AccessKeyID
}
qAccessKeyID := qrAccessKeyID
if qAccessKeyID != "" {
if err := r.SetQueryParam("access_key_id", qAccessKeyID); err != nil {
return err
}
}
}
if o.AmazonReachabilityCode != nil {
// query param amazon_reachability.code
var qrAmazonReachabilityCode string
if o.AmazonReachabilityCode != nil {
qrAmazonReachabilityCode = *o.AmazonReachabilityCode
}
qAmazonReachabilityCode := qrAmazonReachabilityCode
if qAmazonReachabilityCode != "" {
if err := r.SetQueryParam("amazon_reachability.code", qAmazonReachabilityCode); err != nil {
return err
}
}
}
if o.AmazonReachabilityMessage != nil {
// query param amazon_reachability.message
var qrAmazonReachabilityMessage string
if o.AmazonReachabilityMessage != nil {
qrAmazonReachabilityMessage = *o.AmazonReachabilityMessage
}
qAmazonReachabilityMessage := qrAmazonReachabilityMessage
if qAmazonReachabilityMessage != "" {
if err := r.SetQueryParam("amazon_reachability.message", qAmazonReachabilityMessage); err != nil {
return err
}
}
}
if o.AmazonReachabilityReachable != nil {
// query param amazon_reachability.reachable
var qrAmazonReachabilityReachable bool
if o.AmazonReachabilityReachable != nil {
qrAmazonReachabilityReachable = *o.AmazonReachabilityReachable
}
qAmazonReachabilityReachable := swag.FormatBool(qrAmazonReachabilityReachable)
if qAmazonReachabilityReachable != "" {
if err := r.SetQueryParam("amazon_reachability.reachable", qAmazonReachabilityReachable); err != nil {
return err
}
}
}
if o.DefaultDomain != nil {
// query param default_domain
var qrDefaultDomain string
if o.DefaultDomain != nil {
qrDefaultDomain = *o.DefaultDomain
}
qDefaultDomain := qrDefaultDomain
if qDefaultDomain != "" {
if err := r.SetQueryParam("default_domain", qDefaultDomain); 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.EncryptionContext != nil {
// query param encryption_context
var qrEncryptionContext string
if o.EncryptionContext != nil {
qrEncryptionContext = *o.EncryptionContext
}
qEncryptionContext := qrEncryptionContext
if qEncryptionContext != "" {
if err := r.SetQueryParam("encryption_context", qEncryptionContext); 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.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.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.PollingPeriod != nil {
// query param polling_period
var qrPollingPeriod int64
if o.PollingPeriod != nil {
qrPollingPeriod = *o.PollingPeriod
}
qPollingPeriod := swag.FormatInt64(qrPollingPeriod)
if qPollingPeriod != "" {
if err := r.SetQueryParam("polling_period", qPollingPeriod); err != nil {
return err
}
}
}
if o.Port != nil {
// query param port
var qrPort int64
if o.Port != nil {
qrPort = *o.Port
}
qPort := swag.FormatInt64(qrPort)
if qPort != "" {
if err := r.SetQueryParam("port", qPort); err != nil {
return err
}
}
}
if o.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.Region != nil {
// query param region
var qrRegion string
if o.Region != nil {
qrRegion = *o.Region
}
qRegion := qrRegion
if qRegion != "" {
if err := r.SetQueryParam("region", qRegion); 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.Service != nil {
// query param service
var qrService string
if o.Service != nil {
qrService = *o.Service
}
qService := qrService
if qService != "" {
if err := r.SetQueryParam("service", qService); 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_audit_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_audit_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"
)
// SecurityAuditModifyReader is a Reader for the SecurityAuditModify structure.
type SecurityAuditModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityAuditModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityAuditModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityAuditModifyDefault(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
}
}
// NewSecurityAuditModifyOK creates a SecurityAuditModifyOK with default headers values
func NewSecurityAuditModifyOK() *SecurityAuditModifyOK {
return &SecurityAuditModifyOK{}
}
/*
SecurityAuditModifyOK describes a response with status code 200, with default header values.
OK
*/
type SecurityAuditModifyOK struct {
Payload *models.SecurityAudit
}
// IsSuccess returns true when this security audit modify o k response has a 2xx status code
func (o *SecurityAuditModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security audit modify o k response has a 3xx status code
func (o *SecurityAuditModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security audit modify o k response has a 4xx status code
func (o *SecurityAuditModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security audit modify o k response has a 5xx status code
func (o *SecurityAuditModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this security audit modify o k response a status code equal to that given
func (o *SecurityAuditModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityAuditModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/audit][%d] securityAuditModifyOK %+v", 200, o.Payload)
}
func (o *SecurityAuditModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/audit][%d] securityAuditModifyOK %+v", 200, o.Payload)
}
func (o *SecurityAuditModifyOK) GetPayload() *models.SecurityAudit {
return o.Payload
}
func (o *SecurityAuditModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecurityAudit)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityAuditModifyDefault creates a SecurityAuditModifyDefault with default headers values
func NewSecurityAuditModifyDefault(code int) *SecurityAuditModifyDefault {
return &SecurityAuditModifyDefault{
_statusCode: code,
}
}
/*
SecurityAuditModifyDefault describes a response with status code -1, with default header values.
Error
*/
type SecurityAuditModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security audit modify default response
func (o *SecurityAuditModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security audit modify default response has a 2xx status code
func (o *SecurityAuditModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security audit modify default response has a 3xx status code
func (o *SecurityAuditModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security audit modify default response has a 4xx status code
func (o *SecurityAuditModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security audit modify default response has a 5xx status code
func (o *SecurityAuditModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security audit modify default response a status code equal to that given
func (o *SecurityAuditModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityAuditModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/audit][%d] security_audit_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecurityAuditModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/audit][%d] security_audit_modify default %+v", o._statusCode, o.Payload)
}
func (o *SecurityAuditModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityAuditModifyDefault) 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_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// AzureKeyVaultModifyReader is a Reader for the AzureKeyVaultModify structure.
type AzureKeyVaultModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AzureKeyVaultModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAzureKeyVaultModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
case 202:
result := NewAzureKeyVaultModifyAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAzureKeyVaultModifyDefault(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
}
}
// NewAzureKeyVaultModifyOK creates a AzureKeyVaultModifyOK with default headers values
func NewAzureKeyVaultModifyOK() *AzureKeyVaultModifyOK {
return &AzureKeyVaultModifyOK{}
}
/*
AzureKeyVaultModifyOK describes a response with status code 200, with default header values.
OK
*/
type AzureKeyVaultModifyOK struct {
}
// IsSuccess returns true when this azure key vault modify o k response has a 2xx status code
func (o *AzureKeyVaultModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this azure key vault modify o k response has a 3xx status code
func (o *AzureKeyVaultModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this azure key vault modify o k response has a 4xx status code
func (o *AzureKeyVaultModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this azure key vault modify o k response has a 5xx status code
func (o *AzureKeyVaultModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this azure key vault modify o k response a status code equal to that given
func (o *AzureKeyVaultModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *AzureKeyVaultModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/azure-key-vaults/{uuid}][%d] azureKeyVaultModifyOK ", 200)
}
func (o *AzureKeyVaultModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/azure-key-vaults/{uuid}][%d] azureKeyVaultModifyOK ", 200)
}
func (o *AzureKeyVaultModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAzureKeyVaultModifyAccepted creates a AzureKeyVaultModifyAccepted with default headers values
func NewAzureKeyVaultModifyAccepted() *AzureKeyVaultModifyAccepted {
return &AzureKeyVaultModifyAccepted{}
}
/*
AzureKeyVaultModifyAccepted describes a response with status code 202, with default header values.
Accepted
*/
type AzureKeyVaultModifyAccepted struct {
}
// IsSuccess returns true when this azure key vault modify accepted response has a 2xx status code
func (o *AzureKeyVaultModifyAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this azure key vault modify accepted response has a 3xx status code
func (o *AzureKeyVaultModifyAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this azure key vault modify accepted response has a 4xx status code
func (o *AzureKeyVaultModifyAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this azure key vault modify accepted response has a 5xx status code
func (o *AzureKeyVaultModifyAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this azure key vault modify accepted response a status code equal to that given
func (o *AzureKeyVaultModifyAccepted) IsCode(code int) bool {
return code == 202
}
func (o *AzureKeyVaultModifyAccepted) Error() string {
return fmt.Sprintf("[PATCH /security/azure-key-vaults/{uuid}][%d] azureKeyVaultModifyAccepted ", 202)
}
func (o *AzureKeyVaultModifyAccepted) String() string {
return fmt.Sprintf("[PATCH /security/azure-key-vaults/{uuid}][%d] azureKeyVaultModifyAccepted ", 202)
}
func (o *AzureKeyVaultModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAzureKeyVaultModifyDefault creates a AzureKeyVaultModifyDefault with default headers values
func NewAzureKeyVaultModifyDefault(code int) *AzureKeyVaultModifyDefault {
return &AzureKeyVaultModifyDefault{
_statusCode: code,
}
}
/*
AzureKeyVaultModifyDefault 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. |
| 65537504 | Internal error. Failed to store configuration in internal database. |
| 65537517 | The field \"client_secret\" must be specified. |
| 65537540 | Invalid client secret. |
| 65537541 | No inputs were provided for the patch request. |
| 65537547 | One or more volume encryption keys for encrypted volumes of this data SVM are stored in the key manager configured for the admin SVM. Use the REST API POST method to migrate this data SVM's keys from the admin SVM's key manager to this data SVM's key manager before running the rekey operation. |
| 65537573 | Invalid client certificate. |
| 65537577 | The AKV certificate authentication method cannot be configured for the given SVM as not all nodes in the cluster support the AKV certificate authentication. |
*/
type AzureKeyVaultModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the azure key vault modify default response
func (o *AzureKeyVaultModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this azure key vault modify default response has a 2xx status code
func (o *AzureKeyVaultModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this azure key vault modify default response has a 3xx status code
func (o *AzureKeyVaultModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this azure key vault modify default response has a 4xx status code
func (o *AzureKeyVaultModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this azure key vault modify default response has a 5xx status code
func (o *AzureKeyVaultModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this azure key vault modify default response a status code equal to that given
func (o *AzureKeyVaultModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AzureKeyVaultModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/azure-key-vaults/{uuid}][%d] azure_key_vault_modify default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/azure-key-vaults/{uuid}][%d] azure_key_vault_modify default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AzureKeyVaultModifyDefault) 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_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/publickey_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"
)
// NewPublickeyModifyParams creates a new PublickeyModifyParams 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 NewPublickeyModifyParams() *PublickeyModifyParams {
return &PublickeyModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewPublickeyModifyParamsWithTimeout creates a new PublickeyModifyParams object
// with the ability to set a timeout on a request.
func NewPublickeyModifyParamsWithTimeout(timeout time.Duration) *PublickeyModifyParams {
return &PublickeyModifyParams{
timeout: timeout,
}
}
// NewPublickeyModifyParamsWithContext creates a new PublickeyModifyParams object
// with the ability to set a context for a request.
func NewPublickeyModifyParamsWithContext(ctx context.Context) *PublickeyModifyParams {
return &PublickeyModifyParams{
Context: ctx,
}
}
// NewPublickeyModifyParamsWithHTTPClient creates a new PublickeyModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewPublickeyModifyParamsWithHTTPClient(client *http.Client) *PublickeyModifyParams {
return &PublickeyModifyParams{
HTTPClient: client,
}
}
/*
PublickeyModifyParams contains all the parameters to send to the API endpoint
for the publickey modify operation.
Typically these are written to a http.Request.
*/
type PublickeyModifyParams struct {
/* AccountName.
User account name
*/
AccountName string
/* Index.
Index number for the public key (where there are multiple keys for the same account).
*/
Index int64
/* Info.
Public key modification details.
*/
Info *models.Publickey
/* OwnerUUID.
Account owner UUID
*/
OwnerUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the publickey modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PublickeyModifyParams) WithDefaults() *PublickeyModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the publickey modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PublickeyModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the publickey modify params
func (o *PublickeyModifyParams) WithTimeout(timeout time.Duration) *PublickeyModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the publickey modify params
func (o *PublickeyModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the publickey modify params
func (o *PublickeyModifyParams) WithContext(ctx context.Context) *PublickeyModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the publickey modify params
func (o *PublickeyModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the publickey modify params
func (o *PublickeyModifyParams) WithHTTPClient(client *http.Client) *PublickeyModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the publickey modify params
func (o *PublickeyModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccountName adds the accountName to the publickey modify params
func (o *PublickeyModifyParams) WithAccountName(accountName string) *PublickeyModifyParams {
o.SetAccountName(accountName)
return o
}
// SetAccountName adds the accountName to the publickey modify params
func (o *PublickeyModifyParams) SetAccountName(accountName string) {
o.AccountName = accountName
}
// WithIndex adds the index to the publickey modify params
func (o *PublickeyModifyParams) WithIndex(index int64) *PublickeyModifyParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the publickey modify params
func (o *PublickeyModifyParams) SetIndex(index int64) {
o.Index = index
}
// WithInfo adds the info to the publickey modify params
func (o *PublickeyModifyParams) WithInfo(info *models.Publickey) *PublickeyModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the publickey modify params
func (o *PublickeyModifyParams) SetInfo(info *models.Publickey) {
o.Info = info
}
// WithOwnerUUID adds the ownerUUID to the publickey modify params
func (o *PublickeyModifyParams) WithOwnerUUID(ownerUUID string) *PublickeyModifyParams {
o.SetOwnerUUID(ownerUUID)
return o
}
// SetOwnerUUID adds the ownerUuid to the publickey modify params
func (o *PublickeyModifyParams) SetOwnerUUID(ownerUUID string) {
o.OwnerUUID = ownerUUID
}
// WriteToRequest writes these params to a swagger request
func (o *PublickeyModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param account.name
if err := r.SetPathParam("account.name", o.AccountName); err != nil {
return err
}
// path param index
if err := r.SetPathParam("index", swag.FormatInt64(o.Index)); err != nil {
return err
}
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
// path param 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/audit_log_forwarding_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/audit_log_forwarding_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package security
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
"github.com/netapp/trident/storage_drivers/ontap/api/rest/models"
)
// AuditLogForwardingGetReader is a Reader for the AuditLogForwardingGet structure.
type AuditLogForwardingGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AuditLogForwardingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAuditLogForwardingGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAuditLogForwardingGetDefault(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
}
}
// NewAuditLogForwardingGetOK creates a AuditLogForwardingGetOK with default headers values
func NewAuditLogForwardingGetOK() *AuditLogForwardingGetOK {
return &AuditLogForwardingGetOK{}
}
/*
AuditLogForwardingGetOK describes a response with status code 200, with default header values.
OK
*/
type AuditLogForwardingGetOK struct {
Payload *models.SecurityAuditLogForwardResponse
}
// IsSuccess returns true when this audit log forwarding get o k response has a 2xx status code
func (o *AuditLogForwardingGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this audit log forwarding get o k response has a 3xx status code
func (o *AuditLogForwardingGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this audit log forwarding get o k response has a 4xx status code
func (o *AuditLogForwardingGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this audit log forwarding get o k response has a 5xx status code
func (o *AuditLogForwardingGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this audit log forwarding get o k response a status code equal to that given
func (o *AuditLogForwardingGetOK) IsCode(code int) bool {
return code == 200
}
func (o *AuditLogForwardingGetOK) Error() string {
return fmt.Sprintf("[GET /security/audit/destinations][%d] auditLogForwardingGetOK %+v", 200, o.Payload)
}
func (o *AuditLogForwardingGetOK) String() string {
return fmt.Sprintf("[GET /security/audit/destinations][%d] auditLogForwardingGetOK %+v", 200, o.Payload)
}
func (o *AuditLogForwardingGetOK) GetPayload() *models.SecurityAuditLogForwardResponse {
return o.Payload
}
func (o *AuditLogForwardingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecurityAuditLogForwardResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAuditLogForwardingGetDefault creates a AuditLogForwardingGetDefault with default headers values
func NewAuditLogForwardingGetDefault(code int) *AuditLogForwardingGetDefault {
return &AuditLogForwardingGetDefault{
_statusCode: code,
}
}
/*
AuditLogForwardingGetDefault describes a response with status code -1, with default header values.
error
*/
type AuditLogForwardingGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the audit log forwarding get default response
func (o *AuditLogForwardingGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this audit log forwarding get default response has a 2xx status code
func (o *AuditLogForwardingGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this audit log forwarding get default response has a 3xx status code
func (o *AuditLogForwardingGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this audit log forwarding get default response has a 4xx status code
func (o *AuditLogForwardingGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this audit log forwarding get default response has a 5xx status code
func (o *AuditLogForwardingGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this audit log forwarding get default response a status code equal to that given
func (o *AuditLogForwardingGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AuditLogForwardingGetDefault) Error() string {
return fmt.Sprintf("[GET /security/audit/destinations][%d] audit_log_forwarding_get default %+v", o._statusCode, o.Payload)
}
func (o *AuditLogForwardingGetDefault) String() string {
return fmt.Sprintf("[GET /security/audit/destinations][%d] audit_log_forwarding_get default %+v", o._statusCode, o.Payload)
}
func (o *AuditLogForwardingGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AuditLogForwardingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ErrorResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_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"
)
// NewSecurityKeyManagerCreateParams creates a new SecurityKeyManagerCreateParams 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 NewSecurityKeyManagerCreateParams() *SecurityKeyManagerCreateParams {
return &SecurityKeyManagerCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerCreateParamsWithTimeout creates a new SecurityKeyManagerCreateParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerCreateParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerCreateParams {
return &SecurityKeyManagerCreateParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerCreateParamsWithContext creates a new SecurityKeyManagerCreateParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerCreateParamsWithContext(ctx context.Context) *SecurityKeyManagerCreateParams {
return &SecurityKeyManagerCreateParams{
Context: ctx,
}
}
// NewSecurityKeyManagerCreateParamsWithHTTPClient creates a new SecurityKeyManagerCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerCreateParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerCreateParams {
return &SecurityKeyManagerCreateParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerCreateParams contains all the parameters to send to the API endpoint
for the security key manager create operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerCreateParams struct {
/* Info.
Info specification
*/
Info *models.SecurityKeyManager
/* 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 key manager create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerCreateParams) WithDefaults() *SecurityKeyManagerCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := SecurityKeyManagerCreateParams{
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 create params
func (o *SecurityKeyManagerCreateParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager create params
func (o *SecurityKeyManagerCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager create params
func (o *SecurityKeyManagerCreateParams) WithContext(ctx context.Context) *SecurityKeyManagerCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager create params
func (o *SecurityKeyManagerCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager create params
func (o *SecurityKeyManagerCreateParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager create params
func (o *SecurityKeyManagerCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the security key manager create params
func (o *SecurityKeyManagerCreateParams) WithInfo(info *models.SecurityKeyManager) *SecurityKeyManagerCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the security key manager create params
func (o *SecurityKeyManagerCreateParams) SetInfo(info *models.SecurityKeyManager) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the security key manager create params
func (o *SecurityKeyManagerCreateParams) WithReturnRecords(returnRecords *bool) *SecurityKeyManagerCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the security key manager create params
func (o *SecurityKeyManagerCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerCreateParams) 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_saml_sp_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_saml_sp_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"
)
// SecuritySamlSpGetReader is a Reader for the SecuritySamlSpGet structure.
type SecuritySamlSpGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecuritySamlSpGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecuritySamlSpGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecuritySamlSpGetDefault(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
}
}
// NewSecuritySamlSpGetOK creates a SecuritySamlSpGetOK with default headers values
func NewSecuritySamlSpGetOK() *SecuritySamlSpGetOK {
return &SecuritySamlSpGetOK{}
}
/*
SecuritySamlSpGetOK describes a response with status code 200, with default header values.
OK
*/
type SecuritySamlSpGetOK struct {
Payload *models.SecuritySamlSp
}
// IsSuccess returns true when this security saml sp get o k response has a 2xx status code
func (o *SecuritySamlSpGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security saml sp get o k response has a 3xx status code
func (o *SecuritySamlSpGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security saml sp get o k response has a 4xx status code
func (o *SecuritySamlSpGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security saml sp get o k response has a 5xx status code
func (o *SecuritySamlSpGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this security saml sp get o k response a status code equal to that given
func (o *SecuritySamlSpGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SecuritySamlSpGetOK) Error() string {
return fmt.Sprintf("[GET /security/authentication/cluster/saml-sp][%d] securitySamlSpGetOK %+v", 200, o.Payload)
}
func (o *SecuritySamlSpGetOK) String() string {
return fmt.Sprintf("[GET /security/authentication/cluster/saml-sp][%d] securitySamlSpGetOK %+v", 200, o.Payload)
}
func (o *SecuritySamlSpGetOK) GetPayload() *models.SecuritySamlSp {
return o.Payload
}
func (o *SecuritySamlSpGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecuritySamlSp)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecuritySamlSpGetDefault creates a SecuritySamlSpGetDefault with default headers values
func NewSecuritySamlSpGetDefault(code int) *SecuritySamlSpGetDefault {
return &SecuritySamlSpGetDefault{
_statusCode: code,
}
}
/*
SecuritySamlSpGetDefault describes a response with status code -1, with default header values.
Error
*/
type SecuritySamlSpGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security saml sp get default response
func (o *SecuritySamlSpGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security saml sp get default response has a 2xx status code
func (o *SecuritySamlSpGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security saml sp get default response has a 3xx status code
func (o *SecuritySamlSpGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security saml sp get default response has a 4xx status code
func (o *SecuritySamlSpGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security saml sp get default response has a 5xx status code
func (o *SecuritySamlSpGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security saml sp get default response a status code equal to that given
func (o *SecuritySamlSpGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecuritySamlSpGetDefault) Error() string {
return fmt.Sprintf("[GET /security/authentication/cluster/saml-sp][%d] security_saml_sp_get default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpGetDefault) String() string {
return fmt.Sprintf("[GET /security/authentication/cluster/saml-sp][%d] security_saml_sp_get default %+v", o._statusCode, o.Payload)
}
func (o *SecuritySamlSpGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecuritySamlSpGetDefault) 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_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_key_manager_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"
)
// NewSecurityKeyManagerCollectionGetParams creates a new SecurityKeyManagerCollectionGetParams 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 NewSecurityKeyManagerCollectionGetParams() *SecurityKeyManagerCollectionGetParams {
return &SecurityKeyManagerCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityKeyManagerCollectionGetParamsWithTimeout creates a new SecurityKeyManagerCollectionGetParams object
// with the ability to set a timeout on a request.
func NewSecurityKeyManagerCollectionGetParamsWithTimeout(timeout time.Duration) *SecurityKeyManagerCollectionGetParams {
return &SecurityKeyManagerCollectionGetParams{
timeout: timeout,
}
}
// NewSecurityKeyManagerCollectionGetParamsWithContext creates a new SecurityKeyManagerCollectionGetParams object
// with the ability to set a context for a request.
func NewSecurityKeyManagerCollectionGetParamsWithContext(ctx context.Context) *SecurityKeyManagerCollectionGetParams {
return &SecurityKeyManagerCollectionGetParams{
Context: ctx,
}
}
// NewSecurityKeyManagerCollectionGetParamsWithHTTPClient creates a new SecurityKeyManagerCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityKeyManagerCollectionGetParamsWithHTTPClient(client *http.Client) *SecurityKeyManagerCollectionGetParams {
return &SecurityKeyManagerCollectionGetParams{
HTTPClient: client,
}
}
/*
SecurityKeyManagerCollectionGetParams contains all the parameters to send to the API endpoint
for the security key manager collection get operation.
Typically these are written to a http.Request.
*/
type SecurityKeyManagerCollectionGetParams struct {
/* ExternalClientCertificateUUID.
Filter by external.client_certificate.uuid
*/
ExternalClientCertificateUUID *string
/* ExternalServerCaCertificatesUUID.
Filter by external.server_ca_certificates.uuid
*/
ExternalServerCaCertificatesUUID *string
/* ExternalServersSecondaryKeyServers.
Filter by external.servers.secondary_key_servers
*/
ExternalServersSecondaryKeyServers *string
/* ExternalServersServer.
Filter by external.servers.server
*/
ExternalServersServer *string
/* ExternalServersTimeout.
Filter by external.servers.timeout
*/
ExternalServersTimeout *int64
/* ExternalServersUsername.
Filter by external.servers.username
*/
ExternalServersUsername *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* IsDefaultDataAtRestEncryptionDisabled.
Filter by is_default_data_at_rest_encryption_disabled
*/
IsDefaultDataAtRestEncryptionDisabled *bool
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* OnboardEnabled.
Filter by onboard.enabled
*/
OnboardEnabled *bool
/* OnboardKeyBackup.
Filter by onboard.key_backup
*/
OnboardKeyBackup *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* Policy.
Filter by policy
*/
Policy *string
/* 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
/* StatusCode.
Filter by status.code
*/
StatusCode *int64
/* StatusMessage.
Filter by status.message
*/
StatusMessage *string
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* UUID.
Filter by uuid
*/
UUID *string
/* VolumeEncryptionCode.
Filter by volume_encryption.code
*/
VolumeEncryptionCode *int64
/* VolumeEncryptionMessage.
Filter by volume_encryption.message
*/
VolumeEncryptionMessage *string
/* VolumeEncryptionSupported.
Filter by volume_encryption.supported
*/
VolumeEncryptionSupported *bool
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security key manager collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerCollectionGetParams) WithDefaults() *SecurityKeyManagerCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security key manager collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityKeyManagerCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := SecurityKeyManagerCollectionGetParams{
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 collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithTimeout(timeout time.Duration) *SecurityKeyManagerCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithContext(ctx context.Context) *SecurityKeyManagerCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithHTTPClient(client *http.Client) *SecurityKeyManagerCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithExternalClientCertificateUUID adds the externalClientCertificateUUID to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithExternalClientCertificateUUID(externalClientCertificateUUID *string) *SecurityKeyManagerCollectionGetParams {
o.SetExternalClientCertificateUUID(externalClientCertificateUUID)
return o
}
// SetExternalClientCertificateUUID adds the externalClientCertificateUuid to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetExternalClientCertificateUUID(externalClientCertificateUUID *string) {
o.ExternalClientCertificateUUID = externalClientCertificateUUID
}
// WithExternalServerCaCertificatesUUID adds the externalServerCaCertificatesUUID to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithExternalServerCaCertificatesUUID(externalServerCaCertificatesUUID *string) *SecurityKeyManagerCollectionGetParams {
o.SetExternalServerCaCertificatesUUID(externalServerCaCertificatesUUID)
return o
}
// SetExternalServerCaCertificatesUUID adds the externalServerCaCertificatesUuid to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetExternalServerCaCertificatesUUID(externalServerCaCertificatesUUID *string) {
o.ExternalServerCaCertificatesUUID = externalServerCaCertificatesUUID
}
// WithExternalServersSecondaryKeyServers adds the externalServersSecondaryKeyServers to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithExternalServersSecondaryKeyServers(externalServersSecondaryKeyServers *string) *SecurityKeyManagerCollectionGetParams {
o.SetExternalServersSecondaryKeyServers(externalServersSecondaryKeyServers)
return o
}
// SetExternalServersSecondaryKeyServers adds the externalServersSecondaryKeyServers to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetExternalServersSecondaryKeyServers(externalServersSecondaryKeyServers *string) {
o.ExternalServersSecondaryKeyServers = externalServersSecondaryKeyServers
}
// WithExternalServersServer adds the externalServersServer to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithExternalServersServer(externalServersServer *string) *SecurityKeyManagerCollectionGetParams {
o.SetExternalServersServer(externalServersServer)
return o
}
// SetExternalServersServer adds the externalServersServer to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetExternalServersServer(externalServersServer *string) {
o.ExternalServersServer = externalServersServer
}
// WithExternalServersTimeout adds the externalServersTimeout to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithExternalServersTimeout(externalServersTimeout *int64) *SecurityKeyManagerCollectionGetParams {
o.SetExternalServersTimeout(externalServersTimeout)
return o
}
// SetExternalServersTimeout adds the externalServersTimeout to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetExternalServersTimeout(externalServersTimeout *int64) {
o.ExternalServersTimeout = externalServersTimeout
}
// WithExternalServersUsername adds the externalServersUsername to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithExternalServersUsername(externalServersUsername *string) *SecurityKeyManagerCollectionGetParams {
o.SetExternalServersUsername(externalServersUsername)
return o
}
// SetExternalServersUsername adds the externalServersUsername to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetExternalServersUsername(externalServersUsername *string) {
o.ExternalServersUsername = externalServersUsername
}
// WithFields adds the fields to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithFields(fields []string) *SecurityKeyManagerCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIsDefaultDataAtRestEncryptionDisabled adds the isDefaultDataAtRestEncryptionDisabled to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithIsDefaultDataAtRestEncryptionDisabled(isDefaultDataAtRestEncryptionDisabled *bool) *SecurityKeyManagerCollectionGetParams {
o.SetIsDefaultDataAtRestEncryptionDisabled(isDefaultDataAtRestEncryptionDisabled)
return o
}
// SetIsDefaultDataAtRestEncryptionDisabled adds the isDefaultDataAtRestEncryptionDisabled to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetIsDefaultDataAtRestEncryptionDisabled(isDefaultDataAtRestEncryptionDisabled *bool) {
o.IsDefaultDataAtRestEncryptionDisabled = isDefaultDataAtRestEncryptionDisabled
}
// WithMaxRecords adds the maxRecords to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithMaxRecords(maxRecords *int64) *SecurityKeyManagerCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOnboardEnabled adds the onboardEnabled to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithOnboardEnabled(onboardEnabled *bool) *SecurityKeyManagerCollectionGetParams {
o.SetOnboardEnabled(onboardEnabled)
return o
}
// SetOnboardEnabled adds the onboardEnabled to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetOnboardEnabled(onboardEnabled *bool) {
o.OnboardEnabled = onboardEnabled
}
// WithOnboardKeyBackup adds the onboardKeyBackup to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithOnboardKeyBackup(onboardKeyBackup *string) *SecurityKeyManagerCollectionGetParams {
o.SetOnboardKeyBackup(onboardKeyBackup)
return o
}
// SetOnboardKeyBackup adds the onboardKeyBackup to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetOnboardKeyBackup(onboardKeyBackup *string) {
o.OnboardKeyBackup = onboardKeyBackup
}
// WithOrderBy adds the orderBy to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithOrderBy(orderBy []string) *SecurityKeyManagerCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPolicy adds the policy to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithPolicy(policy *string) *SecurityKeyManagerCollectionGetParams {
o.SetPolicy(policy)
return o
}
// SetPolicy adds the policy to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetPolicy(policy *string) {
o.Policy = policy
}
// WithReturnRecords adds the returnRecords to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithReturnRecords(returnRecords *bool) *SecurityKeyManagerCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *SecurityKeyManagerCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithScope adds the scope to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithScope(scope *string) *SecurityKeyManagerCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WithStatusCode adds the statusCode to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithStatusCode(statusCode *int64) *SecurityKeyManagerCollectionGetParams {
o.SetStatusCode(statusCode)
return o
}
// SetStatusCode adds the statusCode to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetStatusCode(statusCode *int64) {
o.StatusCode = statusCode
}
// WithStatusMessage adds the statusMessage to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithStatusMessage(statusMessage *string) *SecurityKeyManagerCollectionGetParams {
o.SetStatusMessage(statusMessage)
return o
}
// SetStatusMessage adds the statusMessage to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetStatusMessage(statusMessage *string) {
o.StatusMessage = statusMessage
}
// WithSvmName adds the svmName to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithSvmName(svmName *string) *SecurityKeyManagerCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithSvmUUID(svmUUID *string) *SecurityKeyManagerCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithUUID(uuid *string) *SecurityKeyManagerCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WithVolumeEncryptionCode adds the volumeEncryptionCode to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithVolumeEncryptionCode(volumeEncryptionCode *int64) *SecurityKeyManagerCollectionGetParams {
o.SetVolumeEncryptionCode(volumeEncryptionCode)
return o
}
// SetVolumeEncryptionCode adds the volumeEncryptionCode to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetVolumeEncryptionCode(volumeEncryptionCode *int64) {
o.VolumeEncryptionCode = volumeEncryptionCode
}
// WithVolumeEncryptionMessage adds the volumeEncryptionMessage to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithVolumeEncryptionMessage(volumeEncryptionMessage *string) *SecurityKeyManagerCollectionGetParams {
o.SetVolumeEncryptionMessage(volumeEncryptionMessage)
return o
}
// SetVolumeEncryptionMessage adds the volumeEncryptionMessage to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetVolumeEncryptionMessage(volumeEncryptionMessage *string) {
o.VolumeEncryptionMessage = volumeEncryptionMessage
}
// WithVolumeEncryptionSupported adds the volumeEncryptionSupported to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) WithVolumeEncryptionSupported(volumeEncryptionSupported *bool) *SecurityKeyManagerCollectionGetParams {
o.SetVolumeEncryptionSupported(volumeEncryptionSupported)
return o
}
// SetVolumeEncryptionSupported adds the volumeEncryptionSupported to the security key manager collection get params
func (o *SecurityKeyManagerCollectionGetParams) SetVolumeEncryptionSupported(volumeEncryptionSupported *bool) {
o.VolumeEncryptionSupported = volumeEncryptionSupported
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityKeyManagerCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.ExternalClientCertificateUUID != nil {
// query param external.client_certificate.uuid
var qrExternalClientCertificateUUID string
if o.ExternalClientCertificateUUID != nil {
qrExternalClientCertificateUUID = *o.ExternalClientCertificateUUID
}
qExternalClientCertificateUUID := qrExternalClientCertificateUUID
if qExternalClientCertificateUUID != "" {
if err := r.SetQueryParam("external.client_certificate.uuid", qExternalClientCertificateUUID); err != nil {
return err
}
}
}
if o.ExternalServerCaCertificatesUUID != nil {
// query param external.server_ca_certificates.uuid
var qrExternalServerCaCertificatesUUID string
if o.ExternalServerCaCertificatesUUID != nil {
qrExternalServerCaCertificatesUUID = *o.ExternalServerCaCertificatesUUID
}
qExternalServerCaCertificatesUUID := qrExternalServerCaCertificatesUUID
if qExternalServerCaCertificatesUUID != "" {
if err := r.SetQueryParam("external.server_ca_certificates.uuid", qExternalServerCaCertificatesUUID); err != nil {
return err
}
}
}
if o.ExternalServersSecondaryKeyServers != nil {
// query param external.servers.secondary_key_servers
var qrExternalServersSecondaryKeyServers string
if o.ExternalServersSecondaryKeyServers != nil {
qrExternalServersSecondaryKeyServers = *o.ExternalServersSecondaryKeyServers
}
qExternalServersSecondaryKeyServers := qrExternalServersSecondaryKeyServers
if qExternalServersSecondaryKeyServers != "" {
if err := r.SetQueryParam("external.servers.secondary_key_servers", qExternalServersSecondaryKeyServers); err != nil {
return err
}
}
}
if o.ExternalServersServer != nil {
// query param external.servers.server
var qrExternalServersServer string
if o.ExternalServersServer != nil {
qrExternalServersServer = *o.ExternalServersServer
}
qExternalServersServer := qrExternalServersServer
if qExternalServersServer != "" {
if err := r.SetQueryParam("external.servers.server", qExternalServersServer); err != nil {
return err
}
}
}
if o.ExternalServersTimeout != nil {
// query param external.servers.timeout
var qrExternalServersTimeout int64
if o.ExternalServersTimeout != nil {
qrExternalServersTimeout = *o.ExternalServersTimeout
}
qExternalServersTimeout := swag.FormatInt64(qrExternalServersTimeout)
if qExternalServersTimeout != "" {
if err := r.SetQueryParam("external.servers.timeout", qExternalServersTimeout); err != nil {
return err
}
}
}
if o.ExternalServersUsername != nil {
// query param external.servers.username
var qrExternalServersUsername string
if o.ExternalServersUsername != nil {
qrExternalServersUsername = *o.ExternalServersUsername
}
qExternalServersUsername := qrExternalServersUsername
if qExternalServersUsername != "" {
if err := r.SetQueryParam("external.servers.username", qExternalServersUsername); 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.IsDefaultDataAtRestEncryptionDisabled != nil {
// query param is_default_data_at_rest_encryption_disabled
var qrIsDefaultDataAtRestEncryptionDisabled bool
if o.IsDefaultDataAtRestEncryptionDisabled != nil {
qrIsDefaultDataAtRestEncryptionDisabled = *o.IsDefaultDataAtRestEncryptionDisabled
}
qIsDefaultDataAtRestEncryptionDisabled := swag.FormatBool(qrIsDefaultDataAtRestEncryptionDisabled)
if qIsDefaultDataAtRestEncryptionDisabled != "" {
if err := r.SetQueryParam("is_default_data_at_rest_encryption_disabled", qIsDefaultDataAtRestEncryptionDisabled); 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.OnboardEnabled != nil {
// query param onboard.enabled
var qrOnboardEnabled bool
if o.OnboardEnabled != nil {
qrOnboardEnabled = *o.OnboardEnabled
}
qOnboardEnabled := swag.FormatBool(qrOnboardEnabled)
if qOnboardEnabled != "" {
if err := r.SetQueryParam("onboard.enabled", qOnboardEnabled); err != nil {
return err
}
}
}
if o.OnboardKeyBackup != nil {
// query param onboard.key_backup
var qrOnboardKeyBackup string
if o.OnboardKeyBackup != nil {
qrOnboardKeyBackup = *o.OnboardKeyBackup
}
qOnboardKeyBackup := qrOnboardKeyBackup
if qOnboardKeyBackup != "" {
if err := r.SetQueryParam("onboard.key_backup", qOnboardKeyBackup); err != nil {
return err
}
}
}
if o.OrderBy != nil {
// binding items for order_by
joinedOrderBy := o.bindParamOrderBy(reg)
// query array param order_by
if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil {
return err
}
}
if o.Policy != nil {
// query param policy
var qrPolicy string
if o.Policy != nil {
qrPolicy = *o.Policy
}
qPolicy := qrPolicy
if qPolicy != "" {
if err := r.SetQueryParam("policy", qPolicy); err != nil {
return err
}
}
}
if o.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.StatusCode != nil {
// query param status.code
var qrStatusCode int64
if o.StatusCode != nil {
qrStatusCode = *o.StatusCode
}
qStatusCode := swag.FormatInt64(qrStatusCode)
if qStatusCode != "" {
if err := r.SetQueryParam("status.code", qStatusCode); err != nil {
return err
}
}
}
if o.StatusMessage != nil {
// query param status.message
var qrStatusMessage string
if o.StatusMessage != nil {
qrStatusMessage = *o.StatusMessage
}
qStatusMessage := qrStatusMessage
if qStatusMessage != "" {
if err := r.SetQueryParam("status.message", qStatusMessage); err != nil {
return err
}
}
}
if o.SvmName != nil {
// query param svm.name
var qrSvmName string
if o.SvmName != nil {
qrSvmName = *o.SvmName
}
qSvmName := qrSvmName
if qSvmName != "" {
if err := r.SetQueryParam("svm.name", qSvmName); err != nil {
return err
}
}
}
if o.SvmUUID != nil {
// query param svm.uuid
var qrSvmUUID string
if o.SvmUUID != nil {
qrSvmUUID = *o.SvmUUID
}
qSvmUUID := qrSvmUUID
if qSvmUUID != "" {
if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil {
return err
}
}
}
if o.UUID != nil {
// query param uuid
var qrUUID string
if o.UUID != nil {
qrUUID = *o.UUID
}
qUUID := qrUUID
if qUUID != "" {
if err := r.SetQueryParam("uuid", qUUID); err != nil {
return err
}
}
}
if o.VolumeEncryptionCode != nil {
// query param volume_encryption.code
var qrVolumeEncryptionCode int64
if o.VolumeEncryptionCode != nil {
qrVolumeEncryptionCode = *o.VolumeEncryptionCode
}
qVolumeEncryptionCode := swag.FormatInt64(qrVolumeEncryptionCode)
if qVolumeEncryptionCode != "" {
if err := r.SetQueryParam("volume_encryption.code", qVolumeEncryptionCode); err != nil {
return err
}
}
}
if o.VolumeEncryptionMessage != nil {
// query param volume_encryption.message
var qrVolumeEncryptionMessage string
if o.VolumeEncryptionMessage != nil {
qrVolumeEncryptionMessage = *o.VolumeEncryptionMessage
}
qVolumeEncryptionMessage := qrVolumeEncryptionMessage
if qVolumeEncryptionMessage != "" {
if err := r.SetQueryParam("volume_encryption.message", qVolumeEncryptionMessage); err != nil {
return err
}
}
}
if o.VolumeEncryptionSupported != nil {
// query param volume_encryption.supported
var qrVolumeEncryptionSupported bool
if o.VolumeEncryptionSupported != nil {
qrVolumeEncryptionSupported = *o.VolumeEncryptionSupported
}
qVolumeEncryptionSupported := swag.FormatBool(qrVolumeEncryptionSupported)
if qVolumeEncryptionSupported != "" {
if err := r.SetQueryParam("volume_encryption.supported", qVolumeEncryptionSupported); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamSecurityKeyManagerCollectionGet binds the parameter fields
func (o *SecurityKeyManagerCollectionGetParams) 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
}
// bindParamSecurityKeyManagerCollectionGet binds the parameter order_by
func (o *SecurityKeyManagerCollectionGetParams) 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_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// NewAzureKeyVaultDeleteParams creates a new AzureKeyVaultDeleteParams 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 NewAzureKeyVaultDeleteParams() *AzureKeyVaultDeleteParams {
return &AzureKeyVaultDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewAzureKeyVaultDeleteParamsWithTimeout creates a new AzureKeyVaultDeleteParams object
// with the ability to set a timeout on a request.
func NewAzureKeyVaultDeleteParamsWithTimeout(timeout time.Duration) *AzureKeyVaultDeleteParams {
return &AzureKeyVaultDeleteParams{
timeout: timeout,
}
}
// NewAzureKeyVaultDeleteParamsWithContext creates a new AzureKeyVaultDeleteParams object
// with the ability to set a context for a request.
func NewAzureKeyVaultDeleteParamsWithContext(ctx context.Context) *AzureKeyVaultDeleteParams {
return &AzureKeyVaultDeleteParams{
Context: ctx,
}
}
// NewAzureKeyVaultDeleteParamsWithHTTPClient creates a new AzureKeyVaultDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewAzureKeyVaultDeleteParamsWithHTTPClient(client *http.Client) *AzureKeyVaultDeleteParams {
return &AzureKeyVaultDeleteParams{
HTTPClient: client,
}
}
/*
AzureKeyVaultDeleteParams contains all the parameters to send to the API endpoint
for the azure key vault delete operation.
Typically these are written to a http.Request.
*/
type AzureKeyVaultDeleteParams struct {
/* UUID.
AKV UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the azure key vault delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultDeleteParams) WithDefaults() *AzureKeyVaultDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the azure key vault delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AzureKeyVaultDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) WithTimeout(timeout time.Duration) *AzureKeyVaultDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) WithContext(ctx context.Context) *AzureKeyVaultDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) WithHTTPClient(client *http.Client) *AzureKeyVaultDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithUUID adds the uuid to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) WithUUID(uuid string) *AzureKeyVaultDeleteParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the azure key vault delete params
func (o *AzureKeyVaultDeleteParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *AzureKeyVaultDeleteParams) 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/aws_kms_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/aws_kms_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package security
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
"github.com/netapp/trident/storage_drivers/ontap/api/rest/models"
)
// AwsKmsModifyReader is a Reader for the AwsKmsModify structure.
type AwsKmsModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AwsKmsModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAwsKmsModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAwsKmsModifyDefault(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
}
}
// NewAwsKmsModifyOK creates a AwsKmsModifyOK with default headers values
func NewAwsKmsModifyOK() *AwsKmsModifyOK {
return &AwsKmsModifyOK{}
}
/*
AwsKmsModifyOK describes a response with status code 200, with default header values.
OK
*/
type AwsKmsModifyOK struct {
}
// IsSuccess returns true when this aws kms modify o k response has a 2xx status code
func (o *AwsKmsModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this aws kms modify o k response has a 3xx status code
func (o *AwsKmsModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this aws kms modify o k response has a 4xx status code
func (o *AwsKmsModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this aws kms modify o k response has a 5xx status code
func (o *AwsKmsModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this aws kms modify o k response a status code equal to that given
func (o *AwsKmsModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *AwsKmsModifyOK) Error() string {
return fmt.Sprintf("[PATCH /security/aws-kms/{uuid}][%d] awsKmsModifyOK ", 200)
}
func (o *AwsKmsModifyOK) String() string {
return fmt.Sprintf("[PATCH /security/aws-kms/{uuid}][%d] awsKmsModifyOK ", 200)
}
func (o *AwsKmsModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAwsKmsModifyDefault creates a AwsKmsModifyDefault with default headers values
func NewAwsKmsModifyDefault(code int) *AwsKmsModifyDefault {
return &AwsKmsModifyDefault{
_statusCode: code,
}
}
/*
AwsKmsModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 65537541 | No inputs provided for the REST API PATCH request. |
| 65537906 | Failed to store the secret access key. |
| 65537920 | Secret access key cannot be empty. |
| 65537921 | Unable to connect to the Amazon Web Service Key Management Service (AWSKMS) using these credentials. |
| 65537924 | Access key ID cannot be empty. |
| 65537926 | Amazon Web Service Key Management Service is not configured for SVM. |
*/
type AwsKmsModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the aws kms modify default response
func (o *AwsKmsModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this aws kms modify default response has a 2xx status code
func (o *AwsKmsModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this aws kms modify default response has a 3xx status code
func (o *AwsKmsModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this aws kms modify default response has a 4xx status code
func (o *AwsKmsModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this aws kms modify default response has a 5xx status code
func (o *AwsKmsModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this aws kms modify default response a status code equal to that given
func (o *AwsKmsModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AwsKmsModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /security/aws-kms/{uuid}][%d] aws_kms_modify default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsModifyDefault) String() string {
return fmt.Sprintf("[PATCH /security/aws-kms/{uuid}][%d] aws_kms_modify default %+v", o._statusCode, o.Payload)
}
func (o *AwsKmsModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AwsKmsModifyDefault) 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_audit_log_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_audit_log_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"
)
// SecurityAuditLogCollectionGetReader is a Reader for the SecurityAuditLogCollectionGet structure.
type SecurityAuditLogCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *SecurityAuditLogCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewSecurityAuditLogCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewSecurityAuditLogCollectionGetDefault(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
}
}
// NewSecurityAuditLogCollectionGetOK creates a SecurityAuditLogCollectionGetOK with default headers values
func NewSecurityAuditLogCollectionGetOK() *SecurityAuditLogCollectionGetOK {
return &SecurityAuditLogCollectionGetOK{}
}
/*
SecurityAuditLogCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type SecurityAuditLogCollectionGetOK struct {
Payload *models.SecurityAuditLogResponse
}
// IsSuccess returns true when this security audit log collection get o k response has a 2xx status code
func (o *SecurityAuditLogCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this security audit log collection get o k response has a 3xx status code
func (o *SecurityAuditLogCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this security audit log collection get o k response has a 4xx status code
func (o *SecurityAuditLogCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this security audit log collection get o k response has a 5xx status code
func (o *SecurityAuditLogCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this security audit log collection get o k response a status code equal to that given
func (o *SecurityAuditLogCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *SecurityAuditLogCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/audit/messages][%d] securityAuditLogCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityAuditLogCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/audit/messages][%d] securityAuditLogCollectionGetOK %+v", 200, o.Payload)
}
func (o *SecurityAuditLogCollectionGetOK) GetPayload() *models.SecurityAuditLogResponse {
return o.Payload
}
func (o *SecurityAuditLogCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.SecurityAuditLogResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewSecurityAuditLogCollectionGetDefault creates a SecurityAuditLogCollectionGetDefault with default headers values
func NewSecurityAuditLogCollectionGetDefault(code int) *SecurityAuditLogCollectionGetDefault {
return &SecurityAuditLogCollectionGetDefault{
_statusCode: code,
}
}
/*
SecurityAuditLogCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type SecurityAuditLogCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the security audit log collection get default response
func (o *SecurityAuditLogCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this security audit log collection get default response has a 2xx status code
func (o *SecurityAuditLogCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this security audit log collection get default response has a 3xx status code
func (o *SecurityAuditLogCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this security audit log collection get default response has a 4xx status code
func (o *SecurityAuditLogCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this security audit log collection get default response has a 5xx status code
func (o *SecurityAuditLogCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this security audit log collection get default response a status code equal to that given
func (o *SecurityAuditLogCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *SecurityAuditLogCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/audit/messages][%d] security_audit_log_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityAuditLogCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/audit/messages][%d] security_audit_log_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *SecurityAuditLogCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *SecurityAuditLogCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ErrorResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/security_log_forwarding_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"
)
// NewSecurityLogForwardingDeleteParams creates a new SecurityLogForwardingDeleteParams 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 NewSecurityLogForwardingDeleteParams() *SecurityLogForwardingDeleteParams {
return &SecurityLogForwardingDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewSecurityLogForwardingDeleteParamsWithTimeout creates a new SecurityLogForwardingDeleteParams object
// with the ability to set a timeout on a request.
func NewSecurityLogForwardingDeleteParamsWithTimeout(timeout time.Duration) *SecurityLogForwardingDeleteParams {
return &SecurityLogForwardingDeleteParams{
timeout: timeout,
}
}
// NewSecurityLogForwardingDeleteParamsWithContext creates a new SecurityLogForwardingDeleteParams object
// with the ability to set a context for a request.
func NewSecurityLogForwardingDeleteParamsWithContext(ctx context.Context) *SecurityLogForwardingDeleteParams {
return &SecurityLogForwardingDeleteParams{
Context: ctx,
}
}
// NewSecurityLogForwardingDeleteParamsWithHTTPClient creates a new SecurityLogForwardingDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewSecurityLogForwardingDeleteParamsWithHTTPClient(client *http.Client) *SecurityLogForwardingDeleteParams {
return &SecurityLogForwardingDeleteParams{
HTTPClient: client,
}
}
/*
SecurityLogForwardingDeleteParams contains all the parameters to send to the API endpoint
for the security log forwarding delete operation.
Typically these are written to a http.Request.
*/
type SecurityLogForwardingDeleteParams struct {
/* Address.
IP address of remote syslog/splunk server.
*/
Address string
/* Port.
Port number of remote syslog/splunk server.
*/
Port int64
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the security log forwarding delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityLogForwardingDeleteParams) WithDefaults() *SecurityLogForwardingDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the security log forwarding delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SecurityLogForwardingDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) WithTimeout(timeout time.Duration) *SecurityLogForwardingDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) WithContext(ctx context.Context) *SecurityLogForwardingDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) WithHTTPClient(client *http.Client) *SecurityLogForwardingDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAddress adds the address to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) WithAddress(address string) *SecurityLogForwardingDeleteParams {
o.SetAddress(address)
return o
}
// SetAddress adds the address to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) SetAddress(address string) {
o.Address = address
}
// WithPort adds the port to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) WithPort(port int64) *SecurityLogForwardingDeleteParams {
o.SetPort(port)
return o
}
// SetPort adds the port to the security log forwarding delete params
func (o *SecurityLogForwardingDeleteParams) SetPort(port int64) {
o.Port = port
}
// WriteToRequest writes these params to a swagger request
func (o *SecurityLogForwardingDeleteParams) 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
}
// 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/ipsec_policy_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/ipsec_policy_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"
)
// NewIpsecPolicyCollectionGetParams creates a new IpsecPolicyCollectionGetParams 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 NewIpsecPolicyCollectionGetParams() *IpsecPolicyCollectionGetParams {
return &IpsecPolicyCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewIpsecPolicyCollectionGetParamsWithTimeout creates a new IpsecPolicyCollectionGetParams object
// with the ability to set a timeout on a request.
func NewIpsecPolicyCollectionGetParamsWithTimeout(timeout time.Duration) *IpsecPolicyCollectionGetParams {
return &IpsecPolicyCollectionGetParams{
timeout: timeout,
}
}
// NewIpsecPolicyCollectionGetParamsWithContext creates a new IpsecPolicyCollectionGetParams object
// with the ability to set a context for a request.
func NewIpsecPolicyCollectionGetParamsWithContext(ctx context.Context) *IpsecPolicyCollectionGetParams {
return &IpsecPolicyCollectionGetParams{
Context: ctx,
}
}
// NewIpsecPolicyCollectionGetParamsWithHTTPClient creates a new IpsecPolicyCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewIpsecPolicyCollectionGetParamsWithHTTPClient(client *http.Client) *IpsecPolicyCollectionGetParams {
return &IpsecPolicyCollectionGetParams{
HTTPClient: client,
}
}
/*
IpsecPolicyCollectionGetParams contains all the parameters to send to the API endpoint
for the ipsec policy collection get operation.
Typically these are written to a http.Request.
*/
type IpsecPolicyCollectionGetParams struct {
/* AuthenticationMethod.
Filter by authentication_method
*/
AuthenticationMethod *string
/* CertificateName.
Filter by certificate.name
*/
CertificateName *string
/* CertificateUUID.
Filter by certificate.uuid
*/
CertificateUUID *string
/* Enabled.
Filter by enabled
*/
Enabled *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* IpspaceName.
Filter by ipspace.name
*/
IpspaceName *string
/* IpspaceUUID.
Filter by ipspace.uuid
*/
IpspaceUUID *string
/* LocalEndpointAddress.
Filter by local_endpoint.address
*/
LocalEndpointAddress *string
/* LocalEndpointFamily.
Filter by local_endpoint.family
*/
LocalEndpointFamily *string
/* LocalEndpointNetmask.
Filter by local_endpoint.netmask
*/
LocalEndpointNetmask *string
/* LocalEndpointPort.
Filter by local_endpoint.port
*/
LocalEndpointPort *string
/* LocalIdentity.
Filter by local_identity
*/
LocalIdentity *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
/* Protocol.
Filter by protocol
*/
Protocol *string
/* RemoteEndpointAddress.
Filter by remote_endpoint.address
*/
RemoteEndpointAddress *string
/* RemoteEndpointFamily.
Filter by remote_endpoint.family
*/
RemoteEndpointFamily *string
/* RemoteEndpointNetmask.
Filter by remote_endpoint.netmask
*/
RemoteEndpointNetmask *string
/* RemoteEndpointPort.
Filter by remote_endpoint.port
*/
RemoteEndpointPort *string
/* RemoteIdentity.
Filter by remote_identity
*/
RemoteIdentity *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
/* UUID.
Filter by uuid
*/
UUID *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the ipsec policy collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *IpsecPolicyCollectionGetParams) WithDefaults() *IpsecPolicyCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the ipsec policy collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *IpsecPolicyCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := IpsecPolicyCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithTimeout(timeout time.Duration) *IpsecPolicyCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithContext(ctx context.Context) *IpsecPolicyCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithHTTPClient(client *http.Client) *IpsecPolicyCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAuthenticationMethod adds the authenticationMethod to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithAuthenticationMethod(authenticationMethod *string) *IpsecPolicyCollectionGetParams {
o.SetAuthenticationMethod(authenticationMethod)
return o
}
// SetAuthenticationMethod adds the authenticationMethod to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetAuthenticationMethod(authenticationMethod *string) {
o.AuthenticationMethod = authenticationMethod
}
// WithCertificateName adds the certificateName to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithCertificateName(certificateName *string) *IpsecPolicyCollectionGetParams {
o.SetCertificateName(certificateName)
return o
}
// SetCertificateName adds the certificateName to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetCertificateName(certificateName *string) {
o.CertificateName = certificateName
}
// WithCertificateUUID adds the certificateUUID to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithCertificateUUID(certificateUUID *string) *IpsecPolicyCollectionGetParams {
o.SetCertificateUUID(certificateUUID)
return o
}
// SetCertificateUUID adds the certificateUuid to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetCertificateUUID(certificateUUID *string) {
o.CertificateUUID = certificateUUID
}
// WithEnabled adds the enabled to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithEnabled(enabled *bool) *IpsecPolicyCollectionGetParams {
o.SetEnabled(enabled)
return o
}
// SetEnabled adds the enabled to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetEnabled(enabled *bool) {
o.Enabled = enabled
}
// WithFields adds the fields to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithFields(fields []string) *IpsecPolicyCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIpspaceName adds the ipspaceName to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithIpspaceName(ipspaceName *string) *IpsecPolicyCollectionGetParams {
o.SetIpspaceName(ipspaceName)
return o
}
// SetIpspaceName adds the ipspaceName to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetIpspaceName(ipspaceName *string) {
o.IpspaceName = ipspaceName
}
// WithIpspaceUUID adds the ipspaceUUID to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithIpspaceUUID(ipspaceUUID *string) *IpsecPolicyCollectionGetParams {
o.SetIpspaceUUID(ipspaceUUID)
return o
}
// SetIpspaceUUID adds the ipspaceUuid to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetIpspaceUUID(ipspaceUUID *string) {
o.IpspaceUUID = ipspaceUUID
}
// WithLocalEndpointAddress adds the localEndpointAddress to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithLocalEndpointAddress(localEndpointAddress *string) *IpsecPolicyCollectionGetParams {
o.SetLocalEndpointAddress(localEndpointAddress)
return o
}
// SetLocalEndpointAddress adds the localEndpointAddress to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetLocalEndpointAddress(localEndpointAddress *string) {
o.LocalEndpointAddress = localEndpointAddress
}
// WithLocalEndpointFamily adds the localEndpointFamily to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithLocalEndpointFamily(localEndpointFamily *string) *IpsecPolicyCollectionGetParams {
o.SetLocalEndpointFamily(localEndpointFamily)
return o
}
// SetLocalEndpointFamily adds the localEndpointFamily to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetLocalEndpointFamily(localEndpointFamily *string) {
o.LocalEndpointFamily = localEndpointFamily
}
// WithLocalEndpointNetmask adds the localEndpointNetmask to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithLocalEndpointNetmask(localEndpointNetmask *string) *IpsecPolicyCollectionGetParams {
o.SetLocalEndpointNetmask(localEndpointNetmask)
return o
}
// SetLocalEndpointNetmask adds the localEndpointNetmask to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetLocalEndpointNetmask(localEndpointNetmask *string) {
o.LocalEndpointNetmask = localEndpointNetmask
}
// WithLocalEndpointPort adds the localEndpointPort to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithLocalEndpointPort(localEndpointPort *string) *IpsecPolicyCollectionGetParams {
o.SetLocalEndpointPort(localEndpointPort)
return o
}
// SetLocalEndpointPort adds the localEndpointPort to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetLocalEndpointPort(localEndpointPort *string) {
o.LocalEndpointPort = localEndpointPort
}
// WithLocalIdentity adds the localIdentity to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithLocalIdentity(localIdentity *string) *IpsecPolicyCollectionGetParams {
o.SetLocalIdentity(localIdentity)
return o
}
// SetLocalIdentity adds the localIdentity to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetLocalIdentity(localIdentity *string) {
o.LocalIdentity = localIdentity
}
// WithMaxRecords adds the maxRecords to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithMaxRecords(maxRecords *int64) *IpsecPolicyCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithName(name *string) *IpsecPolicyCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithOrderBy(orderBy []string) *IpsecPolicyCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithProtocol adds the protocol to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithProtocol(protocol *string) *IpsecPolicyCollectionGetParams {
o.SetProtocol(protocol)
return o
}
// SetProtocol adds the protocol to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetProtocol(protocol *string) {
o.Protocol = protocol
}
// WithRemoteEndpointAddress adds the remoteEndpointAddress to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithRemoteEndpointAddress(remoteEndpointAddress *string) *IpsecPolicyCollectionGetParams {
o.SetRemoteEndpointAddress(remoteEndpointAddress)
return o
}
// SetRemoteEndpointAddress adds the remoteEndpointAddress to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetRemoteEndpointAddress(remoteEndpointAddress *string) {
o.RemoteEndpointAddress = remoteEndpointAddress
}
// WithRemoteEndpointFamily adds the remoteEndpointFamily to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithRemoteEndpointFamily(remoteEndpointFamily *string) *IpsecPolicyCollectionGetParams {
o.SetRemoteEndpointFamily(remoteEndpointFamily)
return o
}
// SetRemoteEndpointFamily adds the remoteEndpointFamily to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetRemoteEndpointFamily(remoteEndpointFamily *string) {
o.RemoteEndpointFamily = remoteEndpointFamily
}
// WithRemoteEndpointNetmask adds the remoteEndpointNetmask to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithRemoteEndpointNetmask(remoteEndpointNetmask *string) *IpsecPolicyCollectionGetParams {
o.SetRemoteEndpointNetmask(remoteEndpointNetmask)
return o
}
// SetRemoteEndpointNetmask adds the remoteEndpointNetmask to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetRemoteEndpointNetmask(remoteEndpointNetmask *string) {
o.RemoteEndpointNetmask = remoteEndpointNetmask
}
// WithRemoteEndpointPort adds the remoteEndpointPort to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithRemoteEndpointPort(remoteEndpointPort *string) *IpsecPolicyCollectionGetParams {
o.SetRemoteEndpointPort(remoteEndpointPort)
return o
}
// SetRemoteEndpointPort adds the remoteEndpointPort to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetRemoteEndpointPort(remoteEndpointPort *string) {
o.RemoteEndpointPort = remoteEndpointPort
}
// WithRemoteIdentity adds the remoteIdentity to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithRemoteIdentity(remoteIdentity *string) *IpsecPolicyCollectionGetParams {
o.SetRemoteIdentity(remoteIdentity)
return o
}
// SetRemoteIdentity adds the remoteIdentity to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetRemoteIdentity(remoteIdentity *string) {
o.RemoteIdentity = remoteIdentity
}
// WithReturnRecords adds the returnRecords to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithReturnRecords(returnRecords *bool) *IpsecPolicyCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *IpsecPolicyCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithScope adds the scope to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithScope(scope *string) *IpsecPolicyCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WithSvmName adds the svmName to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithSvmName(svmName *string) *IpsecPolicyCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithSvmUUID(svmUUID *string) *IpsecPolicyCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) WithUUID(uuid *string) *IpsecPolicyCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the ipsec policy collection get params
func (o *IpsecPolicyCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *IpsecPolicyCollectionGetParams) 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.CertificateName != nil {
// query param certificate.name
var qrCertificateName string
if o.CertificateName != nil {
qrCertificateName = *o.CertificateName
}
qCertificateName := qrCertificateName
if qCertificateName != "" {
if err := r.SetQueryParam("certificate.name", qCertificateName); err != nil {
return err
}
}
}
if o.CertificateUUID != nil {
// query param certificate.uuid
var qrCertificateUUID string
if o.CertificateUUID != nil {
qrCertificateUUID = *o.CertificateUUID
}
qCertificateUUID := qrCertificateUUID
if qCertificateUUID != "" {
if err := r.SetQueryParam("certificate.uuid", qCertificateUUID); err != nil {
return err
}
}
}
if o.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.IpspaceName != nil {
// query param ipspace.name
var qrIpspaceName string
if o.IpspaceName != nil {
qrIpspaceName = *o.IpspaceName
}
qIpspaceName := qrIpspaceName
if qIpspaceName != "" {
if err := r.SetQueryParam("ipspace.name", qIpspaceName); err != nil {
return err
}
}
}
if o.IpspaceUUID != nil {
// query param ipspace.uuid
var qrIpspaceUUID string
if o.IpspaceUUID != nil {
qrIpspaceUUID = *o.IpspaceUUID
}
qIpspaceUUID := qrIpspaceUUID
if qIpspaceUUID != "" {
if err := r.SetQueryParam("ipspace.uuid", qIpspaceUUID); err != nil {
return err
}
}
}
if o.LocalEndpointAddress != nil {
// query param local_endpoint.address
var qrLocalEndpointAddress string
if o.LocalEndpointAddress != nil {
qrLocalEndpointAddress = *o.LocalEndpointAddress
}
qLocalEndpointAddress := qrLocalEndpointAddress
if qLocalEndpointAddress != "" {
if err := r.SetQueryParam("local_endpoint.address", qLocalEndpointAddress); err != nil {
return err
}
}
}
if o.LocalEndpointFamily != nil {
// query param local_endpoint.family
var qrLocalEndpointFamily string
if o.LocalEndpointFamily != nil {
qrLocalEndpointFamily = *o.LocalEndpointFamily
}
qLocalEndpointFamily := qrLocalEndpointFamily
if qLocalEndpointFamily != "" {
if err := r.SetQueryParam("local_endpoint.family", qLocalEndpointFamily); err != nil {
return err
}
}
}
if o.LocalEndpointNetmask != nil {
// query param local_endpoint.netmask
var qrLocalEndpointNetmask string
if o.LocalEndpointNetmask != nil {
qrLocalEndpointNetmask = *o.LocalEndpointNetmask
}
qLocalEndpointNetmask := qrLocalEndpointNetmask
if qLocalEndpointNetmask != "" {
if err := r.SetQueryParam("local_endpoint.netmask", qLocalEndpointNetmask); err != nil {
return err
}
}
}
if o.LocalEndpointPort != nil {
// query param local_endpoint.port
var qrLocalEndpointPort string
if o.LocalEndpointPort != nil {
qrLocalEndpointPort = *o.LocalEndpointPort
}
qLocalEndpointPort := qrLocalEndpointPort
if qLocalEndpointPort != "" {
if err := r.SetQueryParam("local_endpoint.port", qLocalEndpointPort); err != nil {
return err
}
}
}
if o.LocalIdentity != nil {
// query param local_identity
var qrLocalIdentity string
if o.LocalIdentity != nil {
qrLocalIdentity = *o.LocalIdentity
}
qLocalIdentity := qrLocalIdentity
if qLocalIdentity != "" {
if err := r.SetQueryParam("local_identity", qLocalIdentity); 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.Protocol != nil {
// query param protocol
var qrProtocol string
if o.Protocol != nil {
qrProtocol = *o.Protocol
}
qProtocol := qrProtocol
if qProtocol != "" {
if err := r.SetQueryParam("protocol", qProtocol); err != nil {
return err
}
}
}
if o.RemoteEndpointAddress != nil {
// query param remote_endpoint.address
var qrRemoteEndpointAddress string
if o.RemoteEndpointAddress != nil {
qrRemoteEndpointAddress = *o.RemoteEndpointAddress
}
qRemoteEndpointAddress := qrRemoteEndpointAddress
if qRemoteEndpointAddress != "" {
if err := r.SetQueryParam("remote_endpoint.address", qRemoteEndpointAddress); err != nil {
return err
}
}
}
if o.RemoteEndpointFamily != nil {
// query param remote_endpoint.family
var qrRemoteEndpointFamily string
if o.RemoteEndpointFamily != nil {
qrRemoteEndpointFamily = *o.RemoteEndpointFamily
}
qRemoteEndpointFamily := qrRemoteEndpointFamily
if qRemoteEndpointFamily != "" {
if err := r.SetQueryParam("remote_endpoint.family", qRemoteEndpointFamily); err != nil {
return err
}
}
}
if o.RemoteEndpointNetmask != nil {
// query param remote_endpoint.netmask
var qrRemoteEndpointNetmask string
if o.RemoteEndpointNetmask != nil {
qrRemoteEndpointNetmask = *o.RemoteEndpointNetmask
}
qRemoteEndpointNetmask := qrRemoteEndpointNetmask
if qRemoteEndpointNetmask != "" {
if err := r.SetQueryParam("remote_endpoint.netmask", qRemoteEndpointNetmask); err != nil {
return err
}
}
}
if o.RemoteEndpointPort != nil {
// query param remote_endpoint.port
var qrRemoteEndpointPort string
if o.RemoteEndpointPort != nil {
qrRemoteEndpointPort = *o.RemoteEndpointPort
}
qRemoteEndpointPort := qrRemoteEndpointPort
if qRemoteEndpointPort != "" {
if err := r.SetQueryParam("remote_endpoint.port", qRemoteEndpointPort); err != nil {
return err
}
}
}
if o.RemoteIdentity != nil {
// query param remote_identity
var qrRemoteIdentity string
if o.RemoteIdentity != nil {
qrRemoteIdentity = *o.RemoteIdentity
}
qRemoteIdentity := qrRemoteIdentity
if qRemoteIdentity != "" {
if err := r.SetQueryParam("remote_identity", qRemoteIdentity); err != nil {
return err
}
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
if o.Scope != nil {
// query param scope
var qrScope string
if o.Scope != nil {
qrScope = *o.Scope
}
qScope := qrScope
if qScope != "" {
if err := r.SetQueryParam("scope", qScope); err != nil {
return err
}
}
}
if o.SvmName != nil {
// query param svm.name
var qrSvmName string
if o.SvmName != nil {
qrSvmName = *o.SvmName
}
qSvmName := qrSvmName
if qSvmName != "" {
if err := r.SetQueryParam("svm.name", qSvmName); err != nil {
return err
}
}
}
if o.SvmUUID != nil {
// query param svm.uuid
var qrSvmUUID string
if o.SvmUUID != nil {
qrSvmUUID = *o.SvmUUID
}
qSvmUUID := qrSvmUUID
if qSvmUUID != "" {
if err := r.SetQueryParam("svm.uuid", qSvmUUID); err != nil {
return err
}
}
}
if o.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
}
// bindParamIpsecPolicyCollectionGet binds the parameter fields
func (o *IpsecPolicyCollectionGetParams) 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
}
// bindParamIpsecPolicyCollectionGet binds the parameter order_by
func (o *IpsecPolicyCollectionGetParams) 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/key_manager_keys_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/key_manager_keys_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"
)
// KeyManagerKeysCollectionGetReader is a Reader for the KeyManagerKeysCollectionGet structure.
type KeyManagerKeysCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *KeyManagerKeysCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewKeyManagerKeysCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewKeyManagerKeysCollectionGetDefault(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
}
}
// NewKeyManagerKeysCollectionGetOK creates a KeyManagerKeysCollectionGetOK with default headers values
func NewKeyManagerKeysCollectionGetOK() *KeyManagerKeysCollectionGetOK {
return &KeyManagerKeysCollectionGetOK{}
}
/*
KeyManagerKeysCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type KeyManagerKeysCollectionGetOK struct {
Payload *models.KeyManagerKeysResponse
}
// IsSuccess returns true when this key manager keys collection get o k response has a 2xx status code
func (o *KeyManagerKeysCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this key manager keys collection get o k response has a 3xx status code
func (o *KeyManagerKeysCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this key manager keys collection get o k response has a 4xx status code
func (o *KeyManagerKeysCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this key manager keys collection get o k response has a 5xx status code
func (o *KeyManagerKeysCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this key manager keys collection get o k response a status code equal to that given
func (o *KeyManagerKeysCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *KeyManagerKeysCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids][%d] keyManagerKeysCollectionGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerKeysCollectionGetOK) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids][%d] keyManagerKeysCollectionGetOK %+v", 200, o.Payload)
}
func (o *KeyManagerKeysCollectionGetOK) GetPayload() *models.KeyManagerKeysResponse {
return o.Payload
}
func (o *KeyManagerKeysCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.KeyManagerKeysResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewKeyManagerKeysCollectionGetDefault creates a KeyManagerKeysCollectionGetDefault with default headers values
func NewKeyManagerKeysCollectionGetDefault(code int) *KeyManagerKeysCollectionGetDefault {
return &KeyManagerKeysCollectionGetDefault{
_statusCode: code,
}
}
/*
KeyManagerKeysCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type KeyManagerKeysCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the key manager keys collection get default response
func (o *KeyManagerKeysCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this key manager keys collection get default response has a 2xx status code
func (o *KeyManagerKeysCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this key manager keys collection get default response has a 3xx status code
func (o *KeyManagerKeysCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this key manager keys collection get default response has a 4xx status code
func (o *KeyManagerKeysCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this key manager keys collection get default response has a 5xx status code
func (o *KeyManagerKeysCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this key manager keys collection get default response a status code equal to that given
func (o *KeyManagerKeysCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *KeyManagerKeysCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids][%d] key_manager_keys_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerKeysCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /security/key-managers/{security_key_manager.uuid}/keys/{node.uuid}/key-ids][%d] key_manager_keys_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *KeyManagerKeysCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *KeyManagerKeysCollectionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.ErrorResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/login_messages_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/login_messages_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"
)
// LoginMessagesGetReader is a Reader for the LoginMessagesGet structure.
type LoginMessagesGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *LoginMessagesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewLoginMessagesGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewLoginMessagesGetDefault(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
}
}
// NewLoginMessagesGetOK creates a LoginMessagesGetOK with default headers values
func NewLoginMessagesGetOK() *LoginMessagesGetOK {
return &LoginMessagesGetOK{}
}
/*
LoginMessagesGetOK describes a response with status code 200, with default header values.
OK
*/
type LoginMessagesGetOK struct {
Payload *models.LoginMessages
}
// IsSuccess returns true when this login messages get o k response has a 2xx status code
func (o *LoginMessagesGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this login messages get o k response has a 3xx status code
func (o *LoginMessagesGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this login messages get o k response has a 4xx status code
func (o *LoginMessagesGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this login messages get o k response has a 5xx status code
func (o *LoginMessagesGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this login messages get o k response a status code equal to that given
func (o *LoginMessagesGetOK) IsCode(code int) bool {
return code == 200
}
func (o *LoginMessagesGetOK) Error() string {
return fmt.Sprintf("[GET /security/login/messages/{uuid}][%d] loginMessagesGetOK %+v", 200, o.Payload)
}
func (o *LoginMessagesGetOK) String() string {
return fmt.Sprintf("[GET /security/login/messages/{uuid}][%d] loginMessagesGetOK %+v", 200, o.Payload)
}
func (o *LoginMessagesGetOK) GetPayload() *models.LoginMessages {
return o.Payload
}
func (o *LoginMessagesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.LoginMessages)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewLoginMessagesGetDefault creates a LoginMessagesGetDefault with default headers values
func NewLoginMessagesGetDefault(code int) *LoginMessagesGetDefault {
return &LoginMessagesGetDefault{
_statusCode: code,
}
}
/*
LoginMessagesGetDefault describes a response with status code -1, with default header values.
Error
*/
type LoginMessagesGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the login messages get default response
func (o *LoginMessagesGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this login messages get default response has a 2xx status code
func (o *LoginMessagesGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this login messages get default response has a 3xx status code
func (o *LoginMessagesGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this login messages get default response has a 4xx status code
func (o *LoginMessagesGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this login messages get default response has a 5xx status code
func (o *LoginMessagesGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this login messages get default response a status code equal to that given
func (o *LoginMessagesGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *LoginMessagesGetDefault) Error() string {
return fmt.Sprintf("[GET /security/login/messages/{uuid}][%d] login_messages_get default %+v", o._statusCode, o.Payload)
}
func (o *LoginMessagesGetDefault) String() string {
return fmt.Sprintf("[GET /security/login/messages/{uuid}][%d] login_messages_get default %+v", o._statusCode, o.Payload)
}
func (o *LoginMessagesGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *LoginMessagesGetDefault) 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_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/svm_ssh_server_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"
)
// NewSvmSSHServerGetParams creates a new SvmSSHServerGetParams 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 NewSvmSSHServerGetParams() *SvmSSHServerGetParams {
return &SvmSSHServerGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewSvmSSHServerGetParamsWithTimeout creates a new SvmSSHServerGetParams object
// with the ability to set a timeout on a request.
func NewSvmSSHServerGetParamsWithTimeout(timeout time.Duration) *SvmSSHServerGetParams {
return &SvmSSHServerGetParams{
timeout: timeout,
}
}
// NewSvmSSHServerGetParamsWithContext creates a new SvmSSHServerGetParams object
// with the ability to set a context for a request.
func NewSvmSSHServerGetParamsWithContext(ctx context.Context) *SvmSSHServerGetParams {
return &SvmSSHServerGetParams{
Context: ctx,
}
}
// NewSvmSSHServerGetParamsWithHTTPClient creates a new SvmSSHServerGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewSvmSSHServerGetParamsWithHTTPClient(client *http.Client) *SvmSSHServerGetParams {
return &SvmSSHServerGetParams{
HTTPClient: client,
}
}
/*
SvmSSHServerGetParams contains all the parameters to send to the API endpoint
for the svm ssh server get operation.
Typically these are written to a http.Request.
*/
type SvmSSHServerGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* SvmUUID.
SVM UUID
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the svm ssh server get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SvmSSHServerGetParams) WithDefaults() *SvmSSHServerGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the svm ssh server get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *SvmSSHServerGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the svm ssh server get params
func (o *SvmSSHServerGetParams) WithTimeout(timeout time.Duration) *SvmSSHServerGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the svm ssh server get params
func (o *SvmSSHServerGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the svm ssh server get params
func (o *SvmSSHServerGetParams) WithContext(ctx context.Context) *SvmSSHServerGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the svm ssh server get params
func (o *SvmSSHServerGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the svm ssh server get params
func (o *SvmSSHServerGetParams) WithHTTPClient(client *http.Client) *SvmSSHServerGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the svm ssh server get params
func (o *SvmSSHServerGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the svm ssh server get params
func (o *SvmSSHServerGetParams) WithFields(fields []string) *SvmSSHServerGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the svm ssh server get params
func (o *SvmSSHServerGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithSvmUUID adds the svmUUID to the svm ssh server get params
func (o *SvmSSHServerGetParams) WithSvmUUID(svmUUID string) *SvmSSHServerGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the svm ssh server get params
func (o *SvmSSHServerGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *SvmSSHServerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamSvmSSHServerGet binds the parameter fields
func (o *SvmSSHServerGetParams) 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_request_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/multi_admin_verify_request_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"
)
// NewMultiAdminVerifyRequestModifyParams creates a new MultiAdminVerifyRequestModifyParams 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 NewMultiAdminVerifyRequestModifyParams() *MultiAdminVerifyRequestModifyParams {
return &MultiAdminVerifyRequestModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewMultiAdminVerifyRequestModifyParamsWithTimeout creates a new MultiAdminVerifyRequestModifyParams object
// with the ability to set a timeout on a request.
func NewMultiAdminVerifyRequestModifyParamsWithTimeout(timeout time.Duration) *MultiAdminVerifyRequestModifyParams {
return &MultiAdminVerifyRequestModifyParams{
timeout: timeout,
}
}
// NewMultiAdminVerifyRequestModifyParamsWithContext creates a new MultiAdminVerifyRequestModifyParams object
// with the ability to set a context for a request.
func NewMultiAdminVerifyRequestModifyParamsWithContext(ctx context.Context) *MultiAdminVerifyRequestModifyParams {
return &MultiAdminVerifyRequestModifyParams{
Context: ctx,
}
}
// NewMultiAdminVerifyRequestModifyParamsWithHTTPClient creates a new MultiAdminVerifyRequestModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewMultiAdminVerifyRequestModifyParamsWithHTTPClient(client *http.Client) *MultiAdminVerifyRequestModifyParams {
return &MultiAdminVerifyRequestModifyParams{
HTTPClient: client,
}
}
/*
MultiAdminVerifyRequestModifyParams contains all the parameters to send to the API endpoint
for the multi admin verify request modify operation.
Typically these are written to a http.Request.
*/
type MultiAdminVerifyRequestModifyParams struct {
// Index.
Index string
/* Info.
Info specification
*/
Info *models.MultiAdminVerifyRequest
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the multi admin verify request modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyRequestModifyParams) WithDefaults() *MultiAdminVerifyRequestModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the multi admin verify request modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *MultiAdminVerifyRequestModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) WithTimeout(timeout time.Duration) *MultiAdminVerifyRequestModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) WithContext(ctx context.Context) *MultiAdminVerifyRequestModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) WithHTTPClient(client *http.Client) *MultiAdminVerifyRequestModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithIndex adds the index to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) WithIndex(index string) *MultiAdminVerifyRequestModifyParams {
o.SetIndex(index)
return o
}
// SetIndex adds the index to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) SetIndex(index string) {
o.Index = index
}
// WithInfo adds the info to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) WithInfo(info *models.MultiAdminVerifyRequest) *MultiAdminVerifyRequestModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the multi admin verify request modify params
func (o *MultiAdminVerifyRequestModifyParams) SetInfo(info *models.MultiAdminVerifyRequest) {
o.Info = info
}
// WriteToRequest writes these params to a swagger request
func (o *MultiAdminVerifyRequestModifyParams) 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 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/account_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/account_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"
)
// NewAccountModifyParams creates a new AccountModifyParams 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 NewAccountModifyParams() *AccountModifyParams {
return &AccountModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewAccountModifyParamsWithTimeout creates a new AccountModifyParams object
// with the ability to set a timeout on a request.
func NewAccountModifyParamsWithTimeout(timeout time.Duration) *AccountModifyParams {
return &AccountModifyParams{
timeout: timeout,
}
}
// NewAccountModifyParamsWithContext creates a new AccountModifyParams object
// with the ability to set a context for a request.
func NewAccountModifyParamsWithContext(ctx context.Context) *AccountModifyParams {
return &AccountModifyParams{
Context: ctx,
}
}
// NewAccountModifyParamsWithHTTPClient creates a new AccountModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewAccountModifyParamsWithHTTPClient(client *http.Client) *AccountModifyParams {
return &AccountModifyParams{
HTTPClient: client,
}
}
/*
AccountModifyParams contains all the parameters to send to the API endpoint
for the account modify operation.
Typically these are written to a http.Request.
*/
type AccountModifyParams struct {
/* Info.
User account details
*/
Info *models.Account
/* Name.
User account name
*/
Name string
/* OwnerUUID.
Account owner UUID
*/
OwnerUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the account modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AccountModifyParams) WithDefaults() *AccountModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the account modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AccountModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the account modify params
func (o *AccountModifyParams) WithTimeout(timeout time.Duration) *AccountModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the account modify params
func (o *AccountModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the account modify params
func (o *AccountModifyParams) WithContext(ctx context.Context) *AccountModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the account modify params
func (o *AccountModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the account modify params
func (o *AccountModifyParams) WithHTTPClient(client *http.Client) *AccountModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the account modify params
func (o *AccountModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the account modify params
func (o *AccountModifyParams) WithInfo(info *models.Account) *AccountModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the account modify params
func (o *AccountModifyParams) SetInfo(info *models.Account) {
o.Info = info
}
// WithName adds the name to the account modify params
func (o *AccountModifyParams) WithName(name string) *AccountModifyParams {
o.SetName(name)
return o
}
// SetName adds the name to the account modify params
func (o *AccountModifyParams) SetName(name string) {
o.Name = name
}
// WithOwnerUUID adds the ownerUUID to the account modify params
func (o *AccountModifyParams) WithOwnerUUID(ownerUUID string) *AccountModifyParams {
o.SetOwnerUUID(ownerUUID)
return o
}
// SetOwnerUUID adds the ownerUuid to the account modify params
func (o *AccountModifyParams) SetOwnerUUID(ownerUUID string) {
o.OwnerUUID = ownerUUID
}
// WriteToRequest writes these params to a swagger request
func (o *AccountModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
// path param owner.uuid
if err := r.SetPathParam("owner.uuid", o.OwnerUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_rekey_internal_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/security/azure_key_vault_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"
)
// AzureKeyVaultRekeyInternalReader is a Reader for the AzureKeyVaultRekeyInternal structure.
type AzureKeyVaultRekeyInternalReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AzureKeyVaultRekeyInternalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewAzureKeyVaultRekeyInternalAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAzureKeyVaultRekeyInternalDefault(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
}
}
// NewAzureKeyVaultRekeyInternalAccepted creates a AzureKeyVaultRekeyInternalAccepted with default headers values
func NewAzureKeyVaultRekeyInternalAccepted() *AzureKeyVaultRekeyInternalAccepted {
return &AzureKeyVaultRekeyInternalAccepted{}
}
/*
AzureKeyVaultRekeyInternalAccepted describes a response with status code 202, with default header values.
Accepted
*/
type AzureKeyVaultRekeyInternalAccepted struct {
}
// IsSuccess returns true when this azure key vault rekey internal accepted response has a 2xx status code
func (o *AzureKeyVaultRekeyInternalAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this azure key vault rekey internal accepted response has a 3xx status code
func (o *AzureKeyVaultRekeyInternalAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this azure key vault rekey internal accepted response has a 4xx status code
func (o *AzureKeyVaultRekeyInternalAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this azure key vault rekey internal accepted response has a 5xx status code
func (o *AzureKeyVaultRekeyInternalAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this azure key vault rekey internal accepted response a status code equal to that given
func (o *AzureKeyVaultRekeyInternalAccepted) IsCode(code int) bool {
return code == 202
}
func (o *AzureKeyVaultRekeyInternalAccepted) Error() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/rekey-internal][%d] azureKeyVaultRekeyInternalAccepted ", 202)
}
func (o *AzureKeyVaultRekeyInternalAccepted) String() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/rekey-internal][%d] azureKeyVaultRekeyInternalAccepted ", 202)
}
func (o *AzureKeyVaultRekeyInternalAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewAzureKeyVaultRekeyInternalDefault creates a AzureKeyVaultRekeyInternalDefault with default headers values
func NewAzureKeyVaultRekeyInternalDefault(code int) *AzureKeyVaultRekeyInternalDefault {
return &AzureKeyVaultRekeyInternalDefault{
_statusCode: code,
}
}
/*
AzureKeyVaultRekeyInternalDefault 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. |
| 65537559 | There are no existing internal keys for the SVM. A rekey operation is allowed for an SVM with one or more encryption keys. |
*/
type AzureKeyVaultRekeyInternalDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the azure key vault rekey internal default response
func (o *AzureKeyVaultRekeyInternalDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this azure key vault rekey internal default response has a 2xx status code
func (o *AzureKeyVaultRekeyInternalDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this azure key vault rekey internal default response has a 3xx status code
func (o *AzureKeyVaultRekeyInternalDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this azure key vault rekey internal default response has a 4xx status code
func (o *AzureKeyVaultRekeyInternalDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this azure key vault rekey internal default response has a 5xx status code
func (o *AzureKeyVaultRekeyInternalDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this azure key vault rekey internal default response a status code equal to that given
func (o *AzureKeyVaultRekeyInternalDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AzureKeyVaultRekeyInternalDefault) Error() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/rekey-internal][%d] azure_key_vault_rekey_internal default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultRekeyInternalDefault) String() string {
return fmt.Sprintf("[POST /security/azure-key-vaults/{uuid}/rekey-internal][%d] azure_key_vault_rekey_internal default %+v", o._statusCode, o.Payload)
}
func (o *AzureKeyVaultRekeyInternalDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AzureKeyVaultRekeyInternalDefault) 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/object_store/s3_service_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3ServiceGetReader is a Reader for the S3ServiceGet structure.
type S3ServiceGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3ServiceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3ServiceGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3ServiceGetDefault(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
}
}
// NewS3ServiceGetOK creates a S3ServiceGetOK with default headers values
func NewS3ServiceGetOK() *S3ServiceGetOK {
return &S3ServiceGetOK{}
}
/*
S3ServiceGetOK describes a response with status code 200, with default header values.
OK
*/
type S3ServiceGetOK struct {
Payload *models.S3Service
}
// IsSuccess returns true when this s3 service get o k response has a 2xx status code
func (o *S3ServiceGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 service get o k response has a 3xx status code
func (o *S3ServiceGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 service get o k response has a 4xx status code
func (o *S3ServiceGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 service get o k response has a 5xx status code
func (o *S3ServiceGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 service get o k response a status code equal to that given
func (o *S3ServiceGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3ServiceGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}][%d] s3ServiceGetOK %+v", 200, o.Payload)
}
func (o *S3ServiceGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}][%d] s3ServiceGetOK %+v", 200, o.Payload)
}
func (o *S3ServiceGetOK) GetPayload() *models.S3Service {
return o.Payload
}
func (o *S3ServiceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3Service)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3ServiceGetDefault creates a S3ServiceGetDefault with default headers values
func NewS3ServiceGetDefault(code int) *S3ServiceGetDefault {
return &S3ServiceGetDefault{
_statusCode: code,
}
}
/*
S3ServiceGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3ServiceGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 service get default response
func (o *S3ServiceGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 service get default response has a 2xx status code
func (o *S3ServiceGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 service get default response has a 3xx status code
func (o *S3ServiceGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 service get default response has a 4xx status code
func (o *S3ServiceGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 service get default response has a 5xx status code
func (o *S3ServiceGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 service get default response a status code equal to that given
func (o *S3ServiceGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3ServiceGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}][%d] s3_service_get default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}][%d] s3_service_get default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3ServiceGetDefault) 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/object_store/s3_user_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_collection_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3UserCollectionGetReader is a Reader for the S3UserCollectionGet structure.
type S3UserCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3UserCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3UserCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3UserCollectionGetDefault(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
}
}
// NewS3UserCollectionGetOK creates a S3UserCollectionGetOK with default headers values
func NewS3UserCollectionGetOK() *S3UserCollectionGetOK {
return &S3UserCollectionGetOK{}
}
/*
S3UserCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type S3UserCollectionGetOK struct {
Payload *models.S3UserResponse
}
// IsSuccess returns true when this s3 user collection get o k response has a 2xx status code
func (o *S3UserCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 user collection get o k response has a 3xx status code
func (o *S3UserCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 user collection get o k response has a 4xx status code
func (o *S3UserCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 user collection get o k response has a 5xx status code
func (o *S3UserCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 user collection get o k response a status code equal to that given
func (o *S3UserCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3UserCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users][%d] s3UserCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3UserCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users][%d] s3UserCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3UserCollectionGetOK) GetPayload() *models.S3UserResponse {
return o.Payload
}
func (o *S3UserCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3UserResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3UserCollectionGetDefault creates a S3UserCollectionGetDefault with default headers values
func NewS3UserCollectionGetDefault(code int) *S3UserCollectionGetDefault {
return &S3UserCollectionGetDefault{
_statusCode: code,
}
}
/*
S3UserCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3UserCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 user collection get default response
func (o *S3UserCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 user collection get default response has a 2xx status code
func (o *S3UserCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 user collection get default response has a 3xx status code
func (o *S3UserCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 user collection get default response has a 4xx status code
func (o *S3UserCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 user collection get default response has a 5xx status code
func (o *S3UserCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 user collection get default response a status code equal to that given
func (o *S3UserCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3UserCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users][%d] s3_user_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3UserCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users][%d] s3_user_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3UserCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3UserCollectionGetDefault) 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/object_store/s3_policy_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_create_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3PolicyCreateParams creates a new S3PolicyCreateParams 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 NewS3PolicyCreateParams() *S3PolicyCreateParams {
return &S3PolicyCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3PolicyCreateParamsWithTimeout creates a new S3PolicyCreateParams object
// with the ability to set a timeout on a request.
func NewS3PolicyCreateParamsWithTimeout(timeout time.Duration) *S3PolicyCreateParams {
return &S3PolicyCreateParams{
timeout: timeout,
}
}
// NewS3PolicyCreateParamsWithContext creates a new S3PolicyCreateParams object
// with the ability to set a context for a request.
func NewS3PolicyCreateParamsWithContext(ctx context.Context) *S3PolicyCreateParams {
return &S3PolicyCreateParams{
Context: ctx,
}
}
// NewS3PolicyCreateParamsWithHTTPClient creates a new S3PolicyCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3PolicyCreateParamsWithHTTPClient(client *http.Client) *S3PolicyCreateParams {
return &S3PolicyCreateParams{
HTTPClient: client,
}
}
/*
S3PolicyCreateParams contains all the parameters to send to the API endpoint
for the s3 policy create operation.
Typically these are written to a http.Request.
*/
type S3PolicyCreateParams struct {
/* Info.
Info specification
*/
Info *models.S3Policy
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 policy create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyCreateParams) WithDefaults() *S3PolicyCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 policy create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := S3PolicyCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 policy create params
func (o *S3PolicyCreateParams) WithTimeout(timeout time.Duration) *S3PolicyCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 policy create params
func (o *S3PolicyCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 policy create params
func (o *S3PolicyCreateParams) WithContext(ctx context.Context) *S3PolicyCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 policy create params
func (o *S3PolicyCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 policy create params
func (o *S3PolicyCreateParams) WithHTTPClient(client *http.Client) *S3PolicyCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 policy create params
func (o *S3PolicyCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 policy create params
func (o *S3PolicyCreateParams) WithInfo(info *models.S3Policy) *S3PolicyCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 policy create params
func (o *S3PolicyCreateParams) SetInfo(info *models.S3Policy) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the s3 policy create params
func (o *S3PolicyCreateParams) WithReturnRecords(returnRecords *bool) *S3PolicyCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 policy create params
func (o *S3PolicyCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSvmUUID adds the svmUUID to the s3 policy create params
func (o *S3PolicyCreateParams) WithSvmUUID(svmUUID string) *S3PolicyCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 policy create params
func (o *S3PolicyCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3PolicyCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_create_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketSvmCreateParams creates a new S3BucketSvmCreateParams 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 NewS3BucketSvmCreateParams() *S3BucketSvmCreateParams {
return &S3BucketSvmCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketSvmCreateParamsWithTimeout creates a new S3BucketSvmCreateParams object
// with the ability to set a timeout on a request.
func NewS3BucketSvmCreateParamsWithTimeout(timeout time.Duration) *S3BucketSvmCreateParams {
return &S3BucketSvmCreateParams{
timeout: timeout,
}
}
// NewS3BucketSvmCreateParamsWithContext creates a new S3BucketSvmCreateParams object
// with the ability to set a context for a request.
func NewS3BucketSvmCreateParamsWithContext(ctx context.Context) *S3BucketSvmCreateParams {
return &S3BucketSvmCreateParams{
Context: ctx,
}
}
// NewS3BucketSvmCreateParamsWithHTTPClient creates a new S3BucketSvmCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketSvmCreateParamsWithHTTPClient(client *http.Client) *S3BucketSvmCreateParams {
return &S3BucketSvmCreateParams{
HTTPClient: client,
}
}
/*
S3BucketSvmCreateParams contains all the parameters to send to the API endpoint
for the s3 bucket svm create operation.
Typically these are written to a http.Request.
*/
type S3BucketSvmCreateParams struct {
/* Info.
Info specification
*/
Info *models.S3BucketSvm
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202.
*/
ReturnTimeout *int64
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 bucket svm create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmCreateParams) WithDefaults() *S3BucketSvmCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket svm create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := S3BucketSvmCreateParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) WithTimeout(timeout time.Duration) *S3BucketSvmCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) WithContext(ctx context.Context) *S3BucketSvmCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) WithHTTPClient(client *http.Client) *S3BucketSvmCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) WithInfo(info *models.S3BucketSvm) *S3BucketSvmCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) SetInfo(info *models.S3BucketSvm) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) WithReturnRecords(returnRecords *bool) *S3BucketSvmCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) WithReturnTimeout(returnTimeout *int64) *S3BucketSvmCreateParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) WithSvmUUID(svmUUID string) *S3BucketSvmCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 bucket svm create params
func (o *S3BucketSvmCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketSvmCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
// 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/object_store/buckets_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/buckets_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewBucketsCollectionGetParams creates a new BucketsCollectionGetParams 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 NewBucketsCollectionGetParams() *BucketsCollectionGetParams {
return &BucketsCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewBucketsCollectionGetParamsWithTimeout creates a new BucketsCollectionGetParams object
// with the ability to set a timeout on a request.
func NewBucketsCollectionGetParamsWithTimeout(timeout time.Duration) *BucketsCollectionGetParams {
return &BucketsCollectionGetParams{
timeout: timeout,
}
}
// NewBucketsCollectionGetParamsWithContext creates a new BucketsCollectionGetParams object
// with the ability to set a context for a request.
func NewBucketsCollectionGetParamsWithContext(ctx context.Context) *BucketsCollectionGetParams {
return &BucketsCollectionGetParams{
Context: ctx,
}
}
// NewBucketsCollectionGetParamsWithHTTPClient creates a new BucketsCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewBucketsCollectionGetParamsWithHTTPClient(client *http.Client) *BucketsCollectionGetParams {
return &BucketsCollectionGetParams{
HTTPClient: client,
}
}
/*
BucketsCollectionGetParams contains all the parameters to send to the API endpoint
for the buckets collection get operation.
Typically these are written to a http.Request.
*/
type BucketsCollectionGetParams struct {
/* AuditEventSelectorAccess.
Filter by audit_event_selector.access
*/
AuditEventSelectorAccess *string
/* AuditEventSelectorPermission.
Filter by audit_event_selector.permission
*/
AuditEventSelectorPermission *string
/* Comment.
Filter by comment
*/
Comment *string
/* EncryptionEnabled.
Filter by encryption.enabled
*/
EncryptionEnabled *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* LogicalUsedSize.
Filter by logical_used_size
*/
LogicalUsedSize *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Name.
Filter by name
*/
Name *string
/* NasPath.
Filter by nas_path
*/
NasPath *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* PolicyStatementsActions.
Filter by policy.statements.actions
*/
PolicyStatementsActions *string
/* PolicyStatementsConditionsDelimiters.
Filter by policy.statements.conditions.delimiters
*/
PolicyStatementsConditionsDelimiters *string
/* PolicyStatementsConditionsMaxKeys.
Filter by policy.statements.conditions.max_keys
*/
PolicyStatementsConditionsMaxKeys *int64
/* PolicyStatementsConditionsOperator.
Filter by policy.statements.conditions.operator
*/
PolicyStatementsConditionsOperator *string
/* PolicyStatementsConditionsPrefixes.
Filter by policy.statements.conditions.prefixes
*/
PolicyStatementsConditionsPrefixes *string
/* PolicyStatementsConditionsSourceIps.
Filter by policy.statements.conditions.source_ips
*/
PolicyStatementsConditionsSourceIps *string
/* PolicyStatementsConditionsUsernames.
Filter by policy.statements.conditions.usernames
*/
PolicyStatementsConditionsUsernames *string
/* PolicyStatementsEffect.
Filter by policy.statements.effect
*/
PolicyStatementsEffect *string
/* PolicyStatementsPrincipals.
Filter by policy.statements.principals
*/
PolicyStatementsPrincipals *string
/* PolicyStatementsResources.
Filter by policy.statements.resources
*/
PolicyStatementsResources *string
/* PolicyStatementsSid.
Filter by policy.statements.sid
*/
PolicyStatementsSid *string
/* ProtectionStatusDestinationIsCloud.
Filter by protection_status.destination.is_cloud
*/
ProtectionStatusDestinationIsCloud *bool
/* ProtectionStatusDestinationIsExternalCloud.
Filter by protection_status.destination.is_external_cloud
*/
ProtectionStatusDestinationIsExternalCloud *bool
/* ProtectionStatusDestinationIsOntap.
Filter by protection_status.destination.is_ontap
*/
ProtectionStatusDestinationIsOntap *bool
/* ProtectionStatusIsProtected.
Filter by protection_status.is_protected
*/
ProtectionStatusIsProtected *bool
/* QosPolicyMaxThroughputIops.
Filter by qos_policy.max_throughput_iops
*/
QosPolicyMaxThroughputIops *int64
/* QosPolicyMaxThroughputMbps.
Filter by qos_policy.max_throughput_mbps
*/
QosPolicyMaxThroughputMbps *int64
/* QosPolicyMinThroughputIops.
Filter by qos_policy.min_throughput_iops
*/
QosPolicyMinThroughputIops *int64
/* QosPolicyMinThroughputMbps.
Filter by qos_policy.min_throughput_mbps
*/
QosPolicyMinThroughputMbps *int64
/* QosPolicyName.
Filter by qos_policy.name
*/
QosPolicyName *string
/* QosPolicyUUID.
Filter by qos_policy.uuid
*/
QosPolicyUUID *string
/* 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
/* Role.
Filter by role
*/
Role *string
/* Size.
Filter by size
*/
Size *int64
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* Type.
Filter by type
*/
Type *string
/* UUID.
Filter by uuid
*/
UUID *string
/* VersioningState.
Filter by versioning_state
*/
VersioningState *string
/* VolumeName.
Filter by volume.name
*/
VolumeName *string
/* VolumeUUID.
Filter by volume.uuid
*/
VolumeUUID *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the buckets collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *BucketsCollectionGetParams) WithDefaults() *BucketsCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the buckets collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *BucketsCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := BucketsCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the buckets collection get params
func (o *BucketsCollectionGetParams) WithTimeout(timeout time.Duration) *BucketsCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the buckets collection get params
func (o *BucketsCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the buckets collection get params
func (o *BucketsCollectionGetParams) WithContext(ctx context.Context) *BucketsCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the buckets collection get params
func (o *BucketsCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the buckets collection get params
func (o *BucketsCollectionGetParams) WithHTTPClient(client *http.Client) *BucketsCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the buckets collection get params
func (o *BucketsCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAuditEventSelectorAccess adds the auditEventSelectorAccess to the buckets collection get params
func (o *BucketsCollectionGetParams) WithAuditEventSelectorAccess(auditEventSelectorAccess *string) *BucketsCollectionGetParams {
o.SetAuditEventSelectorAccess(auditEventSelectorAccess)
return o
}
// SetAuditEventSelectorAccess adds the auditEventSelectorAccess to the buckets collection get params
func (o *BucketsCollectionGetParams) SetAuditEventSelectorAccess(auditEventSelectorAccess *string) {
o.AuditEventSelectorAccess = auditEventSelectorAccess
}
// WithAuditEventSelectorPermission adds the auditEventSelectorPermission to the buckets collection get params
func (o *BucketsCollectionGetParams) WithAuditEventSelectorPermission(auditEventSelectorPermission *string) *BucketsCollectionGetParams {
o.SetAuditEventSelectorPermission(auditEventSelectorPermission)
return o
}
// SetAuditEventSelectorPermission adds the auditEventSelectorPermission to the buckets collection get params
func (o *BucketsCollectionGetParams) SetAuditEventSelectorPermission(auditEventSelectorPermission *string) {
o.AuditEventSelectorPermission = auditEventSelectorPermission
}
// WithComment adds the comment to the buckets collection get params
func (o *BucketsCollectionGetParams) WithComment(comment *string) *BucketsCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the buckets collection get params
func (o *BucketsCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithEncryptionEnabled adds the encryptionEnabled to the buckets collection get params
func (o *BucketsCollectionGetParams) WithEncryptionEnabled(encryptionEnabled *bool) *BucketsCollectionGetParams {
o.SetEncryptionEnabled(encryptionEnabled)
return o
}
// SetEncryptionEnabled adds the encryptionEnabled to the buckets collection get params
func (o *BucketsCollectionGetParams) SetEncryptionEnabled(encryptionEnabled *bool) {
o.EncryptionEnabled = encryptionEnabled
}
// WithFields adds the fields to the buckets collection get params
func (o *BucketsCollectionGetParams) WithFields(fields []string) *BucketsCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the buckets collection get params
func (o *BucketsCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithLogicalUsedSize adds the logicalUsedSize to the buckets collection get params
func (o *BucketsCollectionGetParams) WithLogicalUsedSize(logicalUsedSize *int64) *BucketsCollectionGetParams {
o.SetLogicalUsedSize(logicalUsedSize)
return o
}
// SetLogicalUsedSize adds the logicalUsedSize to the buckets collection get params
func (o *BucketsCollectionGetParams) SetLogicalUsedSize(logicalUsedSize *int64) {
o.LogicalUsedSize = logicalUsedSize
}
// WithMaxRecords adds the maxRecords to the buckets collection get params
func (o *BucketsCollectionGetParams) WithMaxRecords(maxRecords *int64) *BucketsCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the buckets collection get params
func (o *BucketsCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the buckets collection get params
func (o *BucketsCollectionGetParams) WithName(name *string) *BucketsCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the buckets collection get params
func (o *BucketsCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithNasPath adds the nasPath to the buckets collection get params
func (o *BucketsCollectionGetParams) WithNasPath(nasPath *string) *BucketsCollectionGetParams {
o.SetNasPath(nasPath)
return o
}
// SetNasPath adds the nasPath to the buckets collection get params
func (o *BucketsCollectionGetParams) SetNasPath(nasPath *string) {
o.NasPath = nasPath
}
// WithOrderBy adds the orderBy to the buckets collection get params
func (o *BucketsCollectionGetParams) WithOrderBy(orderBy []string) *BucketsCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the buckets collection get params
func (o *BucketsCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPolicyStatementsActions adds the policyStatementsActions to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsActions(policyStatementsActions *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsActions(policyStatementsActions)
return o
}
// SetPolicyStatementsActions adds the policyStatementsActions to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsActions(policyStatementsActions *string) {
o.PolicyStatementsActions = policyStatementsActions
}
// WithPolicyStatementsConditionsDelimiters adds the policyStatementsConditionsDelimiters to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsConditionsDelimiters(policyStatementsConditionsDelimiters *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsConditionsDelimiters(policyStatementsConditionsDelimiters)
return o
}
// SetPolicyStatementsConditionsDelimiters adds the policyStatementsConditionsDelimiters to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsConditionsDelimiters(policyStatementsConditionsDelimiters *string) {
o.PolicyStatementsConditionsDelimiters = policyStatementsConditionsDelimiters
}
// WithPolicyStatementsConditionsMaxKeys adds the policyStatementsConditionsMaxKeys to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsConditionsMaxKeys(policyStatementsConditionsMaxKeys *int64) *BucketsCollectionGetParams {
o.SetPolicyStatementsConditionsMaxKeys(policyStatementsConditionsMaxKeys)
return o
}
// SetPolicyStatementsConditionsMaxKeys adds the policyStatementsConditionsMaxKeys to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsConditionsMaxKeys(policyStatementsConditionsMaxKeys *int64) {
o.PolicyStatementsConditionsMaxKeys = policyStatementsConditionsMaxKeys
}
// WithPolicyStatementsConditionsOperator adds the policyStatementsConditionsOperator to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsConditionsOperator(policyStatementsConditionsOperator *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsConditionsOperator(policyStatementsConditionsOperator)
return o
}
// SetPolicyStatementsConditionsOperator adds the policyStatementsConditionsOperator to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsConditionsOperator(policyStatementsConditionsOperator *string) {
o.PolicyStatementsConditionsOperator = policyStatementsConditionsOperator
}
// WithPolicyStatementsConditionsPrefixes adds the policyStatementsConditionsPrefixes to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsConditionsPrefixes(policyStatementsConditionsPrefixes *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsConditionsPrefixes(policyStatementsConditionsPrefixes)
return o
}
// SetPolicyStatementsConditionsPrefixes adds the policyStatementsConditionsPrefixes to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsConditionsPrefixes(policyStatementsConditionsPrefixes *string) {
o.PolicyStatementsConditionsPrefixes = policyStatementsConditionsPrefixes
}
// WithPolicyStatementsConditionsSourceIps adds the policyStatementsConditionsSourceIps to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsConditionsSourceIps(policyStatementsConditionsSourceIps *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsConditionsSourceIps(policyStatementsConditionsSourceIps)
return o
}
// SetPolicyStatementsConditionsSourceIps adds the policyStatementsConditionsSourceIps to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsConditionsSourceIps(policyStatementsConditionsSourceIps *string) {
o.PolicyStatementsConditionsSourceIps = policyStatementsConditionsSourceIps
}
// WithPolicyStatementsConditionsUsernames adds the policyStatementsConditionsUsernames to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsConditionsUsernames(policyStatementsConditionsUsernames *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsConditionsUsernames(policyStatementsConditionsUsernames)
return o
}
// SetPolicyStatementsConditionsUsernames adds the policyStatementsConditionsUsernames to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsConditionsUsernames(policyStatementsConditionsUsernames *string) {
o.PolicyStatementsConditionsUsernames = policyStatementsConditionsUsernames
}
// WithPolicyStatementsEffect adds the policyStatementsEffect to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsEffect(policyStatementsEffect *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsEffect(policyStatementsEffect)
return o
}
// SetPolicyStatementsEffect adds the policyStatementsEffect to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsEffect(policyStatementsEffect *string) {
o.PolicyStatementsEffect = policyStatementsEffect
}
// WithPolicyStatementsPrincipals adds the policyStatementsPrincipals to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsPrincipals(policyStatementsPrincipals *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsPrincipals(policyStatementsPrincipals)
return o
}
// SetPolicyStatementsPrincipals adds the policyStatementsPrincipals to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsPrincipals(policyStatementsPrincipals *string) {
o.PolicyStatementsPrincipals = policyStatementsPrincipals
}
// WithPolicyStatementsResources adds the policyStatementsResources to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsResources(policyStatementsResources *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsResources(policyStatementsResources)
return o
}
// SetPolicyStatementsResources adds the policyStatementsResources to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsResources(policyStatementsResources *string) {
o.PolicyStatementsResources = policyStatementsResources
}
// WithPolicyStatementsSid adds the policyStatementsSid to the buckets collection get params
func (o *BucketsCollectionGetParams) WithPolicyStatementsSid(policyStatementsSid *string) *BucketsCollectionGetParams {
o.SetPolicyStatementsSid(policyStatementsSid)
return o
}
// SetPolicyStatementsSid adds the policyStatementsSid to the buckets collection get params
func (o *BucketsCollectionGetParams) SetPolicyStatementsSid(policyStatementsSid *string) {
o.PolicyStatementsSid = policyStatementsSid
}
// WithProtectionStatusDestinationIsCloud adds the protectionStatusDestinationIsCloud to the buckets collection get params
func (o *BucketsCollectionGetParams) WithProtectionStatusDestinationIsCloud(protectionStatusDestinationIsCloud *bool) *BucketsCollectionGetParams {
o.SetProtectionStatusDestinationIsCloud(protectionStatusDestinationIsCloud)
return o
}
// SetProtectionStatusDestinationIsCloud adds the protectionStatusDestinationIsCloud to the buckets collection get params
func (o *BucketsCollectionGetParams) SetProtectionStatusDestinationIsCloud(protectionStatusDestinationIsCloud *bool) {
o.ProtectionStatusDestinationIsCloud = protectionStatusDestinationIsCloud
}
// WithProtectionStatusDestinationIsExternalCloud adds the protectionStatusDestinationIsExternalCloud to the buckets collection get params
func (o *BucketsCollectionGetParams) WithProtectionStatusDestinationIsExternalCloud(protectionStatusDestinationIsExternalCloud *bool) *BucketsCollectionGetParams {
o.SetProtectionStatusDestinationIsExternalCloud(protectionStatusDestinationIsExternalCloud)
return o
}
// SetProtectionStatusDestinationIsExternalCloud adds the protectionStatusDestinationIsExternalCloud to the buckets collection get params
func (o *BucketsCollectionGetParams) SetProtectionStatusDestinationIsExternalCloud(protectionStatusDestinationIsExternalCloud *bool) {
o.ProtectionStatusDestinationIsExternalCloud = protectionStatusDestinationIsExternalCloud
}
// WithProtectionStatusDestinationIsOntap adds the protectionStatusDestinationIsOntap to the buckets collection get params
func (o *BucketsCollectionGetParams) WithProtectionStatusDestinationIsOntap(protectionStatusDestinationIsOntap *bool) *BucketsCollectionGetParams {
o.SetProtectionStatusDestinationIsOntap(protectionStatusDestinationIsOntap)
return o
}
// SetProtectionStatusDestinationIsOntap adds the protectionStatusDestinationIsOntap to the buckets collection get params
func (o *BucketsCollectionGetParams) SetProtectionStatusDestinationIsOntap(protectionStatusDestinationIsOntap *bool) {
o.ProtectionStatusDestinationIsOntap = protectionStatusDestinationIsOntap
}
// WithProtectionStatusIsProtected adds the protectionStatusIsProtected to the buckets collection get params
func (o *BucketsCollectionGetParams) WithProtectionStatusIsProtected(protectionStatusIsProtected *bool) *BucketsCollectionGetParams {
o.SetProtectionStatusIsProtected(protectionStatusIsProtected)
return o
}
// SetProtectionStatusIsProtected adds the protectionStatusIsProtected to the buckets collection get params
func (o *BucketsCollectionGetParams) SetProtectionStatusIsProtected(protectionStatusIsProtected *bool) {
o.ProtectionStatusIsProtected = protectionStatusIsProtected
}
// WithQosPolicyMaxThroughputIops adds the qosPolicyMaxThroughputIops to the buckets collection get params
func (o *BucketsCollectionGetParams) WithQosPolicyMaxThroughputIops(qosPolicyMaxThroughputIops *int64) *BucketsCollectionGetParams {
o.SetQosPolicyMaxThroughputIops(qosPolicyMaxThroughputIops)
return o
}
// SetQosPolicyMaxThroughputIops adds the qosPolicyMaxThroughputIops to the buckets collection get params
func (o *BucketsCollectionGetParams) SetQosPolicyMaxThroughputIops(qosPolicyMaxThroughputIops *int64) {
o.QosPolicyMaxThroughputIops = qosPolicyMaxThroughputIops
}
// WithQosPolicyMaxThroughputMbps adds the qosPolicyMaxThroughputMbps to the buckets collection get params
func (o *BucketsCollectionGetParams) WithQosPolicyMaxThroughputMbps(qosPolicyMaxThroughputMbps *int64) *BucketsCollectionGetParams {
o.SetQosPolicyMaxThroughputMbps(qosPolicyMaxThroughputMbps)
return o
}
// SetQosPolicyMaxThroughputMbps adds the qosPolicyMaxThroughputMbps to the buckets collection get params
func (o *BucketsCollectionGetParams) SetQosPolicyMaxThroughputMbps(qosPolicyMaxThroughputMbps *int64) {
o.QosPolicyMaxThroughputMbps = qosPolicyMaxThroughputMbps
}
// WithQosPolicyMinThroughputIops adds the qosPolicyMinThroughputIops to the buckets collection get params
func (o *BucketsCollectionGetParams) WithQosPolicyMinThroughputIops(qosPolicyMinThroughputIops *int64) *BucketsCollectionGetParams {
o.SetQosPolicyMinThroughputIops(qosPolicyMinThroughputIops)
return o
}
// SetQosPolicyMinThroughputIops adds the qosPolicyMinThroughputIops to the buckets collection get params
func (o *BucketsCollectionGetParams) SetQosPolicyMinThroughputIops(qosPolicyMinThroughputIops *int64) {
o.QosPolicyMinThroughputIops = qosPolicyMinThroughputIops
}
// WithQosPolicyMinThroughputMbps adds the qosPolicyMinThroughputMbps to the buckets collection get params
func (o *BucketsCollectionGetParams) WithQosPolicyMinThroughputMbps(qosPolicyMinThroughputMbps *int64) *BucketsCollectionGetParams {
o.SetQosPolicyMinThroughputMbps(qosPolicyMinThroughputMbps)
return o
}
// SetQosPolicyMinThroughputMbps adds the qosPolicyMinThroughputMbps to the buckets collection get params
func (o *BucketsCollectionGetParams) SetQosPolicyMinThroughputMbps(qosPolicyMinThroughputMbps *int64) {
o.QosPolicyMinThroughputMbps = qosPolicyMinThroughputMbps
}
// WithQosPolicyName adds the qosPolicyName to the buckets collection get params
func (o *BucketsCollectionGetParams) WithQosPolicyName(qosPolicyName *string) *BucketsCollectionGetParams {
o.SetQosPolicyName(qosPolicyName)
return o
}
// SetQosPolicyName adds the qosPolicyName to the buckets collection get params
func (o *BucketsCollectionGetParams) SetQosPolicyName(qosPolicyName *string) {
o.QosPolicyName = qosPolicyName
}
// WithQosPolicyUUID adds the qosPolicyUUID to the buckets collection get params
func (o *BucketsCollectionGetParams) WithQosPolicyUUID(qosPolicyUUID *string) *BucketsCollectionGetParams {
o.SetQosPolicyUUID(qosPolicyUUID)
return o
}
// SetQosPolicyUUID adds the qosPolicyUuid to the buckets collection get params
func (o *BucketsCollectionGetParams) SetQosPolicyUUID(qosPolicyUUID *string) {
o.QosPolicyUUID = qosPolicyUUID
}
// WithReturnRecords adds the returnRecords to the buckets collection get params
func (o *BucketsCollectionGetParams) WithReturnRecords(returnRecords *bool) *BucketsCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the buckets collection get params
func (o *BucketsCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the buckets collection get params
func (o *BucketsCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *BucketsCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the buckets collection get params
func (o *BucketsCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithRole adds the role to the buckets collection get params
func (o *BucketsCollectionGetParams) WithRole(role *string) *BucketsCollectionGetParams {
o.SetRole(role)
return o
}
// SetRole adds the role to the buckets collection get params
func (o *BucketsCollectionGetParams) SetRole(role *string) {
o.Role = role
}
// WithSize adds the size to the buckets collection get params
func (o *BucketsCollectionGetParams) WithSize(size *int64) *BucketsCollectionGetParams {
o.SetSize(size)
return o
}
// SetSize adds the size to the buckets collection get params
func (o *BucketsCollectionGetParams) SetSize(size *int64) {
o.Size = size
}
// WithSvmName adds the svmName to the buckets collection get params
func (o *BucketsCollectionGetParams) WithSvmName(svmName *string) *BucketsCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the buckets collection get params
func (o *BucketsCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the buckets collection get params
func (o *BucketsCollectionGetParams) WithSvmUUID(svmUUID string) *BucketsCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the buckets collection get params
func (o *BucketsCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithType adds the typeVar to the buckets collection get params
func (o *BucketsCollectionGetParams) WithType(typeVar *string) *BucketsCollectionGetParams {
o.SetType(typeVar)
return o
}
// SetType adds the type to the buckets collection get params
func (o *BucketsCollectionGetParams) SetType(typeVar *string) {
o.Type = typeVar
}
// WithUUID adds the uuid to the buckets collection get params
func (o *BucketsCollectionGetParams) WithUUID(uuid *string) *BucketsCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the buckets collection get params
func (o *BucketsCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WithVersioningState adds the versioningState to the buckets collection get params
func (o *BucketsCollectionGetParams) WithVersioningState(versioningState *string) *BucketsCollectionGetParams {
o.SetVersioningState(versioningState)
return o
}
// SetVersioningState adds the versioningState to the buckets collection get params
func (o *BucketsCollectionGetParams) SetVersioningState(versioningState *string) {
o.VersioningState = versioningState
}
// WithVolumeName adds the volumeName to the buckets collection get params
func (o *BucketsCollectionGetParams) WithVolumeName(volumeName *string) *BucketsCollectionGetParams {
o.SetVolumeName(volumeName)
return o
}
// SetVolumeName adds the volumeName to the buckets collection get params
func (o *BucketsCollectionGetParams) SetVolumeName(volumeName *string) {
o.VolumeName = volumeName
}
// WithVolumeUUID adds the volumeUUID to the buckets collection get params
func (o *BucketsCollectionGetParams) WithVolumeUUID(volumeUUID *string) *BucketsCollectionGetParams {
o.SetVolumeUUID(volumeUUID)
return o
}
// SetVolumeUUID adds the volumeUuid to the buckets collection get params
func (o *BucketsCollectionGetParams) SetVolumeUUID(volumeUUID *string) {
o.VolumeUUID = volumeUUID
}
// WriteToRequest writes these params to a swagger request
func (o *BucketsCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.AuditEventSelectorAccess != nil {
// query param audit_event_selector.access
var qrAuditEventSelectorAccess string
if o.AuditEventSelectorAccess != nil {
qrAuditEventSelectorAccess = *o.AuditEventSelectorAccess
}
qAuditEventSelectorAccess := qrAuditEventSelectorAccess
if qAuditEventSelectorAccess != "" {
if err := r.SetQueryParam("audit_event_selector.access", qAuditEventSelectorAccess); err != nil {
return err
}
}
}
if o.AuditEventSelectorPermission != nil {
// query param audit_event_selector.permission
var qrAuditEventSelectorPermission string
if o.AuditEventSelectorPermission != nil {
qrAuditEventSelectorPermission = *o.AuditEventSelectorPermission
}
qAuditEventSelectorPermission := qrAuditEventSelectorPermission
if qAuditEventSelectorPermission != "" {
if err := r.SetQueryParam("audit_event_selector.permission", qAuditEventSelectorPermission); 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.EncryptionEnabled != nil {
// query param encryption.enabled
var qrEncryptionEnabled bool
if o.EncryptionEnabled != nil {
qrEncryptionEnabled = *o.EncryptionEnabled
}
qEncryptionEnabled := swag.FormatBool(qrEncryptionEnabled)
if qEncryptionEnabled != "" {
if err := r.SetQueryParam("encryption.enabled", qEncryptionEnabled); 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.LogicalUsedSize != nil {
// query param logical_used_size
var qrLogicalUsedSize int64
if o.LogicalUsedSize != nil {
qrLogicalUsedSize = *o.LogicalUsedSize
}
qLogicalUsedSize := swag.FormatInt64(qrLogicalUsedSize)
if qLogicalUsedSize != "" {
if err := r.SetQueryParam("logical_used_size", qLogicalUsedSize); 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.NasPath != nil {
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | true |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_create_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3GroupCreateParams creates a new S3GroupCreateParams 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 NewS3GroupCreateParams() *S3GroupCreateParams {
return &S3GroupCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3GroupCreateParamsWithTimeout creates a new S3GroupCreateParams object
// with the ability to set a timeout on a request.
func NewS3GroupCreateParamsWithTimeout(timeout time.Duration) *S3GroupCreateParams {
return &S3GroupCreateParams{
timeout: timeout,
}
}
// NewS3GroupCreateParamsWithContext creates a new S3GroupCreateParams object
// with the ability to set a context for a request.
func NewS3GroupCreateParamsWithContext(ctx context.Context) *S3GroupCreateParams {
return &S3GroupCreateParams{
Context: ctx,
}
}
// NewS3GroupCreateParamsWithHTTPClient creates a new S3GroupCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3GroupCreateParamsWithHTTPClient(client *http.Client) *S3GroupCreateParams {
return &S3GroupCreateParams{
HTTPClient: client,
}
}
/*
S3GroupCreateParams contains all the parameters to send to the API endpoint
for the s3 group create operation.
Typically these are written to a http.Request.
*/
type S3GroupCreateParams struct {
/* Info.
Info specification
*/
Info *models.S3Group
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 group create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupCreateParams) WithDefaults() *S3GroupCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 group create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := S3GroupCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 group create params
func (o *S3GroupCreateParams) WithTimeout(timeout time.Duration) *S3GroupCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 group create params
func (o *S3GroupCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 group create params
func (o *S3GroupCreateParams) WithContext(ctx context.Context) *S3GroupCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 group create params
func (o *S3GroupCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 group create params
func (o *S3GroupCreateParams) WithHTTPClient(client *http.Client) *S3GroupCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 group create params
func (o *S3GroupCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 group create params
func (o *S3GroupCreateParams) WithInfo(info *models.S3Group) *S3GroupCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 group create params
func (o *S3GroupCreateParams) SetInfo(info *models.S3Group) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the s3 group create params
func (o *S3GroupCreateParams) WithReturnRecords(returnRecords *bool) *S3GroupCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 group create params
func (o *S3GroupCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSvmUUID adds the svmUUID to the s3 group create params
func (o *S3GroupCreateParams) WithSvmUUID(svmUUID string) *S3GroupCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 group create params
func (o *S3GroupCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3GroupCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3PolicyGetParams creates a new S3PolicyGetParams 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 NewS3PolicyGetParams() *S3PolicyGetParams {
return &S3PolicyGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3PolicyGetParamsWithTimeout creates a new S3PolicyGetParams object
// with the ability to set a timeout on a request.
func NewS3PolicyGetParamsWithTimeout(timeout time.Duration) *S3PolicyGetParams {
return &S3PolicyGetParams{
timeout: timeout,
}
}
// NewS3PolicyGetParamsWithContext creates a new S3PolicyGetParams object
// with the ability to set a context for a request.
func NewS3PolicyGetParamsWithContext(ctx context.Context) *S3PolicyGetParams {
return &S3PolicyGetParams{
Context: ctx,
}
}
// NewS3PolicyGetParamsWithHTTPClient creates a new S3PolicyGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3PolicyGetParamsWithHTTPClient(client *http.Client) *S3PolicyGetParams {
return &S3PolicyGetParams{
HTTPClient: client,
}
}
/*
S3PolicyGetParams contains all the parameters to send to the API endpoint
for the s3 policy get operation.
Typically these are written to a http.Request.
*/
type S3PolicyGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Name.
Policy name
*/
Name string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 policy get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyGetParams) WithDefaults() *S3PolicyGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 policy get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 policy get params
func (o *S3PolicyGetParams) WithTimeout(timeout time.Duration) *S3PolicyGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 policy get params
func (o *S3PolicyGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 policy get params
func (o *S3PolicyGetParams) WithContext(ctx context.Context) *S3PolicyGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 policy get params
func (o *S3PolicyGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 policy get params
func (o *S3PolicyGetParams) WithHTTPClient(client *http.Client) *S3PolicyGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 policy get params
func (o *S3PolicyGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the s3 policy get params
func (o *S3PolicyGetParams) WithFields(fields []string) *S3PolicyGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 policy get params
func (o *S3PolicyGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithName adds the name to the s3 policy get params
func (o *S3PolicyGetParams) WithName(name string) *S3PolicyGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 policy get params
func (o *S3PolicyGetParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the s3 policy get params
func (o *S3PolicyGetParams) WithSvmUUID(svmUUID string) *S3PolicyGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 policy get params
func (o *S3PolicyGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3PolicyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3PolicyGet binds the parameter fields
func (o *S3PolicyGetParams) 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/object_store/s3_service_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_delete_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3ServiceDeleteParams creates a new S3ServiceDeleteParams 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 NewS3ServiceDeleteParams() *S3ServiceDeleteParams {
return &S3ServiceDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3ServiceDeleteParamsWithTimeout creates a new S3ServiceDeleteParams object
// with the ability to set a timeout on a request.
func NewS3ServiceDeleteParamsWithTimeout(timeout time.Duration) *S3ServiceDeleteParams {
return &S3ServiceDeleteParams{
timeout: timeout,
}
}
// NewS3ServiceDeleteParamsWithContext creates a new S3ServiceDeleteParams object
// with the ability to set a context for a request.
func NewS3ServiceDeleteParamsWithContext(ctx context.Context) *S3ServiceDeleteParams {
return &S3ServiceDeleteParams{
Context: ctx,
}
}
// NewS3ServiceDeleteParamsWithHTTPClient creates a new S3ServiceDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3ServiceDeleteParamsWithHTTPClient(client *http.Client) *S3ServiceDeleteParams {
return &S3ServiceDeleteParams{
HTTPClient: client,
}
}
/*
S3ServiceDeleteParams contains all the parameters to send to the API endpoint
for the s3 service delete operation.
Typically these are written to a http.Request.
*/
type S3ServiceDeleteParams struct {
/* DeleteAll.
Delete S3 server and associated users and empty buckets.
Default: true
*/
DeleteAll *bool
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 service delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceDeleteParams) WithDefaults() *S3ServiceDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 service delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceDeleteParams) SetDefaults() {
var (
deleteAllDefault = bool(true)
)
val := S3ServiceDeleteParams{
DeleteAll: &deleteAllDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 service delete params
func (o *S3ServiceDeleteParams) WithTimeout(timeout time.Duration) *S3ServiceDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 service delete params
func (o *S3ServiceDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 service delete params
func (o *S3ServiceDeleteParams) WithContext(ctx context.Context) *S3ServiceDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 service delete params
func (o *S3ServiceDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 service delete params
func (o *S3ServiceDeleteParams) WithHTTPClient(client *http.Client) *S3ServiceDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 service delete params
func (o *S3ServiceDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithDeleteAll adds the deleteAll to the s3 service delete params
func (o *S3ServiceDeleteParams) WithDeleteAll(deleteAll *bool) *S3ServiceDeleteParams {
o.SetDeleteAll(deleteAll)
return o
}
// SetDeleteAll adds the deleteAll to the s3 service delete params
func (o *S3ServiceDeleteParams) SetDeleteAll(deleteAll *bool) {
o.DeleteAll = deleteAll
}
// WithSvmUUID adds the svmUUID to the s3 service delete params
func (o *S3ServiceDeleteParams) WithSvmUUID(svmUUID string) *S3ServiceDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 service delete params
func (o *S3ServiceDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3ServiceDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.DeleteAll != nil {
// query param delete_all
var qrDeleteAll bool
if o.DeleteAll != nil {
qrDeleteAll = *o.DeleteAll
}
qDeleteAll := swag.FormatBool(qrDeleteAll)
if qDeleteAll != "" {
if err := r.SetQueryParam("delete_all", qDeleteAll); 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/object_store/s3_policy_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_delete_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3PolicyDeleteParams creates a new S3PolicyDeleteParams 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 NewS3PolicyDeleteParams() *S3PolicyDeleteParams {
return &S3PolicyDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3PolicyDeleteParamsWithTimeout creates a new S3PolicyDeleteParams object
// with the ability to set a timeout on a request.
func NewS3PolicyDeleteParamsWithTimeout(timeout time.Duration) *S3PolicyDeleteParams {
return &S3PolicyDeleteParams{
timeout: timeout,
}
}
// NewS3PolicyDeleteParamsWithContext creates a new S3PolicyDeleteParams object
// with the ability to set a context for a request.
func NewS3PolicyDeleteParamsWithContext(ctx context.Context) *S3PolicyDeleteParams {
return &S3PolicyDeleteParams{
Context: ctx,
}
}
// NewS3PolicyDeleteParamsWithHTTPClient creates a new S3PolicyDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3PolicyDeleteParamsWithHTTPClient(client *http.Client) *S3PolicyDeleteParams {
return &S3PolicyDeleteParams{
HTTPClient: client,
}
}
/*
S3PolicyDeleteParams contains all the parameters to send to the API endpoint
for the s3 policy delete operation.
Typically these are written to a http.Request.
*/
type S3PolicyDeleteParams struct {
/* Name.
Policy name
*/
Name string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 policy delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyDeleteParams) WithDefaults() *S3PolicyDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 policy delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 policy delete params
func (o *S3PolicyDeleteParams) WithTimeout(timeout time.Duration) *S3PolicyDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 policy delete params
func (o *S3PolicyDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 policy delete params
func (o *S3PolicyDeleteParams) WithContext(ctx context.Context) *S3PolicyDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 policy delete params
func (o *S3PolicyDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 policy delete params
func (o *S3PolicyDeleteParams) WithHTTPClient(client *http.Client) *S3PolicyDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 policy delete params
func (o *S3PolicyDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithName adds the name to the s3 policy delete params
func (o *S3PolicyDeleteParams) WithName(name string) *S3PolicyDeleteParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 policy delete params
func (o *S3PolicyDeleteParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the s3 policy delete params
func (o *S3PolicyDeleteParams) WithSvmUUID(svmUUID string) *S3PolicyDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 policy delete params
func (o *S3PolicyDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3PolicyDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_create_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketCreateParams creates a new S3BucketCreateParams 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 NewS3BucketCreateParams() *S3BucketCreateParams {
return &S3BucketCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketCreateParamsWithTimeout creates a new S3BucketCreateParams object
// with the ability to set a timeout on a request.
func NewS3BucketCreateParamsWithTimeout(timeout time.Duration) *S3BucketCreateParams {
return &S3BucketCreateParams{
timeout: timeout,
}
}
// NewS3BucketCreateParamsWithContext creates a new S3BucketCreateParams object
// with the ability to set a context for a request.
func NewS3BucketCreateParamsWithContext(ctx context.Context) *S3BucketCreateParams {
return &S3BucketCreateParams{
Context: ctx,
}
}
// NewS3BucketCreateParamsWithHTTPClient creates a new S3BucketCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketCreateParamsWithHTTPClient(client *http.Client) *S3BucketCreateParams {
return &S3BucketCreateParams{
HTTPClient: client,
}
}
/*
S3BucketCreateParams contains all the parameters to send to the API endpoint
for the s3 bucket create operation.
Typically these are written to a http.Request.
*/
type S3BucketCreateParams struct {
/* Info.
Info specification
*/
Info *models.S3Bucket
/* 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 s3 bucket create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketCreateParams) WithDefaults() *S3BucketCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := S3BucketCreateParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 bucket create params
func (o *S3BucketCreateParams) WithTimeout(timeout time.Duration) *S3BucketCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket create params
func (o *S3BucketCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket create params
func (o *S3BucketCreateParams) WithContext(ctx context.Context) *S3BucketCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket create params
func (o *S3BucketCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket create params
func (o *S3BucketCreateParams) WithHTTPClient(client *http.Client) *S3BucketCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket create params
func (o *S3BucketCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 bucket create params
func (o *S3BucketCreateParams) WithInfo(info *models.S3Bucket) *S3BucketCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 bucket create params
func (o *S3BucketCreateParams) SetInfo(info *models.S3Bucket) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the s3 bucket create params
func (o *S3BucketCreateParams) WithReturnRecords(returnRecords *bool) *S3BucketCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 bucket create params
func (o *S3BucketCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the s3 bucket create params
func (o *S3BucketCreateParams) WithReturnTimeout(returnTimeout *int64) *S3BucketCreateParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 bucket create params
func (o *S3BucketCreateParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketSvmGetParams creates a new S3BucketSvmGetParams 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 NewS3BucketSvmGetParams() *S3BucketSvmGetParams {
return &S3BucketSvmGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketSvmGetParamsWithTimeout creates a new S3BucketSvmGetParams object
// with the ability to set a timeout on a request.
func NewS3BucketSvmGetParamsWithTimeout(timeout time.Duration) *S3BucketSvmGetParams {
return &S3BucketSvmGetParams{
timeout: timeout,
}
}
// NewS3BucketSvmGetParamsWithContext creates a new S3BucketSvmGetParams object
// with the ability to set a context for a request.
func NewS3BucketSvmGetParamsWithContext(ctx context.Context) *S3BucketSvmGetParams {
return &S3BucketSvmGetParams{
Context: ctx,
}
}
// NewS3BucketSvmGetParamsWithHTTPClient creates a new S3BucketSvmGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketSvmGetParamsWithHTTPClient(client *http.Client) *S3BucketSvmGetParams {
return &S3BucketSvmGetParams{
HTTPClient: client,
}
}
/*
S3BucketSvmGetParams contains all the parameters to send to the API endpoint
for the s3 bucket svm get operation.
Typically these are written to a http.Request.
*/
type S3BucketSvmGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UUID.
The unique identifier of the bucket.
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 bucket svm get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmGetParams) WithDefaults() *S3BucketSvmGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket svm get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) WithTimeout(timeout time.Duration) *S3BucketSvmGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) WithContext(ctx context.Context) *S3BucketSvmGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) WithHTTPClient(client *http.Client) *S3BucketSvmGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) WithFields(fields []string) *S3BucketSvmGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithSvmUUID adds the svmUUID to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) WithSvmUUID(svmUUID string) *S3BucketSvmGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) WithUUID(uuid string) *S3BucketSvmGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the s3 bucket svm get params
func (o *S3BucketSvmGetParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketSvmGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
// path param uuid
if err := r.SetPathParam("uuid", o.UUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3BucketSvmGet binds the parameter fields
func (o *S3BucketSvmGetParams) 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/object_store/s3_bucket_svm_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_modify_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketSvmModifyParams creates a new S3BucketSvmModifyParams 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 NewS3BucketSvmModifyParams() *S3BucketSvmModifyParams {
return &S3BucketSvmModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketSvmModifyParamsWithTimeout creates a new S3BucketSvmModifyParams object
// with the ability to set a timeout on a request.
func NewS3BucketSvmModifyParamsWithTimeout(timeout time.Duration) *S3BucketSvmModifyParams {
return &S3BucketSvmModifyParams{
timeout: timeout,
}
}
// NewS3BucketSvmModifyParamsWithContext creates a new S3BucketSvmModifyParams object
// with the ability to set a context for a request.
func NewS3BucketSvmModifyParamsWithContext(ctx context.Context) *S3BucketSvmModifyParams {
return &S3BucketSvmModifyParams{
Context: ctx,
}
}
// NewS3BucketSvmModifyParamsWithHTTPClient creates a new S3BucketSvmModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketSvmModifyParamsWithHTTPClient(client *http.Client) *S3BucketSvmModifyParams {
return &S3BucketSvmModifyParams{
HTTPClient: client,
}
}
/*
S3BucketSvmModifyParams contains all the parameters to send to the API endpoint
for the s3 bucket svm modify operation.
Typically these are written to a http.Request.
*/
type S3BucketSvmModifyParams struct {
/* Info.
Info specification
*/
Info *models.S3BucketSvm
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202.
*/
ReturnTimeout *int64
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UUID.
The unique identifier of the bucket.
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 bucket svm modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmModifyParams) WithDefaults() *S3BucketSvmModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket svm modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmModifyParams) SetDefaults() {
var (
returnTimeoutDefault = int64(0)
)
val := S3BucketSvmModifyParams{
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) WithTimeout(timeout time.Duration) *S3BucketSvmModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) WithContext(ctx context.Context) *S3BucketSvmModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) WithHTTPClient(client *http.Client) *S3BucketSvmModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) WithInfo(info *models.S3BucketSvm) *S3BucketSvmModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) SetInfo(info *models.S3BucketSvm) {
o.Info = info
}
// WithReturnTimeout adds the returnTimeout to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) WithReturnTimeout(returnTimeout *int64) *S3BucketSvmModifyParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) WithSvmUUID(svmUUID string) *S3BucketSvmModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) WithUUID(uuid string) *S3BucketSvmModifyParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the s3 bucket svm modify params
func (o *S3BucketSvmModifyParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketSvmModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); 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/object_store/s3_user_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3UserGetParams creates a new S3UserGetParams 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 NewS3UserGetParams() *S3UserGetParams {
return &S3UserGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3UserGetParamsWithTimeout creates a new S3UserGetParams object
// with the ability to set a timeout on a request.
func NewS3UserGetParamsWithTimeout(timeout time.Duration) *S3UserGetParams {
return &S3UserGetParams{
timeout: timeout,
}
}
// NewS3UserGetParamsWithContext creates a new S3UserGetParams object
// with the ability to set a context for a request.
func NewS3UserGetParamsWithContext(ctx context.Context) *S3UserGetParams {
return &S3UserGetParams{
Context: ctx,
}
}
// NewS3UserGetParamsWithHTTPClient creates a new S3UserGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3UserGetParamsWithHTTPClient(client *http.Client) *S3UserGetParams {
return &S3UserGetParams{
HTTPClient: client,
}
}
/*
S3UserGetParams contains all the parameters to send to the API endpoint
for the s3 user get operation.
Typically these are written to a http.Request.
*/
type S3UserGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Name.
User name
*/
Name string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 user get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserGetParams) WithDefaults() *S3UserGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 user get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 user get params
func (o *S3UserGetParams) WithTimeout(timeout time.Duration) *S3UserGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 user get params
func (o *S3UserGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 user get params
func (o *S3UserGetParams) WithContext(ctx context.Context) *S3UserGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 user get params
func (o *S3UserGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 user get params
func (o *S3UserGetParams) WithHTTPClient(client *http.Client) *S3UserGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 user get params
func (o *S3UserGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the s3 user get params
func (o *S3UserGetParams) WithFields(fields []string) *S3UserGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 user get params
func (o *S3UserGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithName adds the name to the s3 user get params
func (o *S3UserGetParams) WithName(name string) *S3UserGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 user get params
func (o *S3UserGetParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the s3 user get params
func (o *S3UserGetParams) WithSvmUUID(svmUUID string) *S3UserGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 user get params
func (o *S3UserGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3UserGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3UserGet binds the parameter fields
func (o *S3UserGetParams) 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/object_store/s3_bucket_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_modify_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketModifyParams creates a new S3BucketModifyParams 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 NewS3BucketModifyParams() *S3BucketModifyParams {
return &S3BucketModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketModifyParamsWithTimeout creates a new S3BucketModifyParams object
// with the ability to set a timeout on a request.
func NewS3BucketModifyParamsWithTimeout(timeout time.Duration) *S3BucketModifyParams {
return &S3BucketModifyParams{
timeout: timeout,
}
}
// NewS3BucketModifyParamsWithContext creates a new S3BucketModifyParams object
// with the ability to set a context for a request.
func NewS3BucketModifyParamsWithContext(ctx context.Context) *S3BucketModifyParams {
return &S3BucketModifyParams{
Context: ctx,
}
}
// NewS3BucketModifyParamsWithHTTPClient creates a new S3BucketModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketModifyParamsWithHTTPClient(client *http.Client) *S3BucketModifyParams {
return &S3BucketModifyParams{
HTTPClient: client,
}
}
/*
S3BucketModifyParams contains all the parameters to send to the API endpoint
for the s3 bucket modify operation.
Typically these are written to a http.Request.
*/
type S3BucketModifyParams struct {
/* Info.
Info specification
*/
Info *models.S3Bucket
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202.
*/
ReturnTimeout *int64
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UUID.
The unique identifier of the bucket.
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 bucket modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketModifyParams) WithDefaults() *S3BucketModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketModifyParams) SetDefaults() {
var (
returnTimeoutDefault = int64(0)
)
val := S3BucketModifyParams{
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 bucket modify params
func (o *S3BucketModifyParams) WithTimeout(timeout time.Duration) *S3BucketModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket modify params
func (o *S3BucketModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket modify params
func (o *S3BucketModifyParams) WithContext(ctx context.Context) *S3BucketModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket modify params
func (o *S3BucketModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket modify params
func (o *S3BucketModifyParams) WithHTTPClient(client *http.Client) *S3BucketModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket modify params
func (o *S3BucketModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 bucket modify params
func (o *S3BucketModifyParams) WithInfo(info *models.S3Bucket) *S3BucketModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 bucket modify params
func (o *S3BucketModifyParams) SetInfo(info *models.S3Bucket) {
o.Info = info
}
// WithReturnTimeout adds the returnTimeout to the s3 bucket modify params
func (o *S3BucketModifyParams) WithReturnTimeout(returnTimeout *int64) *S3BucketModifyParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 bucket modify params
func (o *S3BucketModifyParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the s3 bucket modify params
func (o *S3BucketModifyParams) WithSvmUUID(svmUUID string) *S3BucketModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 bucket modify params
func (o *S3BucketModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the s3 bucket modify params
func (o *S3BucketModifyParams) WithUUID(uuid string) *S3BucketModifyParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the s3 bucket modify params
func (o *S3BucketModifyParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); 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/object_store/s3_bucket_svm_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketSvmModifyReader is a Reader for the S3BucketSvmModify structure.
type S3BucketSvmModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketSvmModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewS3BucketSvmModifyAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketSvmModifyDefault(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
}
}
// NewS3BucketSvmModifyAccepted creates a S3BucketSvmModifyAccepted with default headers values
func NewS3BucketSvmModifyAccepted() *S3BucketSvmModifyAccepted {
return &S3BucketSvmModifyAccepted{}
}
/*
S3BucketSvmModifyAccepted describes a response with status code 202, with default header values.
Accepted
*/
type S3BucketSvmModifyAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this s3 bucket svm modify accepted response has a 2xx status code
func (o *S3BucketSvmModifyAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket svm modify accepted response has a 3xx status code
func (o *S3BucketSvmModifyAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket svm modify accepted response has a 4xx status code
func (o *S3BucketSvmModifyAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket svm modify accepted response has a 5xx status code
func (o *S3BucketSvmModifyAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket svm modify accepted response a status code equal to that given
func (o *S3BucketSvmModifyAccepted) IsCode(code int) bool {
return code == 202
}
func (o *S3BucketSvmModifyAccepted) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3BucketSvmModifyAccepted %+v", 202, o.Payload)
}
func (o *S3BucketSvmModifyAccepted) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3BucketSvmModifyAccepted %+v", 202, o.Payload)
}
func (o *S3BucketSvmModifyAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *S3BucketSvmModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketSvmModifyDefault creates a S3BucketSvmModifyDefault with default headers values
func NewS3BucketSvmModifyDefault(code int) *S3BucketSvmModifyDefault {
return &S3BucketSvmModifyDefault{
_statusCode: code,
}
}
/*
S3BucketSvmModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error code | Message |
| ---------- | ------- |
| 92405778 | "Failed to modify bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Reason: {Reason for failure}. ";
| 92405846 | "Failed to modify the object store volume. Reason: {Reason for failure}.";
| 92405811 | "Failed to modify bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Wait a few minutes and try the operation again.";
| 92405858 | "Failed to \\\"modify\\\" the \\\"bucket\\\" because the operation is only supported on data SVMs.";
| 92405861 | "The specified SVM UUID or bucket UUID does not exist.";
| 92405863 | "An error occurs when creating an access policy. The reason for failure is detailed in the error message.";
| 92405864 | "An error occurs when deleting an access policy. The reason for failure is detailed in the error message.";
| 92405891 | "The resources specified in the access policy are not valid. Valid ways to specify a resource are \\\"*\\\", \\\"<bucket-name>\\\", \\\"<bucket-name>/.../...\\\". Valid characters for a resource are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\",\\\", \\\";\\\", \\\":\\\", \\\";\\\", \\\"=\\\", \\\".\\\", \\\"&\\\", \\\"@\\\", \\\"?\\\", \\\"(\\\", \\\")\\\", \\\"'\\\", \\\"*\\\", \\\"!\\\", \\\"-\\\" and \\\"\\$\\\".";
| 92405894 | "Statements, principals and resources list can have a maximum of 10 entries.";
| 92405897 | "The principals specified in the access policy are not in the correct format. User name must be in between 1 and 64 characters. Valid characters for a user name are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\"=\\\", \\\",\\\", \\\".\\\", \\\"@\\\", and \\\"-\\\". ";
| 92405898 | "The SID specified in the access policy is not valid. Valid characters for a SID are 0-9, A-Z and a-z.";
*/
type S3BucketSvmModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket svm modify default response
func (o *S3BucketSvmModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket svm modify default response has a 2xx status code
func (o *S3BucketSvmModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket svm modify default response has a 3xx status code
func (o *S3BucketSvmModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket svm modify default response has a 4xx status code
func (o *S3BucketSvmModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket svm modify default response has a 5xx status code
func (o *S3BucketSvmModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket svm modify default response a status code equal to that given
func (o *S3BucketSvmModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketSvmModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3_bucket_svm_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3_bucket_svm_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketSvmModifyDefault) 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/object_store/s3_policy_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_collection_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3PolicyCollectionGetReader is a Reader for the S3PolicyCollectionGet structure.
type S3PolicyCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3PolicyCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3PolicyCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3PolicyCollectionGetDefault(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
}
}
// NewS3PolicyCollectionGetOK creates a S3PolicyCollectionGetOK with default headers values
func NewS3PolicyCollectionGetOK() *S3PolicyCollectionGetOK {
return &S3PolicyCollectionGetOK{}
}
/*
S3PolicyCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type S3PolicyCollectionGetOK struct {
Payload *models.S3PolicyResponse
}
// IsSuccess returns true when this s3 policy collection get o k response has a 2xx status code
func (o *S3PolicyCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 policy collection get o k response has a 3xx status code
func (o *S3PolicyCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 policy collection get o k response has a 4xx status code
func (o *S3PolicyCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 policy collection get o k response has a 5xx status code
func (o *S3PolicyCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 policy collection get o k response a status code equal to that given
func (o *S3PolicyCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3PolicyCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies][%d] s3PolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3PolicyCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies][%d] s3PolicyCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3PolicyCollectionGetOK) GetPayload() *models.S3PolicyResponse {
return o.Payload
}
func (o *S3PolicyCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3PolicyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3PolicyCollectionGetDefault creates a S3PolicyCollectionGetDefault with default headers values
func NewS3PolicyCollectionGetDefault(code int) *S3PolicyCollectionGetDefault {
return &S3PolicyCollectionGetDefault{
_statusCode: code,
}
}
/*
S3PolicyCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3PolicyCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 policy collection get default response
func (o *S3PolicyCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 policy collection get default response has a 2xx status code
func (o *S3PolicyCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 policy collection get default response has a 3xx status code
func (o *S3PolicyCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 policy collection get default response has a 4xx status code
func (o *S3PolicyCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 policy collection get default response has a 5xx status code
func (o *S3PolicyCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 policy collection get default response a status code equal to that given
func (o *S3PolicyCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3PolicyCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies][%d] s3_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies][%d] s3_policy_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3PolicyCollectionGetDefault) 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/object_store/performance_s3_metric_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/performance_s3_metric_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewPerformanceS3MetricCollectionGetParams creates a new PerformanceS3MetricCollectionGetParams 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 NewPerformanceS3MetricCollectionGetParams() *PerformanceS3MetricCollectionGetParams {
return &PerformanceS3MetricCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewPerformanceS3MetricCollectionGetParamsWithTimeout creates a new PerformanceS3MetricCollectionGetParams object
// with the ability to set a timeout on a request.
func NewPerformanceS3MetricCollectionGetParamsWithTimeout(timeout time.Duration) *PerformanceS3MetricCollectionGetParams {
return &PerformanceS3MetricCollectionGetParams{
timeout: timeout,
}
}
// NewPerformanceS3MetricCollectionGetParamsWithContext creates a new PerformanceS3MetricCollectionGetParams object
// with the ability to set a context for a request.
func NewPerformanceS3MetricCollectionGetParamsWithContext(ctx context.Context) *PerformanceS3MetricCollectionGetParams {
return &PerformanceS3MetricCollectionGetParams{
Context: ctx,
}
}
// NewPerformanceS3MetricCollectionGetParamsWithHTTPClient creates a new PerformanceS3MetricCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewPerformanceS3MetricCollectionGetParamsWithHTTPClient(client *http.Client) *PerformanceS3MetricCollectionGetParams {
return &PerformanceS3MetricCollectionGetParams{
HTTPClient: client,
}
}
/*
PerformanceS3MetricCollectionGetParams contains all the parameters to send to the API endpoint
for the performance s3 metric collection get operation.
Typically these are written to a http.Request.
*/
type PerformanceS3MetricCollectionGetParams struct {
/* Duration.
Filter by duration
*/
Duration *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* Interval.
The time range for the data. Examples can be 1h, 1d, 1m, 1w, 1y.
The period for each time range is as follows:
* 1h: Metrics over the most recent hour sampled over 15 seconds.
* 1d: Metrics over the most recent day sampled over 5 minutes.
* 1w: Metrics over the most recent week sampled over 30 minutes.
* 1m: Metrics over the most recent month sampled over 2 hours.
* 1y: Metrics over the most recent year sampled over a day.
Default: "1h"
*/
Interval *string
/* IopsOther.
Filter by iops.other
*/
IopsOther *int64
/* IopsRead.
Filter by iops.read
*/
IopsRead *int64
/* IopsTotal.
Filter by iops.total
*/
IopsTotal *int64
/* IopsWrite.
Filter by iops.write
*/
IopsWrite *int64
/* LatencyOther.
Filter by latency.other
*/
LatencyOther *int64
/* LatencyRead.
Filter by latency.read
*/
LatencyRead *int64
/* LatencyTotal.
Filter by latency.total
*/
LatencyTotal *int64
/* LatencyWrite.
Filter by latency.write
*/
LatencyWrite *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* Status.
Filter by status
*/
Status *string
/* SvmUUID.
Unique identifier of the SVM.
*/
SvmUUID string
/* ThroughputOther.
Filter by throughput.other
*/
ThroughputOther *int64
/* ThroughputRead.
Filter by throughput.read
*/
ThroughputRead *int64
/* ThroughputTotal.
Filter by throughput.total
*/
ThroughputTotal *int64
/* ThroughputWrite.
Filter by throughput.write
*/
ThroughputWrite *int64
/* Timestamp.
Filter by timestamp
*/
Timestamp *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the performance s3 metric collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PerformanceS3MetricCollectionGetParams) WithDefaults() *PerformanceS3MetricCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the performance s3 metric collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *PerformanceS3MetricCollectionGetParams) SetDefaults() {
var (
intervalDefault = string("1h")
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := PerformanceS3MetricCollectionGetParams{
Interval: &intervalDefault,
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithTimeout(timeout time.Duration) *PerformanceS3MetricCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithContext(ctx context.Context) *PerformanceS3MetricCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithHTTPClient(client *http.Client) *PerformanceS3MetricCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithDuration adds the duration to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithDuration(duration *string) *PerformanceS3MetricCollectionGetParams {
o.SetDuration(duration)
return o
}
// SetDuration adds the duration to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetDuration(duration *string) {
o.Duration = duration
}
// WithFields adds the fields to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithFields(fields []string) *PerformanceS3MetricCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithInterval adds the interval to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithInterval(interval *string) *PerformanceS3MetricCollectionGetParams {
o.SetInterval(interval)
return o
}
// SetInterval adds the interval to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetInterval(interval *string) {
o.Interval = interval
}
// WithIopsOther adds the iopsOther to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithIopsOther(iopsOther *int64) *PerformanceS3MetricCollectionGetParams {
o.SetIopsOther(iopsOther)
return o
}
// SetIopsOther adds the iopsOther to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetIopsOther(iopsOther *int64) {
o.IopsOther = iopsOther
}
// WithIopsRead adds the iopsRead to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithIopsRead(iopsRead *int64) *PerformanceS3MetricCollectionGetParams {
o.SetIopsRead(iopsRead)
return o
}
// SetIopsRead adds the iopsRead to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetIopsRead(iopsRead *int64) {
o.IopsRead = iopsRead
}
// WithIopsTotal adds the iopsTotal to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithIopsTotal(iopsTotal *int64) *PerformanceS3MetricCollectionGetParams {
o.SetIopsTotal(iopsTotal)
return o
}
// SetIopsTotal adds the iopsTotal to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetIopsTotal(iopsTotal *int64) {
o.IopsTotal = iopsTotal
}
// WithIopsWrite adds the iopsWrite to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithIopsWrite(iopsWrite *int64) *PerformanceS3MetricCollectionGetParams {
o.SetIopsWrite(iopsWrite)
return o
}
// SetIopsWrite adds the iopsWrite to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetIopsWrite(iopsWrite *int64) {
o.IopsWrite = iopsWrite
}
// WithLatencyOther adds the latencyOther to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithLatencyOther(latencyOther *int64) *PerformanceS3MetricCollectionGetParams {
o.SetLatencyOther(latencyOther)
return o
}
// SetLatencyOther adds the latencyOther to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetLatencyOther(latencyOther *int64) {
o.LatencyOther = latencyOther
}
// WithLatencyRead adds the latencyRead to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithLatencyRead(latencyRead *int64) *PerformanceS3MetricCollectionGetParams {
o.SetLatencyRead(latencyRead)
return o
}
// SetLatencyRead adds the latencyRead to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetLatencyRead(latencyRead *int64) {
o.LatencyRead = latencyRead
}
// WithLatencyTotal adds the latencyTotal to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithLatencyTotal(latencyTotal *int64) *PerformanceS3MetricCollectionGetParams {
o.SetLatencyTotal(latencyTotal)
return o
}
// SetLatencyTotal adds the latencyTotal to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetLatencyTotal(latencyTotal *int64) {
o.LatencyTotal = latencyTotal
}
// WithLatencyWrite adds the latencyWrite to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithLatencyWrite(latencyWrite *int64) *PerformanceS3MetricCollectionGetParams {
o.SetLatencyWrite(latencyWrite)
return o
}
// SetLatencyWrite adds the latencyWrite to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetLatencyWrite(latencyWrite *int64) {
o.LatencyWrite = latencyWrite
}
// WithMaxRecords adds the maxRecords to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithMaxRecords(maxRecords *int64) *PerformanceS3MetricCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithOrderBy adds the orderBy to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithOrderBy(orderBy []string) *PerformanceS3MetricCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithReturnRecords(returnRecords *bool) *PerformanceS3MetricCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *PerformanceS3MetricCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithStatus adds the status to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithStatus(status *string) *PerformanceS3MetricCollectionGetParams {
o.SetStatus(status)
return o
}
// SetStatus adds the status to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetStatus(status *string) {
o.Status = status
}
// WithSvmUUID adds the svmUUID to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithSvmUUID(svmUUID string) *PerformanceS3MetricCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithThroughputOther adds the throughputOther to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithThroughputOther(throughputOther *int64) *PerformanceS3MetricCollectionGetParams {
o.SetThroughputOther(throughputOther)
return o
}
// SetThroughputOther adds the throughputOther to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetThroughputOther(throughputOther *int64) {
o.ThroughputOther = throughputOther
}
// WithThroughputRead adds the throughputRead to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithThroughputRead(throughputRead *int64) *PerformanceS3MetricCollectionGetParams {
o.SetThroughputRead(throughputRead)
return o
}
// SetThroughputRead adds the throughputRead to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetThroughputRead(throughputRead *int64) {
o.ThroughputRead = throughputRead
}
// WithThroughputTotal adds the throughputTotal to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithThroughputTotal(throughputTotal *int64) *PerformanceS3MetricCollectionGetParams {
o.SetThroughputTotal(throughputTotal)
return o
}
// SetThroughputTotal adds the throughputTotal to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetThroughputTotal(throughputTotal *int64) {
o.ThroughputTotal = throughputTotal
}
// WithThroughputWrite adds the throughputWrite to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithThroughputWrite(throughputWrite *int64) *PerformanceS3MetricCollectionGetParams {
o.SetThroughputWrite(throughputWrite)
return o
}
// SetThroughputWrite adds the throughputWrite to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetThroughputWrite(throughputWrite *int64) {
o.ThroughputWrite = throughputWrite
}
// WithTimestamp adds the timestamp to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) WithTimestamp(timestamp *string) *PerformanceS3MetricCollectionGetParams {
o.SetTimestamp(timestamp)
return o
}
// SetTimestamp adds the timestamp to the performance s3 metric collection get params
func (o *PerformanceS3MetricCollectionGetParams) SetTimestamp(timestamp *string) {
o.Timestamp = timestamp
}
// WriteToRequest writes these params to a swagger request
func (o *PerformanceS3MetricCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Duration != nil {
// query param duration
var qrDuration string
if o.Duration != nil {
qrDuration = *o.Duration
}
qDuration := qrDuration
if qDuration != "" {
if err := r.SetQueryParam("duration", qDuration); err != nil {
return err
}
}
}
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
if o.Interval != nil {
// query param interval
var qrInterval string
if o.Interval != nil {
qrInterval = *o.Interval
}
qInterval := qrInterval
if qInterval != "" {
if err := r.SetQueryParam("interval", qInterval); err != nil {
return err
}
}
}
if o.IopsOther != nil {
// query param iops.other
var qrIopsOther int64
if o.IopsOther != nil {
qrIopsOther = *o.IopsOther
}
qIopsOther := swag.FormatInt64(qrIopsOther)
if qIopsOther != "" {
if err := r.SetQueryParam("iops.other", qIopsOther); err != nil {
return err
}
}
}
if o.IopsRead != nil {
// query param iops.read
var qrIopsRead int64
if o.IopsRead != nil {
qrIopsRead = *o.IopsRead
}
qIopsRead := swag.FormatInt64(qrIopsRead)
if qIopsRead != "" {
if err := r.SetQueryParam("iops.read", qIopsRead); err != nil {
return err
}
}
}
if o.IopsTotal != nil {
// query param iops.total
var qrIopsTotal int64
if o.IopsTotal != nil {
qrIopsTotal = *o.IopsTotal
}
qIopsTotal := swag.FormatInt64(qrIopsTotal)
if qIopsTotal != "" {
if err := r.SetQueryParam("iops.total", qIopsTotal); err != nil {
return err
}
}
}
if o.IopsWrite != nil {
// query param iops.write
var qrIopsWrite int64
if o.IopsWrite != nil {
qrIopsWrite = *o.IopsWrite
}
qIopsWrite := swag.FormatInt64(qrIopsWrite)
if qIopsWrite != "" {
if err := r.SetQueryParam("iops.write", qIopsWrite); err != nil {
return err
}
}
}
if o.LatencyOther != nil {
// query param latency.other
var qrLatencyOther int64
if o.LatencyOther != nil {
qrLatencyOther = *o.LatencyOther
}
qLatencyOther := swag.FormatInt64(qrLatencyOther)
if qLatencyOther != "" {
if err := r.SetQueryParam("latency.other", qLatencyOther); err != nil {
return err
}
}
}
if o.LatencyRead != nil {
// query param latency.read
var qrLatencyRead int64
if o.LatencyRead != nil {
qrLatencyRead = *o.LatencyRead
}
qLatencyRead := swag.FormatInt64(qrLatencyRead)
if qLatencyRead != "" {
if err := r.SetQueryParam("latency.read", qLatencyRead); err != nil {
return err
}
}
}
if o.LatencyTotal != nil {
// query param latency.total
var qrLatencyTotal int64
if o.LatencyTotal != nil {
qrLatencyTotal = *o.LatencyTotal
}
qLatencyTotal := swag.FormatInt64(qrLatencyTotal)
if qLatencyTotal != "" {
if err := r.SetQueryParam("latency.total", qLatencyTotal); err != nil {
return err
}
}
}
if o.LatencyWrite != nil {
// query param latency.write
var qrLatencyWrite int64
if o.LatencyWrite != nil {
qrLatencyWrite = *o.LatencyWrite
}
qLatencyWrite := swag.FormatInt64(qrLatencyWrite)
if qLatencyWrite != "" {
if err := r.SetQueryParam("latency.write", qLatencyWrite); err != nil {
return err
}
}
}
if o.MaxRecords != nil {
// query param max_records
var qrMaxRecords int64
if o.MaxRecords != nil {
qrMaxRecords = *o.MaxRecords
}
qMaxRecords := swag.FormatInt64(qrMaxRecords)
if qMaxRecords != "" {
if err := r.SetQueryParam("max_records", qMaxRecords); err != nil {
return err
}
}
}
if o.OrderBy != nil {
// binding items for order_by
joinedOrderBy := o.bindParamOrderBy(reg)
// query array param order_by
if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
if o.Status != nil {
// query param status
var qrStatus string
if o.Status != nil {
qrStatus = *o.Status
}
qStatus := qrStatus
if qStatus != "" {
if err := r.SetQueryParam("status", qStatus); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if o.ThroughputOther != nil {
// query param throughput.other
var qrThroughputOther int64
if o.ThroughputOther != nil {
qrThroughputOther = *o.ThroughputOther
}
qThroughputOther := swag.FormatInt64(qrThroughputOther)
if qThroughputOther != "" {
if err := r.SetQueryParam("throughput.other", qThroughputOther); err != nil {
return err
}
}
}
if o.ThroughputRead != nil {
// query param throughput.read
var qrThroughputRead int64
if o.ThroughputRead != nil {
qrThroughputRead = *o.ThroughputRead
}
qThroughputRead := swag.FormatInt64(qrThroughputRead)
if qThroughputRead != "" {
if err := r.SetQueryParam("throughput.read", qThroughputRead); err != nil {
return err
}
}
}
if o.ThroughputTotal != nil {
// query param throughput.total
var qrThroughputTotal int64
if o.ThroughputTotal != nil {
qrThroughputTotal = *o.ThroughputTotal
}
qThroughputTotal := swag.FormatInt64(qrThroughputTotal)
if qThroughputTotal != "" {
if err := r.SetQueryParam("throughput.total", qThroughputTotal); err != nil {
return err
}
}
}
if o.ThroughputWrite != nil {
// query param throughput.write
var qrThroughputWrite int64
if o.ThroughputWrite != nil {
qrThroughputWrite = *o.ThroughputWrite
}
qThroughputWrite := swag.FormatInt64(qrThroughputWrite)
if qThroughputWrite != "" {
if err := r.SetQueryParam("throughput.write", qThroughputWrite); err != nil {
return err
}
}
}
if o.Timestamp != nil {
// query param timestamp
var qrTimestamp string
if o.Timestamp != nil {
qrTimestamp = *o.Timestamp
}
qTimestamp := qrTimestamp
if qTimestamp != "" {
if err := r.SetQueryParam("timestamp", qTimestamp); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamPerformanceS3MetricCollectionGet binds the parameter fields
func (o *PerformanceS3MetricCollectionGetParams) 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
}
// bindParamPerformanceS3MetricCollectionGet binds the parameter order_by
func (o *PerformanceS3MetricCollectionGetParams) 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/object_store/s3_bucket_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_delete_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketDeleteParams creates a new S3BucketDeleteParams 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 NewS3BucketDeleteParams() *S3BucketDeleteParams {
return &S3BucketDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketDeleteParamsWithTimeout creates a new S3BucketDeleteParams object
// with the ability to set a timeout on a request.
func NewS3BucketDeleteParamsWithTimeout(timeout time.Duration) *S3BucketDeleteParams {
return &S3BucketDeleteParams{
timeout: timeout,
}
}
// NewS3BucketDeleteParamsWithContext creates a new S3BucketDeleteParams object
// with the ability to set a context for a request.
func NewS3BucketDeleteParamsWithContext(ctx context.Context) *S3BucketDeleteParams {
return &S3BucketDeleteParams{
Context: ctx,
}
}
// NewS3BucketDeleteParamsWithHTTPClient creates a new S3BucketDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketDeleteParamsWithHTTPClient(client *http.Client) *S3BucketDeleteParams {
return &S3BucketDeleteParams{
HTTPClient: client,
}
}
/*
S3BucketDeleteParams contains all the parameters to send to the API endpoint
for the s3 bucket delete operation.
Typically these are written to a http.Request.
*/
type S3BucketDeleteParams struct {
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202.
*/
ReturnTimeout *int64
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UUID.
The unique identifier of the bucket.
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 bucket delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketDeleteParams) WithDefaults() *S3BucketDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketDeleteParams) SetDefaults() {
var (
returnTimeoutDefault = int64(0)
)
val := S3BucketDeleteParams{
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 bucket delete params
func (o *S3BucketDeleteParams) WithTimeout(timeout time.Duration) *S3BucketDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket delete params
func (o *S3BucketDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket delete params
func (o *S3BucketDeleteParams) WithContext(ctx context.Context) *S3BucketDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket delete params
func (o *S3BucketDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket delete params
func (o *S3BucketDeleteParams) WithHTTPClient(client *http.Client) *S3BucketDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket delete params
func (o *S3BucketDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithReturnTimeout adds the returnTimeout to the s3 bucket delete params
func (o *S3BucketDeleteParams) WithReturnTimeout(returnTimeout *int64) *S3BucketDeleteParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 bucket delete params
func (o *S3BucketDeleteParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the s3 bucket delete params
func (o *S3BucketDeleteParams) WithSvmUUID(svmUUID string) *S3BucketDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 bucket delete params
func (o *S3BucketDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the s3 bucket delete params
func (o *S3BucketDeleteParams) WithUUID(uuid string) *S3BucketDeleteParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the s3 bucket delete params
func (o *S3BucketDeleteParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); 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/object_store/s3_policy_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3PolicyGetReader is a Reader for the S3PolicyGet structure.
type S3PolicyGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3PolicyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3PolicyGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3PolicyGetDefault(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
}
}
// NewS3PolicyGetOK creates a S3PolicyGetOK with default headers values
func NewS3PolicyGetOK() *S3PolicyGetOK {
return &S3PolicyGetOK{}
}
/*
S3PolicyGetOK describes a response with status code 200, with default header values.
OK
*/
type S3PolicyGetOK struct {
Payload *models.S3Policy
}
// IsSuccess returns true when this s3 policy get o k response has a 2xx status code
func (o *S3PolicyGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 policy get o k response has a 3xx status code
func (o *S3PolicyGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 policy get o k response has a 4xx status code
func (o *S3PolicyGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 policy get o k response has a 5xx status code
func (o *S3PolicyGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 policy get o k response a status code equal to that given
func (o *S3PolicyGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3PolicyGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3PolicyGetOK %+v", 200, o.Payload)
}
func (o *S3PolicyGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3PolicyGetOK %+v", 200, o.Payload)
}
func (o *S3PolicyGetOK) GetPayload() *models.S3Policy {
return o.Payload
}
func (o *S3PolicyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3Policy)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3PolicyGetDefault creates a S3PolicyGetDefault with default headers values
func NewS3PolicyGetDefault(code int) *S3PolicyGetDefault {
return &S3PolicyGetDefault{
_statusCode: code,
}
}
/*
S3PolicyGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3PolicyGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 policy get default response
func (o *S3PolicyGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 policy get default response has a 2xx status code
func (o *S3PolicyGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 policy get default response has a 3xx status code
func (o *S3PolicyGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 policy get default response has a 4xx status code
func (o *S3PolicyGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 policy get default response has a 5xx status code
func (o *S3PolicyGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 policy get default response a status code equal to that given
func (o *S3PolicyGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3PolicyGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3_policy_get default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3_policy_get default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3PolicyGetDefault) 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/object_store/s3_bucket_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketGetParams creates a new S3BucketGetParams 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 NewS3BucketGetParams() *S3BucketGetParams {
return &S3BucketGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketGetParamsWithTimeout creates a new S3BucketGetParams object
// with the ability to set a timeout on a request.
func NewS3BucketGetParamsWithTimeout(timeout time.Duration) *S3BucketGetParams {
return &S3BucketGetParams{
timeout: timeout,
}
}
// NewS3BucketGetParamsWithContext creates a new S3BucketGetParams object
// with the ability to set a context for a request.
func NewS3BucketGetParamsWithContext(ctx context.Context) *S3BucketGetParams {
return &S3BucketGetParams{
Context: ctx,
}
}
// NewS3BucketGetParamsWithHTTPClient creates a new S3BucketGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketGetParamsWithHTTPClient(client *http.Client) *S3BucketGetParams {
return &S3BucketGetParams{
HTTPClient: client,
}
}
/*
S3BucketGetParams contains all the parameters to send to the API endpoint
for the s3 bucket get operation.
Typically these are written to a http.Request.
*/
type S3BucketGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UUID.
The unique identifier of the bucket.
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 bucket get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketGetParams) WithDefaults() *S3BucketGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 bucket get params
func (o *S3BucketGetParams) WithTimeout(timeout time.Duration) *S3BucketGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket get params
func (o *S3BucketGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket get params
func (o *S3BucketGetParams) WithContext(ctx context.Context) *S3BucketGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket get params
func (o *S3BucketGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket get params
func (o *S3BucketGetParams) WithHTTPClient(client *http.Client) *S3BucketGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket get params
func (o *S3BucketGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the s3 bucket get params
func (o *S3BucketGetParams) WithFields(fields []string) *S3BucketGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 bucket get params
func (o *S3BucketGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithSvmUUID adds the svmUUID to the s3 bucket get params
func (o *S3BucketGetParams) WithSvmUUID(svmUUID string) *S3BucketGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 bucket get params
func (o *S3BucketGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the s3 bucket get params
func (o *S3BucketGetParams) WithUUID(uuid string) *S3BucketGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the s3 bucket get params
func (o *S3BucketGetParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
// path param uuid
if err := r.SetPathParam("uuid", o.UUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3BucketGet binds the parameter fields
func (o *S3BucketGetParams) 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/object_store/performance_s3_metric_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/performance_s3_metric_collection_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// PerformanceS3MetricCollectionGetReader is a Reader for the PerformanceS3MetricCollectionGet structure.
type PerformanceS3MetricCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *PerformanceS3MetricCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewPerformanceS3MetricCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewPerformanceS3MetricCollectionGetDefault(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
}
}
// NewPerformanceS3MetricCollectionGetOK creates a PerformanceS3MetricCollectionGetOK with default headers values
func NewPerformanceS3MetricCollectionGetOK() *PerformanceS3MetricCollectionGetOK {
return &PerformanceS3MetricCollectionGetOK{}
}
/*
PerformanceS3MetricCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type PerformanceS3MetricCollectionGetOK struct {
Payload *models.PerformanceS3MetricResponse
}
// IsSuccess returns true when this performance s3 metric collection get o k response has a 2xx status code
func (o *PerformanceS3MetricCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this performance s3 metric collection get o k response has a 3xx status code
func (o *PerformanceS3MetricCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this performance s3 metric collection get o k response has a 4xx status code
func (o *PerformanceS3MetricCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this performance s3 metric collection get o k response has a 5xx status code
func (o *PerformanceS3MetricCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this performance s3 metric collection get o k response a status code equal to that given
func (o *PerformanceS3MetricCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *PerformanceS3MetricCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/metrics][%d] performanceS3MetricCollectionGetOK %+v", 200, o.Payload)
}
func (o *PerformanceS3MetricCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/metrics][%d] performanceS3MetricCollectionGetOK %+v", 200, o.Payload)
}
func (o *PerformanceS3MetricCollectionGetOK) GetPayload() *models.PerformanceS3MetricResponse {
return o.Payload
}
func (o *PerformanceS3MetricCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.PerformanceS3MetricResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewPerformanceS3MetricCollectionGetDefault creates a PerformanceS3MetricCollectionGetDefault with default headers values
func NewPerformanceS3MetricCollectionGetDefault(code int) *PerformanceS3MetricCollectionGetDefault {
return &PerformanceS3MetricCollectionGetDefault{
_statusCode: code,
}
}
/*
PerformanceS3MetricCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type PerformanceS3MetricCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the performance s3 metric collection get default response
func (o *PerformanceS3MetricCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this performance s3 metric collection get default response has a 2xx status code
func (o *PerformanceS3MetricCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this performance s3 metric collection get default response has a 3xx status code
func (o *PerformanceS3MetricCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this performance s3 metric collection get default response has a 4xx status code
func (o *PerformanceS3MetricCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this performance s3 metric collection get default response has a 5xx status code
func (o *PerformanceS3MetricCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this performance s3 metric collection get default response a status code equal to that given
func (o *PerformanceS3MetricCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *PerformanceS3MetricCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/metrics][%d] performance_s3_metric_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *PerformanceS3MetricCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/metrics][%d] performance_s3_metric_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *PerformanceS3MetricCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *PerformanceS3MetricCollectionGetDefault) 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/object_store/s3_service_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3ServiceModifyReader is a Reader for the S3ServiceModify structure.
type S3ServiceModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3ServiceModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3ServiceModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3ServiceModifyDefault(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
}
}
// NewS3ServiceModifyOK creates a S3ServiceModifyOK with default headers values
func NewS3ServiceModifyOK() *S3ServiceModifyOK {
return &S3ServiceModifyOK{}
}
/*
S3ServiceModifyOK describes a response with status code 200, with default header values.
OK
*/
type S3ServiceModifyOK struct {
}
// IsSuccess returns true when this s3 service modify o k response has a 2xx status code
func (o *S3ServiceModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 service modify o k response has a 3xx status code
func (o *S3ServiceModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 service modify o k response has a 4xx status code
func (o *S3ServiceModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 service modify o k response has a 5xx status code
func (o *S3ServiceModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 service modify o k response a status code equal to that given
func (o *S3ServiceModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *S3ServiceModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}][%d] s3ServiceModifyOK ", 200)
}
func (o *S3ServiceModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}][%d] s3ServiceModifyOK ", 200)
}
func (o *S3ServiceModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewS3ServiceModifyDefault creates a S3ServiceModifyDefault with default headers values
func NewS3ServiceModifyDefault(code int) *S3ServiceModifyDefault {
return &S3ServiceModifyDefault{
_statusCode: code,
}
}
/*
S3ServiceModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405789 | The specified object server name contains invalid characters. Valid characters for an object store server name are 0-9, A-Z, a-z, \".\", and \"-\". |
| 92405790 | Object store server names must have between 1 and 15 characters. |
*/
type S3ServiceModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 service modify default response
func (o *S3ServiceModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 service modify default response has a 2xx status code
func (o *S3ServiceModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 service modify default response has a 3xx status code
func (o *S3ServiceModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 service modify default response has a 4xx status code
func (o *S3ServiceModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 service modify default response has a 5xx status code
func (o *S3ServiceModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 service modify default response a status code equal to that given
func (o *S3ServiceModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3ServiceModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}][%d] s3_service_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}][%d] s3_service_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3ServiceModifyDefault) 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/object_store/s3_policy_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3PolicyModifyReader is a Reader for the S3PolicyModify structure.
type S3PolicyModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3PolicyModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3PolicyModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3PolicyModifyDefault(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
}
}
// NewS3PolicyModifyOK creates a S3PolicyModifyOK with default headers values
func NewS3PolicyModifyOK() *S3PolicyModifyOK {
return &S3PolicyModifyOK{}
}
/*
S3PolicyModifyOK describes a response with status code 200, with default header values.
OK
*/
type S3PolicyModifyOK struct {
}
// IsSuccess returns true when this s3 policy modify o k response has a 2xx status code
func (o *S3PolicyModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 policy modify o k response has a 3xx status code
func (o *S3PolicyModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 policy modify o k response has a 4xx status code
func (o *S3PolicyModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 policy modify o k response has a 5xx status code
func (o *S3PolicyModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 policy modify o k response a status code equal to that given
func (o *S3PolicyModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *S3PolicyModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3PolicyModifyOK ", 200)
}
func (o *S3PolicyModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3PolicyModifyOK ", 200)
}
func (o *S3PolicyModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewS3PolicyModifyDefault creates a S3PolicyModifyDefault with default headers values
func NewS3PolicyModifyDefault(code int) *S3PolicyModifyDefault {
return &S3PolicyModifyDefault{
_statusCode: code,
}
}
/*
S3PolicyModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405906 | The specified action name is invalid.
| 92405963 | Failed to create policy statements for policy. Reason: "{reason of failure}". Resolve all issues and retry the operation.
| 92405954 | Object store server read-only policies do not support create, modify, delete, add-statement, delete-statement and modify-statement operations.
*/
type S3PolicyModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 policy modify default response
func (o *S3PolicyModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 policy modify default response has a 2xx status code
func (o *S3PolicyModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 policy modify default response has a 3xx status code
func (o *S3PolicyModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 policy modify default response has a 4xx status code
func (o *S3PolicyModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 policy modify default response has a 5xx status code
func (o *S3PolicyModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 policy modify default response a status code equal to that given
func (o *S3PolicyModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3PolicyModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3_policy_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3_policy_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3PolicyModifyDefault) 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/object_store/s3_service_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_collection_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3ServiceCollectionGetReader is a Reader for the S3ServiceCollectionGet structure.
type S3ServiceCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3ServiceCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3ServiceCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3ServiceCollectionGetDefault(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
}
}
// NewS3ServiceCollectionGetOK creates a S3ServiceCollectionGetOK with default headers values
func NewS3ServiceCollectionGetOK() *S3ServiceCollectionGetOK {
return &S3ServiceCollectionGetOK{}
}
/*
S3ServiceCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type S3ServiceCollectionGetOK struct {
Payload *models.S3ServiceResponse
}
// IsSuccess returns true when this s3 service collection get o k response has a 2xx status code
func (o *S3ServiceCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 service collection get o k response has a 3xx status code
func (o *S3ServiceCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 service collection get o k response has a 4xx status code
func (o *S3ServiceCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 service collection get o k response has a 5xx status code
func (o *S3ServiceCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 service collection get o k response a status code equal to that given
func (o *S3ServiceCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3ServiceCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services][%d] s3ServiceCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3ServiceCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services][%d] s3ServiceCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3ServiceCollectionGetOK) GetPayload() *models.S3ServiceResponse {
return o.Payload
}
func (o *S3ServiceCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3ServiceResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3ServiceCollectionGetDefault creates a S3ServiceCollectionGetDefault with default headers values
func NewS3ServiceCollectionGetDefault(code int) *S3ServiceCollectionGetDefault {
return &S3ServiceCollectionGetDefault{
_statusCode: code,
}
}
/*
S3ServiceCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3ServiceCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 service collection get default response
func (o *S3ServiceCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 service collection get default response has a 2xx status code
func (o *S3ServiceCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 service collection get default response has a 3xx status code
func (o *S3ServiceCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 service collection get default response has a 4xx status code
func (o *S3ServiceCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 service collection get default response has a 5xx status code
func (o *S3ServiceCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 service collection get default response a status code equal to that given
func (o *S3ServiceCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3ServiceCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services][%d] s3_service_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services][%d] s3_service_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3ServiceCollectionGetDefault) 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/object_store/s3_policy_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_create_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3PolicyCreateReader is a Reader for the S3PolicyCreate structure.
type S3PolicyCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3PolicyCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewS3PolicyCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3PolicyCreateDefault(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
}
}
// NewS3PolicyCreateCreated creates a S3PolicyCreateCreated with default headers values
func NewS3PolicyCreateCreated() *S3PolicyCreateCreated {
return &S3PolicyCreateCreated{}
}
/*
S3PolicyCreateCreated describes a response with status code 201, with default header values.
Created
*/
type S3PolicyCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.S3PolicyResponse
}
// IsSuccess returns true when this s3 policy create created response has a 2xx status code
func (o *S3PolicyCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 policy create created response has a 3xx status code
func (o *S3PolicyCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 policy create created response has a 4xx status code
func (o *S3PolicyCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 policy create created response has a 5xx status code
func (o *S3PolicyCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this s3 policy create created response a status code equal to that given
func (o *S3PolicyCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *S3PolicyCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/policies][%d] s3PolicyCreateCreated %+v", 201, o.Payload)
}
func (o *S3PolicyCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/policies][%d] s3PolicyCreateCreated %+v", 201, o.Payload)
}
func (o *S3PolicyCreateCreated) GetPayload() *models.S3PolicyResponse {
return o.Payload
}
func (o *S3PolicyCreateCreated) 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.S3PolicyResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3PolicyCreateDefault creates a S3PolicyCreateDefault with default headers values
func NewS3PolicyCreateDefault(code int) *S3PolicyCreateDefault {
return &S3PolicyCreateDefault{
_statusCode: code,
}
}
/*
S3PolicyCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405906 | The specified action name is invalid.
| 92405947 | Creating an object store server policy or statement requires an effective cluster version of 9.8 or later.
| 92405948 | Policy name is not valid. Policy names must have between 1 and 128 characters.
| 92405949 | Policy name contains invalid characters. Valid characters: 0-9, A-Z, a-z, "_", "+", "=", ",", ".", "@", and "-".
| 92405950 | Policy name already exists for SVM.
| 92405954 | Policy name is reserved for read-only policies. Cannot be used for custom policy creation.
| 92405963 | Failed to create policy statements for policy. Reason: "{reason of failure}". Resolve all issues and retry the operation.
*/
type S3PolicyCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 policy create default response
func (o *S3PolicyCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 policy create default response has a 2xx status code
func (o *S3PolicyCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 policy create default response has a 3xx status code
func (o *S3PolicyCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 policy create default response has a 4xx status code
func (o *S3PolicyCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 policy create default response has a 5xx status code
func (o *S3PolicyCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 policy create default response a status code equal to that given
func (o *S3PolicyCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3PolicyCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/policies][%d] s3_policy_create default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/policies][%d] s3_policy_create default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3PolicyCreateDefault) 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/object_store/s3_user_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3UserModifyReader is a Reader for the S3UserModify structure.
type S3UserModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3UserModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3UserModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3UserModifyDefault(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
}
}
// NewS3UserModifyOK creates a S3UserModifyOK with default headers values
func NewS3UserModifyOK() *S3UserModifyOK {
return &S3UserModifyOK{}
}
/*
S3UserModifyOK describes a response with status code 200, with default header values.
OK
*/
type S3UserModifyOK struct {
Payload *models.S3UserPostPatchResponse
}
// IsSuccess returns true when this s3 user modify o k response has a 2xx status code
func (o *S3UserModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 user modify o k response has a 3xx status code
func (o *S3UserModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 user modify o k response has a 4xx status code
func (o *S3UserModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 user modify o k response has a 5xx status code
func (o *S3UserModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 user modify o k response a status code equal to that given
func (o *S3UserModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *S3UserModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3UserModifyOK %+v", 200, o.Payload)
}
func (o *S3UserModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3UserModifyOK %+v", 200, o.Payload)
}
func (o *S3UserModifyOK) GetPayload() *models.S3UserPostPatchResponse {
return o.Payload
}
func (o *S3UserModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3UserPostPatchResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3UserModifyDefault creates a S3UserModifyDefault with default headers values
func NewS3UserModifyDefault(code int) *S3UserModifyDefault {
return &S3UserModifyDefault{
_statusCode: code,
}
}
/*
S3UserModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405792 | Failed to regenerate access-key and secret-key for user. |
*/
type S3UserModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 user modify default response
func (o *S3UserModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 user modify default response has a 2xx status code
func (o *S3UserModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 user modify default response has a 3xx status code
func (o *S3UserModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 user modify default response has a 4xx status code
func (o *S3UserModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 user modify default response has a 5xx status code
func (o *S3UserModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 user modify default response a status code equal to that given
func (o *S3UserModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3UserModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3_user_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3UserModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3_user_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3UserModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3UserModifyDefault) 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/object_store/s3_bucket_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketGetReader is a Reader for the S3BucketGet structure.
type S3BucketGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3BucketGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketGetDefault(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
}
}
// NewS3BucketGetOK creates a S3BucketGetOK with default headers values
func NewS3BucketGetOK() *S3BucketGetOK {
return &S3BucketGetOK{}
}
/*
S3BucketGetOK describes a response with status code 200, with default header values.
OK
*/
type S3BucketGetOK struct {
Payload *models.S3Bucket
}
// IsSuccess returns true when this s3 bucket get o k response has a 2xx status code
func (o *S3BucketGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket get o k response has a 3xx status code
func (o *S3BucketGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket get o k response has a 4xx status code
func (o *S3BucketGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket get o k response has a 5xx status code
func (o *S3BucketGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket get o k response a status code equal to that given
func (o *S3BucketGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3BucketGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3BucketGetOK %+v", 200, o.Payload)
}
func (o *S3BucketGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3BucketGetOK %+v", 200, o.Payload)
}
func (o *S3BucketGetOK) GetPayload() *models.S3Bucket {
return o.Payload
}
func (o *S3BucketGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3Bucket)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketGetDefault creates a S3BucketGetDefault with default headers values
func NewS3BucketGetDefault(code int) *S3BucketGetDefault {
return &S3BucketGetDefault{
_statusCode: code,
}
}
/*
S3BucketGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3BucketGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket get default response
func (o *S3BucketGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket get default response has a 2xx status code
func (o *S3BucketGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket get default response has a 3xx status code
func (o *S3BucketGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket get default response has a 4xx status code
func (o *S3BucketGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket get default response has a 5xx status code
func (o *S3BucketGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket get default response a status code equal to that given
func (o *S3BucketGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3_bucket_get default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3_bucket_get default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketGetDefault) 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/object_store/s3_bucket_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketModifyReader is a Reader for the S3BucketModify structure.
type S3BucketModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewS3BucketModifyAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketModifyDefault(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
}
}
// NewS3BucketModifyAccepted creates a S3BucketModifyAccepted with default headers values
func NewS3BucketModifyAccepted() *S3BucketModifyAccepted {
return &S3BucketModifyAccepted{}
}
/*
S3BucketModifyAccepted describes a response with status code 202, with default header values.
Accepted
*/
type S3BucketModifyAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this s3 bucket modify accepted response has a 2xx status code
func (o *S3BucketModifyAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket modify accepted response has a 3xx status code
func (o *S3BucketModifyAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket modify accepted response has a 4xx status code
func (o *S3BucketModifyAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket modify accepted response has a 5xx status code
func (o *S3BucketModifyAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket modify accepted response a status code equal to that given
func (o *S3BucketModifyAccepted) IsCode(code int) bool {
return code == 202
}
func (o *S3BucketModifyAccepted) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3BucketModifyAccepted %+v", 202, o.Payload)
}
func (o *S3BucketModifyAccepted) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3BucketModifyAccepted %+v", 202, o.Payload)
}
func (o *S3BucketModifyAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *S3BucketModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketModifyDefault creates a S3BucketModifyDefault with default headers values
func NewS3BucketModifyDefault(code int) *S3BucketModifyDefault {
return &S3BucketModifyDefault{
_statusCode: code,
}
}
/*
S3BucketModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error code | Message |
| ---------- | ------- |
| 92405778 | "Failed to modify bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Reason: {Reason for failure}. ";
| 92405846 | "Failed to modify the object store volume. Reason: {Reason for failure}.";
| 92405811 | "Failed to modify bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Wait a few minutes and try the operation again.";
| 92405858 | "Failed to \\\"modify\\\" the \\\"bucket\\\" because the operation is only supported on data SVMs.";
| 92405861 | "The specified SVM UUID or bucket UUID does not exist.";
| 92405863 | "An error occurs when creating an access policy. The reason for failure is detailed in the error message.";
| 92405864 | "An error occurs when deleting an access policy. The reason for failure is detailed in the error message.";
| 92405891 | "The resources specified in the access policy are not valid. Valid ways to specify a resource are \\\"*\\\", \\\"<bucket-name>\\\", \\\"<bucket-name>/.../...\\\". Valid characters for a resource are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\",\\\", \\\";\\\", \\\":\\\", \\\";\\\", \\\"=\\\", \\\".\\\", \\\"&\\\", \\\"@\\\", \\\"?\\\", \\\"(\\\", \\\")\\\", \\\"'\\\", \\\"*\\\", \\\"!\\\", \\\"-\\\" and \\\"\\$\\\".";
| 92405894 | "Statements, principals and resources list can have a maximum of 10 entries.";
| 92405897 | "The principals specified in the access policy are not in the correct format. User name must be between 1 and 64 characters. Valid characters for a user name are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\"=\\\", \\\",\\\", \\\".\\\", \\\"@\\\", and \\\"-\\\". ";
| 92405898 | "The SID specified in the access policy is not valid. Valid characters for a SID are 0-9, A-Z and a-z.";
*/
type S3BucketModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket modify default response
func (o *S3BucketModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket modify default response has a 2xx status code
func (o *S3BucketModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket modify default response has a 3xx status code
func (o *S3BucketModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket modify default response has a 4xx status code
func (o *S3BucketModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket modify default response has a 5xx status code
func (o *S3BucketModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket modify default response a status code equal to that given
func (o *S3BucketModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3_bucket_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3_bucket_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketModifyDefault) 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/object_store/s3_policy_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3PolicyCollectionGetParams creates a new S3PolicyCollectionGetParams 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 NewS3PolicyCollectionGetParams() *S3PolicyCollectionGetParams {
return &S3PolicyCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3PolicyCollectionGetParamsWithTimeout creates a new S3PolicyCollectionGetParams object
// with the ability to set a timeout on a request.
func NewS3PolicyCollectionGetParamsWithTimeout(timeout time.Duration) *S3PolicyCollectionGetParams {
return &S3PolicyCollectionGetParams{
timeout: timeout,
}
}
// NewS3PolicyCollectionGetParamsWithContext creates a new S3PolicyCollectionGetParams object
// with the ability to set a context for a request.
func NewS3PolicyCollectionGetParamsWithContext(ctx context.Context) *S3PolicyCollectionGetParams {
return &S3PolicyCollectionGetParams{
Context: ctx,
}
}
// NewS3PolicyCollectionGetParamsWithHTTPClient creates a new S3PolicyCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3PolicyCollectionGetParamsWithHTTPClient(client *http.Client) *S3PolicyCollectionGetParams {
return &S3PolicyCollectionGetParams{
HTTPClient: client,
}
}
/*
S3PolicyCollectionGetParams contains all the parameters to send to the API endpoint
for the s3 policy collection get operation.
Typically these are written to a http.Request.
*/
type S3PolicyCollectionGetParams struct {
/* Comment.
Filter by comment
*/
Comment *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Name.
Filter by name
*/
Name *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* ReadOnly.
Filter by read-only
*/
ReadOnly *bool
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* StatementsActions.
Filter by statements.actions
*/
StatementsActions *string
/* StatementsEffect.
Filter by statements.effect
*/
StatementsEffect *string
/* StatementsIndex.
Filter by statements.index
*/
StatementsIndex *int64
/* StatementsResources.
Filter by statements.resources
*/
StatementsResources *string
/* StatementsSid.
Filter by statements.sid
*/
StatementsSid *string
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 policy collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyCollectionGetParams) WithDefaults() *S3PolicyCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 policy collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := S3PolicyCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithTimeout(timeout time.Duration) *S3PolicyCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithContext(ctx context.Context) *S3PolicyCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithHTTPClient(client *http.Client) *S3PolicyCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithComment adds the comment to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithComment(comment *string) *S3PolicyCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithFields adds the fields to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithFields(fields []string) *S3PolicyCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithMaxRecords adds the maxRecords to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithMaxRecords(maxRecords *int64) *S3PolicyCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithName(name *string) *S3PolicyCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithOrderBy(orderBy []string) *S3PolicyCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReadOnly adds the readOnly to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithReadOnly(readOnly *bool) *S3PolicyCollectionGetParams {
o.SetReadOnly(readOnly)
return o
}
// SetReadOnly adds the readOnly to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetReadOnly(readOnly *bool) {
o.ReadOnly = readOnly
}
// WithReturnRecords adds the returnRecords to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithReturnRecords(returnRecords *bool) *S3PolicyCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *S3PolicyCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithStatementsActions adds the statementsActions to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithStatementsActions(statementsActions *string) *S3PolicyCollectionGetParams {
o.SetStatementsActions(statementsActions)
return o
}
// SetStatementsActions adds the statementsActions to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetStatementsActions(statementsActions *string) {
o.StatementsActions = statementsActions
}
// WithStatementsEffect adds the statementsEffect to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithStatementsEffect(statementsEffect *string) *S3PolicyCollectionGetParams {
o.SetStatementsEffect(statementsEffect)
return o
}
// SetStatementsEffect adds the statementsEffect to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetStatementsEffect(statementsEffect *string) {
o.StatementsEffect = statementsEffect
}
// WithStatementsIndex adds the statementsIndex to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithStatementsIndex(statementsIndex *int64) *S3PolicyCollectionGetParams {
o.SetStatementsIndex(statementsIndex)
return o
}
// SetStatementsIndex adds the statementsIndex to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetStatementsIndex(statementsIndex *int64) {
o.StatementsIndex = statementsIndex
}
// WithStatementsResources adds the statementsResources to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithStatementsResources(statementsResources *string) *S3PolicyCollectionGetParams {
o.SetStatementsResources(statementsResources)
return o
}
// SetStatementsResources adds the statementsResources to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetStatementsResources(statementsResources *string) {
o.StatementsResources = statementsResources
}
// WithStatementsSid adds the statementsSid to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithStatementsSid(statementsSid *string) *S3PolicyCollectionGetParams {
o.SetStatementsSid(statementsSid)
return o
}
// SetStatementsSid adds the statementsSid to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetStatementsSid(statementsSid *string) {
o.StatementsSid = statementsSid
}
// WithSvmName adds the svmName to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithSvmName(svmName *string) *S3PolicyCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) WithSvmUUID(svmUUID string) *S3PolicyCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 policy collection get params
func (o *S3PolicyCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3PolicyCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Comment != nil {
// query param comment
var qrComment string
if o.Comment != nil {
qrComment = *o.Comment
}
qComment := qrComment
if qComment != "" {
if err := r.SetQueryParam("comment", qComment); err != nil {
return err
}
}
}
if o.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.ReadOnly != nil {
// query param read-only
var qrReadOnly bool
if o.ReadOnly != nil {
qrReadOnly = *o.ReadOnly
}
qReadOnly := swag.FormatBool(qrReadOnly)
if qReadOnly != "" {
if err := r.SetQueryParam("read-only", qReadOnly); 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.StatementsActions != nil {
// query param statements.actions
var qrStatementsActions string
if o.StatementsActions != nil {
qrStatementsActions = *o.StatementsActions
}
qStatementsActions := qrStatementsActions
if qStatementsActions != "" {
if err := r.SetQueryParam("statements.actions", qStatementsActions); err != nil {
return err
}
}
}
if o.StatementsEffect != nil {
// query param statements.effect
var qrStatementsEffect string
if o.StatementsEffect != nil {
qrStatementsEffect = *o.StatementsEffect
}
qStatementsEffect := qrStatementsEffect
if qStatementsEffect != "" {
if err := r.SetQueryParam("statements.effect", qStatementsEffect); err != nil {
return err
}
}
}
if o.StatementsIndex != nil {
// query param statements.index
var qrStatementsIndex int64
if o.StatementsIndex != nil {
qrStatementsIndex = *o.StatementsIndex
}
qStatementsIndex := swag.FormatInt64(qrStatementsIndex)
if qStatementsIndex != "" {
if err := r.SetQueryParam("statements.index", qStatementsIndex); err != nil {
return err
}
}
}
if o.StatementsResources != nil {
// query param statements.resources
var qrStatementsResources string
if o.StatementsResources != nil {
qrStatementsResources = *o.StatementsResources
}
qStatementsResources := qrStatementsResources
if qStatementsResources != "" {
if err := r.SetQueryParam("statements.resources", qStatementsResources); err != nil {
return err
}
}
}
if o.StatementsSid != nil {
// query param statements.sid
var qrStatementsSid string
if o.StatementsSid != nil {
qrStatementsSid = *o.StatementsSid
}
qStatementsSid := qrStatementsSid
if qStatementsSid != "" {
if err := r.SetQueryParam("statements.sid", qStatementsSid); err != nil {
return err
}
}
}
if o.SvmName != nil {
// query param svm.name
var qrSvmName string
if o.SvmName != nil {
qrSvmName = *o.SvmName
}
qSvmName := qrSvmName
if qSvmName != "" {
if err := r.SetQueryParam("svm.name", qSvmName); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3PolicyCollectionGet binds the parameter fields
func (o *S3PolicyCollectionGetParams) 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
}
// bindParamS3PolicyCollectionGet binds the parameter order_by
func (o *S3PolicyCollectionGetParams) 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/object_store/s3_group_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_create_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3GroupCreateReader is a Reader for the S3GroupCreate structure.
type S3GroupCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3GroupCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewS3GroupCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3GroupCreateDefault(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
}
}
// NewS3GroupCreateCreated creates a S3GroupCreateCreated with default headers values
func NewS3GroupCreateCreated() *S3GroupCreateCreated {
return &S3GroupCreateCreated{}
}
/*
S3GroupCreateCreated describes a response with status code 201, with default header values.
Created
*/
type S3GroupCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.S3GroupResponse
}
// IsSuccess returns true when this s3 group create created response has a 2xx status code
func (o *S3GroupCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 group create created response has a 3xx status code
func (o *S3GroupCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 group create created response has a 4xx status code
func (o *S3GroupCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 group create created response has a 5xx status code
func (o *S3GroupCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this s3 group create created response a status code equal to that given
func (o *S3GroupCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *S3GroupCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/groups][%d] s3GroupCreateCreated %+v", 201, o.Payload)
}
func (o *S3GroupCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/groups][%d] s3GroupCreateCreated %+v", 201, o.Payload)
}
func (o *S3GroupCreateCreated) GetPayload() *models.S3GroupResponse {
return o.Payload
}
func (o *S3GroupCreateCreated) 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.S3GroupResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3GroupCreateDefault creates a S3GroupCreateDefault with default headers values
func NewS3GroupCreateDefault(code int) *S3GroupCreateDefault {
return &S3GroupCreateDefault{
_statusCode: code,
}
}
/*
S3GroupCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405896 | Users list cannot be empty.
| 92405930 | Group name is not valid. Group names must have between 1 and 128 characters.
| 92405931 | Group name contains invalid characters. Valid characters for a group name are 0-9, A-Z, a-z, "_", "+", "=", ",", ".", "@", and "-".
| 92405932 | Creating an object store group requires an effective cluster version of 9.8 or later.
| 92405933 | Failed to create group for SVM. Reason: "{reason of failure}".
| 92405934 | User name specified in the user list do not exist for SVM. Use the "object-store-server user create" command to create a user.
| 92405935 | Internal Error. Unable to generate unique ID for the group.
| 92405936 | Query characters such as * are not supported in the user list.
| 92405937 | Policy name specified in the policy list do not exist for SVM.
| 92405942 | Group name already exists for SVM.
| 92405966 | User name is present more than once in the users field.
*/
type S3GroupCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 group create default response
func (o *S3GroupCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 group create default response has a 2xx status code
func (o *S3GroupCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 group create default response has a 3xx status code
func (o *S3GroupCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 group create default response has a 4xx status code
func (o *S3GroupCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 group create default response has a 5xx status code
func (o *S3GroupCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 group create default response a status code equal to that given
func (o *S3GroupCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3GroupCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/groups][%d] s3_group_create default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/groups][%d] s3_group_create default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3GroupCreateDefault) 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/object_store/s3_policy_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_modify_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3PolicyModifyParams creates a new S3PolicyModifyParams 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 NewS3PolicyModifyParams() *S3PolicyModifyParams {
return &S3PolicyModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3PolicyModifyParamsWithTimeout creates a new S3PolicyModifyParams object
// with the ability to set a timeout on a request.
func NewS3PolicyModifyParamsWithTimeout(timeout time.Duration) *S3PolicyModifyParams {
return &S3PolicyModifyParams{
timeout: timeout,
}
}
// NewS3PolicyModifyParamsWithContext creates a new S3PolicyModifyParams object
// with the ability to set a context for a request.
func NewS3PolicyModifyParamsWithContext(ctx context.Context) *S3PolicyModifyParams {
return &S3PolicyModifyParams{
Context: ctx,
}
}
// NewS3PolicyModifyParamsWithHTTPClient creates a new S3PolicyModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3PolicyModifyParamsWithHTTPClient(client *http.Client) *S3PolicyModifyParams {
return &S3PolicyModifyParams{
HTTPClient: client,
}
}
/*
S3PolicyModifyParams contains all the parameters to send to the API endpoint
for the s3 policy modify operation.
Typically these are written to a http.Request.
*/
type S3PolicyModifyParams struct {
/* Info.
Info specification
*/
Info *models.S3Policy
/* Name.
Policy name
*/
Name string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 policy modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyModifyParams) WithDefaults() *S3PolicyModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 policy modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3PolicyModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 policy modify params
func (o *S3PolicyModifyParams) WithTimeout(timeout time.Duration) *S3PolicyModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 policy modify params
func (o *S3PolicyModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 policy modify params
func (o *S3PolicyModifyParams) WithContext(ctx context.Context) *S3PolicyModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 policy modify params
func (o *S3PolicyModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 policy modify params
func (o *S3PolicyModifyParams) WithHTTPClient(client *http.Client) *S3PolicyModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 policy modify params
func (o *S3PolicyModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 policy modify params
func (o *S3PolicyModifyParams) WithInfo(info *models.S3Policy) *S3PolicyModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 policy modify params
func (o *S3PolicyModifyParams) SetInfo(info *models.S3Policy) {
o.Info = info
}
// WithName adds the name to the s3 policy modify params
func (o *S3PolicyModifyParams) WithName(name string) *S3PolicyModifyParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 policy modify params
func (o *S3PolicyModifyParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the s3 policy modify params
func (o *S3PolicyModifyParams) WithSvmUUID(svmUUID string) *S3PolicyModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 policy modify params
func (o *S3PolicyModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3PolicyModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_delete_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3BucketSvmDeleteParams creates a new S3BucketSvmDeleteParams 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 NewS3BucketSvmDeleteParams() *S3BucketSvmDeleteParams {
return &S3BucketSvmDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3BucketSvmDeleteParamsWithTimeout creates a new S3BucketSvmDeleteParams object
// with the ability to set a timeout on a request.
func NewS3BucketSvmDeleteParamsWithTimeout(timeout time.Duration) *S3BucketSvmDeleteParams {
return &S3BucketSvmDeleteParams{
timeout: timeout,
}
}
// NewS3BucketSvmDeleteParamsWithContext creates a new S3BucketSvmDeleteParams object
// with the ability to set a context for a request.
func NewS3BucketSvmDeleteParamsWithContext(ctx context.Context) *S3BucketSvmDeleteParams {
return &S3BucketSvmDeleteParams{
Context: ctx,
}
}
// NewS3BucketSvmDeleteParamsWithHTTPClient creates a new S3BucketSvmDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3BucketSvmDeleteParamsWithHTTPClient(client *http.Client) *S3BucketSvmDeleteParams {
return &S3BucketSvmDeleteParams{
HTTPClient: client,
}
}
/*
S3BucketSvmDeleteParams contains all the parameters to send to the API endpoint
for the s3 bucket svm delete operation.
Typically these are written to a http.Request.
*/
type S3BucketSvmDeleteParams struct {
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When doing a POST, PATCH, or DELETE operation on a single record, the default is 0 seconds. This means that if an asynchronous operation is started, the server immediately returns HTTP code 202 (Accepted) along with a link to the job. If a non-zero value is specified for POST, PATCH, or DELETE operations, ONTAP waits that length of time to see if the job completes so it can return something other than 202.
*/
ReturnTimeout *int64
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UUID.
The unique identifier of the bucket.
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 bucket svm delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmDeleteParams) WithDefaults() *S3BucketSvmDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 bucket svm delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3BucketSvmDeleteParams) SetDefaults() {
var (
returnTimeoutDefault = int64(0)
)
val := S3BucketSvmDeleteParams{
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) WithTimeout(timeout time.Duration) *S3BucketSvmDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) WithContext(ctx context.Context) *S3BucketSvmDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) WithHTTPClient(client *http.Client) *S3BucketSvmDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithReturnTimeout adds the returnTimeout to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) WithReturnTimeout(returnTimeout *int64) *S3BucketSvmDeleteParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmUUID adds the svmUUID to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) WithSvmUUID(svmUUID string) *S3BucketSvmDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUUID adds the uuid to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) WithUUID(uuid string) *S3BucketSvmDeleteParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the s3 bucket svm delete params
func (o *S3BucketSvmDeleteParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *S3BucketSvmDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); 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/object_store/s3_service_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_modify_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3ServiceModifyParams creates a new S3ServiceModifyParams 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 NewS3ServiceModifyParams() *S3ServiceModifyParams {
return &S3ServiceModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3ServiceModifyParamsWithTimeout creates a new S3ServiceModifyParams object
// with the ability to set a timeout on a request.
func NewS3ServiceModifyParamsWithTimeout(timeout time.Duration) *S3ServiceModifyParams {
return &S3ServiceModifyParams{
timeout: timeout,
}
}
// NewS3ServiceModifyParamsWithContext creates a new S3ServiceModifyParams object
// with the ability to set a context for a request.
func NewS3ServiceModifyParamsWithContext(ctx context.Context) *S3ServiceModifyParams {
return &S3ServiceModifyParams{
Context: ctx,
}
}
// NewS3ServiceModifyParamsWithHTTPClient creates a new S3ServiceModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3ServiceModifyParamsWithHTTPClient(client *http.Client) *S3ServiceModifyParams {
return &S3ServiceModifyParams{
HTTPClient: client,
}
}
/*
S3ServiceModifyParams contains all the parameters to send to the API endpoint
for the s3 service modify operation.
Typically these are written to a http.Request.
*/
type S3ServiceModifyParams struct {
/* Info.
Info specification
*/
Info *models.S3Service
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 service modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceModifyParams) WithDefaults() *S3ServiceModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 service modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 service modify params
func (o *S3ServiceModifyParams) WithTimeout(timeout time.Duration) *S3ServiceModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 service modify params
func (o *S3ServiceModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 service modify params
func (o *S3ServiceModifyParams) WithContext(ctx context.Context) *S3ServiceModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 service modify params
func (o *S3ServiceModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 service modify params
func (o *S3ServiceModifyParams) WithHTTPClient(client *http.Client) *S3ServiceModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 service modify params
func (o *S3ServiceModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 service modify params
func (o *S3ServiceModifyParams) WithInfo(info *models.S3Service) *S3ServiceModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 service modify params
func (o *S3ServiceModifyParams) SetInfo(info *models.S3Service) {
o.Info = info
}
// WithSvmUUID adds the svmUUID to the s3 service modify params
func (o *S3ServiceModifyParams) WithSvmUUID(svmUUID string) *S3ServiceModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 service modify params
func (o *S3ServiceModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3ServiceModifyParams) 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/object_store/s3_bucket_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_create_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketCreateReader is a Reader for the S3BucketCreate structure.
type S3BucketCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewS3BucketCreateAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketCreateDefault(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
}
}
// NewS3BucketCreateAccepted creates a S3BucketCreateAccepted with default headers values
func NewS3BucketCreateAccepted() *S3BucketCreateAccepted {
return &S3BucketCreateAccepted{}
}
/*
S3BucketCreateAccepted describes a response with status code 202, with default header values.
Accepted
*/
type S3BucketCreateAccepted struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this s3 bucket create accepted response has a 2xx status code
func (o *S3BucketCreateAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket create accepted response has a 3xx status code
func (o *S3BucketCreateAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket create accepted response has a 4xx status code
func (o *S3BucketCreateAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket create accepted response has a 5xx status code
func (o *S3BucketCreateAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket create accepted response a status code equal to that given
func (o *S3BucketCreateAccepted) IsCode(code int) bool {
return code == 202
}
func (o *S3BucketCreateAccepted) Error() string {
return fmt.Sprintf("[POST /protocols/s3/buckets][%d] s3BucketCreateAccepted %+v", 202, o.Payload)
}
func (o *S3BucketCreateAccepted) String() string {
return fmt.Sprintf("[POST /protocols/s3/buckets][%d] s3BucketCreateAccepted %+v", 202, o.Payload)
}
func (o *S3BucketCreateAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *S3BucketCreateAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
// hydrates response header Location
hdrLocation := response.GetHeader("Location")
if hdrLocation != "" {
o.Location = hdrLocation
}
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketCreateDefault creates a S3BucketCreateDefault with default headers values
func NewS3BucketCreateDefault(code int) *S3BucketCreateDefault {
return &S3BucketCreateDefault{
_statusCode: code,
}
}
/*
S3BucketCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error code | Message |
| ---------- | ------- |
| 92405777 | "Failed to create bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Reason: {Reason of failure}. ";
| 92405785 | "Bucket name \\\"{bucket name}\\\" contains invalid characters. Valid characters for a bucket name are 0-9, a-z, \\\".\\\", and \\\"-\\\". ";
| 92405786 | "Bucket name \\\"{bucket name}\\\" is not valid. Bucket names must have between 3 and 63 characters. ";
| 92405811 | "Failed to create bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Wait a few minutes and try the operation again.";
| 92405812 | "Failed to create the object store volume. Reason: {Reason for failure}.";
| 92405819 | "Cannot provision an object store server volume for bucket \\\"{bucket name}\\\" in SVM \\\"{svm.name}\\\" on the following aggregates because they are SnapLock aggregates: {List of aggregates.name}.";
| 92405820 | "Failed to check whether the aggregate \\\"{aggregates.name}\\\" is a FabricPool. Reason: {Reason for failure}.";
| 92405821 | "Cannot provision an object store server volume for bucket \\\"{bucket name}\\\" in SVM \\\"{svm.name}\\\" on the following aggregates because they are FabricPool: {List of aggregates.name}.";
| 92405827 | "Internal Error. Unable to generate object store volume name.";
| 92405857 | "One or more aggregates must be specified if \\\"constituents_per_aggregate\\\" is specified.";
| 92405858 | "Failed to \\\"create\\\" the \\\"bucket\\\" because the operation is only supported on data SVMs.";
| 92405859 | "The specified \\\"aggregates.uuid\\\" \\\"{aggregates.uuid}\\\" does not exist.";
| 92405860 | "The specified \\\"aggregates.name\\\" \\\"{aggregates.name}\\\" and \\\"aggregates.uuid\\\" \\\"{aggregates.uuid}\\\" refer to different aggregates.";
| 92405861 | "The specified SVM UUID or bucket UUID does not exist.";
| 92405863 | "An error occurs when creating an access policy. The reason for failure is detailed in the error message.";
| 92405891 | "The resources specified in the access policy are not valid. Valid ways to specify a resource are \\\"*\\\", \\\"<bucket-name>\\\", \\\"<bucket-name>/.../...\\\". Valid characters for a resource are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\",\\\", \\\";\\\", \\\":\\\", \\\";\\\", \\\"=\\\", \\\".\\\", \\\"&\\\", \\\"@\\\", \\\"?\\\", \\\"(\\\", \\\")\\\", \\\"'\\\", \\\"*\\\", \\\"!\\\", \\\"-\\\" and \\\"\\$\\\".";
| 92405894 | "Statements, principals and resources list can have a maximum of 10 entries.";
| 92405897 | "The principals specified in the access policy are not in the correct format. User name must be between 1 and 64 characters. Valid characters for a user name are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\"=\\\", \\\",\\\", \\\".\\\", \\\"@\\\", and \\\"-\\\". ";
| 92405898 | "The SID specified in the access policy is not valid. Valid characters for a SID are 0-9, A-Z and a-z.";
*/
type S3BucketCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket create default response
func (o *S3BucketCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket create default response has a 2xx status code
func (o *S3BucketCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket create default response has a 3xx status code
func (o *S3BucketCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket create default response has a 4xx status code
func (o *S3BucketCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket create default response has a 5xx status code
func (o *S3BucketCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket create default response a status code equal to that given
func (o *S3BucketCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/s3/buckets][%d] s3_bucket_create default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/s3/buckets][%d] s3_bucket_create default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketCreateDefault) 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/object_store/s3_group_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3GroupCollectionGetParams creates a new S3GroupCollectionGetParams 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 NewS3GroupCollectionGetParams() *S3GroupCollectionGetParams {
return &S3GroupCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3GroupCollectionGetParamsWithTimeout creates a new S3GroupCollectionGetParams object
// with the ability to set a timeout on a request.
func NewS3GroupCollectionGetParamsWithTimeout(timeout time.Duration) *S3GroupCollectionGetParams {
return &S3GroupCollectionGetParams{
timeout: timeout,
}
}
// NewS3GroupCollectionGetParamsWithContext creates a new S3GroupCollectionGetParams object
// with the ability to set a context for a request.
func NewS3GroupCollectionGetParamsWithContext(ctx context.Context) *S3GroupCollectionGetParams {
return &S3GroupCollectionGetParams{
Context: ctx,
}
}
// NewS3GroupCollectionGetParamsWithHTTPClient creates a new S3GroupCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3GroupCollectionGetParamsWithHTTPClient(client *http.Client) *S3GroupCollectionGetParams {
return &S3GroupCollectionGetParams{
HTTPClient: client,
}
}
/*
S3GroupCollectionGetParams contains all the parameters to send to the API endpoint
for the s3 group collection get operation.
Typically these are written to a http.Request.
*/
type S3GroupCollectionGetParams struct {
/* Comment.
Filter by comment
*/
Comment *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* ID.
Filter by id
*/
ID *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Name.
Filter by name
*/
Name *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* PoliciesName.
Filter by policies.name
*/
PoliciesName *string
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
/* UsersName.
Filter by users.name
*/
UsersName *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 group collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupCollectionGetParams) WithDefaults() *S3GroupCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 group collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := S3GroupCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithTimeout(timeout time.Duration) *S3GroupCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithContext(ctx context.Context) *S3GroupCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithHTTPClient(client *http.Client) *S3GroupCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithComment adds the comment to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithComment(comment *string) *S3GroupCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithFields adds the fields to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithFields(fields []string) *S3GroupCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithID adds the id to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithID(id *int64) *S3GroupCollectionGetParams {
o.SetID(id)
return o
}
// SetID adds the id to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetID(id *int64) {
o.ID = id
}
// WithMaxRecords adds the maxRecords to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithMaxRecords(maxRecords *int64) *S3GroupCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithName(name *string) *S3GroupCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithOrderBy(orderBy []string) *S3GroupCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPoliciesName adds the policiesName to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithPoliciesName(policiesName *string) *S3GroupCollectionGetParams {
o.SetPoliciesName(policiesName)
return o
}
// SetPoliciesName adds the policiesName to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetPoliciesName(policiesName *string) {
o.PoliciesName = policiesName
}
// WithReturnRecords adds the returnRecords to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithReturnRecords(returnRecords *bool) *S3GroupCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *S3GroupCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmName adds the svmName to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithSvmName(svmName *string) *S3GroupCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithSvmUUID(svmUUID string) *S3GroupCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WithUsersName adds the usersName to the s3 group collection get params
func (o *S3GroupCollectionGetParams) WithUsersName(usersName *string) *S3GroupCollectionGetParams {
o.SetUsersName(usersName)
return o
}
// SetUsersName adds the usersName to the s3 group collection get params
func (o *S3GroupCollectionGetParams) SetUsersName(usersName *string) {
o.UsersName = usersName
}
// WriteToRequest writes these params to a swagger request
func (o *S3GroupCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Comment != nil {
// query param comment
var qrComment string
if o.Comment != nil {
qrComment = *o.Comment
}
qComment := qrComment
if qComment != "" {
if err := r.SetQueryParam("comment", qComment); err != nil {
return err
}
}
}
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
if o.ID != nil {
// query param id
var qrID int64
if o.ID != nil {
qrID = *o.ID
}
qID := swag.FormatInt64(qrID)
if qID != "" {
if err := r.SetQueryParam("id", qID); err != nil {
return err
}
}
}
if o.MaxRecords != nil {
// query param max_records
var qrMaxRecords int64
if o.MaxRecords != nil {
qrMaxRecords = *o.MaxRecords
}
qMaxRecords := swag.FormatInt64(qrMaxRecords)
if qMaxRecords != "" {
if err := r.SetQueryParam("max_records", qMaxRecords); err != nil {
return err
}
}
}
if o.Name != nil {
// query param name
var qrName string
if o.Name != nil {
qrName = *o.Name
}
qName := qrName
if qName != "" {
if err := r.SetQueryParam("name", qName); err != nil {
return err
}
}
}
if o.OrderBy != nil {
// binding items for order_by
joinedOrderBy := o.bindParamOrderBy(reg)
// query array param order_by
if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil {
return err
}
}
if o.PoliciesName != nil {
// query param policies.name
var qrPoliciesName string
if o.PoliciesName != nil {
qrPoliciesName = *o.PoliciesName
}
qPoliciesName := qrPoliciesName
if qPoliciesName != "" {
if err := r.SetQueryParam("policies.name", qPoliciesName); err != nil {
return err
}
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
if o.SvmName != nil {
// query param svm.name
var qrSvmName string
if o.SvmName != nil {
qrSvmName = *o.SvmName
}
qSvmName := qrSvmName
if qSvmName != "" {
if err := r.SetQueryParam("svm.name", qSvmName); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if o.UsersName != nil {
// query param users.name
var qrUsersName string
if o.UsersName != nil {
qrUsersName = *o.UsersName
}
qUsersName := qrUsersName
if qUsersName != "" {
if err := r.SetQueryParam("users.name", qUsersName); err != nil {
return err
}
}
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3GroupCollectionGet binds the parameter fields
func (o *S3GroupCollectionGetParams) 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
}
// bindParamS3GroupCollectionGet binds the parameter order_by
func (o *S3GroupCollectionGetParams) 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/object_store/all_svm_buckets_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/all_svm_buckets_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewAllSvmBucketsCollectionGetParams creates a new AllSvmBucketsCollectionGetParams 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 NewAllSvmBucketsCollectionGetParams() *AllSvmBucketsCollectionGetParams {
return &AllSvmBucketsCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewAllSvmBucketsCollectionGetParamsWithTimeout creates a new AllSvmBucketsCollectionGetParams object
// with the ability to set a timeout on a request.
func NewAllSvmBucketsCollectionGetParamsWithTimeout(timeout time.Duration) *AllSvmBucketsCollectionGetParams {
return &AllSvmBucketsCollectionGetParams{
timeout: timeout,
}
}
// NewAllSvmBucketsCollectionGetParamsWithContext creates a new AllSvmBucketsCollectionGetParams object
// with the ability to set a context for a request.
func NewAllSvmBucketsCollectionGetParamsWithContext(ctx context.Context) *AllSvmBucketsCollectionGetParams {
return &AllSvmBucketsCollectionGetParams{
Context: ctx,
}
}
// NewAllSvmBucketsCollectionGetParamsWithHTTPClient creates a new AllSvmBucketsCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewAllSvmBucketsCollectionGetParamsWithHTTPClient(client *http.Client) *AllSvmBucketsCollectionGetParams {
return &AllSvmBucketsCollectionGetParams{
HTTPClient: client,
}
}
/*
AllSvmBucketsCollectionGetParams contains all the parameters to send to the API endpoint
for the all svm buckets collection get operation.
Typically these are written to a http.Request.
*/
type AllSvmBucketsCollectionGetParams struct {
/* Allowed.
Filter by allowed
*/
Allowed *bool
/* AuditEventSelectorAccess.
Filter by audit_event_selector.access
*/
AuditEventSelectorAccess *string
/* AuditEventSelectorPermission.
Filter by audit_event_selector.permission
*/
AuditEventSelectorPermission *string
/* Comment.
Filter by comment
*/
Comment *string
/* EncryptionEnabled.
Filter by encryption.enabled
*/
EncryptionEnabled *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* LogicalUsedSize.
Filter by logical_used_size
*/
LogicalUsedSize *int64
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Name.
Filter by name
*/
Name *string
/* NasPath.
Filter by nas_path
*/
NasPath *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* PolicyStatementsActions.
Filter by policy.statements.actions
*/
PolicyStatementsActions *string
/* PolicyStatementsConditionsDelimiters.
Filter by policy.statements.conditions.delimiters
*/
PolicyStatementsConditionsDelimiters *string
/* PolicyStatementsConditionsMaxKeys.
Filter by policy.statements.conditions.max_keys
*/
PolicyStatementsConditionsMaxKeys *int64
/* PolicyStatementsConditionsOperator.
Filter by policy.statements.conditions.operator
*/
PolicyStatementsConditionsOperator *string
/* PolicyStatementsConditionsPrefixes.
Filter by policy.statements.conditions.prefixes
*/
PolicyStatementsConditionsPrefixes *string
/* PolicyStatementsConditionsSourceIps.
Filter by policy.statements.conditions.source_ips
*/
PolicyStatementsConditionsSourceIps *string
/* PolicyStatementsConditionsUsernames.
Filter by policy.statements.conditions.usernames
*/
PolicyStatementsConditionsUsernames *string
/* PolicyStatementsEffect.
Filter by policy.statements.effect
*/
PolicyStatementsEffect *string
/* PolicyStatementsPrincipals.
Filter by policy.statements.principals
*/
PolicyStatementsPrincipals *string
/* PolicyStatementsResources.
Filter by policy.statements.resources
*/
PolicyStatementsResources *string
/* PolicyStatementsSid.
Filter by policy.statements.sid
*/
PolicyStatementsSid *string
/* ProtectionStatusDestinationIsCloud.
Filter by protection_status.destination.is_cloud
*/
ProtectionStatusDestinationIsCloud *bool
/* ProtectionStatusDestinationIsExternalCloud.
Filter by protection_status.destination.is_external_cloud
*/
ProtectionStatusDestinationIsExternalCloud *bool
/* ProtectionStatusDestinationIsOntap.
Filter by protection_status.destination.is_ontap
*/
ProtectionStatusDestinationIsOntap *bool
/* ProtectionStatusIsProtected.
Filter by protection_status.is_protected
*/
ProtectionStatusIsProtected *bool
/* QosPolicyMaxThroughputIops.
Filter by qos_policy.max_throughput_iops
*/
QosPolicyMaxThroughputIops *int64
/* QosPolicyMaxThroughputMbps.
Filter by qos_policy.max_throughput_mbps
*/
QosPolicyMaxThroughputMbps *int64
/* QosPolicyMinThroughputIops.
Filter by qos_policy.min_throughput_iops
*/
QosPolicyMinThroughputIops *int64
/* QosPolicyMinThroughputMbps.
Filter by qos_policy.min_throughput_mbps
*/
QosPolicyMinThroughputMbps *int64
/* QosPolicyName.
Filter by qos_policy.name
*/
QosPolicyName *string
/* QosPolicyUUID.
Filter by qos_policy.uuid
*/
QosPolicyUUID *string
/* 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
/* Role.
Filter by role
*/
Role *string
/* Size.
Filter by size
*/
Size *int64
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* Type.
Filter by type
*/
Type *string
/* UUID.
Filter by uuid
*/
UUID *string
/* VersioningState.
Filter by versioning_state
*/
VersioningState *string
/* VolumeName.
Filter by volume.name
*/
VolumeName *string
/* VolumeUUID.
Filter by volume.uuid
*/
VolumeUUID *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the all svm buckets collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AllSvmBucketsCollectionGetParams) WithDefaults() *AllSvmBucketsCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the all svm buckets collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *AllSvmBucketsCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := AllSvmBucketsCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithTimeout(timeout time.Duration) *AllSvmBucketsCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithContext(ctx context.Context) *AllSvmBucketsCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithHTTPClient(client *http.Client) *AllSvmBucketsCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAllowed adds the allowed to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithAllowed(allowed *bool) *AllSvmBucketsCollectionGetParams {
o.SetAllowed(allowed)
return o
}
// SetAllowed adds the allowed to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetAllowed(allowed *bool) {
o.Allowed = allowed
}
// WithAuditEventSelectorAccess adds the auditEventSelectorAccess to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithAuditEventSelectorAccess(auditEventSelectorAccess *string) *AllSvmBucketsCollectionGetParams {
o.SetAuditEventSelectorAccess(auditEventSelectorAccess)
return o
}
// SetAuditEventSelectorAccess adds the auditEventSelectorAccess to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetAuditEventSelectorAccess(auditEventSelectorAccess *string) {
o.AuditEventSelectorAccess = auditEventSelectorAccess
}
// WithAuditEventSelectorPermission adds the auditEventSelectorPermission to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithAuditEventSelectorPermission(auditEventSelectorPermission *string) *AllSvmBucketsCollectionGetParams {
o.SetAuditEventSelectorPermission(auditEventSelectorPermission)
return o
}
// SetAuditEventSelectorPermission adds the auditEventSelectorPermission to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetAuditEventSelectorPermission(auditEventSelectorPermission *string) {
o.AuditEventSelectorPermission = auditEventSelectorPermission
}
// WithComment adds the comment to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithComment(comment *string) *AllSvmBucketsCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithEncryptionEnabled adds the encryptionEnabled to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithEncryptionEnabled(encryptionEnabled *bool) *AllSvmBucketsCollectionGetParams {
o.SetEncryptionEnabled(encryptionEnabled)
return o
}
// SetEncryptionEnabled adds the encryptionEnabled to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetEncryptionEnabled(encryptionEnabled *bool) {
o.EncryptionEnabled = encryptionEnabled
}
// WithFields adds the fields to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithFields(fields []string) *AllSvmBucketsCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithLogicalUsedSize adds the logicalUsedSize to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithLogicalUsedSize(logicalUsedSize *int64) *AllSvmBucketsCollectionGetParams {
o.SetLogicalUsedSize(logicalUsedSize)
return o
}
// SetLogicalUsedSize adds the logicalUsedSize to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetLogicalUsedSize(logicalUsedSize *int64) {
o.LogicalUsedSize = logicalUsedSize
}
// WithMaxRecords adds the maxRecords to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithMaxRecords(maxRecords *int64) *AllSvmBucketsCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithName(name *string) *AllSvmBucketsCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithNasPath adds the nasPath to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithNasPath(nasPath *string) *AllSvmBucketsCollectionGetParams {
o.SetNasPath(nasPath)
return o
}
// SetNasPath adds the nasPath to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetNasPath(nasPath *string) {
o.NasPath = nasPath
}
// WithOrderBy adds the orderBy to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithOrderBy(orderBy []string) *AllSvmBucketsCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithPolicyStatementsActions adds the policyStatementsActions to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsActions(policyStatementsActions *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsActions(policyStatementsActions)
return o
}
// SetPolicyStatementsActions adds the policyStatementsActions to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsActions(policyStatementsActions *string) {
o.PolicyStatementsActions = policyStatementsActions
}
// WithPolicyStatementsConditionsDelimiters adds the policyStatementsConditionsDelimiters to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsConditionsDelimiters(policyStatementsConditionsDelimiters *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsConditionsDelimiters(policyStatementsConditionsDelimiters)
return o
}
// SetPolicyStatementsConditionsDelimiters adds the policyStatementsConditionsDelimiters to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsConditionsDelimiters(policyStatementsConditionsDelimiters *string) {
o.PolicyStatementsConditionsDelimiters = policyStatementsConditionsDelimiters
}
// WithPolicyStatementsConditionsMaxKeys adds the policyStatementsConditionsMaxKeys to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsConditionsMaxKeys(policyStatementsConditionsMaxKeys *int64) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsConditionsMaxKeys(policyStatementsConditionsMaxKeys)
return o
}
// SetPolicyStatementsConditionsMaxKeys adds the policyStatementsConditionsMaxKeys to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsConditionsMaxKeys(policyStatementsConditionsMaxKeys *int64) {
o.PolicyStatementsConditionsMaxKeys = policyStatementsConditionsMaxKeys
}
// WithPolicyStatementsConditionsOperator adds the policyStatementsConditionsOperator to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsConditionsOperator(policyStatementsConditionsOperator *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsConditionsOperator(policyStatementsConditionsOperator)
return o
}
// SetPolicyStatementsConditionsOperator adds the policyStatementsConditionsOperator to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsConditionsOperator(policyStatementsConditionsOperator *string) {
o.PolicyStatementsConditionsOperator = policyStatementsConditionsOperator
}
// WithPolicyStatementsConditionsPrefixes adds the policyStatementsConditionsPrefixes to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsConditionsPrefixes(policyStatementsConditionsPrefixes *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsConditionsPrefixes(policyStatementsConditionsPrefixes)
return o
}
// SetPolicyStatementsConditionsPrefixes adds the policyStatementsConditionsPrefixes to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsConditionsPrefixes(policyStatementsConditionsPrefixes *string) {
o.PolicyStatementsConditionsPrefixes = policyStatementsConditionsPrefixes
}
// WithPolicyStatementsConditionsSourceIps adds the policyStatementsConditionsSourceIps to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsConditionsSourceIps(policyStatementsConditionsSourceIps *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsConditionsSourceIps(policyStatementsConditionsSourceIps)
return o
}
// SetPolicyStatementsConditionsSourceIps adds the policyStatementsConditionsSourceIps to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsConditionsSourceIps(policyStatementsConditionsSourceIps *string) {
o.PolicyStatementsConditionsSourceIps = policyStatementsConditionsSourceIps
}
// WithPolicyStatementsConditionsUsernames adds the policyStatementsConditionsUsernames to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsConditionsUsernames(policyStatementsConditionsUsernames *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsConditionsUsernames(policyStatementsConditionsUsernames)
return o
}
// SetPolicyStatementsConditionsUsernames adds the policyStatementsConditionsUsernames to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsConditionsUsernames(policyStatementsConditionsUsernames *string) {
o.PolicyStatementsConditionsUsernames = policyStatementsConditionsUsernames
}
// WithPolicyStatementsEffect adds the policyStatementsEffect to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsEffect(policyStatementsEffect *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsEffect(policyStatementsEffect)
return o
}
// SetPolicyStatementsEffect adds the policyStatementsEffect to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsEffect(policyStatementsEffect *string) {
o.PolicyStatementsEffect = policyStatementsEffect
}
// WithPolicyStatementsPrincipals adds the policyStatementsPrincipals to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsPrincipals(policyStatementsPrincipals *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsPrincipals(policyStatementsPrincipals)
return o
}
// SetPolicyStatementsPrincipals adds the policyStatementsPrincipals to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsPrincipals(policyStatementsPrincipals *string) {
o.PolicyStatementsPrincipals = policyStatementsPrincipals
}
// WithPolicyStatementsResources adds the policyStatementsResources to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsResources(policyStatementsResources *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsResources(policyStatementsResources)
return o
}
// SetPolicyStatementsResources adds the policyStatementsResources to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsResources(policyStatementsResources *string) {
o.PolicyStatementsResources = policyStatementsResources
}
// WithPolicyStatementsSid adds the policyStatementsSid to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithPolicyStatementsSid(policyStatementsSid *string) *AllSvmBucketsCollectionGetParams {
o.SetPolicyStatementsSid(policyStatementsSid)
return o
}
// SetPolicyStatementsSid adds the policyStatementsSid to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetPolicyStatementsSid(policyStatementsSid *string) {
o.PolicyStatementsSid = policyStatementsSid
}
// WithProtectionStatusDestinationIsCloud adds the protectionStatusDestinationIsCloud to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithProtectionStatusDestinationIsCloud(protectionStatusDestinationIsCloud *bool) *AllSvmBucketsCollectionGetParams {
o.SetProtectionStatusDestinationIsCloud(protectionStatusDestinationIsCloud)
return o
}
// SetProtectionStatusDestinationIsCloud adds the protectionStatusDestinationIsCloud to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetProtectionStatusDestinationIsCloud(protectionStatusDestinationIsCloud *bool) {
o.ProtectionStatusDestinationIsCloud = protectionStatusDestinationIsCloud
}
// WithProtectionStatusDestinationIsExternalCloud adds the protectionStatusDestinationIsExternalCloud to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithProtectionStatusDestinationIsExternalCloud(protectionStatusDestinationIsExternalCloud *bool) *AllSvmBucketsCollectionGetParams {
o.SetProtectionStatusDestinationIsExternalCloud(protectionStatusDestinationIsExternalCloud)
return o
}
// SetProtectionStatusDestinationIsExternalCloud adds the protectionStatusDestinationIsExternalCloud to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetProtectionStatusDestinationIsExternalCloud(protectionStatusDestinationIsExternalCloud *bool) {
o.ProtectionStatusDestinationIsExternalCloud = protectionStatusDestinationIsExternalCloud
}
// WithProtectionStatusDestinationIsOntap adds the protectionStatusDestinationIsOntap to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithProtectionStatusDestinationIsOntap(protectionStatusDestinationIsOntap *bool) *AllSvmBucketsCollectionGetParams {
o.SetProtectionStatusDestinationIsOntap(protectionStatusDestinationIsOntap)
return o
}
// SetProtectionStatusDestinationIsOntap adds the protectionStatusDestinationIsOntap to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetProtectionStatusDestinationIsOntap(protectionStatusDestinationIsOntap *bool) {
o.ProtectionStatusDestinationIsOntap = protectionStatusDestinationIsOntap
}
// WithProtectionStatusIsProtected adds the protectionStatusIsProtected to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithProtectionStatusIsProtected(protectionStatusIsProtected *bool) *AllSvmBucketsCollectionGetParams {
o.SetProtectionStatusIsProtected(protectionStatusIsProtected)
return o
}
// SetProtectionStatusIsProtected adds the protectionStatusIsProtected to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetProtectionStatusIsProtected(protectionStatusIsProtected *bool) {
o.ProtectionStatusIsProtected = protectionStatusIsProtected
}
// WithQosPolicyMaxThroughputIops adds the qosPolicyMaxThroughputIops to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithQosPolicyMaxThroughputIops(qosPolicyMaxThroughputIops *int64) *AllSvmBucketsCollectionGetParams {
o.SetQosPolicyMaxThroughputIops(qosPolicyMaxThroughputIops)
return o
}
// SetQosPolicyMaxThroughputIops adds the qosPolicyMaxThroughputIops to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetQosPolicyMaxThroughputIops(qosPolicyMaxThroughputIops *int64) {
o.QosPolicyMaxThroughputIops = qosPolicyMaxThroughputIops
}
// WithQosPolicyMaxThroughputMbps adds the qosPolicyMaxThroughputMbps to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithQosPolicyMaxThroughputMbps(qosPolicyMaxThroughputMbps *int64) *AllSvmBucketsCollectionGetParams {
o.SetQosPolicyMaxThroughputMbps(qosPolicyMaxThroughputMbps)
return o
}
// SetQosPolicyMaxThroughputMbps adds the qosPolicyMaxThroughputMbps to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetQosPolicyMaxThroughputMbps(qosPolicyMaxThroughputMbps *int64) {
o.QosPolicyMaxThroughputMbps = qosPolicyMaxThroughputMbps
}
// WithQosPolicyMinThroughputIops adds the qosPolicyMinThroughputIops to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithQosPolicyMinThroughputIops(qosPolicyMinThroughputIops *int64) *AllSvmBucketsCollectionGetParams {
o.SetQosPolicyMinThroughputIops(qosPolicyMinThroughputIops)
return o
}
// SetQosPolicyMinThroughputIops adds the qosPolicyMinThroughputIops to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetQosPolicyMinThroughputIops(qosPolicyMinThroughputIops *int64) {
o.QosPolicyMinThroughputIops = qosPolicyMinThroughputIops
}
// WithQosPolicyMinThroughputMbps adds the qosPolicyMinThroughputMbps to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithQosPolicyMinThroughputMbps(qosPolicyMinThroughputMbps *int64) *AllSvmBucketsCollectionGetParams {
o.SetQosPolicyMinThroughputMbps(qosPolicyMinThroughputMbps)
return o
}
// SetQosPolicyMinThroughputMbps adds the qosPolicyMinThroughputMbps to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetQosPolicyMinThroughputMbps(qosPolicyMinThroughputMbps *int64) {
o.QosPolicyMinThroughputMbps = qosPolicyMinThroughputMbps
}
// WithQosPolicyName adds the qosPolicyName to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithQosPolicyName(qosPolicyName *string) *AllSvmBucketsCollectionGetParams {
o.SetQosPolicyName(qosPolicyName)
return o
}
// SetQosPolicyName adds the qosPolicyName to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetQosPolicyName(qosPolicyName *string) {
o.QosPolicyName = qosPolicyName
}
// WithQosPolicyUUID adds the qosPolicyUUID to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithQosPolicyUUID(qosPolicyUUID *string) *AllSvmBucketsCollectionGetParams {
o.SetQosPolicyUUID(qosPolicyUUID)
return o
}
// SetQosPolicyUUID adds the qosPolicyUuid to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetQosPolicyUUID(qosPolicyUUID *string) {
o.QosPolicyUUID = qosPolicyUUID
}
// WithReturnRecords adds the returnRecords to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithReturnRecords(returnRecords *bool) *AllSvmBucketsCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *AllSvmBucketsCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithRole adds the role to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithRole(role *string) *AllSvmBucketsCollectionGetParams {
o.SetRole(role)
return o
}
// SetRole adds the role to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetRole(role *string) {
o.Role = role
}
// WithSize adds the size to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithSize(size *int64) *AllSvmBucketsCollectionGetParams {
o.SetSize(size)
return o
}
// SetSize adds the size to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetSize(size *int64) {
o.Size = size
}
// WithSvmName adds the svmName to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithSvmName(svmName *string) *AllSvmBucketsCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithSvmUUID(svmUUID *string) *AllSvmBucketsCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithType adds the typeVar to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithType(typeVar *string) *AllSvmBucketsCollectionGetParams {
o.SetType(typeVar)
return o
}
// SetType adds the type to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetType(typeVar *string) {
o.Type = typeVar
}
// WithUUID adds the uuid to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithUUID(uuid *string) *AllSvmBucketsCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WithVersioningState adds the versioningState to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithVersioningState(versioningState *string) *AllSvmBucketsCollectionGetParams {
o.SetVersioningState(versioningState)
return o
}
// SetVersioningState adds the versioningState to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetVersioningState(versioningState *string) {
o.VersioningState = versioningState
}
// WithVolumeName adds the volumeName to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithVolumeName(volumeName *string) *AllSvmBucketsCollectionGetParams {
o.SetVolumeName(volumeName)
return o
}
// SetVolumeName adds the volumeName to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetVolumeName(volumeName *string) {
o.VolumeName = volumeName
}
// WithVolumeUUID adds the volumeUUID to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) WithVolumeUUID(volumeUUID *string) *AllSvmBucketsCollectionGetParams {
o.SetVolumeUUID(volumeUUID)
return o
}
// SetVolumeUUID adds the volumeUuid to the all svm buckets collection get params
func (o *AllSvmBucketsCollectionGetParams) SetVolumeUUID(volumeUUID *string) {
o.VolumeUUID = volumeUUID
}
// WriteToRequest writes these params to a swagger request
func (o *AllSvmBucketsCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Allowed != nil {
// query param allowed
var qrAllowed bool
if o.Allowed != nil {
qrAllowed = *o.Allowed
}
qAllowed := swag.FormatBool(qrAllowed)
if qAllowed != "" {
if err := r.SetQueryParam("allowed", qAllowed); err != nil {
return err
}
}
}
if o.AuditEventSelectorAccess != nil {
// query param audit_event_selector.access
var qrAuditEventSelectorAccess string
if o.AuditEventSelectorAccess != nil {
qrAuditEventSelectorAccess = *o.AuditEventSelectorAccess
}
qAuditEventSelectorAccess := qrAuditEventSelectorAccess
if qAuditEventSelectorAccess != "" {
| 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/object_store/s3_bucket_svm_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketSvmGetReader is a Reader for the S3BucketSvmGet structure.
type S3BucketSvmGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketSvmGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3BucketSvmGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketSvmGetDefault(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
}
}
// NewS3BucketSvmGetOK creates a S3BucketSvmGetOK with default headers values
func NewS3BucketSvmGetOK() *S3BucketSvmGetOK {
return &S3BucketSvmGetOK{}
}
/*
S3BucketSvmGetOK describes a response with status code 200, with default header values.
OK
*/
type S3BucketSvmGetOK struct {
Payload *models.S3BucketSvm
}
// IsSuccess returns true when this s3 bucket svm get o k response has a 2xx status code
func (o *S3BucketSvmGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket svm get o k response has a 3xx status code
func (o *S3BucketSvmGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket svm get o k response has a 4xx status code
func (o *S3BucketSvmGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket svm get o k response has a 5xx status code
func (o *S3BucketSvmGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket svm get o k response a status code equal to that given
func (o *S3BucketSvmGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3BucketSvmGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3BucketSvmGetOK %+v", 200, o.Payload)
}
func (o *S3BucketSvmGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3BucketSvmGetOK %+v", 200, o.Payload)
}
func (o *S3BucketSvmGetOK) GetPayload() *models.S3BucketSvm {
return o.Payload
}
func (o *S3BucketSvmGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3BucketSvm)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketSvmGetDefault creates a S3BucketSvmGetDefault with default headers values
func NewS3BucketSvmGetDefault(code int) *S3BucketSvmGetDefault {
return &S3BucketSvmGetDefault{
_statusCode: code,
}
}
/*
S3BucketSvmGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3BucketSvmGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket svm get default response
func (o *S3BucketSvmGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket svm get default response has a 2xx status code
func (o *S3BucketSvmGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket svm get default response has a 3xx status code
func (o *S3BucketSvmGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket svm get default response has a 4xx status code
func (o *S3BucketSvmGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket svm get default response has a 5xx status code
func (o *S3BucketSvmGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket svm get default response a status code equal to that given
func (o *S3BucketSvmGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketSvmGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3_bucket_svm_get default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3_bucket_svm_get default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketSvmGetDefault) 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/object_store/s3_group_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_modify_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3GroupModifyParams creates a new S3GroupModifyParams 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 NewS3GroupModifyParams() *S3GroupModifyParams {
return &S3GroupModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3GroupModifyParamsWithTimeout creates a new S3GroupModifyParams object
// with the ability to set a timeout on a request.
func NewS3GroupModifyParamsWithTimeout(timeout time.Duration) *S3GroupModifyParams {
return &S3GroupModifyParams{
timeout: timeout,
}
}
// NewS3GroupModifyParamsWithContext creates a new S3GroupModifyParams object
// with the ability to set a context for a request.
func NewS3GroupModifyParamsWithContext(ctx context.Context) *S3GroupModifyParams {
return &S3GroupModifyParams{
Context: ctx,
}
}
// NewS3GroupModifyParamsWithHTTPClient creates a new S3GroupModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3GroupModifyParamsWithHTTPClient(client *http.Client) *S3GroupModifyParams {
return &S3GroupModifyParams{
HTTPClient: client,
}
}
/*
S3GroupModifyParams contains all the parameters to send to the API endpoint
for the s3 group modify operation.
Typically these are written to a http.Request.
*/
type S3GroupModifyParams struct {
/* ID.
Group identifier that identifies the unique group.
*/
ID int64
/* Info.
Info specification
*/
Info *models.S3Group
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 group modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupModifyParams) WithDefaults() *S3GroupModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 group modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupModifyParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 group modify params
func (o *S3GroupModifyParams) WithTimeout(timeout time.Duration) *S3GroupModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 group modify params
func (o *S3GroupModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 group modify params
func (o *S3GroupModifyParams) WithContext(ctx context.Context) *S3GroupModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 group modify params
func (o *S3GroupModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 group modify params
func (o *S3GroupModifyParams) WithHTTPClient(client *http.Client) *S3GroupModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 group modify params
func (o *S3GroupModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithID adds the id to the s3 group modify params
func (o *S3GroupModifyParams) WithID(id int64) *S3GroupModifyParams {
o.SetID(id)
return o
}
// SetID adds the id to the s3 group modify params
func (o *S3GroupModifyParams) SetID(id int64) {
o.ID = id
}
// WithInfo adds the info to the s3 group modify params
func (o *S3GroupModifyParams) WithInfo(info *models.S3Group) *S3GroupModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 group modify params
func (o *S3GroupModifyParams) SetInfo(info *models.S3Group) {
o.Info = info
}
// WithSvmUUID adds the svmUUID to the s3 group modify params
func (o *S3GroupModifyParams) WithSvmUUID(svmUUID string) *S3GroupModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 group modify params
func (o *S3GroupModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3GroupModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param id
if err := r.SetPathParam("id", swag.FormatInt64(o.ID)); err != nil {
return err
}
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
// 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/object_store/s3_user_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_create_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3UserCreateParams creates a new S3UserCreateParams 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 NewS3UserCreateParams() *S3UserCreateParams {
return &S3UserCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3UserCreateParamsWithTimeout creates a new S3UserCreateParams object
// with the ability to set a timeout on a request.
func NewS3UserCreateParamsWithTimeout(timeout time.Duration) *S3UserCreateParams {
return &S3UserCreateParams{
timeout: timeout,
}
}
// NewS3UserCreateParamsWithContext creates a new S3UserCreateParams object
// with the ability to set a context for a request.
func NewS3UserCreateParamsWithContext(ctx context.Context) *S3UserCreateParams {
return &S3UserCreateParams{
Context: ctx,
}
}
// NewS3UserCreateParamsWithHTTPClient creates a new S3UserCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3UserCreateParamsWithHTTPClient(client *http.Client) *S3UserCreateParams {
return &S3UserCreateParams{
HTTPClient: client,
}
}
/*
S3UserCreateParams contains all the parameters to send to the API endpoint
for the s3 user create operation.
Typically these are written to a http.Request.
*/
type S3UserCreateParams struct {
/* Info.
Info specification
*/
Info *models.S3User
/* ReturnRecords.
The default is false. If set to true, the records are returned.
*/
ReturnRecords *bool
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 user create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserCreateParams) WithDefaults() *S3UserCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 user create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := S3UserCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 user create params
func (o *S3UserCreateParams) WithTimeout(timeout time.Duration) *S3UserCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 user create params
func (o *S3UserCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 user create params
func (o *S3UserCreateParams) WithContext(ctx context.Context) *S3UserCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 user create params
func (o *S3UserCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 user create params
func (o *S3UserCreateParams) WithHTTPClient(client *http.Client) *S3UserCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 user create params
func (o *S3UserCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 user create params
func (o *S3UserCreateParams) WithInfo(info *models.S3User) *S3UserCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 user create params
func (o *S3UserCreateParams) SetInfo(info *models.S3User) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the s3 user create params
func (o *S3UserCreateParams) WithReturnRecords(returnRecords *bool) *S3UserCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 user create params
func (o *S3UserCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithSvmUUID adds the svmUUID to the s3 user create params
func (o *S3UserCreateParams) WithSvmUUID(svmUUID string) *S3UserCreateParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 user create params
func (o *S3UserCreateParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3UserCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_delete_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3GroupDeleteParams creates a new S3GroupDeleteParams 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 NewS3GroupDeleteParams() *S3GroupDeleteParams {
return &S3GroupDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3GroupDeleteParamsWithTimeout creates a new S3GroupDeleteParams object
// with the ability to set a timeout on a request.
func NewS3GroupDeleteParamsWithTimeout(timeout time.Duration) *S3GroupDeleteParams {
return &S3GroupDeleteParams{
timeout: timeout,
}
}
// NewS3GroupDeleteParamsWithContext creates a new S3GroupDeleteParams object
// with the ability to set a context for a request.
func NewS3GroupDeleteParamsWithContext(ctx context.Context) *S3GroupDeleteParams {
return &S3GroupDeleteParams{
Context: ctx,
}
}
// NewS3GroupDeleteParamsWithHTTPClient creates a new S3GroupDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3GroupDeleteParamsWithHTTPClient(client *http.Client) *S3GroupDeleteParams {
return &S3GroupDeleteParams{
HTTPClient: client,
}
}
/*
S3GroupDeleteParams contains all the parameters to send to the API endpoint
for the s3 group delete operation.
Typically these are written to a http.Request.
*/
type S3GroupDeleteParams struct {
/* ID.
Group identifier that identifies the unique group.
*/
ID string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 group delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupDeleteParams) WithDefaults() *S3GroupDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 group delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 group delete params
func (o *S3GroupDeleteParams) WithTimeout(timeout time.Duration) *S3GroupDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 group delete params
func (o *S3GroupDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 group delete params
func (o *S3GroupDeleteParams) WithContext(ctx context.Context) *S3GroupDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 group delete params
func (o *S3GroupDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 group delete params
func (o *S3GroupDeleteParams) WithHTTPClient(client *http.Client) *S3GroupDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 group delete params
func (o *S3GroupDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithID adds the id to the s3 group delete params
func (o *S3GroupDeleteParams) WithID(id string) *S3GroupDeleteParams {
o.SetID(id)
return o
}
// SetID adds the id to the s3 group delete params
func (o *S3GroupDeleteParams) SetID(id string) {
o.ID = id
}
// WithSvmUUID adds the svmUUID to the s3 group delete params
func (o *S3GroupDeleteParams) WithSvmUUID(svmUUID string) *S3GroupDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 group delete params
func (o *S3GroupDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3GroupDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param id
if err := r.SetPathParam("id", o.ID); 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/object_store/s3_service_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_create_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3ServiceCreateReader is a Reader for the S3ServiceCreate structure.
type S3ServiceCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3ServiceCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewS3ServiceCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3ServiceCreateDefault(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
}
}
// NewS3ServiceCreateCreated creates a S3ServiceCreateCreated with default headers values
func NewS3ServiceCreateCreated() *S3ServiceCreateCreated {
return &S3ServiceCreateCreated{}
}
/*
S3ServiceCreateCreated describes a response with status code 201, with default header values.
Created
*/
type S3ServiceCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.S3ServicePostResponse
}
// IsSuccess returns true when this s3 service create created response has a 2xx status code
func (o *S3ServiceCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 service create created response has a 3xx status code
func (o *S3ServiceCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 service create created response has a 4xx status code
func (o *S3ServiceCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 service create created response has a 5xx status code
func (o *S3ServiceCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this s3 service create created response a status code equal to that given
func (o *S3ServiceCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *S3ServiceCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services][%d] s3ServiceCreateCreated %+v", 201, o.Payload)
}
func (o *S3ServiceCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/s3/services][%d] s3ServiceCreateCreated %+v", 201, o.Payload)
}
func (o *S3ServiceCreateCreated) GetPayload() *models.S3ServicePostResponse {
return o.Payload
}
func (o *S3ServiceCreateCreated) 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.S3ServicePostResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3ServiceCreateDefault creates a S3ServiceCreateDefault with default headers values
func NewS3ServiceCreateDefault(code int) *S3ServiceCreateDefault {
return &S3ServiceCreateDefault{
_statusCode: code,
}
}
/*
S3ServiceCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 2621706 | The specified SVM UUID is incorrect for the specified SVM name. |
| 92405789 | The specified object server name contains invalid characters or not a fully qualified domain name. Valid characters for an object store server name are 0-9, A-Z, a-z, \".\", and \"-\". |
| 92405790 | Object store server names must have between 1 and 15 characters. |
| 92405839 | Creating an object store server requires an effective cluster version of data ONTAP 9.7.0 or later. Upgrade all the nodes to 9.7.0 or later and try the operation again. |
| 92405853 | Failed to create the object store server because Cloud Volumes ONTAP does not support object store servers. |
| 92405863 | An error occurs when creating an S3 user or bucket. The reason for failure is detailed in the error message. Follow the error codes specified for the user or bucket endpoints to see details for the failure. |
| 92405884 | An object store server can only be created on a data SVM. An object store server can also be created on a system SVM on a mixed platform cluster. |
*/
type S3ServiceCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 service create default response
func (o *S3ServiceCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 service create default response has a 2xx status code
func (o *S3ServiceCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 service create default response has a 3xx status code
func (o *S3ServiceCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 service create default response has a 4xx status code
func (o *S3ServiceCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 service create default response has a 5xx status code
func (o *S3ServiceCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 service create default response a status code equal to that given
func (o *S3ServiceCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3ServiceCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services][%d] s3_service_create default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/s3/services][%d] s3_service_create default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3ServiceCreateDefault) 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/object_store/s3_service_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_create_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3ServiceCreateParams creates a new S3ServiceCreateParams 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 NewS3ServiceCreateParams() *S3ServiceCreateParams {
return &S3ServiceCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3ServiceCreateParamsWithTimeout creates a new S3ServiceCreateParams object
// with the ability to set a timeout on a request.
func NewS3ServiceCreateParamsWithTimeout(timeout time.Duration) *S3ServiceCreateParams {
return &S3ServiceCreateParams{
timeout: timeout,
}
}
// NewS3ServiceCreateParamsWithContext creates a new S3ServiceCreateParams object
// with the ability to set a context for a request.
func NewS3ServiceCreateParamsWithContext(ctx context.Context) *S3ServiceCreateParams {
return &S3ServiceCreateParams{
Context: ctx,
}
}
// NewS3ServiceCreateParamsWithHTTPClient creates a new S3ServiceCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3ServiceCreateParamsWithHTTPClient(client *http.Client) *S3ServiceCreateParams {
return &S3ServiceCreateParams{
HTTPClient: client,
}
}
/*
S3ServiceCreateParams contains all the parameters to send to the API endpoint
for the s3 service create operation.
Typically these are written to a http.Request.
*/
type S3ServiceCreateParams struct {
/* Info.
Info specification
*/
Info *models.S3Service
/* 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 s3 service create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceCreateParams) WithDefaults() *S3ServiceCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 service create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
)
val := S3ServiceCreateParams{
ReturnRecords: &returnRecordsDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 service create params
func (o *S3ServiceCreateParams) WithTimeout(timeout time.Duration) *S3ServiceCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 service create params
func (o *S3ServiceCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 service create params
func (o *S3ServiceCreateParams) WithContext(ctx context.Context) *S3ServiceCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 service create params
func (o *S3ServiceCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 service create params
func (o *S3ServiceCreateParams) WithHTTPClient(client *http.Client) *S3ServiceCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 service create params
func (o *S3ServiceCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 service create params
func (o *S3ServiceCreateParams) WithInfo(info *models.S3Service) *S3ServiceCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 service create params
func (o *S3ServiceCreateParams) SetInfo(info *models.S3Service) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the s3 service create params
func (o *S3ServiceCreateParams) WithReturnRecords(returnRecords *bool) *S3ServiceCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 service create params
func (o *S3ServiceCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WriteToRequest writes these params to a swagger request
func (o *S3ServiceCreateParams) 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/object_store/s3_bucket_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketDeleteReader is a Reader for the S3BucketDelete structure.
type S3BucketDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewS3BucketDeleteAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketDeleteDefault(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
}
}
// NewS3BucketDeleteAccepted creates a S3BucketDeleteAccepted with default headers values
func NewS3BucketDeleteAccepted() *S3BucketDeleteAccepted {
return &S3BucketDeleteAccepted{}
}
/*
S3BucketDeleteAccepted describes a response with status code 202, with default header values.
Accepted
*/
type S3BucketDeleteAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this s3 bucket delete accepted response has a 2xx status code
func (o *S3BucketDeleteAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket delete accepted response has a 3xx status code
func (o *S3BucketDeleteAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket delete accepted response has a 4xx status code
func (o *S3BucketDeleteAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket delete accepted response has a 5xx status code
func (o *S3BucketDeleteAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket delete accepted response a status code equal to that given
func (o *S3BucketDeleteAccepted) IsCode(code int) bool {
return code == 202
}
func (o *S3BucketDeleteAccepted) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3BucketDeleteAccepted %+v", 202, o.Payload)
}
func (o *S3BucketDeleteAccepted) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3BucketDeleteAccepted %+v", 202, o.Payload)
}
func (o *S3BucketDeleteAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *S3BucketDeleteAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketDeleteDefault creates a S3BucketDeleteDefault with default headers values
func NewS3BucketDeleteDefault(code int) *S3BucketDeleteDefault {
return &S3BucketDeleteDefault{
_statusCode: code,
}
}
/*
S3BucketDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error code | Message |
| ---------- | ------- |
| 92405811 | "Failed to delete bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Wait a few minutes and try the operation again.";
| 92405858 | "Failed to \\\"delete\\\" the \\\"bucket\\\" because the operation is only supported on data SVMs.";
| 92405861 | "The specified SVM UUID or bucket UUID does not exist.";
| 92405779 | "Failed to remove bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Reason: {Reason for failure}. ";
| 92405813 | "Failed to delete the object store volume. Reason: {Reason for failure}.";
| 92405864 | "An error occurred when deleting an access policy. The reason for failure is detailed in the error message.";
*/
type S3BucketDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket delete default response
func (o *S3BucketDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket delete default response has a 2xx status code
func (o *S3BucketDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket delete default response has a 3xx status code
func (o *S3BucketDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket delete default response has a 4xx status code
func (o *S3BucketDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket delete default response has a 5xx status code
func (o *S3BucketDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket delete default response a status code equal to that given
func (o *S3BucketDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3_bucket_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/buckets/{svm.uuid}/{uuid}][%d] s3_bucket_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketDeleteDefault) 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/object_store/s3_user_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3UserCollectionGetParams creates a new S3UserCollectionGetParams 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 NewS3UserCollectionGetParams() *S3UserCollectionGetParams {
return &S3UserCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3UserCollectionGetParamsWithTimeout creates a new S3UserCollectionGetParams object
// with the ability to set a timeout on a request.
func NewS3UserCollectionGetParamsWithTimeout(timeout time.Duration) *S3UserCollectionGetParams {
return &S3UserCollectionGetParams{
timeout: timeout,
}
}
// NewS3UserCollectionGetParamsWithContext creates a new S3UserCollectionGetParams object
// with the ability to set a context for a request.
func NewS3UserCollectionGetParamsWithContext(ctx context.Context) *S3UserCollectionGetParams {
return &S3UserCollectionGetParams{
Context: ctx,
}
}
// NewS3UserCollectionGetParamsWithHTTPClient creates a new S3UserCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3UserCollectionGetParamsWithHTTPClient(client *http.Client) *S3UserCollectionGetParams {
return &S3UserCollectionGetParams{
HTTPClient: client,
}
}
/*
S3UserCollectionGetParams contains all the parameters to send to the API endpoint
for the s3 user collection get operation.
Typically these are written to a http.Request.
*/
type S3UserCollectionGetParams struct {
/* AccessKey.
Filter by access_key
*/
AccessKey *string
/* Comment.
Filter by comment
*/
Comment *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* Name.
Filter by name
*/
Name *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 user collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserCollectionGetParams) WithDefaults() *S3UserCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 user collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := S3UserCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithTimeout(timeout time.Duration) *S3UserCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithContext(ctx context.Context) *S3UserCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithHTTPClient(client *http.Client) *S3UserCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccessKey adds the accessKey to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithAccessKey(accessKey *string) *S3UserCollectionGetParams {
o.SetAccessKey(accessKey)
return o
}
// SetAccessKey adds the accessKey to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetAccessKey(accessKey *string) {
o.AccessKey = accessKey
}
// WithComment adds the comment to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithComment(comment *string) *S3UserCollectionGetParams {
o.SetComment(comment)
return o
}
// SetComment adds the comment to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetComment(comment *string) {
o.Comment = comment
}
// WithFields adds the fields to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithFields(fields []string) *S3UserCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithMaxRecords adds the maxRecords to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithMaxRecords(maxRecords *int64) *S3UserCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithName(name *string) *S3UserCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithOrderBy(orderBy []string) *S3UserCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithReturnRecords adds the returnRecords to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithReturnRecords(returnRecords *bool) *S3UserCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *S3UserCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithSvmName adds the svmName to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithSvmName(svmName *string) *S3UserCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the s3 user collection get params
func (o *S3UserCollectionGetParams) WithSvmUUID(svmUUID string) *S3UserCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 user collection get params
func (o *S3UserCollectionGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3UserCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.AccessKey != nil {
// query param access_key
var qrAccessKey string
if o.AccessKey != nil {
qrAccessKey = *o.AccessKey
}
qAccessKey := qrAccessKey
if qAccessKey != "" {
if err := r.SetQueryParam("access_key", qAccessKey); 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.MaxRecords != nil {
// query param max_records
var qrMaxRecords int64
if o.MaxRecords != nil {
qrMaxRecords = *o.MaxRecords
}
qMaxRecords := swag.FormatInt64(qrMaxRecords)
if qMaxRecords != "" {
if err := r.SetQueryParam("max_records", qMaxRecords); err != nil {
return err
}
}
}
if o.Name != nil {
// query param name
var qrName string
if o.Name != nil {
qrName = *o.Name
}
qName := qrName
if qName != "" {
if err := r.SetQueryParam("name", qName); err != nil {
return err
}
}
}
if o.OrderBy != nil {
// binding items for order_by
joinedOrderBy := o.bindParamOrderBy(reg)
// query array param order_by
if err := r.SetQueryParam("order_by", joinedOrderBy...); err != nil {
return err
}
}
if o.ReturnRecords != nil {
// query param return_records
var qrReturnRecords bool
if o.ReturnRecords != nil {
qrReturnRecords = *o.ReturnRecords
}
qReturnRecords := swag.FormatBool(qrReturnRecords)
if qReturnRecords != "" {
if err := r.SetQueryParam("return_records", qReturnRecords); err != nil {
return err
}
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
if o.SvmName != nil {
// query param svm.name
var qrSvmName string
if o.SvmName != nil {
qrSvmName = *o.SvmName
}
qSvmName := qrSvmName
if qSvmName != "" {
if err := r.SetQueryParam("svm.name", qSvmName); err != nil {
return err
}
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3UserCollectionGet binds the parameter fields
func (o *S3UserCollectionGetParams) 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
}
// bindParamS3UserCollectionGet binds the parameter order_by
func (o *S3UserCollectionGetParams) 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/object_store/s3_group_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3GroupDeleteReader is a Reader for the S3GroupDelete structure.
type S3GroupDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3GroupDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3GroupDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3GroupDeleteDefault(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
}
}
// NewS3GroupDeleteOK creates a S3GroupDeleteOK with default headers values
func NewS3GroupDeleteOK() *S3GroupDeleteOK {
return &S3GroupDeleteOK{}
}
/*
S3GroupDeleteOK describes a response with status code 200, with default header values.
OK
*/
type S3GroupDeleteOK struct {
}
// IsSuccess returns true when this s3 group delete o k response has a 2xx status code
func (o *S3GroupDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 group delete o k response has a 3xx status code
func (o *S3GroupDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 group delete o k response has a 4xx status code
func (o *S3GroupDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 group delete o k response has a 5xx status code
func (o *S3GroupDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 group delete o k response a status code equal to that given
func (o *S3GroupDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *S3GroupDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3GroupDeleteOK ", 200)
}
func (o *S3GroupDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3GroupDeleteOK ", 200)
}
func (o *S3GroupDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewS3GroupDeleteDefault creates a S3GroupDeleteDefault with default headers values
func NewS3GroupDeleteDefault(code int) *S3GroupDeleteDefault {
return &S3GroupDeleteDefault{
_statusCode: code,
}
}
/*
S3GroupDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type S3GroupDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 group delete default response
func (o *S3GroupDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 group delete default response has a 2xx status code
func (o *S3GroupDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 group delete default response has a 3xx status code
func (o *S3GroupDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 group delete default response has a 4xx status code
func (o *S3GroupDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 group delete default response has a 5xx status code
func (o *S3GroupDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 group delete default response a status code equal to that given
func (o *S3GroupDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3GroupDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3_group_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3_group_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3GroupDeleteDefault) 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/object_store/s3_user_delete_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_delete_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3UserDeleteParams creates a new S3UserDeleteParams 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 NewS3UserDeleteParams() *S3UserDeleteParams {
return &S3UserDeleteParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3UserDeleteParamsWithTimeout creates a new S3UserDeleteParams object
// with the ability to set a timeout on a request.
func NewS3UserDeleteParamsWithTimeout(timeout time.Duration) *S3UserDeleteParams {
return &S3UserDeleteParams{
timeout: timeout,
}
}
// NewS3UserDeleteParamsWithContext creates a new S3UserDeleteParams object
// with the ability to set a context for a request.
func NewS3UserDeleteParamsWithContext(ctx context.Context) *S3UserDeleteParams {
return &S3UserDeleteParams{
Context: ctx,
}
}
// NewS3UserDeleteParamsWithHTTPClient creates a new S3UserDeleteParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3UserDeleteParamsWithHTTPClient(client *http.Client) *S3UserDeleteParams {
return &S3UserDeleteParams{
HTTPClient: client,
}
}
/*
S3UserDeleteParams contains all the parameters to send to the API endpoint
for the s3 user delete operation.
Typically these are written to a http.Request.
*/
type S3UserDeleteParams struct {
/* Name.
User name
*/
Name string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 user delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserDeleteParams) WithDefaults() *S3UserDeleteParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 user delete params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserDeleteParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 user delete params
func (o *S3UserDeleteParams) WithTimeout(timeout time.Duration) *S3UserDeleteParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 user delete params
func (o *S3UserDeleteParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 user delete params
func (o *S3UserDeleteParams) WithContext(ctx context.Context) *S3UserDeleteParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 user delete params
func (o *S3UserDeleteParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 user delete params
func (o *S3UserDeleteParams) WithHTTPClient(client *http.Client) *S3UserDeleteParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 user delete params
func (o *S3UserDeleteParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithName adds the name to the s3 user delete params
func (o *S3UserDeleteParams) WithName(name string) *S3UserDeleteParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 user delete params
func (o *S3UserDeleteParams) SetName(name string) {
o.Name = name
}
// WithSvmUUID adds the svmUUID to the s3 user delete params
func (o *S3UserDeleteParams) WithSvmUUID(svmUUID string) *S3UserDeleteParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 user delete params
func (o *S3UserDeleteParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3UserDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_policy_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3PolicyDeleteReader is a Reader for the S3PolicyDelete structure.
type S3PolicyDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3PolicyDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3PolicyDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3PolicyDeleteDefault(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
}
}
// NewS3PolicyDeleteOK creates a S3PolicyDeleteOK with default headers values
func NewS3PolicyDeleteOK() *S3PolicyDeleteOK {
return &S3PolicyDeleteOK{}
}
/*
S3PolicyDeleteOK describes a response with status code 200, with default header values.
OK
*/
type S3PolicyDeleteOK struct {
}
// IsSuccess returns true when this s3 policy delete o k response has a 2xx status code
func (o *S3PolicyDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 policy delete o k response has a 3xx status code
func (o *S3PolicyDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 policy delete o k response has a 4xx status code
func (o *S3PolicyDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 policy delete o k response has a 5xx status code
func (o *S3PolicyDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 policy delete o k response a status code equal to that given
func (o *S3PolicyDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *S3PolicyDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3PolicyDeleteOK ", 200)
}
func (o *S3PolicyDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3PolicyDeleteOK ", 200)
}
func (o *S3PolicyDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewS3PolicyDeleteDefault creates a S3PolicyDeleteDefault with default headers values
func NewS3PolicyDeleteDefault(code int) *S3PolicyDeleteDefault {
return &S3PolicyDeleteDefault{
_statusCode: code,
}
}
/*
S3PolicyDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type S3PolicyDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 policy delete default response
func (o *S3PolicyDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 policy delete default response has a 2xx status code
func (o *S3PolicyDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 policy delete default response has a 3xx status code
func (o *S3PolicyDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 policy delete default response has a 4xx status code
func (o *S3PolicyDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 policy delete default response has a 5xx status code
func (o *S3PolicyDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 policy delete default response a status code equal to that given
func (o *S3PolicyDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3PolicyDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3_policy_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/policies/{name}][%d] s3_policy_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3PolicyDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3PolicyDeleteDefault) 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/object_store/s3_user_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3UserDeleteReader is a Reader for the S3UserDelete structure.
type S3UserDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3UserDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3UserDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3UserDeleteDefault(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
}
}
// NewS3UserDeleteOK creates a S3UserDeleteOK with default headers values
func NewS3UserDeleteOK() *S3UserDeleteOK {
return &S3UserDeleteOK{}
}
/*
S3UserDeleteOK describes a response with status code 200, with default header values.
OK
*/
type S3UserDeleteOK struct {
}
// IsSuccess returns true when this s3 user delete o k response has a 2xx status code
func (o *S3UserDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 user delete o k response has a 3xx status code
func (o *S3UserDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 user delete o k response has a 4xx status code
func (o *S3UserDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 user delete o k response has a 5xx status code
func (o *S3UserDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 user delete o k response a status code equal to that given
func (o *S3UserDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *S3UserDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3UserDeleteOK ", 200)
}
func (o *S3UserDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3UserDeleteOK ", 200)
}
func (o *S3UserDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewS3UserDeleteDefault creates a S3UserDeleteDefault with default headers values
func NewS3UserDeleteDefault(code int) *S3UserDeleteDefault {
return &S3UserDeleteDefault{
_statusCode: code,
}
}
/*
S3UserDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type S3UserDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 user delete default response
func (o *S3UserDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 user delete default response has a 2xx status code
func (o *S3UserDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 user delete default response has a 3xx status code
func (o *S3UserDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 user delete default response has a 4xx status code
func (o *S3UserDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 user delete default response has a 5xx status code
func (o *S3UserDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 user delete default response a status code equal to that given
func (o *S3UserDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3UserDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3_user_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3UserDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3_user_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3UserDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3UserDeleteDefault) 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/object_store/s3_group_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3GroupModifyReader is a Reader for the S3GroupModify structure.
type S3GroupModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3GroupModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3GroupModifyOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3GroupModifyDefault(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
}
}
// NewS3GroupModifyOK creates a S3GroupModifyOK with default headers values
func NewS3GroupModifyOK() *S3GroupModifyOK {
return &S3GroupModifyOK{}
}
/*
S3GroupModifyOK describes a response with status code 200, with default header values.
OK
*/
type S3GroupModifyOK struct {
}
// IsSuccess returns true when this s3 group modify o k response has a 2xx status code
func (o *S3GroupModifyOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 group modify o k response has a 3xx status code
func (o *S3GroupModifyOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 group modify o k response has a 4xx status code
func (o *S3GroupModifyOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 group modify o k response has a 5xx status code
func (o *S3GroupModifyOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 group modify o k response a status code equal to that given
func (o *S3GroupModifyOK) IsCode(code int) bool {
return code == 200
}
func (o *S3GroupModifyOK) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3GroupModifyOK ", 200)
}
func (o *S3GroupModifyOK) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3GroupModifyOK ", 200)
}
func (o *S3GroupModifyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
return nil
}
// NewS3GroupModifyDefault creates a S3GroupModifyDefault with default headers values
func NewS3GroupModifyDefault(code int) *S3GroupModifyDefault {
return &S3GroupModifyDefault{
_statusCode: code,
}
}
/*
S3GroupModifyDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405896 | Users list cannot be empty.
| 92405930 | Group name is not valid. Group names must have between 1 and 128 characters.
| 92405931 | Group name contains invalid characters. Valid characters for a group name are 0-9, A-Z, a-z, "_", "+", "=", ",", ".", "@", and "-".
| 92405934 | User name specified in the user list do not exist for SVM. Use the "object-store-server user create" command to create a user.
| 92405936 | Query characters such as * are not supported in the user list.
| 92405937 | Policy name specified in the policy list do not exist for SVM.
| 92405966 | User name is present more than once in the users field.
*/
type S3GroupModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 group modify default response
func (o *S3GroupModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 group modify default response has a 2xx status code
func (o *S3GroupModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 group modify default response has a 3xx status code
func (o *S3GroupModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 group modify default response has a 4xx status code
func (o *S3GroupModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 group modify default response has a 5xx status code
func (o *S3GroupModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 group modify default response a status code equal to that given
func (o *S3GroupModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3GroupModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3_group_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupModifyDefault) String() string {
return fmt.Sprintf("[PATCH /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3_group_modify default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3GroupModifyDefault) 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/object_store/buckets_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/buckets_collection_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// BucketsCollectionGetReader is a Reader for the BucketsCollectionGet structure.
type BucketsCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *BucketsCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewBucketsCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewBucketsCollectionGetDefault(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
}
}
// NewBucketsCollectionGetOK creates a BucketsCollectionGetOK with default headers values
func NewBucketsCollectionGetOK() *BucketsCollectionGetOK {
return &BucketsCollectionGetOK{}
}
/*
BucketsCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type BucketsCollectionGetOK struct {
Payload *models.S3BucketSvmResponse
}
// IsSuccess returns true when this buckets collection get o k response has a 2xx status code
func (o *BucketsCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this buckets collection get o k response has a 3xx status code
func (o *BucketsCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this buckets collection get o k response has a 4xx status code
func (o *BucketsCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this buckets collection get o k response has a 5xx status code
func (o *BucketsCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this buckets collection get o k response a status code equal to that given
func (o *BucketsCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *BucketsCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets][%d] bucketsCollectionGetOK %+v", 200, o.Payload)
}
func (o *BucketsCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets][%d] bucketsCollectionGetOK %+v", 200, o.Payload)
}
func (o *BucketsCollectionGetOK) GetPayload() *models.S3BucketSvmResponse {
return o.Payload
}
func (o *BucketsCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3BucketSvmResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewBucketsCollectionGetDefault creates a BucketsCollectionGetDefault with default headers values
func NewBucketsCollectionGetDefault(code int) *BucketsCollectionGetDefault {
return &BucketsCollectionGetDefault{
_statusCode: code,
}
}
/*
BucketsCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type BucketsCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the buckets collection get default response
func (o *BucketsCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this buckets collection get default response has a 2xx status code
func (o *BucketsCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this buckets collection get default response has a 3xx status code
func (o *BucketsCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this buckets collection get default response has a 4xx status code
func (o *BucketsCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this buckets collection get default response has a 5xx status code
func (o *BucketsCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this buckets collection get default response a status code equal to that given
func (o *BucketsCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *BucketsCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets][%d] buckets_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *BucketsCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/buckets][%d] buckets_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *BucketsCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *BucketsCollectionGetDefault) 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/object_store/s3_group_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3GroupGetReader is a Reader for the S3GroupGet structure.
type S3GroupGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3GroupGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3GroupGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3GroupGetDefault(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
}
}
// NewS3GroupGetOK creates a S3GroupGetOK with default headers values
func NewS3GroupGetOK() *S3GroupGetOK {
return &S3GroupGetOK{}
}
/*
S3GroupGetOK describes a response with status code 200, with default header values.
OK
*/
type S3GroupGetOK struct {
Payload *models.S3Group
}
// IsSuccess returns true when this s3 group get o k response has a 2xx status code
func (o *S3GroupGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 group get o k response has a 3xx status code
func (o *S3GroupGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 group get o k response has a 4xx status code
func (o *S3GroupGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 group get o k response has a 5xx status code
func (o *S3GroupGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 group get o k response a status code equal to that given
func (o *S3GroupGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3GroupGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3GroupGetOK %+v", 200, o.Payload)
}
func (o *S3GroupGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3GroupGetOK %+v", 200, o.Payload)
}
func (o *S3GroupGetOK) GetPayload() *models.S3Group {
return o.Payload
}
func (o *S3GroupGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3Group)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3GroupGetDefault creates a S3GroupGetDefault with default headers values
func NewS3GroupGetDefault(code int) *S3GroupGetDefault {
return &S3GroupGetDefault{
_statusCode: code,
}
}
/*
S3GroupGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3GroupGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 group get default response
func (o *S3GroupGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 group get default response has a 2xx status code
func (o *S3GroupGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 group get default response has a 3xx status code
func (o *S3GroupGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 group get default response has a 4xx status code
func (o *S3GroupGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 group get default response has a 5xx status code
func (o *S3GroupGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 group get default response a status code equal to that given
func (o *S3GroupGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3GroupGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3_group_get default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups/{id}][%d] s3_group_get default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3GroupGetDefault) 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/object_store/all_svm_buckets_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/all_svm_buckets_collection_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// AllSvmBucketsCollectionGetReader is a Reader for the AllSvmBucketsCollectionGet structure.
type AllSvmBucketsCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *AllSvmBucketsCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAllSvmBucketsCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewAllSvmBucketsCollectionGetDefault(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
}
}
// NewAllSvmBucketsCollectionGetOK creates a AllSvmBucketsCollectionGetOK with default headers values
func NewAllSvmBucketsCollectionGetOK() *AllSvmBucketsCollectionGetOK {
return &AllSvmBucketsCollectionGetOK{}
}
/*
AllSvmBucketsCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type AllSvmBucketsCollectionGetOK struct {
Payload *models.S3BucketResponse
}
// IsSuccess returns true when this all svm buckets collection get o k response has a 2xx status code
func (o *AllSvmBucketsCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this all svm buckets collection get o k response has a 3xx status code
func (o *AllSvmBucketsCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this all svm buckets collection get o k response has a 4xx status code
func (o *AllSvmBucketsCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this all svm buckets collection get o k response has a 5xx status code
func (o *AllSvmBucketsCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this all svm buckets collection get o k response a status code equal to that given
func (o *AllSvmBucketsCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *AllSvmBucketsCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/buckets][%d] allSvmBucketsCollectionGetOK %+v", 200, o.Payload)
}
func (o *AllSvmBucketsCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/buckets][%d] allSvmBucketsCollectionGetOK %+v", 200, o.Payload)
}
func (o *AllSvmBucketsCollectionGetOK) GetPayload() *models.S3BucketResponse {
return o.Payload
}
func (o *AllSvmBucketsCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3BucketResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewAllSvmBucketsCollectionGetDefault creates a AllSvmBucketsCollectionGetDefault with default headers values
func NewAllSvmBucketsCollectionGetDefault(code int) *AllSvmBucketsCollectionGetDefault {
return &AllSvmBucketsCollectionGetDefault{
_statusCode: code,
}
}
/*
AllSvmBucketsCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type AllSvmBucketsCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the all svm buckets collection get default response
func (o *AllSvmBucketsCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this all svm buckets collection get default response has a 2xx status code
func (o *AllSvmBucketsCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this all svm buckets collection get default response has a 3xx status code
func (o *AllSvmBucketsCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this all svm buckets collection get default response has a 4xx status code
func (o *AllSvmBucketsCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this all svm buckets collection get default response has a 5xx status code
func (o *AllSvmBucketsCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this all svm buckets collection get default response a status code equal to that given
func (o *AllSvmBucketsCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *AllSvmBucketsCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/buckets][%d] all_svm_buckets_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AllSvmBucketsCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/buckets][%d] all_svm_buckets_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *AllSvmBucketsCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *AllSvmBucketsCollectionGetDefault) 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/object_store/s3_user_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_modify_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3UserModifyParams creates a new S3UserModifyParams 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 NewS3UserModifyParams() *S3UserModifyParams {
return &S3UserModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3UserModifyParamsWithTimeout creates a new S3UserModifyParams object
// with the ability to set a timeout on a request.
func NewS3UserModifyParamsWithTimeout(timeout time.Duration) *S3UserModifyParams {
return &S3UserModifyParams{
timeout: timeout,
}
}
// NewS3UserModifyParamsWithContext creates a new S3UserModifyParams object
// with the ability to set a context for a request.
func NewS3UserModifyParamsWithContext(ctx context.Context) *S3UserModifyParams {
return &S3UserModifyParams{
Context: ctx,
}
}
// NewS3UserModifyParamsWithHTTPClient creates a new S3UserModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3UserModifyParamsWithHTTPClient(client *http.Client) *S3UserModifyParams {
return &S3UserModifyParams{
HTTPClient: client,
}
}
/*
S3UserModifyParams contains all the parameters to send to the API endpoint
for the s3 user modify operation.
Typically these are written to a http.Request.
*/
type S3UserModifyParams struct {
/* Info.
Info specification
*/
Info *models.S3User
/* Name.
User name
*/
Name string
/* RegenerateKeys.
Specifies whether or not to regenerate the user keys.
*/
RegenerateKeys *bool
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 user modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserModifyParams) WithDefaults() *S3UserModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 user modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3UserModifyParams) SetDefaults() {
var (
regenerateKeysDefault = bool(false)
)
val := S3UserModifyParams{
RegenerateKeys: ®enerateKeysDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 user modify params
func (o *S3UserModifyParams) WithTimeout(timeout time.Duration) *S3UserModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 user modify params
func (o *S3UserModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 user modify params
func (o *S3UserModifyParams) WithContext(ctx context.Context) *S3UserModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 user modify params
func (o *S3UserModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 user modify params
func (o *S3UserModifyParams) WithHTTPClient(client *http.Client) *S3UserModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 user modify params
func (o *S3UserModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithInfo adds the info to the s3 user modify params
func (o *S3UserModifyParams) WithInfo(info *models.S3User) *S3UserModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the s3 user modify params
func (o *S3UserModifyParams) SetInfo(info *models.S3User) {
o.Info = info
}
// WithName adds the name to the s3 user modify params
func (o *S3UserModifyParams) WithName(name string) *S3UserModifyParams {
o.SetName(name)
return o
}
// SetName adds the name to the s3 user modify params
func (o *S3UserModifyParams) SetName(name string) {
o.Name = name
}
// WithRegenerateKeys adds the regenerateKeys to the s3 user modify params
func (o *S3UserModifyParams) WithRegenerateKeys(regenerateKeys *bool) *S3UserModifyParams {
o.SetRegenerateKeys(regenerateKeys)
return o
}
// SetRegenerateKeys adds the regenerateKeys to the s3 user modify params
func (o *S3UserModifyParams) SetRegenerateKeys(regenerateKeys *bool) {
o.RegenerateKeys = regenerateKeys
}
// WithSvmUUID adds the svmUUID to the s3 user modify params
func (o *S3UserModifyParams) WithSvmUUID(svmUUID string) *S3UserModifyParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 user modify params
func (o *S3UserModifyParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3UserModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
// path param name
if err := r.SetPathParam("name", o.Name); err != nil {
return err
}
if o.RegenerateKeys != nil {
// query param regenerate_keys
var qrRegenerateKeys bool
if o.RegenerateKeys != nil {
qrRegenerateKeys = *o.RegenerateKeys
}
qRegenerateKeys := swag.FormatBool(qrRegenerateKeys)
if qRegenerateKeys != "" {
if err := r.SetQueryParam("regenerate_keys", qRegenerateKeys); 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/object_store/s3_user_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_create_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3UserCreateReader is a Reader for the S3UserCreate structure.
type S3UserCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3UserCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 201:
result := NewS3UserCreateCreated()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3UserCreateDefault(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
}
}
// NewS3UserCreateCreated creates a S3UserCreateCreated with default headers values
func NewS3UserCreateCreated() *S3UserCreateCreated {
return &S3UserCreateCreated{}
}
/*
S3UserCreateCreated describes a response with status code 201, with default header values.
Created
*/
type S3UserCreateCreated struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.S3UserPostPatchResponse
}
// IsSuccess returns true when this s3 user create created response has a 2xx status code
func (o *S3UserCreateCreated) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 user create created response has a 3xx status code
func (o *S3UserCreateCreated) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 user create created response has a 4xx status code
func (o *S3UserCreateCreated) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 user create created response has a 5xx status code
func (o *S3UserCreateCreated) IsServerError() bool {
return false
}
// IsCode returns true when this s3 user create created response a status code equal to that given
func (o *S3UserCreateCreated) IsCode(code int) bool {
return code == 201
}
func (o *S3UserCreateCreated) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/users][%d] s3UserCreateCreated %+v", 201, o.Payload)
}
func (o *S3UserCreateCreated) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/users][%d] s3UserCreateCreated %+v", 201, o.Payload)
}
func (o *S3UserCreateCreated) GetPayload() *models.S3UserPostPatchResponse {
return o.Payload
}
func (o *S3UserCreateCreated) 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.S3UserPostPatchResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3UserCreateDefault creates a S3UserCreateDefault with default headers values
func NewS3UserCreateDefault(code int) *S3UserCreateDefault {
return &S3UserCreateDefault{
_statusCode: code,
}
}
/*
S3UserCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405773 | Object store server is not present for specified SVM. Create a object store server and retry the operation. |
| 92405787 | The specified user name contains invalid characters. Valid characters for a user name are 0-9, A-Z, a-z, \"_\", \"+\", \"=\", \",\", \".\", \"@\", and \"-\". |
| 92405788 | User names must have between 1 and 64 characters. |
| 92405791 | Failed to create access-key and secret-key. |
| 92405817 | S3 users can be created only on data SVM. |
*/
type S3UserCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 user create default response
func (o *S3UserCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 user create default response has a 2xx status code
func (o *S3UserCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 user create default response has a 3xx status code
func (o *S3UserCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 user create default response has a 4xx status code
func (o *S3UserCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 user create default response has a 5xx status code
func (o *S3UserCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 user create default response a status code equal to that given
func (o *S3UserCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3UserCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/users][%d] s3_user_create default %+v", o._statusCode, o.Payload)
}
func (o *S3UserCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/users][%d] s3_user_create default %+v", o._statusCode, o.Payload)
}
func (o *S3UserCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3UserCreateDefault) 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/object_store/s3_group_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3GroupGetParams creates a new S3GroupGetParams 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 NewS3GroupGetParams() *S3GroupGetParams {
return &S3GroupGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3GroupGetParamsWithTimeout creates a new S3GroupGetParams object
// with the ability to set a timeout on a request.
func NewS3GroupGetParamsWithTimeout(timeout time.Duration) *S3GroupGetParams {
return &S3GroupGetParams{
timeout: timeout,
}
}
// NewS3GroupGetParamsWithContext creates a new S3GroupGetParams object
// with the ability to set a context for a request.
func NewS3GroupGetParamsWithContext(ctx context.Context) *S3GroupGetParams {
return &S3GroupGetParams{
Context: ctx,
}
}
// NewS3GroupGetParamsWithHTTPClient creates a new S3GroupGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3GroupGetParamsWithHTTPClient(client *http.Client) *S3GroupGetParams {
return &S3GroupGetParams{
HTTPClient: client,
}
}
/*
S3GroupGetParams contains all the parameters to send to the API endpoint
for the s3 group get operation.
Typically these are written to a http.Request.
*/
type S3GroupGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* ID.
Group identifier that identifies the unique group.
*/
ID string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 group get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupGetParams) WithDefaults() *S3GroupGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 group get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3GroupGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 group get params
func (o *S3GroupGetParams) WithTimeout(timeout time.Duration) *S3GroupGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 group get params
func (o *S3GroupGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 group get params
func (o *S3GroupGetParams) WithContext(ctx context.Context) *S3GroupGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 group get params
func (o *S3GroupGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 group get params
func (o *S3GroupGetParams) WithHTTPClient(client *http.Client) *S3GroupGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 group get params
func (o *S3GroupGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the s3 group get params
func (o *S3GroupGetParams) WithFields(fields []string) *S3GroupGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 group get params
func (o *S3GroupGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithID adds the id to the s3 group get params
func (o *S3GroupGetParams) WithID(id string) *S3GroupGetParams {
o.SetID(id)
return o
}
// SetID adds the id to the s3 group get params
func (o *S3GroupGetParams) SetID(id string) {
o.ID = id
}
// WithSvmUUID adds the svmUUID to the s3 group get params
func (o *S3GroupGetParams) WithSvmUUID(svmUUID string) *S3GroupGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 group get params
func (o *S3GroupGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3GroupGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param id
if err := r.SetPathParam("id", o.ID); err != nil {
return err
}
// 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
}
// bindParamS3GroupGet binds the parameter fields
func (o *S3GroupGetParams) 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/object_store/s3_service_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3ServiceCollectionGetParams creates a new S3ServiceCollectionGetParams 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 NewS3ServiceCollectionGetParams() *S3ServiceCollectionGetParams {
return &S3ServiceCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3ServiceCollectionGetParamsWithTimeout creates a new S3ServiceCollectionGetParams object
// with the ability to set a timeout on a request.
func NewS3ServiceCollectionGetParamsWithTimeout(timeout time.Duration) *S3ServiceCollectionGetParams {
return &S3ServiceCollectionGetParams{
timeout: timeout,
}
}
// NewS3ServiceCollectionGetParamsWithContext creates a new S3ServiceCollectionGetParams object
// with the ability to set a context for a request.
func NewS3ServiceCollectionGetParamsWithContext(ctx context.Context) *S3ServiceCollectionGetParams {
return &S3ServiceCollectionGetParams{
Context: ctx,
}
}
// NewS3ServiceCollectionGetParamsWithHTTPClient creates a new S3ServiceCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3ServiceCollectionGetParamsWithHTTPClient(client *http.Client) *S3ServiceCollectionGetParams {
return &S3ServiceCollectionGetParams{
HTTPClient: client,
}
}
/*
S3ServiceCollectionGetParams contains all the parameters to send to the API endpoint
for the s3 service collection get operation.
Typically these are written to a http.Request.
*/
type S3ServiceCollectionGetParams struct {
/* BucketsAllowed.
Filter by buckets.allowed
*/
BucketsAllowed *bool
/* BucketsAuditEventSelectorAccess.
Filter by buckets.audit_event_selector.access
*/
BucketsAuditEventSelectorAccess *string
/* BucketsAuditEventSelectorPermission.
Filter by buckets.audit_event_selector.permission
*/
BucketsAuditEventSelectorPermission *string
/* BucketsComment.
Filter by buckets.comment
*/
BucketsComment *string
/* BucketsEncryptionEnabled.
Filter by buckets.encryption.enabled
*/
BucketsEncryptionEnabled *bool
/* BucketsLogicalUsedSize.
Filter by buckets.logical_used_size
*/
BucketsLogicalUsedSize *int64
/* BucketsName.
Filter by buckets.name
*/
BucketsName *string
/* BucketsNasPath.
Filter by buckets.nas_path
*/
BucketsNasPath *string
/* BucketsPolicyStatementsActions.
Filter by buckets.policy.statements.actions
*/
BucketsPolicyStatementsActions *string
/* BucketsPolicyStatementsConditionsDelimiters.
Filter by buckets.policy.statements.conditions.delimiters
*/
BucketsPolicyStatementsConditionsDelimiters *string
/* BucketsPolicyStatementsConditionsMaxKeys.
Filter by buckets.policy.statements.conditions.max_keys
*/
BucketsPolicyStatementsConditionsMaxKeys *int64
/* BucketsPolicyStatementsConditionsOperator.
Filter by buckets.policy.statements.conditions.operator
*/
BucketsPolicyStatementsConditionsOperator *string
/* BucketsPolicyStatementsConditionsPrefixes.
Filter by buckets.policy.statements.conditions.prefixes
*/
BucketsPolicyStatementsConditionsPrefixes *string
/* BucketsPolicyStatementsConditionsSourceIps.
Filter by buckets.policy.statements.conditions.source_ips
*/
BucketsPolicyStatementsConditionsSourceIps *string
/* BucketsPolicyStatementsConditionsUsernames.
Filter by buckets.policy.statements.conditions.usernames
*/
BucketsPolicyStatementsConditionsUsernames *string
/* BucketsPolicyStatementsEffect.
Filter by buckets.policy.statements.effect
*/
BucketsPolicyStatementsEffect *string
/* BucketsPolicyStatementsPrincipals.
Filter by buckets.policy.statements.principals
*/
BucketsPolicyStatementsPrincipals *string
/* BucketsPolicyStatementsResources.
Filter by buckets.policy.statements.resources
*/
BucketsPolicyStatementsResources *string
/* BucketsPolicyStatementsSid.
Filter by buckets.policy.statements.sid
*/
BucketsPolicyStatementsSid *string
/* BucketsProtectionStatusDestinationIsCloud.
Filter by buckets.protection_status.destination.is_cloud
*/
BucketsProtectionStatusDestinationIsCloud *bool
/* BucketsProtectionStatusDestinationIsExternalCloud.
Filter by buckets.protection_status.destination.is_external_cloud
*/
BucketsProtectionStatusDestinationIsExternalCloud *bool
/* BucketsProtectionStatusDestinationIsOntap.
Filter by buckets.protection_status.destination.is_ontap
*/
BucketsProtectionStatusDestinationIsOntap *bool
/* BucketsProtectionStatusIsProtected.
Filter by buckets.protection_status.is_protected
*/
BucketsProtectionStatusIsProtected *bool
/* BucketsQosPolicyMaxThroughputIops.
Filter by buckets.qos_policy.max_throughput_iops
*/
BucketsQosPolicyMaxThroughputIops *int64
/* BucketsQosPolicyMaxThroughputMbps.
Filter by buckets.qos_policy.max_throughput_mbps
*/
BucketsQosPolicyMaxThroughputMbps *int64
/* BucketsQosPolicyMinThroughputIops.
Filter by buckets.qos_policy.min_throughput_iops
*/
BucketsQosPolicyMinThroughputIops *int64
/* BucketsQosPolicyMinThroughputMbps.
Filter by buckets.qos_policy.min_throughput_mbps
*/
BucketsQosPolicyMinThroughputMbps *int64
/* BucketsQosPolicyName.
Filter by buckets.qos_policy.name
*/
BucketsQosPolicyName *string
/* BucketsQosPolicyUUID.
Filter by buckets.qos_policy.uuid
*/
BucketsQosPolicyUUID *string
/* BucketsRole.
Filter by buckets.role
*/
BucketsRole *string
/* BucketsSize.
Filter by buckets.size
*/
BucketsSize *int64
/* BucketsSvmName.
Filter by buckets.svm.name
*/
BucketsSvmName *string
/* BucketsSvmUUID.
Filter by buckets.svm.uuid
*/
BucketsSvmUUID *string
/* BucketsType.
Filter by buckets.type
*/
BucketsType *string
/* BucketsUUID.
Filter by buckets.uuid
*/
BucketsUUID *string
/* BucketsVersioningState.
Filter by buckets.versioning_state
*/
BucketsVersioningState *string
/* BucketsVolumeName.
Filter by buckets.volume.name
*/
BucketsVolumeName *string
/* BucketsVolumeUUID.
Filter by buckets.volume.uuid
*/
BucketsVolumeUUID *string
/* CertificateName.
Filter by certificate.name
*/
CertificateName *string
/* CertificateUUID.
Filter by certificate.uuid
*/
CertificateUUID *string
/* Comment.
Filter by comment
*/
Comment *string
/* DefaultUnixUser.
Filter by default_unix_user
*/
DefaultUnixUser *string
/* DefaultWinUser.
Filter by default_win_user
*/
DefaultWinUser *string
/* Enabled.
Filter by enabled
*/
Enabled *bool
/* Fields.
Specify the fields to return.
*/
Fields []string
/* IsHTTPEnabled.
Filter by is_http_enabled
*/
IsHTTPEnabled *bool
/* IsHTTPSEnabled.
Filter by is_https_enabled
*/
IsHTTPSEnabled *bool
/* MaxRecords.
Limit the number of records returned.
*/
MaxRecords *int64
/* MetricDuration.
Filter by metric.duration
*/
MetricDuration *string
/* MetricIopsOther.
Filter by metric.iops.other
*/
MetricIopsOther *int64
/* MetricIopsRead.
Filter by metric.iops.read
*/
MetricIopsRead *int64
/* MetricIopsTotal.
Filter by metric.iops.total
*/
MetricIopsTotal *int64
/* MetricIopsWrite.
Filter by metric.iops.write
*/
MetricIopsWrite *int64
/* MetricLatencyOther.
Filter by metric.latency.other
*/
MetricLatencyOther *int64
/* MetricLatencyRead.
Filter by metric.latency.read
*/
MetricLatencyRead *int64
/* MetricLatencyTotal.
Filter by metric.latency.total
*/
MetricLatencyTotal *int64
/* MetricLatencyWrite.
Filter by metric.latency.write
*/
MetricLatencyWrite *int64
/* MetricStatus.
Filter by metric.status
*/
MetricStatus *string
/* MetricThroughputRead.
Filter by metric.throughput.read
*/
MetricThroughputRead *int64
/* MetricThroughputTotal.
Filter by metric.throughput.total
*/
MetricThroughputTotal *int64
/* MetricThroughputWrite.
Filter by metric.throughput.write
*/
MetricThroughputWrite *int64
/* MetricTimestamp.
Filter by metric.timestamp
*/
MetricTimestamp *string
/* Name.
Filter by name
*/
Name *string
/* OrderBy.
Order results by specified fields and optional [asc|desc] direction. Default direction is 'asc' for ascending.
*/
OrderBy []string
/* Port.
Filter by port
*/
Port *int64
/* ReturnRecords.
The default is true for GET calls. When set to false, only the number of records is returned.
Default: true
*/
ReturnRecords *bool
/* ReturnTimeout.
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
Default: 15
*/
ReturnTimeout *int64
/* SecurePort.
Filter by secure_port
*/
SecurePort *int64
/* StatisticsIopsRawOther.
Filter by statistics.iops_raw.other
*/
StatisticsIopsRawOther *int64
/* StatisticsIopsRawRead.
Filter by statistics.iops_raw.read
*/
StatisticsIopsRawRead *int64
/* StatisticsIopsRawTotal.
Filter by statistics.iops_raw.total
*/
StatisticsIopsRawTotal *int64
/* StatisticsIopsRawWrite.
Filter by statistics.iops_raw.write
*/
StatisticsIopsRawWrite *int64
/* StatisticsLatencyRawOther.
Filter by statistics.latency_raw.other
*/
StatisticsLatencyRawOther *int64
/* StatisticsLatencyRawRead.
Filter by statistics.latency_raw.read
*/
StatisticsLatencyRawRead *int64
/* StatisticsLatencyRawTotal.
Filter by statistics.latency_raw.total
*/
StatisticsLatencyRawTotal *int64
/* StatisticsLatencyRawWrite.
Filter by statistics.latency_raw.write
*/
StatisticsLatencyRawWrite *int64
/* StatisticsStatus.
Filter by statistics.status
*/
StatisticsStatus *string
/* StatisticsThroughputRawRead.
Filter by statistics.throughput_raw.read
*/
StatisticsThroughputRawRead *int64
/* StatisticsThroughputRawTotal.
Filter by statistics.throughput_raw.total
*/
StatisticsThroughputRawTotal *int64
/* StatisticsThroughputRawWrite.
Filter by statistics.throughput_raw.write
*/
StatisticsThroughputRawWrite *int64
/* StatisticsTimestamp.
Filter by statistics.timestamp
*/
StatisticsTimestamp *string
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* UsersAccessKey.
Filter by users.access_key
*/
UsersAccessKey *string
/* UsersComment.
Filter by users.comment
*/
UsersComment *string
/* UsersName.
Filter by users.name
*/
UsersName *string
/* UsersSvmName.
Filter by users.svm.name
*/
UsersSvmName *string
/* UsersSvmUUID.
Filter by users.svm.uuid
*/
UsersSvmUUID *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 service collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceCollectionGetParams) WithDefaults() *S3ServiceCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 service collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := S3ServiceCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithTimeout(timeout time.Duration) *S3ServiceCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithContext(ctx context.Context) *S3ServiceCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithHTTPClient(client *http.Client) *S3ServiceCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithBucketsAllowed adds the bucketsAllowed to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsAllowed(bucketsAllowed *bool) *S3ServiceCollectionGetParams {
o.SetBucketsAllowed(bucketsAllowed)
return o
}
// SetBucketsAllowed adds the bucketsAllowed to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsAllowed(bucketsAllowed *bool) {
o.BucketsAllowed = bucketsAllowed
}
// WithBucketsAuditEventSelectorAccess adds the bucketsAuditEventSelectorAccess to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsAuditEventSelectorAccess(bucketsAuditEventSelectorAccess *string) *S3ServiceCollectionGetParams {
o.SetBucketsAuditEventSelectorAccess(bucketsAuditEventSelectorAccess)
return o
}
// SetBucketsAuditEventSelectorAccess adds the bucketsAuditEventSelectorAccess to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsAuditEventSelectorAccess(bucketsAuditEventSelectorAccess *string) {
o.BucketsAuditEventSelectorAccess = bucketsAuditEventSelectorAccess
}
// WithBucketsAuditEventSelectorPermission adds the bucketsAuditEventSelectorPermission to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsAuditEventSelectorPermission(bucketsAuditEventSelectorPermission *string) *S3ServiceCollectionGetParams {
o.SetBucketsAuditEventSelectorPermission(bucketsAuditEventSelectorPermission)
return o
}
// SetBucketsAuditEventSelectorPermission adds the bucketsAuditEventSelectorPermission to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsAuditEventSelectorPermission(bucketsAuditEventSelectorPermission *string) {
o.BucketsAuditEventSelectorPermission = bucketsAuditEventSelectorPermission
}
// WithBucketsComment adds the bucketsComment to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsComment(bucketsComment *string) *S3ServiceCollectionGetParams {
o.SetBucketsComment(bucketsComment)
return o
}
// SetBucketsComment adds the bucketsComment to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsComment(bucketsComment *string) {
o.BucketsComment = bucketsComment
}
// WithBucketsEncryptionEnabled adds the bucketsEncryptionEnabled to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsEncryptionEnabled(bucketsEncryptionEnabled *bool) *S3ServiceCollectionGetParams {
o.SetBucketsEncryptionEnabled(bucketsEncryptionEnabled)
return o
}
// SetBucketsEncryptionEnabled adds the bucketsEncryptionEnabled to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsEncryptionEnabled(bucketsEncryptionEnabled *bool) {
o.BucketsEncryptionEnabled = bucketsEncryptionEnabled
}
// WithBucketsLogicalUsedSize adds the bucketsLogicalUsedSize to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsLogicalUsedSize(bucketsLogicalUsedSize *int64) *S3ServiceCollectionGetParams {
o.SetBucketsLogicalUsedSize(bucketsLogicalUsedSize)
return o
}
// SetBucketsLogicalUsedSize adds the bucketsLogicalUsedSize to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsLogicalUsedSize(bucketsLogicalUsedSize *int64) {
o.BucketsLogicalUsedSize = bucketsLogicalUsedSize
}
// WithBucketsName adds the bucketsName to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsName(bucketsName *string) *S3ServiceCollectionGetParams {
o.SetBucketsName(bucketsName)
return o
}
// SetBucketsName adds the bucketsName to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsName(bucketsName *string) {
o.BucketsName = bucketsName
}
// WithBucketsNasPath adds the bucketsNasPath to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsNasPath(bucketsNasPath *string) *S3ServiceCollectionGetParams {
o.SetBucketsNasPath(bucketsNasPath)
return o
}
// SetBucketsNasPath adds the bucketsNasPath to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsNasPath(bucketsNasPath *string) {
o.BucketsNasPath = bucketsNasPath
}
// WithBucketsPolicyStatementsActions adds the bucketsPolicyStatementsActions to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsActions(bucketsPolicyStatementsActions *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsActions(bucketsPolicyStatementsActions)
return o
}
// SetBucketsPolicyStatementsActions adds the bucketsPolicyStatementsActions to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsActions(bucketsPolicyStatementsActions *string) {
o.BucketsPolicyStatementsActions = bucketsPolicyStatementsActions
}
// WithBucketsPolicyStatementsConditionsDelimiters adds the bucketsPolicyStatementsConditionsDelimiters to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsConditionsDelimiters(bucketsPolicyStatementsConditionsDelimiters *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsConditionsDelimiters(bucketsPolicyStatementsConditionsDelimiters)
return o
}
// SetBucketsPolicyStatementsConditionsDelimiters adds the bucketsPolicyStatementsConditionsDelimiters to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsConditionsDelimiters(bucketsPolicyStatementsConditionsDelimiters *string) {
o.BucketsPolicyStatementsConditionsDelimiters = bucketsPolicyStatementsConditionsDelimiters
}
// WithBucketsPolicyStatementsConditionsMaxKeys adds the bucketsPolicyStatementsConditionsMaxKeys to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsConditionsMaxKeys(bucketsPolicyStatementsConditionsMaxKeys *int64) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsConditionsMaxKeys(bucketsPolicyStatementsConditionsMaxKeys)
return o
}
// SetBucketsPolicyStatementsConditionsMaxKeys adds the bucketsPolicyStatementsConditionsMaxKeys to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsConditionsMaxKeys(bucketsPolicyStatementsConditionsMaxKeys *int64) {
o.BucketsPolicyStatementsConditionsMaxKeys = bucketsPolicyStatementsConditionsMaxKeys
}
// WithBucketsPolicyStatementsConditionsOperator adds the bucketsPolicyStatementsConditionsOperator to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsConditionsOperator(bucketsPolicyStatementsConditionsOperator *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsConditionsOperator(bucketsPolicyStatementsConditionsOperator)
return o
}
// SetBucketsPolicyStatementsConditionsOperator adds the bucketsPolicyStatementsConditionsOperator to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsConditionsOperator(bucketsPolicyStatementsConditionsOperator *string) {
o.BucketsPolicyStatementsConditionsOperator = bucketsPolicyStatementsConditionsOperator
}
// WithBucketsPolicyStatementsConditionsPrefixes adds the bucketsPolicyStatementsConditionsPrefixes to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsConditionsPrefixes(bucketsPolicyStatementsConditionsPrefixes *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsConditionsPrefixes(bucketsPolicyStatementsConditionsPrefixes)
return o
}
// SetBucketsPolicyStatementsConditionsPrefixes adds the bucketsPolicyStatementsConditionsPrefixes to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsConditionsPrefixes(bucketsPolicyStatementsConditionsPrefixes *string) {
o.BucketsPolicyStatementsConditionsPrefixes = bucketsPolicyStatementsConditionsPrefixes
}
// WithBucketsPolicyStatementsConditionsSourceIps adds the bucketsPolicyStatementsConditionsSourceIps to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsConditionsSourceIps(bucketsPolicyStatementsConditionsSourceIps *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsConditionsSourceIps(bucketsPolicyStatementsConditionsSourceIps)
return o
}
// SetBucketsPolicyStatementsConditionsSourceIps adds the bucketsPolicyStatementsConditionsSourceIps to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsConditionsSourceIps(bucketsPolicyStatementsConditionsSourceIps *string) {
o.BucketsPolicyStatementsConditionsSourceIps = bucketsPolicyStatementsConditionsSourceIps
}
// WithBucketsPolicyStatementsConditionsUsernames adds the bucketsPolicyStatementsConditionsUsernames to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsConditionsUsernames(bucketsPolicyStatementsConditionsUsernames *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsConditionsUsernames(bucketsPolicyStatementsConditionsUsernames)
return o
}
// SetBucketsPolicyStatementsConditionsUsernames adds the bucketsPolicyStatementsConditionsUsernames to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsConditionsUsernames(bucketsPolicyStatementsConditionsUsernames *string) {
o.BucketsPolicyStatementsConditionsUsernames = bucketsPolicyStatementsConditionsUsernames
}
// WithBucketsPolicyStatementsEffect adds the bucketsPolicyStatementsEffect to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsEffect(bucketsPolicyStatementsEffect *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsEffect(bucketsPolicyStatementsEffect)
return o
}
// SetBucketsPolicyStatementsEffect adds the bucketsPolicyStatementsEffect to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsEffect(bucketsPolicyStatementsEffect *string) {
o.BucketsPolicyStatementsEffect = bucketsPolicyStatementsEffect
}
// WithBucketsPolicyStatementsPrincipals adds the bucketsPolicyStatementsPrincipals to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsPrincipals(bucketsPolicyStatementsPrincipals *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsPrincipals(bucketsPolicyStatementsPrincipals)
return o
}
// SetBucketsPolicyStatementsPrincipals adds the bucketsPolicyStatementsPrincipals to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsPrincipals(bucketsPolicyStatementsPrincipals *string) {
o.BucketsPolicyStatementsPrincipals = bucketsPolicyStatementsPrincipals
}
// WithBucketsPolicyStatementsResources adds the bucketsPolicyStatementsResources to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsResources(bucketsPolicyStatementsResources *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsResources(bucketsPolicyStatementsResources)
return o
}
// SetBucketsPolicyStatementsResources adds the bucketsPolicyStatementsResources to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsResources(bucketsPolicyStatementsResources *string) {
o.BucketsPolicyStatementsResources = bucketsPolicyStatementsResources
}
// WithBucketsPolicyStatementsSid adds the bucketsPolicyStatementsSid to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsPolicyStatementsSid(bucketsPolicyStatementsSid *string) *S3ServiceCollectionGetParams {
o.SetBucketsPolicyStatementsSid(bucketsPolicyStatementsSid)
return o
}
// SetBucketsPolicyStatementsSid adds the bucketsPolicyStatementsSid to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsPolicyStatementsSid(bucketsPolicyStatementsSid *string) {
o.BucketsPolicyStatementsSid = bucketsPolicyStatementsSid
}
// WithBucketsProtectionStatusDestinationIsCloud adds the bucketsProtectionStatusDestinationIsCloud to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsProtectionStatusDestinationIsCloud(bucketsProtectionStatusDestinationIsCloud *bool) *S3ServiceCollectionGetParams {
o.SetBucketsProtectionStatusDestinationIsCloud(bucketsProtectionStatusDestinationIsCloud)
return o
}
// SetBucketsProtectionStatusDestinationIsCloud adds the bucketsProtectionStatusDestinationIsCloud to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsProtectionStatusDestinationIsCloud(bucketsProtectionStatusDestinationIsCloud *bool) {
o.BucketsProtectionStatusDestinationIsCloud = bucketsProtectionStatusDestinationIsCloud
}
// WithBucketsProtectionStatusDestinationIsExternalCloud adds the bucketsProtectionStatusDestinationIsExternalCloud to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsProtectionStatusDestinationIsExternalCloud(bucketsProtectionStatusDestinationIsExternalCloud *bool) *S3ServiceCollectionGetParams {
o.SetBucketsProtectionStatusDestinationIsExternalCloud(bucketsProtectionStatusDestinationIsExternalCloud)
return o
}
// SetBucketsProtectionStatusDestinationIsExternalCloud adds the bucketsProtectionStatusDestinationIsExternalCloud to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsProtectionStatusDestinationIsExternalCloud(bucketsProtectionStatusDestinationIsExternalCloud *bool) {
o.BucketsProtectionStatusDestinationIsExternalCloud = bucketsProtectionStatusDestinationIsExternalCloud
}
// WithBucketsProtectionStatusDestinationIsOntap adds the bucketsProtectionStatusDestinationIsOntap to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsProtectionStatusDestinationIsOntap(bucketsProtectionStatusDestinationIsOntap *bool) *S3ServiceCollectionGetParams {
o.SetBucketsProtectionStatusDestinationIsOntap(bucketsProtectionStatusDestinationIsOntap)
return o
}
// SetBucketsProtectionStatusDestinationIsOntap adds the bucketsProtectionStatusDestinationIsOntap to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsProtectionStatusDestinationIsOntap(bucketsProtectionStatusDestinationIsOntap *bool) {
o.BucketsProtectionStatusDestinationIsOntap = bucketsProtectionStatusDestinationIsOntap
}
// WithBucketsProtectionStatusIsProtected adds the bucketsProtectionStatusIsProtected to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsProtectionStatusIsProtected(bucketsProtectionStatusIsProtected *bool) *S3ServiceCollectionGetParams {
o.SetBucketsProtectionStatusIsProtected(bucketsProtectionStatusIsProtected)
return o
}
// SetBucketsProtectionStatusIsProtected adds the bucketsProtectionStatusIsProtected to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsProtectionStatusIsProtected(bucketsProtectionStatusIsProtected *bool) {
o.BucketsProtectionStatusIsProtected = bucketsProtectionStatusIsProtected
}
// WithBucketsQosPolicyMaxThroughputIops adds the bucketsQosPolicyMaxThroughputIops to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsQosPolicyMaxThroughputIops(bucketsQosPolicyMaxThroughputIops *int64) *S3ServiceCollectionGetParams {
o.SetBucketsQosPolicyMaxThroughputIops(bucketsQosPolicyMaxThroughputIops)
return o
}
// SetBucketsQosPolicyMaxThroughputIops adds the bucketsQosPolicyMaxThroughputIops to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsQosPolicyMaxThroughputIops(bucketsQosPolicyMaxThroughputIops *int64) {
o.BucketsQosPolicyMaxThroughputIops = bucketsQosPolicyMaxThroughputIops
}
// WithBucketsQosPolicyMaxThroughputMbps adds the bucketsQosPolicyMaxThroughputMbps to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsQosPolicyMaxThroughputMbps(bucketsQosPolicyMaxThroughputMbps *int64) *S3ServiceCollectionGetParams {
o.SetBucketsQosPolicyMaxThroughputMbps(bucketsQosPolicyMaxThroughputMbps)
return o
}
// SetBucketsQosPolicyMaxThroughputMbps adds the bucketsQosPolicyMaxThroughputMbps to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsQosPolicyMaxThroughputMbps(bucketsQosPolicyMaxThroughputMbps *int64) {
o.BucketsQosPolicyMaxThroughputMbps = bucketsQosPolicyMaxThroughputMbps
}
// WithBucketsQosPolicyMinThroughputIops adds the bucketsQosPolicyMinThroughputIops to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsQosPolicyMinThroughputIops(bucketsQosPolicyMinThroughputIops *int64) *S3ServiceCollectionGetParams {
o.SetBucketsQosPolicyMinThroughputIops(bucketsQosPolicyMinThroughputIops)
return o
}
// SetBucketsQosPolicyMinThroughputIops adds the bucketsQosPolicyMinThroughputIops to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsQosPolicyMinThroughputIops(bucketsQosPolicyMinThroughputIops *int64) {
o.BucketsQosPolicyMinThroughputIops = bucketsQosPolicyMinThroughputIops
}
// WithBucketsQosPolicyMinThroughputMbps adds the bucketsQosPolicyMinThroughputMbps to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsQosPolicyMinThroughputMbps(bucketsQosPolicyMinThroughputMbps *int64) *S3ServiceCollectionGetParams {
o.SetBucketsQosPolicyMinThroughputMbps(bucketsQosPolicyMinThroughputMbps)
return o
}
// SetBucketsQosPolicyMinThroughputMbps adds the bucketsQosPolicyMinThroughputMbps to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsQosPolicyMinThroughputMbps(bucketsQosPolicyMinThroughputMbps *int64) {
o.BucketsQosPolicyMinThroughputMbps = bucketsQosPolicyMinThroughputMbps
}
// WithBucketsQosPolicyName adds the bucketsQosPolicyName to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsQosPolicyName(bucketsQosPolicyName *string) *S3ServiceCollectionGetParams {
o.SetBucketsQosPolicyName(bucketsQosPolicyName)
return o
}
// SetBucketsQosPolicyName adds the bucketsQosPolicyName to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsQosPolicyName(bucketsQosPolicyName *string) {
o.BucketsQosPolicyName = bucketsQosPolicyName
}
// WithBucketsQosPolicyUUID adds the bucketsQosPolicyUUID to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsQosPolicyUUID(bucketsQosPolicyUUID *string) *S3ServiceCollectionGetParams {
o.SetBucketsQosPolicyUUID(bucketsQosPolicyUUID)
return o
}
// SetBucketsQosPolicyUUID adds the bucketsQosPolicyUuid to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) SetBucketsQosPolicyUUID(bucketsQosPolicyUUID *string) {
o.BucketsQosPolicyUUID = bucketsQosPolicyUUID
}
// WithBucketsRole adds the bucketsRole to the s3 service collection get params
func (o *S3ServiceCollectionGetParams) WithBucketsRole(bucketsRole *string) *S3ServiceCollectionGetParams {
o.SetBucketsRole(bucketsRole)
return o
}
| 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/object_store/s3_service_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// NewS3ServiceGetParams creates a new S3ServiceGetParams 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 NewS3ServiceGetParams() *S3ServiceGetParams {
return &S3ServiceGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewS3ServiceGetParamsWithTimeout creates a new S3ServiceGetParams object
// with the ability to set a timeout on a request.
func NewS3ServiceGetParamsWithTimeout(timeout time.Duration) *S3ServiceGetParams {
return &S3ServiceGetParams{
timeout: timeout,
}
}
// NewS3ServiceGetParamsWithContext creates a new S3ServiceGetParams object
// with the ability to set a context for a request.
func NewS3ServiceGetParamsWithContext(ctx context.Context) *S3ServiceGetParams {
return &S3ServiceGetParams{
Context: ctx,
}
}
// NewS3ServiceGetParamsWithHTTPClient creates a new S3ServiceGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewS3ServiceGetParamsWithHTTPClient(client *http.Client) *S3ServiceGetParams {
return &S3ServiceGetParams{
HTTPClient: client,
}
}
/*
S3ServiceGetParams contains all the parameters to send to the API endpoint
for the s3 service get operation.
Typically these are written to a http.Request.
*/
type S3ServiceGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* SvmUUID.
UUID of the SVM to which this object belongs.
*/
SvmUUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the s3 service get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceGetParams) WithDefaults() *S3ServiceGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the s3 service get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *S3ServiceGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the s3 service get params
func (o *S3ServiceGetParams) WithTimeout(timeout time.Duration) *S3ServiceGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the s3 service get params
func (o *S3ServiceGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the s3 service get params
func (o *S3ServiceGetParams) WithContext(ctx context.Context) *S3ServiceGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the s3 service get params
func (o *S3ServiceGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the s3 service get params
func (o *S3ServiceGetParams) WithHTTPClient(client *http.Client) *S3ServiceGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the s3 service get params
func (o *S3ServiceGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the s3 service get params
func (o *S3ServiceGetParams) WithFields(fields []string) *S3ServiceGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the s3 service get params
func (o *S3ServiceGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithSvmUUID adds the svmUUID to the s3 service get params
func (o *S3ServiceGetParams) WithSvmUUID(svmUUID string) *S3ServiceGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the s3 service get params
func (o *S3ServiceGetParams) SetSvmUUID(svmUUID string) {
o.SvmUUID = svmUUID
}
// WriteToRequest writes these params to a swagger request
func (o *S3ServiceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Fields != nil {
// binding items for fields
joinedFields := o.bindParamFields(reg)
// query array param fields
if err := r.SetQueryParam("fields", joinedFields...); err != nil {
return err
}
}
// path param svm.uuid
if err := r.SetPathParam("svm.uuid", o.SvmUUID); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// bindParamS3ServiceGet binds the parameter fields
func (o *S3ServiceGetParams) 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/object_store/s3_bucket_svm_create_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_create_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketSvmCreateReader is a Reader for the S3BucketSvmCreate structure.
type S3BucketSvmCreateReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketSvmCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewS3BucketSvmCreateAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketSvmCreateDefault(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
}
}
// NewS3BucketSvmCreateAccepted creates a S3BucketSvmCreateAccepted with default headers values
func NewS3BucketSvmCreateAccepted() *S3BucketSvmCreateAccepted {
return &S3BucketSvmCreateAccepted{}
}
/*
S3BucketSvmCreateAccepted describes a response with status code 202, with default header values.
Accepted
*/
type S3BucketSvmCreateAccepted struct {
/* Useful for tracking the resource location
*/
Location string
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this s3 bucket svm create accepted response has a 2xx status code
func (o *S3BucketSvmCreateAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket svm create accepted response has a 3xx status code
func (o *S3BucketSvmCreateAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket svm create accepted response has a 4xx status code
func (o *S3BucketSvmCreateAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket svm create accepted response has a 5xx status code
func (o *S3BucketSvmCreateAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket svm create accepted response a status code equal to that given
func (o *S3BucketSvmCreateAccepted) IsCode(code int) bool {
return code == 202
}
func (o *S3BucketSvmCreateAccepted) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/buckets][%d] s3BucketSvmCreateAccepted %+v", 202, o.Payload)
}
func (o *S3BucketSvmCreateAccepted) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/buckets][%d] s3BucketSvmCreateAccepted %+v", 202, o.Payload)
}
func (o *S3BucketSvmCreateAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *S3BucketSvmCreateAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
// hydrates response header Location
hdrLocation := response.GetHeader("Location")
if hdrLocation != "" {
o.Location = hdrLocation
}
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketSvmCreateDefault creates a S3BucketSvmCreateDefault with default headers values
func NewS3BucketSvmCreateDefault(code int) *S3BucketSvmCreateDefault {
return &S3BucketSvmCreateDefault{
_statusCode: code,
}
}
/*
S3BucketSvmCreateDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error code | Message |
| ---------- | ------- |
| 92405777 | "Failed to create bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Reason: {Reason of failure}. ";
| 92405785 | "Bucket name \\\"{bucket name}\\\" contains invalid characters. Valid characters for a bucket name are 0-9, a-z, \\\".\\\", and \\\"-\\\". ";
| 92405786 | "Bucket name \\\"{bucket name}\\\" is not valid. Bucket names must have between 3 and 63 characters. ";
| 92405811 | "Failed to create bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Wait a few minutes and try the operation again.";
| 92405812 | "Failed to create the object store volume. Reason: {Reason for failure}.";
| 92405819 | "Cannot provision an object store server volume for bucket \\\"{bucket name}\\\" in SVM \\\"{svm.name}\\\" on the following aggregates because they are SnapLock aggregates: {List of aggregates.name}.";
| 92405820 | "Failed to check whether the aggregate \\\"{aggregates.name}\\\" is a FabricPool. Reason: {Reason for failure}.";
| 92405821 | "Cannot provision an object store server volume for bucket \\\"{bucket name}\\\" in SVM \\\"{svm.name}\\\" on the following aggregates because they are FabricPool: {List of aggregates.name}.";
| 92405827 | "Internal Error. Unable to generate object store volume name.";
| 92405857 | "One or more aggregates must be specified if \\\"constituents_per_aggregate\\\" is specified.";
| 92405858 | "Failed to \\\"create\\\" the \\\"bucket\\\" because the operation is only supported on data SVMs.";
| 92405859 | "The specified \\\"aggregates.uuid\\\" \\\"{aggregates.uuid}\\\" does not exist.";
| 92405860 | "The specified \\\"aggregates.name\\\" \\\"{aggregates.name}\\\" and \\\"aggregates.uuid\\\" \\\"{aggregates.uuid}\\\" refer to different aggregates.";
| 92405861 | "The specified SVM UUID or bucket UUID does not exist.";
| 92405863 | "An error occurs when creating an access policy. The reason for failure is detailed in the error message.";
| 92405891 | "The resources specified in the access policy are not valid. Valid ways to specify a resource are \\\"*\\\", \\\"<bucket-name>\\\", \\\"<bucket-name>/.../...\\\". Valid characters for a resource are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\",\\\", \\\";\\\", \\\":\\\", \\\";\\\", \\\"=\\\", \\\".\\\", \\\"&\\\", \\\"@\\\", \\\"?\\\", \\\"(\\\", \\\")\\\", \\\"'\\\", \\\"*\\\", \\\"!\\\", \\\"-\\\" and \\\"\\$\\\".";
| 92405894 | "Statements, principals and resources list can have a maximum of 10 entries.";
| 92405897 | "The principals specified in the access policy are not in the correct format. User name must be in between 1 and 64 characters. Valid characters for a user name are 0-9, A-Z, a-z, \\\"_\\\", \\\"+\\\", \\\"=\\\", \\\",\\\", \\\".\\\", \\\"@\\\", and \\\"-\\\". ";
| 92405898 | "The SID specified in the access policy is not valid. Valid characters for a SID are 0-9, A-Z and a-z.";
*/
type S3BucketSvmCreateDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket svm create default response
func (o *S3BucketSvmCreateDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket svm create default response has a 2xx status code
func (o *S3BucketSvmCreateDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket svm create default response has a 3xx status code
func (o *S3BucketSvmCreateDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket svm create default response has a 4xx status code
func (o *S3BucketSvmCreateDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket svm create default response has a 5xx status code
func (o *S3BucketSvmCreateDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket svm create default response a status code equal to that given
func (o *S3BucketSvmCreateDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketSvmCreateDefault) Error() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/buckets][%d] s3_bucket_svm_create default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmCreateDefault) String() string {
return fmt.Sprintf("[POST /protocols/s3/services/{svm.uuid}/buckets][%d] s3_bucket_svm_create default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmCreateDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketSvmCreateDefault) 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/object_store/object_store_client.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/object_store_client.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
)
// New creates a new object store API client.
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
/*
Client for object store 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 {
AllSvmBucketsCollectionGet(params *AllSvmBucketsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AllSvmBucketsCollectionGetOK, error)
BucketsCollectionGet(params *BucketsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BucketsCollectionGetOK, error)
PerformanceS3MetricCollectionGet(params *PerformanceS3MetricCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PerformanceS3MetricCollectionGetOK, error)
S3BucketCreate(params *S3BucketCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketCreateAccepted, error)
S3BucketDelete(params *S3BucketDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketDeleteAccepted, error)
S3BucketGet(params *S3BucketGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketGetOK, error)
S3BucketModify(params *S3BucketModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketModifyAccepted, error)
S3BucketSvmCreate(params *S3BucketSvmCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmCreateAccepted, error)
S3BucketSvmDelete(params *S3BucketSvmDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmDeleteAccepted, error)
S3BucketSvmGet(params *S3BucketSvmGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmGetOK, error)
S3BucketSvmModify(params *S3BucketSvmModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmModifyAccepted, error)
S3GroupCollectionGet(params *S3GroupCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3GroupCollectionGetOK, error)
S3GroupCreate(params *S3GroupCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3GroupCreateCreated, error)
S3GroupDelete(params *S3GroupDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3GroupDeleteOK, error)
S3GroupGet(params *S3GroupGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3GroupGetOK, error)
S3GroupModify(params *S3GroupModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3GroupModifyOK, error)
S3PolicyCollectionGet(params *S3PolicyCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3PolicyCollectionGetOK, error)
S3PolicyCreate(params *S3PolicyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3PolicyCreateCreated, error)
S3PolicyDelete(params *S3PolicyDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3PolicyDeleteOK, error)
S3PolicyGet(params *S3PolicyGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3PolicyGetOK, error)
S3PolicyModify(params *S3PolicyModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3PolicyModifyOK, error)
S3ServiceCollectionGet(params *S3ServiceCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3ServiceCollectionGetOK, error)
S3ServiceCreate(params *S3ServiceCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3ServiceCreateCreated, error)
S3ServiceDelete(params *S3ServiceDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3ServiceDeleteOK, error)
S3ServiceGet(params *S3ServiceGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3ServiceGetOK, error)
S3ServiceModify(params *S3ServiceModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3ServiceModifyOK, error)
S3UserCollectionGet(params *S3UserCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3UserCollectionGetOK, error)
S3UserCreate(params *S3UserCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3UserCreateCreated, error)
S3UserDelete(params *S3UserDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3UserDeleteOK, error)
S3UserGet(params *S3UserGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3UserGetOK, error)
S3UserModify(params *S3UserModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3UserModifyOK, error)
SetTransport(transport runtime.ClientTransport)
}
/*
AllSvmBucketsCollectionGet Retrieves all S3 buckets for all SVMs. Note that in order to retrieve S3 bucket policy conditions, the 'fields' option should be set to '**'.
### Related ONTAP commands
* `vserver object-store-server bucket show`
* `vserver object-store-server bucket policy statement show`
* `vserver object-store-server bucket policy-statement-condition show`
### Learn more
* [`DOC /protocols/s3/buckets`](#docs-object-store-protocols_s3_buckets)
*/
func (a *Client) AllSvmBucketsCollectionGet(params *AllSvmBucketsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AllSvmBucketsCollectionGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAllSvmBucketsCollectionGetParams()
}
op := &runtime.ClientOperation{
ID: "all_svm_buckets_collection_get",
Method: "GET",
PathPattern: "/protocols/s3/buckets",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AllSvmBucketsCollectionGetReader{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.(*AllSvmBucketsCollectionGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*AllSvmBucketsCollectionGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
BucketsCollectionGet Retrieves the S3 bucket's configuration of an SVM. Note that in order to retrieve S3 bucket policy conditions, the 'fields' option should be set to '**'.
### Related ONTAP commands
* `vserver object-store-server bucket show`
* `vserver object-store-server bucket policy statement show`
* `vserver object-store-server bucket policy-statement-condition show`
### Learn more
* [`DOC /protocols/s3/services/{svm.uuid}/buckets`](#docs-object-store-protocols_s3_services_{svm.uuid}_buckets)
*/
func (a *Client) BucketsCollectionGet(params *BucketsCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BucketsCollectionGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewBucketsCollectionGetParams()
}
op := &runtime.ClientOperation{
ID: "buckets_collection_get",
Method: "GET",
PathPattern: "/protocols/s3/services/{svm.uuid}/buckets",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &BucketsCollectionGetReader{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.(*BucketsCollectionGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*BucketsCollectionGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
PerformanceS3MetricCollectionGet Retrieves historical performance metrics for the S3 protocol of an SVM.
*/
func (a *Client) PerformanceS3MetricCollectionGet(params *PerformanceS3MetricCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PerformanceS3MetricCollectionGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewPerformanceS3MetricCollectionGetParams()
}
op := &runtime.ClientOperation{
ID: "performance_s3_metric_collection_get",
Method: "GET",
PathPattern: "/protocols/s3/services/{svm.uuid}/metrics",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &PerformanceS3MetricCollectionGetReader{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.(*PerformanceS3MetricCollectionGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*PerformanceS3MetricCollectionGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketCreate Creates the S3 bucket configuration of an SVM.
### Important notes
- Each SVM can have one or more bucket configurations.
- Aggregate lists should be specified explicitly. If not specified, then the bucket is auto-provisioned as a FlexGroup volume.
- Constituents per aggregate specifies the number of components (or FlexVol volumes) per aggregate. Is specified only when an aggregate list is explicitly defined.
- An access policy can be created along with a bucket create. If creating an access policy fails, bucket configurations are saved and the access policy can be created using the PATCH endpoint.
- "qos_policy" can be specified if a bucket needs to be attached to a QoS group policy during creation time.
- "audit_event_selector" can be specified if a bucket needs to be specify access and permission type for auditing.
### Required properties
* `svm.uuid or svm.name` - Existing SVM in which to create the bucket configuration.
* `name` - Bucket name that is to be created.
### Recommended optional properties
* `aggregates` - List of aggregates for the FlexGroup volume on which the bucket is hosted on.
* `constituents_per_aggregate` - Number of constituents per aggregate.
* `size` - Specifying the bucket size is recommended.
* `policy` - Specifying a policy enables users to perform operations on buckets; specifying the resource permissions is recommended.
* `qos_policy` - A QoS policy for buckets.
* `audit_event_selector` - Audit policy for buckets.
* `versioning_state` - Versioning state for buckets.
* `type` - Type of bucket.
* `nas_path` - NAS path to which the bucket corresponds to.
### Default property values
* `size` - 800MB
* `comment` - ""
* `aggregates` - No default value.
* `constituents_per_aggregate` - _4_ , if an aggregates list is specified. Otherwise, no default value.
* `policy.statements.actions` - GetObject, PutObject, DeleteObject, ListBucket, ListBucketMultipartUploads, ListMultipartUploadParts, GetObjectTagging, PutObjectTagging, DeleteObjectTagging, GetBucketVersioning, PutBucketVersioning.
* `policy.statements.principals` - all S3 users and groups in the SVM.
* `policy.statements.resources` - all objects in the bucket.
* `policy.statements.conditions` - list of bucket policy conditions.
* `versioning_state` - disabled.
* `type` - S3
### Related ONTAP commands
* `vserver object-store-server bucket create`
* `vserver object-store-server bucket policy statement create`
### Learn more
* [`DOC /protocols/s3/buckets`](#docs-object-store-protocols_s3_buckets)
*/
func (a *Client) S3BucketCreate(params *S3BucketCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketCreateAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketCreateParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_create",
Method: "POST",
PathPattern: "/protocols/s3/buckets",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketCreateReader{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.(*S3BucketCreateAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketCreateDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketDelete Deletes the S3 bucket configuration of an SVM. An access policy is also deleted on an S3 bucket "delete" command.
### Related ONTAP commands
* `vserver object-store-server bucket delete`
* `vserver object-store-server bucket policy statement delete`
* `vserver object-store-server bucket policy-statement-condition delete`
### Learn more
* [`DOC /protocols/s3/buckets`](#docs-object-store-protocols_s3_buckets)
*/
func (a *Client) S3BucketDelete(params *S3BucketDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketDeleteAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketDeleteParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_delete",
Method: "DELETE",
PathPattern: "/protocols/s3/buckets/{svm.uuid}/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketDeleteReader{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.(*S3BucketDeleteAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketDeleteDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketGet Retrieves the S3 bucket configuration of an SVM. Note that in order to retrieve S3 bucket policy conditions, the 'fields' option should be set to '**'.
### Related ONTAP commands
* `vserver object-store-server bucket show`
* `vserver object-store-server bucket policy statement show`
* `vserver object-store-server bucket policy-statement-condition show`
### Learn more
* [`DOC /protocols/s3/buckets`](#docs-object-store-protocols_s3_buckets)
*/
func (a *Client) S3BucketGet(params *S3BucketGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketGetParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_get",
Method: "GET",
PathPattern: "/protocols/s3/buckets/{svm.uuid}/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketGetReader{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.(*S3BucketGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketModify Updates the S3 bucket configuration of an SVM.
### Important notes
- The following fields can be modified for a bucket:
- `comment` - Any information related to the bucket.
- `size` - Bucket size.
- `policy` - An access policy for resources (buckets and objects) that defines their permissions. New policies are created after existing policies are deleted. To retain any of the existing policy statements, you need to specify those statements again. Also, policy conditions can be specified as part of a bucket policy.
- `qos_policy` - A QoS policy for buckets.
- `audit_event_selector` - Audit policy for buckets. None can be specified for both access and permission to remove an audit event selector.
- `versioning-state` - Versioning state of the buckets.
- `nas_path` - NAS path to which the bucket corresponds to.
### Related ONTAP commands
* `vserver object-store-server bucket modify`
* `vserver object-store-server bucket policy statement modify`
* `vserver object-store-server bucket policy-statement-condition modify`
### Learn more
* [`DOC /protocols/s3/buckets`](#docs-object-store-protocols_s3_buckets)
*/
func (a *Client) S3BucketModify(params *S3BucketModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketModifyAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketModifyParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_modify",
Method: "PATCH",
PathPattern: "/protocols/s3/buckets/{svm.uuid}/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketModifyReader{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.(*S3BucketModifyAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketModifyDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketSvmCreate Creates the S3 bucket configuration of an SVM.
### Important notes
- Each SVM can have one or more bucket configurations.
- Aggregate lists should be specified explicitly. If not specified, then the bucket is auto-provisioned as a FlexGroup.
- Constituents per aggregate specifies the number of components (or FlexVols) per aggregate. Is specified only when an aggregate list is explicitly defined.
- An access policy can be created when a bucket is created.
- "qos_policy" can be specified if a bucket needs to be attached to a QoS group policy during creation time.
- "audit_event_selector" can be specified if a bucket needs to be specify access and permission type for auditing.
### Required properties
* `svm.uuid` - Existing SVM in which to create the bucket configuration.
* `name` - Bucket name that is to be created.
### Recommended optional properties
* `aggregates` - List of aggregates for the FlexGroup on which the bucket is hosted on.
* `constituents_per_aggregate` - Number of constituents per aggregate.
* `size` - Specifying the bucket size is recommended.
* `policy` - Specifying policy enables users to perform operations on buckets. Hence specifying the resource permissions is recommended.
* `qos_policy` - A QoS policy for buckets.
* `audit_event_selector` - Audit policy for buckets.
* `versioning_state` - Versioning state for buckets.
* `type` - Type of bucket.
* `nas_path` - The NAS path to which the NAS bucket corresponds to.
### Default property values
* `size` - 800MB
* `comment` - ""
* `aggregates` - No default value.
* `constituents_per_aggregate` - _4_ , if an aggregates list is specified. Otherwise, no default value.
* `policy.statements.actions` - GetObject, PutObject, DeleteObject, ListBucket, ListBucketMultipartUploads, ListMultipartUploadParts, GetObjectTagging, PutObjectTagging, DeleteObjectTagging, GetBucketVersioning, PutBucketVersioning.
* `policy.statements.principals` - all S3 users and groups in the SVM.
* `policy.statements.resources` - all objects in the bucket.
* `policy.statements.conditions` - list of bucket policy conditions.
* `qos-policy` - No default value.
* `versioning_state` - disabled.
* `type` - S3.
### Related ONTAP commands
* `vserver object-store-server bucket create`
* `vserver object-store-server bucket policy statement create`
* `vserver object-store-server bucket policy-statement-condition create`
### Learn more
* [`DOC /protocols/s3/services/{svm.uuid}/buckets`](#docs-object-store-protocols_s3_services_{svm.uuid}_buckets)
*/
func (a *Client) S3BucketSvmCreate(params *S3BucketSvmCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmCreateAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketSvmCreateParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_svm_create",
Method: "POST",
PathPattern: "/protocols/s3/services/{svm.uuid}/buckets",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketSvmCreateReader{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.(*S3BucketSvmCreateAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketSvmCreateDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketSvmDelete Deletes the S3 bucket configuration of an SVM. An access policy is also deleted on an S3 bucket "delete" command.
### Related ONTAP commands
* `vserver object-store-server bucket delete`
* `vserver object-store-server bucket policy statement delete`
* `vserver object-store-server bucket policy-statement-condition delete`
### Learn more
* [`DOC /protocols/s3/services/{svm.uuid}/buckets`](#docs-object-store-protocols_s3_services_{svm.uuid}_buckets)
*/
func (a *Client) S3BucketSvmDelete(params *S3BucketSvmDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmDeleteAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketSvmDeleteParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_svm_delete",
Method: "DELETE",
PathPattern: "/protocols/s3/services/{svm.uuid}/buckets/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketSvmDeleteReader{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.(*S3BucketSvmDeleteAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketSvmDeleteDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketSvmGet Retrieves the S3 bucket configuration of an SVM. Note that in order to retrieve S3 bucket policy conditions, the 'fields' option should be set to '**'.
### Related ONTAP commands
* `vserver object-store-server bucket show`
* `vserver object-store-server bucket policy statement show`
* `vserver object-store-server bucket policy-statement-condition show`
### Learn more
* [`DOC /protocols/s3/services/{svm.uuid}/buckets`](#docs-object-store-protocols_s3_services_{svm.uuid}_buckets)
*/
func (a *Client) S3BucketSvmGet(params *S3BucketSvmGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketSvmGetParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_svm_get",
Method: "GET",
PathPattern: "/protocols/s3/services/{svm.uuid}/buckets/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketSvmGetReader{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.(*S3BucketSvmGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketSvmGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3BucketSvmModify Updates the S3 bucket configuration of an SVM.
### Important notes
- The following fields can be modified for a bucket:
- `comment` - Any information related to the bucket.
- `size` - Bucket size.
- `policy` - An access policy for resources (buckets and objects) that defines their permissions. New policies are created after existing policies are deleted. To retain any of the existing policy statements, you need to specify those statements again. Policy conditions can also be modified using this API.
- `qos_policy` - A QoS policy for buckets.
- `audit_event_selector` - Audit policy for buckets. None can be specified for both access and permission to remove audit event selector.
- `versioning_state` - Versioning state for buckets.
- `nas_path` - NAS path to which the NAS bucket corresponds to.
### Related ONTAP commands
* `vserver object-store-server bucket modify`
* `vserver object-store-server bucket policy statement modify`
* `vserver object-store-server bucket policy-statement-condition modify`
### Learn more
* [`DOC /protocols/s3/services/{svm.uuid}/buckets`](#docs-object-store-protocols_s3_services_{svm.uuid}_buckets)
*/
func (a *Client) S3BucketSvmModify(params *S3BucketSvmModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3BucketSvmModifyAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3BucketSvmModifyParams()
}
op := &runtime.ClientOperation{
ID: "s3_bucket_svm_modify",
Method: "PATCH",
PathPattern: "/protocols/s3/services/{svm.uuid}/buckets/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3BucketSvmModifyReader{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.(*S3BucketSvmModifyAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3BucketSvmModifyDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3GroupCollectionGet Retrieves the S3 group's SVM configuration.
### Related ONTAP commands
* `vserver object-store-server group show`
### Learn more
* [`DOC /protocols/s3/services/{svm.uuid}/groups`](#docs-object-store-protocols_s3_services_{svm.uuid}_groups)
*/
func (a *Client) S3GroupCollectionGet(params *S3GroupCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3GroupCollectionGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3GroupCollectionGetParams()
}
op := &runtime.ClientOperation{
ID: "s3_group_collection_get",
Method: "GET",
PathPattern: "/protocols/s3/services/{svm.uuid}/groups",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &S3GroupCollectionGetReader{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.(*S3GroupCollectionGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*S3GroupCollectionGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
S3GroupCreate Creates the S3 group configuration.
### Important notes
- Each SVM can have one or more s3 group configurations.
### Required properties
* `svm.uuid` - Existing SVM in which to create the user configuration.
* `name` - Group name that is to be created.
* `users` - List of users to be added into the group.
* `policies` - List of policies are to be attached to this group.
### Recommended optional properties
* `comment` - Short description about the S3 Group.
### Related ONTAP commands
* `vserver object-store-server group create`
### Learn more
* [`DOC /protocols/s3/services/{svm.uuid}/groups`](#docs-object-store-protocols_s3_services_{svm.uuid}_groups)
*/
func (a *Client) S3GroupCreate(params *S3GroupCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*S3GroupCreateCreated, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewS3GroupCreateParams()
}
op := &runtime.ClientOperation{
ID: "s3_group_create",
Method: "POST",
PathPattern: "/protocols/s3/services/{svm.uuid}/groups",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
| 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/object_store/s3_group_collection_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_group_collection_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3GroupCollectionGetReader is a Reader for the S3GroupCollectionGet structure.
type S3GroupCollectionGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3GroupCollectionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3GroupCollectionGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3GroupCollectionGetDefault(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
}
}
// NewS3GroupCollectionGetOK creates a S3GroupCollectionGetOK with default headers values
func NewS3GroupCollectionGetOK() *S3GroupCollectionGetOK {
return &S3GroupCollectionGetOK{}
}
/*
S3GroupCollectionGetOK describes a response with status code 200, with default header values.
OK
*/
type S3GroupCollectionGetOK struct {
Payload *models.S3GroupResponse
}
// IsSuccess returns true when this s3 group collection get o k response has a 2xx status code
func (o *S3GroupCollectionGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 group collection get o k response has a 3xx status code
func (o *S3GroupCollectionGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 group collection get o k response has a 4xx status code
func (o *S3GroupCollectionGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 group collection get o k response has a 5xx status code
func (o *S3GroupCollectionGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 group collection get o k response a status code equal to that given
func (o *S3GroupCollectionGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3GroupCollectionGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups][%d] s3GroupCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3GroupCollectionGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups][%d] s3GroupCollectionGetOK %+v", 200, o.Payload)
}
func (o *S3GroupCollectionGetOK) GetPayload() *models.S3GroupResponse {
return o.Payload
}
func (o *S3GroupCollectionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3GroupResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3GroupCollectionGetDefault creates a S3GroupCollectionGetDefault with default headers values
func NewS3GroupCollectionGetDefault(code int) *S3GroupCollectionGetDefault {
return &S3GroupCollectionGetDefault{
_statusCode: code,
}
}
/*
S3GroupCollectionGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3GroupCollectionGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 group collection get default response
func (o *S3GroupCollectionGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 group collection get default response has a 2xx status code
func (o *S3GroupCollectionGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 group collection get default response has a 3xx status code
func (o *S3GroupCollectionGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 group collection get default response has a 4xx status code
func (o *S3GroupCollectionGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 group collection get default response has a 5xx status code
func (o *S3GroupCollectionGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 group collection get default response a status code equal to that given
func (o *S3GroupCollectionGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3GroupCollectionGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups][%d] s3_group_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupCollectionGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/groups][%d] s3_group_collection_get default %+v", o._statusCode, o.Payload)
}
func (o *S3GroupCollectionGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3GroupCollectionGetDefault) 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/object_store/s3_bucket_svm_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_bucket_svm_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3BucketSvmDeleteReader is a Reader for the S3BucketSvmDelete structure.
type S3BucketSvmDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3BucketSvmDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewS3BucketSvmDeleteAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3BucketSvmDeleteDefault(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
}
}
// NewS3BucketSvmDeleteAccepted creates a S3BucketSvmDeleteAccepted with default headers values
func NewS3BucketSvmDeleteAccepted() *S3BucketSvmDeleteAccepted {
return &S3BucketSvmDeleteAccepted{}
}
/*
S3BucketSvmDeleteAccepted describes a response with status code 202, with default header values.
Accepted
*/
type S3BucketSvmDeleteAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this s3 bucket svm delete accepted response has a 2xx status code
func (o *S3BucketSvmDeleteAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 bucket svm delete accepted response has a 3xx status code
func (o *S3BucketSvmDeleteAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 bucket svm delete accepted response has a 4xx status code
func (o *S3BucketSvmDeleteAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 bucket svm delete accepted response has a 5xx status code
func (o *S3BucketSvmDeleteAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this s3 bucket svm delete accepted response a status code equal to that given
func (o *S3BucketSvmDeleteAccepted) IsCode(code int) bool {
return code == 202
}
func (o *S3BucketSvmDeleteAccepted) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3BucketSvmDeleteAccepted %+v", 202, o.Payload)
}
func (o *S3BucketSvmDeleteAccepted) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3BucketSvmDeleteAccepted %+v", 202, o.Payload)
}
func (o *S3BucketSvmDeleteAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *S3BucketSvmDeleteAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3BucketSvmDeleteDefault creates a S3BucketSvmDeleteDefault with default headers values
func NewS3BucketSvmDeleteDefault(code int) *S3BucketSvmDeleteDefault {
return &S3BucketSvmDeleteDefault{
_statusCode: code,
}
}
/*
S3BucketSvmDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error code | Message |
| ---------- | ------- |
| 92405811 | "Failed to delete bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Wait a few minutes and try the operation again.";
| 92405858 | "Failed to \\\"delete\\\" the \\\"bucket\\\" because the operation is only supported on data SVMs.";
| 92405861 | "The specified SVM UUID or bucket UUID does not exist.";
| 92405779 | "Failed to remove bucket \\\"{bucket name}\\\" for SVM \\\"{svm.name}\\\". Reason: {Reason for failure}. ";
| 92405813 | "Failed to delete the object store volume. Reason: {Reason for failure}.";
| 92405864 | "An error occurred when deleting an access policy. The reason for failure is detailed in the error message.";
*/
type S3BucketSvmDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 bucket svm delete default response
func (o *S3BucketSvmDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 bucket svm delete default response has a 2xx status code
func (o *S3BucketSvmDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 bucket svm delete default response has a 3xx status code
func (o *S3BucketSvmDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 bucket svm delete default response has a 4xx status code
func (o *S3BucketSvmDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 bucket svm delete default response has a 5xx status code
func (o *S3BucketSvmDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 bucket svm delete default response a status code equal to that given
func (o *S3BucketSvmDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3BucketSvmDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3_bucket_svm_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}/buckets/{uuid}][%d] s3_bucket_svm_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3BucketSvmDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3BucketSvmDeleteDefault) 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/object_store/s3_service_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_service_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3ServiceDeleteReader is a Reader for the S3ServiceDelete structure.
type S3ServiceDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3ServiceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3ServiceDeleteOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3ServiceDeleteDefault(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
}
}
// NewS3ServiceDeleteOK creates a S3ServiceDeleteOK with default headers values
func NewS3ServiceDeleteOK() *S3ServiceDeleteOK {
return &S3ServiceDeleteOK{}
}
/*
S3ServiceDeleteOK describes a response with status code 200, with default header values.
OK
*/
type S3ServiceDeleteOK struct {
Payload *models.S3ServiceDeleteResponse
}
// IsSuccess returns true when this s3 service delete o k response has a 2xx status code
func (o *S3ServiceDeleteOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 service delete o k response has a 3xx status code
func (o *S3ServiceDeleteOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 service delete o k response has a 4xx status code
func (o *S3ServiceDeleteOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 service delete o k response has a 5xx status code
func (o *S3ServiceDeleteOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 service delete o k response a status code equal to that given
func (o *S3ServiceDeleteOK) IsCode(code int) bool {
return code == 200
}
func (o *S3ServiceDeleteOK) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}][%d] s3ServiceDeleteOK %+v", 200, o.Payload)
}
func (o *S3ServiceDeleteOK) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}][%d] s3ServiceDeleteOK %+v", 200, o.Payload)
}
func (o *S3ServiceDeleteOK) GetPayload() *models.S3ServiceDeleteResponse {
return o.Payload
}
func (o *S3ServiceDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3ServiceDeleteResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3ServiceDeleteDefault creates a S3ServiceDeleteDefault with default headers values
func NewS3ServiceDeleteDefault(code int) *S3ServiceDeleteDefault {
return &S3ServiceDeleteDefault{
_statusCode: code,
}
}
/*
S3ServiceDeleteDefault describes a response with status code -1, with default header values.
ONTAP Error Response Codes
| Error Code | Description |
| ---------- | ----------- |
| 92405864 | An error occurs when deleting an S3 user or bucket. The reason for failure is detailed in the error message. Follow the error codes specified for the user or bucket endpoints to see details for the failure. |
*/
type S3ServiceDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 service delete default response
func (o *S3ServiceDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 service delete default response has a 2xx status code
func (o *S3ServiceDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 service delete default response has a 3xx status code
func (o *S3ServiceDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 service delete default response has a 4xx status code
func (o *S3ServiceDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 service delete default response has a 5xx status code
func (o *S3ServiceDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 service delete default response a status code equal to that given
func (o *S3ServiceDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3ServiceDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}][%d] s3_service_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /protocols/s3/services/{svm.uuid}][%d] s3_service_delete default %+v", o._statusCode, o.Payload)
}
func (o *S3ServiceDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3ServiceDeleteDefault) 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/object_store/s3_user_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/object_store/s3_user_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package object_store
// 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"
)
// S3UserGetReader is a Reader for the S3UserGet structure.
type S3UserGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *S3UserGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewS3UserGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewS3UserGetDefault(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
}
}
// NewS3UserGetOK creates a S3UserGetOK with default headers values
func NewS3UserGetOK() *S3UserGetOK {
return &S3UserGetOK{}
}
/*
S3UserGetOK describes a response with status code 200, with default header values.
OK
*/
type S3UserGetOK struct {
Payload *models.S3User
}
// IsSuccess returns true when this s3 user get o k response has a 2xx status code
func (o *S3UserGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this s3 user get o k response has a 3xx status code
func (o *S3UserGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this s3 user get o k response has a 4xx status code
func (o *S3UserGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this s3 user get o k response has a 5xx status code
func (o *S3UserGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this s3 user get o k response a status code equal to that given
func (o *S3UserGetOK) IsCode(code int) bool {
return code == 200
}
func (o *S3UserGetOK) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3UserGetOK %+v", 200, o.Payload)
}
func (o *S3UserGetOK) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3UserGetOK %+v", 200, o.Payload)
}
func (o *S3UserGetOK) GetPayload() *models.S3User {
return o.Payload
}
func (o *S3UserGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.S3User)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewS3UserGetDefault creates a S3UserGetDefault with default headers values
func NewS3UserGetDefault(code int) *S3UserGetDefault {
return &S3UserGetDefault{
_statusCode: code,
}
}
/*
S3UserGetDefault describes a response with status code -1, with default header values.
Error
*/
type S3UserGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the s3 user get default response
func (o *S3UserGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this s3 user get default response has a 2xx status code
func (o *S3UserGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this s3 user get default response has a 3xx status code
func (o *S3UserGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this s3 user get default response has a 4xx status code
func (o *S3UserGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this s3 user get default response has a 5xx status code
func (o *S3UserGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this s3 user get default response a status code equal to that given
func (o *S3UserGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *S3UserGetDefault) Error() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3_user_get default %+v", o._statusCode, o.Payload)
}
func (o *S3UserGetDefault) String() string {
return fmt.Sprintf("[GET /protocols/s3/services/{svm.uuid}/users/{name}][%d] s3_user_get default %+v", o._statusCode, o.Payload)
}
func (o *S3UserGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *S3UserGetDefault) 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/cloud/cloud_target_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// 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"
)
// NewCloudTargetGetParams creates a new CloudTargetGetParams 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 NewCloudTargetGetParams() *CloudTargetGetParams {
return &CloudTargetGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCloudTargetGetParamsWithTimeout creates a new CloudTargetGetParams object
// with the ability to set a timeout on a request.
func NewCloudTargetGetParamsWithTimeout(timeout time.Duration) *CloudTargetGetParams {
return &CloudTargetGetParams{
timeout: timeout,
}
}
// NewCloudTargetGetParamsWithContext creates a new CloudTargetGetParams object
// with the ability to set a context for a request.
func NewCloudTargetGetParamsWithContext(ctx context.Context) *CloudTargetGetParams {
return &CloudTargetGetParams{
Context: ctx,
}
}
// NewCloudTargetGetParamsWithHTTPClient creates a new CloudTargetGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCloudTargetGetParamsWithHTTPClient(client *http.Client) *CloudTargetGetParams {
return &CloudTargetGetParams{
HTTPClient: client,
}
}
/*
CloudTargetGetParams contains all the parameters to send to the API endpoint
for the cloud target get operation.
Typically these are written to a http.Request.
*/
type CloudTargetGetParams struct {
/* Fields.
Specify the fields to return.
*/
Fields []string
/* UUID.
Cloud target UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cloud target get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetGetParams) WithDefaults() *CloudTargetGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cloud target get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetGetParams) SetDefaults() {
// no default values defined for this parameter
}
// WithTimeout adds the timeout to the cloud target get params
func (o *CloudTargetGetParams) WithTimeout(timeout time.Duration) *CloudTargetGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cloud target get params
func (o *CloudTargetGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cloud target get params
func (o *CloudTargetGetParams) WithContext(ctx context.Context) *CloudTargetGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cloud target get params
func (o *CloudTargetGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cloud target get params
func (o *CloudTargetGetParams) WithHTTPClient(client *http.Client) *CloudTargetGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cloud target get params
func (o *CloudTargetGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithFields adds the fields to the cloud target get params
func (o *CloudTargetGetParams) WithFields(fields []string) *CloudTargetGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cloud target get params
func (o *CloudTargetGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithUUID adds the uuid to the cloud target get params
func (o *CloudTargetGetParams) WithUUID(uuid string) *CloudTargetGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the cloud target get params
func (o *CloudTargetGetParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *CloudTargetGetParams) 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
}
// bindParamCloudTargetGet binds the parameter fields
func (o *CloudTargetGetParams) 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/cloud/cloud_target_modify_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_modify_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// 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"
)
// NewCloudTargetModifyParams creates a new CloudTargetModifyParams 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 NewCloudTargetModifyParams() *CloudTargetModifyParams {
return &CloudTargetModifyParams{
timeout: cr.DefaultTimeout,
}
}
// NewCloudTargetModifyParamsWithTimeout creates a new CloudTargetModifyParams object
// with the ability to set a timeout on a request.
func NewCloudTargetModifyParamsWithTimeout(timeout time.Duration) *CloudTargetModifyParams {
return &CloudTargetModifyParams{
timeout: timeout,
}
}
// NewCloudTargetModifyParamsWithContext creates a new CloudTargetModifyParams object
// with the ability to set a context for a request.
func NewCloudTargetModifyParamsWithContext(ctx context.Context) *CloudTargetModifyParams {
return &CloudTargetModifyParams{
Context: ctx,
}
}
// NewCloudTargetModifyParamsWithHTTPClient creates a new CloudTargetModifyParams object
// with the ability to set a custom HTTPClient for a request.
func NewCloudTargetModifyParamsWithHTTPClient(client *http.Client) *CloudTargetModifyParams {
return &CloudTargetModifyParams{
HTTPClient: client,
}
}
/*
CloudTargetModifyParams contains all the parameters to send to the API endpoint
for the cloud target modify operation.
Typically these are written to a http.Request.
*/
type CloudTargetModifyParams struct {
/* CheckOnly.
Do not modify the configuration, only check that the PATCH request succeeds.
*/
CheckOnly *bool
/* IgnoreWarnings.
Specifies whether or not warnings should be ignored.
*/
IgnoreWarnings *bool
/* Info.
Info specification
*/
Info *models.CloudTarget
/* 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.
Cloud target UUID
*/
UUID string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cloud target modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetModifyParams) WithDefaults() *CloudTargetModifyParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cloud target modify params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetModifyParams) SetDefaults() {
var (
returnTimeoutDefault = int64(0)
)
val := CloudTargetModifyParams{
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cloud target modify params
func (o *CloudTargetModifyParams) WithTimeout(timeout time.Duration) *CloudTargetModifyParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cloud target modify params
func (o *CloudTargetModifyParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cloud target modify params
func (o *CloudTargetModifyParams) WithContext(ctx context.Context) *CloudTargetModifyParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cloud target modify params
func (o *CloudTargetModifyParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cloud target modify params
func (o *CloudTargetModifyParams) WithHTTPClient(client *http.Client) *CloudTargetModifyParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cloud target modify params
func (o *CloudTargetModifyParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithCheckOnly adds the checkOnly to the cloud target modify params
func (o *CloudTargetModifyParams) WithCheckOnly(checkOnly *bool) *CloudTargetModifyParams {
o.SetCheckOnly(checkOnly)
return o
}
// SetCheckOnly adds the checkOnly to the cloud target modify params
func (o *CloudTargetModifyParams) SetCheckOnly(checkOnly *bool) {
o.CheckOnly = checkOnly
}
// WithIgnoreWarnings adds the ignoreWarnings to the cloud target modify params
func (o *CloudTargetModifyParams) WithIgnoreWarnings(ignoreWarnings *bool) *CloudTargetModifyParams {
o.SetIgnoreWarnings(ignoreWarnings)
return o
}
// SetIgnoreWarnings adds the ignoreWarnings to the cloud target modify params
func (o *CloudTargetModifyParams) SetIgnoreWarnings(ignoreWarnings *bool) {
o.IgnoreWarnings = ignoreWarnings
}
// WithInfo adds the info to the cloud target modify params
func (o *CloudTargetModifyParams) WithInfo(info *models.CloudTarget) *CloudTargetModifyParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cloud target modify params
func (o *CloudTargetModifyParams) SetInfo(info *models.CloudTarget) {
o.Info = info
}
// WithReturnTimeout adds the returnTimeout to the cloud target modify params
func (o *CloudTargetModifyParams) WithReturnTimeout(returnTimeout *int64) *CloudTargetModifyParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cloud target modify params
func (o *CloudTargetModifyParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithUUID adds the uuid to the cloud target modify params
func (o *CloudTargetModifyParams) WithUUID(uuid string) *CloudTargetModifyParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the cloud target modify params
func (o *CloudTargetModifyParams) SetUUID(uuid string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *CloudTargetModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.CheckOnly != nil {
// query param check_only
var qrCheckOnly bool
if o.CheckOnly != nil {
qrCheckOnly = *o.CheckOnly
}
qCheckOnly := swag.FormatBool(qrCheckOnly)
if qCheckOnly != "" {
if err := r.SetQueryParam("check_only", qCheckOnly); err != nil {
return err
}
}
}
if o.IgnoreWarnings != nil {
// query param ignore_warnings
var qrIgnoreWarnings bool
if o.IgnoreWarnings != nil {
qrIgnoreWarnings = *o.IgnoreWarnings
}
qIgnoreWarnings := swag.FormatBool(qrIgnoreWarnings)
if qIgnoreWarnings != "" {
if err := r.SetQueryParam("ignore_warnings", qIgnoreWarnings); err != nil {
return err
}
}
}
if o.Info != nil {
if err := r.SetBodyParam(o.Info); err != nil {
return err
}
}
if o.ReturnTimeout != nil {
// query param return_timeout
var qrReturnTimeout int64
if o.ReturnTimeout != nil {
qrReturnTimeout = *o.ReturnTimeout
}
qReturnTimeout := swag.FormatInt64(qrReturnTimeout)
if qReturnTimeout != "" {
if err := r.SetQueryParam("return_timeout", qReturnTimeout); err != nil {
return err
}
}
}
// path param 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/cloud/cloud_target_delete_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_delete_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// 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"
)
// CloudTargetDeleteReader is a Reader for the CloudTargetDelete structure.
type CloudTargetDeleteReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CloudTargetDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewCloudTargetDeleteAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCloudTargetDeleteDefault(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
}
}
// NewCloudTargetDeleteAccepted creates a CloudTargetDeleteAccepted with default headers values
func NewCloudTargetDeleteAccepted() *CloudTargetDeleteAccepted {
return &CloudTargetDeleteAccepted{}
}
/*
CloudTargetDeleteAccepted describes a response with status code 202, with default header values.
Accepted
*/
type CloudTargetDeleteAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this cloud target delete accepted response has a 2xx status code
func (o *CloudTargetDeleteAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cloud target delete accepted response has a 3xx status code
func (o *CloudTargetDeleteAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this cloud target delete accepted response has a 4xx status code
func (o *CloudTargetDeleteAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this cloud target delete accepted response has a 5xx status code
func (o *CloudTargetDeleteAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this cloud target delete accepted response a status code equal to that given
func (o *CloudTargetDeleteAccepted) IsCode(code int) bool {
return code == 202
}
func (o *CloudTargetDeleteAccepted) Error() string {
return fmt.Sprintf("[DELETE /cloud/targets/{uuid}][%d] cloudTargetDeleteAccepted %+v", 202, o.Payload)
}
func (o *CloudTargetDeleteAccepted) String() string {
return fmt.Sprintf("[DELETE /cloud/targets/{uuid}][%d] cloudTargetDeleteAccepted %+v", 202, o.Payload)
}
func (o *CloudTargetDeleteAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *CloudTargetDeleteAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCloudTargetDeleteDefault creates a CloudTargetDeleteDefault with default headers values
func NewCloudTargetDeleteDefault(code int) *CloudTargetDeleteDefault {
return &CloudTargetDeleteDefault{
_statusCode: code,
}
}
/*
CloudTargetDeleteDefault describes a response with status code -1, with default header values.
Error
*/
type CloudTargetDeleteDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cloud target delete default response
func (o *CloudTargetDeleteDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cloud target delete default response has a 2xx status code
func (o *CloudTargetDeleteDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cloud target delete default response has a 3xx status code
func (o *CloudTargetDeleteDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cloud target delete default response has a 4xx status code
func (o *CloudTargetDeleteDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cloud target delete default response has a 5xx status code
func (o *CloudTargetDeleteDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cloud target delete default response a status code equal to that given
func (o *CloudTargetDeleteDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CloudTargetDeleteDefault) Error() string {
return fmt.Sprintf("[DELETE /cloud/targets/{uuid}][%d] cloud_target_delete default %+v", o._statusCode, o.Payload)
}
func (o *CloudTargetDeleteDefault) String() string {
return fmt.Sprintf("[DELETE /cloud/targets/{uuid}][%d] cloud_target_delete default %+v", o._statusCode, o.Payload)
}
func (o *CloudTargetDeleteDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CloudTargetDeleteDefault) 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/cloud/cloud_client.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_client.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
)
// New creates a new cloud API client.
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
/*
Client for cloud 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 {
CloudTargetCollectionGet(params *CloudTargetCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetCollectionGetOK, error)
CloudTargetCreate(params *CloudTargetCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetCreateAccepted, error)
CloudTargetDelete(params *CloudTargetDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetDeleteAccepted, error)
CloudTargetGet(params *CloudTargetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetGetOK, error)
CloudTargetModify(params *CloudTargetModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetModifyAccepted, error)
SetTransport(transport runtime.ClientTransport)
}
/*
CloudTargetCollectionGet Retrieves the collection of cloud targets in the cluster.
### Related ONTAP commands
* `storage aggregate object-store config show`
*/
func (a *Client) CloudTargetCollectionGet(params *CloudTargetCollectionGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetCollectionGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewCloudTargetCollectionGetParams()
}
op := &runtime.ClientOperation{
ID: "cloud_target_collection_get",
Method: "GET",
PathPattern: "/cloud/targets",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CloudTargetCollectionGetReader{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.(*CloudTargetCollectionGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*CloudTargetCollectionGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
CloudTargetCreate Creates a cloud target.
### Required properties
* `name` - Name for the cloud target.
* `owner` - Owner of the target: _fabricpool_, _snapmirror_.
* `provider_type` - Type of cloud provider: _AWS_S3_, _Azure_Cloud_, _SGWS_, _IBM_COS_, _AliCloud_, _GoogleCloud_, _ONTAP_S3_.
* `server` - Fully qualified domain name of the object store server. Required when `provider_type` is one of the following: _SGWS_, _IBM_COS_, _AliCloud_.
* `container` - Data bucket/container name.
* `access_key` - Access key ID if `provider_type` is not _Azure_Cloud_ and `authentication_type` is _key_.
* `secret_password` - Secret access key if `provider_type` is not _Azure_Cloud_ and `authentication_type` is _key_.
* `azure_account` - Azure account if `provider_type` is _Azure_Cloud_.
* `azure_private_key` - Azure access key if `provider_type` is _Azure_Cloud_.
* `cap_url` - Full URL of the request to a CAP server for retrieving temporary credentials if `authentication_type` is _cap_.
* `snapmirror_use` - Use of the cloud target if `owner` is _snapmirror_: data, metadata.
### Recommended optional properties
* `authentication_type` - Authentication used to access the target: _key_, _cap_, _ec2_iam_, _gcp_sa_, _azure_msi_.
* `ssl_enabled` - SSL/HTTPS enabled or disabled.
* `port` - Port number of the object store that ONTAP uses when establishing a connection.
* `ipspace` - IPspace to use in order to reach the cloud target.
* `use_http_proxy` - Use the HTTP proxy when connecting to the object store server.
* `azure_sas_token` - Shared access signature to grant limited access to Azure storage account resources.
* `svm.name` or `svm.uuid` - Name or UUID of SVM if `owner` is _snapmirror_.
### Default property values
* `authentication_type`
- _ec2_iam_ - if running in Cloud Volumes ONTAP in AWS
- _gcp_sa_ - if running in Cloud Volumes ONTAP in GCP
- _azure_msi_ - if running in Cloud Volumes ONTAP in Azure
- _key_ - in all other cases.
* `server`
- _s3.amazonaws.com_ - if `provider_type` is _AWS_S3_
- _blob.core.windows.net_ - if `provider_type` is _Azure_Cloud_
- _storage.googleapis.com_ - if `provider_type` is _GoogleCloud_
* `ssl_enabled` - _true_
* `port`
- _443_ if `ssl_enabled` is _true_
- _80_ if `ssl_enabled` is _false_ and `provider_type` is not _SGWS_
- _8084_ if `ssl_enabled` is _false_ and `provider_type` is _SGWS_
* `ipspace` - _Default_
* `certificate_validation_enabled` - _true_
* `ignore_warnings` - _false_
* `check_only` - _false_
* `use_http_proxy` - _false_
* `server_side_encryption`
- _none_ - if `provider_type` is _ONTAP_S3_
- _sse_s3_ - if `provider_type` is not _ONTAP_S3_
* `url_style`
- _path_style_ - if `provider_type` is neither _AWS_S3_ nor _AliCloud_
- _virtual_hosted_style_ - if `provider_type` is either _AWS_S3 or _AliCloud__
### Related ONTAP commands
* `storage aggregate object-store config create`
*/
func (a *Client) CloudTargetCreate(params *CloudTargetCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetCreateAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewCloudTargetCreateParams()
}
op := &runtime.ClientOperation{
ID: "cloud_target_create",
Method: "POST",
PathPattern: "/cloud/targets",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CloudTargetCreateReader{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.(*CloudTargetCreateAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*CloudTargetCreateDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
CloudTargetDelete Deletes the cloud target specified by the UUID. This request starts a job and returns a link to that job.
### Related ONTAP commands
* `storage aggregate object-store config delete`
*/
func (a *Client) CloudTargetDelete(params *CloudTargetDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetDeleteAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewCloudTargetDeleteParams()
}
op := &runtime.ClientOperation{
ID: "cloud_target_delete",
Method: "DELETE",
PathPattern: "/cloud/targets/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CloudTargetDeleteReader{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.(*CloudTargetDeleteAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*CloudTargetDeleteDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
CloudTargetGet Retrieves the cloud target specified by the UUID.
### Related ONTAP commands
* `storage aggregate object-store config show`
*/
func (a *Client) CloudTargetGet(params *CloudTargetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetGetOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewCloudTargetGetParams()
}
op := &runtime.ClientOperation{
ID: "cloud_target_get",
Method: "GET",
PathPattern: "/cloud/targets/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CloudTargetGetReader{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.(*CloudTargetGetOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*CloudTargetGetDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
CloudTargetModify Updates the cloud target specified by the UUID with the fields in the body. This request starts a job and returns a link to that job.
### Related ONTAP commands
* `storage aggregate object-store config modify`
*/
func (a *Client) CloudTargetModify(params *CloudTargetModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CloudTargetModifyAccepted, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewCloudTargetModifyParams()
}
op := &runtime.ClientOperation{
ID: "cloud_target_modify",
Method: "PATCH",
PathPattern: "/cloud/targets/{uuid}",
ProducesMediaTypes: []string{"application/hal+json", "application/json"},
ConsumesMediaTypes: []string{"application/hal+json", "application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CloudTargetModifyReader{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.(*CloudTargetModifyAccepted)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*CloudTargetModifyDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
// SetTransport changes the transport on the client
func (a *Client) SetTransport(transport runtime.ClientTransport) {
a.transport = transport
}
| go | Apache-2.0 | b3b4703e958c25d54c4d48138d9e80ae32fadac3 | 2026-01-07T09:44:30.792320Z | false |
kubev2v/forklift | https://github.com/kubev2v/forklift/blob/b3b4703e958c25d54c4d48138d9e80ae32fadac3/cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_get_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_get_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// 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"
)
// CloudTargetGetReader is a Reader for the CloudTargetGet structure.
type CloudTargetGetReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CloudTargetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewCloudTargetGetOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCloudTargetGetDefault(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
}
}
// NewCloudTargetGetOK creates a CloudTargetGetOK with default headers values
func NewCloudTargetGetOK() *CloudTargetGetOK {
return &CloudTargetGetOK{}
}
/*
CloudTargetGetOK describes a response with status code 200, with default header values.
OK
*/
type CloudTargetGetOK struct {
Payload *models.CloudTarget
}
// IsSuccess returns true when this cloud target get o k response has a 2xx status code
func (o *CloudTargetGetOK) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cloud target get o k response has a 3xx status code
func (o *CloudTargetGetOK) IsRedirect() bool {
return false
}
// IsClientError returns true when this cloud target get o k response has a 4xx status code
func (o *CloudTargetGetOK) IsClientError() bool {
return false
}
// IsServerError returns true when this cloud target get o k response has a 5xx status code
func (o *CloudTargetGetOK) IsServerError() bool {
return false
}
// IsCode returns true when this cloud target get o k response a status code equal to that given
func (o *CloudTargetGetOK) IsCode(code int) bool {
return code == 200
}
func (o *CloudTargetGetOK) Error() string {
return fmt.Sprintf("[GET /cloud/targets/{uuid}][%d] cloudTargetGetOK %+v", 200, o.Payload)
}
func (o *CloudTargetGetOK) String() string {
return fmt.Sprintf("[GET /cloud/targets/{uuid}][%d] cloudTargetGetOK %+v", 200, o.Payload)
}
func (o *CloudTargetGetOK) GetPayload() *models.CloudTarget {
return o.Payload
}
func (o *CloudTargetGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.CloudTarget)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCloudTargetGetDefault creates a CloudTargetGetDefault with default headers values
func NewCloudTargetGetDefault(code int) *CloudTargetGetDefault {
return &CloudTargetGetDefault{
_statusCode: code,
}
}
/*
CloudTargetGetDefault describes a response with status code -1, with default header values.
Error
*/
type CloudTargetGetDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cloud target get default response
func (o *CloudTargetGetDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cloud target get default response has a 2xx status code
func (o *CloudTargetGetDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cloud target get default response has a 3xx status code
func (o *CloudTargetGetDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cloud target get default response has a 4xx status code
func (o *CloudTargetGetDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cloud target get default response has a 5xx status code
func (o *CloudTargetGetDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cloud target get default response a status code equal to that given
func (o *CloudTargetGetDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CloudTargetGetDefault) Error() string {
return fmt.Sprintf("[GET /cloud/targets/{uuid}][%d] cloud_target_get default %+v", o._statusCode, o.Payload)
}
func (o *CloudTargetGetDefault) String() string {
return fmt.Sprintf("[GET /cloud/targets/{uuid}][%d] cloud_target_get default %+v", o._statusCode, o.Payload)
}
func (o *CloudTargetGetDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CloudTargetGetDefault) 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/cloud/cloud_target_collection_get_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_collection_get_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// 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"
)
// NewCloudTargetCollectionGetParams creates a new CloudTargetCollectionGetParams 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 NewCloudTargetCollectionGetParams() *CloudTargetCollectionGetParams {
return &CloudTargetCollectionGetParams{
timeout: cr.DefaultTimeout,
}
}
// NewCloudTargetCollectionGetParamsWithTimeout creates a new CloudTargetCollectionGetParams object
// with the ability to set a timeout on a request.
func NewCloudTargetCollectionGetParamsWithTimeout(timeout time.Duration) *CloudTargetCollectionGetParams {
return &CloudTargetCollectionGetParams{
timeout: timeout,
}
}
// NewCloudTargetCollectionGetParamsWithContext creates a new CloudTargetCollectionGetParams object
// with the ability to set a context for a request.
func NewCloudTargetCollectionGetParamsWithContext(ctx context.Context) *CloudTargetCollectionGetParams {
return &CloudTargetCollectionGetParams{
Context: ctx,
}
}
// NewCloudTargetCollectionGetParamsWithHTTPClient creates a new CloudTargetCollectionGetParams object
// with the ability to set a custom HTTPClient for a request.
func NewCloudTargetCollectionGetParamsWithHTTPClient(client *http.Client) *CloudTargetCollectionGetParams {
return &CloudTargetCollectionGetParams{
HTTPClient: client,
}
}
/*
CloudTargetCollectionGetParams contains all the parameters to send to the API endpoint
for the cloud target collection get operation.
Typically these are written to a http.Request.
*/
type CloudTargetCollectionGetParams struct {
/* AccessKey.
Filter by access_key
*/
AccessKey *string
/* AuthenticationType.
Filter by authentication_type
*/
AuthenticationType *string
/* AzureAccount.
Filter by azure_account
*/
AzureAccount *string
/* CapURL.
Filter by cap_url
*/
CapURL *string
/* CertificateValidationEnabled.
Filter by certificate_validation_enabled
*/
CertificateValidationEnabled *bool
/* ClusterName.
Filter by cluster.name
*/
ClusterName *string
/* ClusterUUID.
Filter by cluster.uuid
*/
ClusterUUID *string
/* Container.
Filter by container
*/
Container *string
/* Fields.
Specify the fields to return.
*/
Fields []string
/* IpspaceName.
Filter by ipspace.name
*/
IpspaceName *string
/* IpspaceUUID.
Filter by ipspace.uuid
*/
IpspaceUUID *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
/* Owner.
Filter by owner
*/
Owner *string
/* Port.
Filter by port
*/
Port *int64
/* ProviderType.
Filter by provider_type
*/
ProviderType *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
/* Server.
Filter by server
*/
Server *string
/* ServerSideEncryption.
Filter by server_side_encryption
*/
ServerSideEncryption *string
/* SnapmirrorUse.
Filter by snapmirror_use
*/
SnapmirrorUse *string
/* SslEnabled.
Filter by ssl_enabled
*/
SslEnabled *bool
/* SvmName.
Filter by svm.name
*/
SvmName *string
/* SvmUUID.
Filter by svm.uuid
*/
SvmUUID *string
/* URLStyle.
Filter by url_style
*/
URLStyle *string
/* UseHTTPProxy.
Filter by use_http_proxy
*/
UseHTTPProxy *bool
/* Used.
Filter by used
*/
Used *int64
/* UUID.
Filter by uuid
*/
UUID *string
timeout time.Duration
Context context.Context
HTTPClient *http.Client
}
// WithDefaults hydrates default values in the cloud target collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetCollectionGetParams) WithDefaults() *CloudTargetCollectionGetParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cloud target collection get params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetCollectionGetParams) SetDefaults() {
var (
returnRecordsDefault = bool(true)
returnTimeoutDefault = int64(15)
)
val := CloudTargetCollectionGetParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithTimeout(timeout time.Duration) *CloudTargetCollectionGetParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithContext(ctx context.Context) *CloudTargetCollectionGetParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithHTTPClient(client *http.Client) *CloudTargetCollectionGetParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithAccessKey adds the accessKey to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithAccessKey(accessKey *string) *CloudTargetCollectionGetParams {
o.SetAccessKey(accessKey)
return o
}
// SetAccessKey adds the accessKey to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetAccessKey(accessKey *string) {
o.AccessKey = accessKey
}
// WithAuthenticationType adds the authenticationType to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithAuthenticationType(authenticationType *string) *CloudTargetCollectionGetParams {
o.SetAuthenticationType(authenticationType)
return o
}
// SetAuthenticationType adds the authenticationType to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetAuthenticationType(authenticationType *string) {
o.AuthenticationType = authenticationType
}
// WithAzureAccount adds the azureAccount to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithAzureAccount(azureAccount *string) *CloudTargetCollectionGetParams {
o.SetAzureAccount(azureAccount)
return o
}
// SetAzureAccount adds the azureAccount to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetAzureAccount(azureAccount *string) {
o.AzureAccount = azureAccount
}
// WithCapURL adds the capURL to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithCapURL(capURL *string) *CloudTargetCollectionGetParams {
o.SetCapURL(capURL)
return o
}
// SetCapURL adds the capUrl to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetCapURL(capURL *string) {
o.CapURL = capURL
}
// WithCertificateValidationEnabled adds the certificateValidationEnabled to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithCertificateValidationEnabled(certificateValidationEnabled *bool) *CloudTargetCollectionGetParams {
o.SetCertificateValidationEnabled(certificateValidationEnabled)
return o
}
// SetCertificateValidationEnabled adds the certificateValidationEnabled to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetCertificateValidationEnabled(certificateValidationEnabled *bool) {
o.CertificateValidationEnabled = certificateValidationEnabled
}
// WithClusterName adds the clusterName to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithClusterName(clusterName *string) *CloudTargetCollectionGetParams {
o.SetClusterName(clusterName)
return o
}
// SetClusterName adds the clusterName to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetClusterName(clusterName *string) {
o.ClusterName = clusterName
}
// WithClusterUUID adds the clusterUUID to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithClusterUUID(clusterUUID *string) *CloudTargetCollectionGetParams {
o.SetClusterUUID(clusterUUID)
return o
}
// SetClusterUUID adds the clusterUuid to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetClusterUUID(clusterUUID *string) {
o.ClusterUUID = clusterUUID
}
// WithContainer adds the container to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithContainer(container *string) *CloudTargetCollectionGetParams {
o.SetContainer(container)
return o
}
// SetContainer adds the container to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetContainer(container *string) {
o.Container = container
}
// WithFields adds the fields to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithFields(fields []string) *CloudTargetCollectionGetParams {
o.SetFields(fields)
return o
}
// SetFields adds the fields to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetFields(fields []string) {
o.Fields = fields
}
// WithIpspaceName adds the ipspaceName to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithIpspaceName(ipspaceName *string) *CloudTargetCollectionGetParams {
o.SetIpspaceName(ipspaceName)
return o
}
// SetIpspaceName adds the ipspaceName to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetIpspaceName(ipspaceName *string) {
o.IpspaceName = ipspaceName
}
// WithIpspaceUUID adds the ipspaceUUID to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithIpspaceUUID(ipspaceUUID *string) *CloudTargetCollectionGetParams {
o.SetIpspaceUUID(ipspaceUUID)
return o
}
// SetIpspaceUUID adds the ipspaceUuid to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetIpspaceUUID(ipspaceUUID *string) {
o.IpspaceUUID = ipspaceUUID
}
// WithMaxRecords adds the maxRecords to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithMaxRecords(maxRecords *int64) *CloudTargetCollectionGetParams {
o.SetMaxRecords(maxRecords)
return o
}
// SetMaxRecords adds the maxRecords to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetMaxRecords(maxRecords *int64) {
o.MaxRecords = maxRecords
}
// WithName adds the name to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithName(name *string) *CloudTargetCollectionGetParams {
o.SetName(name)
return o
}
// SetName adds the name to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetName(name *string) {
o.Name = name
}
// WithOrderBy adds the orderBy to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithOrderBy(orderBy []string) *CloudTargetCollectionGetParams {
o.SetOrderBy(orderBy)
return o
}
// SetOrderBy adds the orderBy to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetOrderBy(orderBy []string) {
o.OrderBy = orderBy
}
// WithOwner adds the owner to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithOwner(owner *string) *CloudTargetCollectionGetParams {
o.SetOwner(owner)
return o
}
// SetOwner adds the owner to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetOwner(owner *string) {
o.Owner = owner
}
// WithPort adds the port to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithPort(port *int64) *CloudTargetCollectionGetParams {
o.SetPort(port)
return o
}
// SetPort adds the port to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetPort(port *int64) {
o.Port = port
}
// WithProviderType adds the providerType to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithProviderType(providerType *string) *CloudTargetCollectionGetParams {
o.SetProviderType(providerType)
return o
}
// SetProviderType adds the providerType to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetProviderType(providerType *string) {
o.ProviderType = providerType
}
// WithReturnRecords adds the returnRecords to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithReturnRecords(returnRecords *bool) *CloudTargetCollectionGetParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithReturnTimeout(returnTimeout *int64) *CloudTargetCollectionGetParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WithScope adds the scope to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithScope(scope *string) *CloudTargetCollectionGetParams {
o.SetScope(scope)
return o
}
// SetScope adds the scope to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetScope(scope *string) {
o.Scope = scope
}
// WithServer adds the server to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithServer(server *string) *CloudTargetCollectionGetParams {
o.SetServer(server)
return o
}
// SetServer adds the server to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetServer(server *string) {
o.Server = server
}
// WithServerSideEncryption adds the serverSideEncryption to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithServerSideEncryption(serverSideEncryption *string) *CloudTargetCollectionGetParams {
o.SetServerSideEncryption(serverSideEncryption)
return o
}
// SetServerSideEncryption adds the serverSideEncryption to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetServerSideEncryption(serverSideEncryption *string) {
o.ServerSideEncryption = serverSideEncryption
}
// WithSnapmirrorUse adds the snapmirrorUse to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithSnapmirrorUse(snapmirrorUse *string) *CloudTargetCollectionGetParams {
o.SetSnapmirrorUse(snapmirrorUse)
return o
}
// SetSnapmirrorUse adds the snapmirrorUse to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetSnapmirrorUse(snapmirrorUse *string) {
o.SnapmirrorUse = snapmirrorUse
}
// WithSslEnabled adds the sslEnabled to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithSslEnabled(sslEnabled *bool) *CloudTargetCollectionGetParams {
o.SetSslEnabled(sslEnabled)
return o
}
// SetSslEnabled adds the sslEnabled to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetSslEnabled(sslEnabled *bool) {
o.SslEnabled = sslEnabled
}
// WithSvmName adds the svmName to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithSvmName(svmName *string) *CloudTargetCollectionGetParams {
o.SetSvmName(svmName)
return o
}
// SetSvmName adds the svmName to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetSvmName(svmName *string) {
o.SvmName = svmName
}
// WithSvmUUID adds the svmUUID to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithSvmUUID(svmUUID *string) *CloudTargetCollectionGetParams {
o.SetSvmUUID(svmUUID)
return o
}
// SetSvmUUID adds the svmUuid to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetSvmUUID(svmUUID *string) {
o.SvmUUID = svmUUID
}
// WithURLStyle adds the uRLStyle to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithURLStyle(uRLStyle *string) *CloudTargetCollectionGetParams {
o.SetURLStyle(uRLStyle)
return o
}
// SetURLStyle adds the urlStyle to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetURLStyle(uRLStyle *string) {
o.URLStyle = uRLStyle
}
// WithUseHTTPProxy adds the useHTTPProxy to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithUseHTTPProxy(useHTTPProxy *bool) *CloudTargetCollectionGetParams {
o.SetUseHTTPProxy(useHTTPProxy)
return o
}
// SetUseHTTPProxy adds the useHttpProxy to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetUseHTTPProxy(useHTTPProxy *bool) {
o.UseHTTPProxy = useHTTPProxy
}
// WithUsed adds the used to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithUsed(used *int64) *CloudTargetCollectionGetParams {
o.SetUsed(used)
return o
}
// SetUsed adds the used to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetUsed(used *int64) {
o.Used = used
}
// WithUUID adds the uuid to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) WithUUID(uuid *string) *CloudTargetCollectionGetParams {
o.SetUUID(uuid)
return o
}
// SetUUID adds the uuid to the cloud target collection get params
func (o *CloudTargetCollectionGetParams) SetUUID(uuid *string) {
o.UUID = uuid
}
// WriteToRequest writes these params to a swagger request
func (o *CloudTargetCollectionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.AccessKey != nil {
// query param access_key
var qrAccessKey string
if o.AccessKey != nil {
qrAccessKey = *o.AccessKey
}
qAccessKey := qrAccessKey
if qAccessKey != "" {
if err := r.SetQueryParam("access_key", qAccessKey); err != nil {
return err
}
}
}
if o.AuthenticationType != nil {
// query param authentication_type
var qrAuthenticationType string
if o.AuthenticationType != nil {
qrAuthenticationType = *o.AuthenticationType
}
qAuthenticationType := qrAuthenticationType
if qAuthenticationType != "" {
if err := r.SetQueryParam("authentication_type", qAuthenticationType); err != nil {
return err
}
}
}
if o.AzureAccount != nil {
// query param azure_account
var qrAzureAccount string
if o.AzureAccount != nil {
qrAzureAccount = *o.AzureAccount
}
qAzureAccount := qrAzureAccount
if qAzureAccount != "" {
if err := r.SetQueryParam("azure_account", qAzureAccount); err != nil {
return err
}
}
}
if o.CapURL != nil {
// query param cap_url
var qrCapURL string
if o.CapURL != nil {
qrCapURL = *o.CapURL
}
qCapURL := qrCapURL
if qCapURL != "" {
if err := r.SetQueryParam("cap_url", qCapURL); err != nil {
return err
}
}
}
if o.CertificateValidationEnabled != nil {
// query param certificate_validation_enabled
var qrCertificateValidationEnabled bool
if o.CertificateValidationEnabled != nil {
qrCertificateValidationEnabled = *o.CertificateValidationEnabled
}
qCertificateValidationEnabled := swag.FormatBool(qrCertificateValidationEnabled)
if qCertificateValidationEnabled != "" {
if err := r.SetQueryParam("certificate_validation_enabled", qCertificateValidationEnabled); err != nil {
return err
}
}
}
if o.ClusterName != nil {
// query param cluster.name
var qrClusterName string
if o.ClusterName != nil {
qrClusterName = *o.ClusterName
}
qClusterName := qrClusterName
if qClusterName != "" {
if err := r.SetQueryParam("cluster.name", qClusterName); err != nil {
return err
}
}
}
if o.ClusterUUID != nil {
// query param cluster.uuid
var qrClusterUUID string
if o.ClusterUUID != nil {
qrClusterUUID = *o.ClusterUUID
}
qClusterUUID := qrClusterUUID
if qClusterUUID != "" {
if err := r.SetQueryParam("cluster.uuid", qClusterUUID); err != nil {
return err
}
}
}
if o.Container != nil {
// query param container
var qrContainer string
if o.Container != nil {
qrContainer = *o.Container
}
qContainer := qrContainer
if qContainer != "" {
if err := r.SetQueryParam("container", qContainer); 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.IpspaceName != nil {
// query param ipspace.name
var qrIpspaceName string
if o.IpspaceName != nil {
qrIpspaceName = *o.IpspaceName
}
qIpspaceName := qrIpspaceName
if qIpspaceName != "" {
if err := r.SetQueryParam("ipspace.name", qIpspaceName); err != nil {
return err
}
}
}
if o.IpspaceUUID != nil {
// query param ipspace.uuid
var qrIpspaceUUID string
if o.IpspaceUUID != nil {
qrIpspaceUUID = *o.IpspaceUUID
}
qIpspaceUUID := qrIpspaceUUID
if qIpspaceUUID != "" {
if err := r.SetQueryParam("ipspace.uuid", qIpspaceUUID); 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.Owner != nil {
// query param owner
var qrOwner string
if o.Owner != nil {
qrOwner = *o.Owner
}
qOwner := qrOwner
if qOwner != "" {
if err := r.SetQueryParam("owner", qOwner); err != nil {
return err
}
}
}
if o.Port != nil {
// query param port
var qrPort int64
if o.Port != nil {
qrPort = *o.Port
}
qPort := swag.FormatInt64(qrPort)
if qPort != "" {
if err := r.SetQueryParam("port", qPort); err != nil {
return err
}
}
}
if o.ProviderType != nil {
// query param provider_type
var qrProviderType string
if o.ProviderType != nil {
qrProviderType = *o.ProviderType
}
qProviderType := qrProviderType
if qProviderType != "" {
if err := r.SetQueryParam("provider_type", qProviderType); 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.Server != nil {
// query param server
var qrServer string
if o.Server != nil {
qrServer = *o.Server
}
qServer := qrServer
if qServer != "" {
if err := r.SetQueryParam("server", qServer); err != nil {
return err
}
}
}
if o.ServerSideEncryption != nil {
// query param server_side_encryption
var qrServerSideEncryption string
if o.ServerSideEncryption != nil {
qrServerSideEncryption = *o.ServerSideEncryption
}
qServerSideEncryption := qrServerSideEncryption
if qServerSideEncryption != "" {
if err := r.SetQueryParam("server_side_encryption", qServerSideEncryption); err != nil {
return err
}
}
}
if o.SnapmirrorUse != nil {
// query param snapmirror_use
var qrSnapmirrorUse string
if o.SnapmirrorUse != nil {
qrSnapmirrorUse = *o.SnapmirrorUse
}
qSnapmirrorUse := qrSnapmirrorUse
if qSnapmirrorUse != "" {
if err := r.SetQueryParam("snapmirror_use", qSnapmirrorUse); err != nil {
return err
}
}
}
if o.SslEnabled != nil {
// query param ssl_enabled
var qrSslEnabled bool
if o.SslEnabled != nil {
qrSslEnabled = *o.SslEnabled
}
qSslEnabled := swag.FormatBool(qrSslEnabled)
if qSslEnabled != "" {
if err := r.SetQueryParam("ssl_enabled", qSslEnabled); 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.URLStyle != nil {
// query param url_style
var qrURLStyle string
if o.URLStyle != nil {
qrURLStyle = *o.URLStyle
}
qURLStyle := qrURLStyle
if qURLStyle != "" {
if err := r.SetQueryParam("url_style", qURLStyle); err != nil {
return err
}
}
}
if o.UseHTTPProxy != nil {
// query param use_http_proxy
var qrUseHTTPProxy bool
if o.UseHTTPProxy != nil {
qrUseHTTPProxy = *o.UseHTTPProxy
}
qUseHTTPProxy := swag.FormatBool(qrUseHTTPProxy)
if qUseHTTPProxy != "" {
if err := r.SetQueryParam("use_http_proxy", qUseHTTPProxy); err != nil {
return err
}
}
}
if o.Used != nil {
// query param used
var qrUsed int64
if o.Used != nil {
qrUsed = *o.Used
}
qUsed := swag.FormatInt64(qrUsed)
if qUsed != "" {
if err := r.SetQueryParam("used", qUsed); 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
}
// bindParamCloudTargetCollectionGet binds the parameter fields
func (o *CloudTargetCollectionGetParams) 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
}
// bindParamCloudTargetCollectionGet binds the parameter order_by
func (o *CloudTargetCollectionGetParams) 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/cloud/cloud_target_create_parameters.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_create_parameters.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// 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"
)
// NewCloudTargetCreateParams creates a new CloudTargetCreateParams 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 NewCloudTargetCreateParams() *CloudTargetCreateParams {
return &CloudTargetCreateParams{
timeout: cr.DefaultTimeout,
}
}
// NewCloudTargetCreateParamsWithTimeout creates a new CloudTargetCreateParams object
// with the ability to set a timeout on a request.
func NewCloudTargetCreateParamsWithTimeout(timeout time.Duration) *CloudTargetCreateParams {
return &CloudTargetCreateParams{
timeout: timeout,
}
}
// NewCloudTargetCreateParamsWithContext creates a new CloudTargetCreateParams object
// with the ability to set a context for a request.
func NewCloudTargetCreateParamsWithContext(ctx context.Context) *CloudTargetCreateParams {
return &CloudTargetCreateParams{
Context: ctx,
}
}
// NewCloudTargetCreateParamsWithHTTPClient creates a new CloudTargetCreateParams object
// with the ability to set a custom HTTPClient for a request.
func NewCloudTargetCreateParamsWithHTTPClient(client *http.Client) *CloudTargetCreateParams {
return &CloudTargetCreateParams{
HTTPClient: client,
}
}
/*
CloudTargetCreateParams contains all the parameters to send to the API endpoint
for the cloud target create operation.
Typically these are written to a http.Request.
*/
type CloudTargetCreateParams struct {
/* CheckOnly.
Do not create the target configuration, only check that the POST request succeeds.
*/
CheckOnly *bool
/* IgnoreWarnings.
Specifies whether or not warning codes should be ignored.
*/
IgnoreWarnings *bool
/* Info.
Info specification
*/
Info *models.CloudTarget
/* 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 cloud target create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetCreateParams) WithDefaults() *CloudTargetCreateParams {
o.SetDefaults()
return o
}
// SetDefaults hydrates default values in the cloud target create params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *CloudTargetCreateParams) SetDefaults() {
var (
returnRecordsDefault = bool(false)
returnTimeoutDefault = int64(0)
)
val := CloudTargetCreateParams{
ReturnRecords: &returnRecordsDefault,
ReturnTimeout: &returnTimeoutDefault,
}
val.timeout = o.timeout
val.Context = o.Context
val.HTTPClient = o.HTTPClient
*o = val
}
// WithTimeout adds the timeout to the cloud target create params
func (o *CloudTargetCreateParams) WithTimeout(timeout time.Duration) *CloudTargetCreateParams {
o.SetTimeout(timeout)
return o
}
// SetTimeout adds the timeout to the cloud target create params
func (o *CloudTargetCreateParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
// WithContext adds the context to the cloud target create params
func (o *CloudTargetCreateParams) WithContext(ctx context.Context) *CloudTargetCreateParams {
o.SetContext(ctx)
return o
}
// SetContext adds the context to the cloud target create params
func (o *CloudTargetCreateParams) SetContext(ctx context.Context) {
o.Context = ctx
}
// WithHTTPClient adds the HTTPClient to the cloud target create params
func (o *CloudTargetCreateParams) WithHTTPClient(client *http.Client) *CloudTargetCreateParams {
o.SetHTTPClient(client)
return o
}
// SetHTTPClient adds the HTTPClient to the cloud target create params
func (o *CloudTargetCreateParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
// WithCheckOnly adds the checkOnly to the cloud target create params
func (o *CloudTargetCreateParams) WithCheckOnly(checkOnly *bool) *CloudTargetCreateParams {
o.SetCheckOnly(checkOnly)
return o
}
// SetCheckOnly adds the checkOnly to the cloud target create params
func (o *CloudTargetCreateParams) SetCheckOnly(checkOnly *bool) {
o.CheckOnly = checkOnly
}
// WithIgnoreWarnings adds the ignoreWarnings to the cloud target create params
func (o *CloudTargetCreateParams) WithIgnoreWarnings(ignoreWarnings *bool) *CloudTargetCreateParams {
o.SetIgnoreWarnings(ignoreWarnings)
return o
}
// SetIgnoreWarnings adds the ignoreWarnings to the cloud target create params
func (o *CloudTargetCreateParams) SetIgnoreWarnings(ignoreWarnings *bool) {
o.IgnoreWarnings = ignoreWarnings
}
// WithInfo adds the info to the cloud target create params
func (o *CloudTargetCreateParams) WithInfo(info *models.CloudTarget) *CloudTargetCreateParams {
o.SetInfo(info)
return o
}
// SetInfo adds the info to the cloud target create params
func (o *CloudTargetCreateParams) SetInfo(info *models.CloudTarget) {
o.Info = info
}
// WithReturnRecords adds the returnRecords to the cloud target create params
func (o *CloudTargetCreateParams) WithReturnRecords(returnRecords *bool) *CloudTargetCreateParams {
o.SetReturnRecords(returnRecords)
return o
}
// SetReturnRecords adds the returnRecords to the cloud target create params
func (o *CloudTargetCreateParams) SetReturnRecords(returnRecords *bool) {
o.ReturnRecords = returnRecords
}
// WithReturnTimeout adds the returnTimeout to the cloud target create params
func (o *CloudTargetCreateParams) WithReturnTimeout(returnTimeout *int64) *CloudTargetCreateParams {
o.SetReturnTimeout(returnTimeout)
return o
}
// SetReturnTimeout adds the returnTimeout to the cloud target create params
func (o *CloudTargetCreateParams) SetReturnTimeout(returnTimeout *int64) {
o.ReturnTimeout = returnTimeout
}
// WriteToRequest writes these params to a swagger request
func (o *CloudTargetCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.CheckOnly != nil {
// query param check_only
var qrCheckOnly bool
if o.CheckOnly != nil {
qrCheckOnly = *o.CheckOnly
}
qCheckOnly := swag.FormatBool(qrCheckOnly)
if qCheckOnly != "" {
if err := r.SetQueryParam("check_only", qCheckOnly); err != nil {
return err
}
}
}
if o.IgnoreWarnings != nil {
// query param ignore_warnings
var qrIgnoreWarnings bool
if o.IgnoreWarnings != nil {
qrIgnoreWarnings = *o.IgnoreWarnings
}
qIgnoreWarnings := swag.FormatBool(qrIgnoreWarnings)
if qIgnoreWarnings != "" {
if err := r.SetQueryParam("ignore_warnings", qIgnoreWarnings); 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/cloud/cloud_target_modify_responses.go | cmd/vsphere-xcopy-volume-populator/vendor/github.com/netapp/trident/storage_drivers/ontap/api/rest/client/cloud/cloud_target_modify_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package cloud
// 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"
)
// CloudTargetModifyReader is a Reader for the CloudTargetModify structure.
type CloudTargetModifyReader struct {
formats strfmt.Registry
}
// ReadResponse reads a server response into the received o.
func (o *CloudTargetModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 202:
result := NewCloudTargetModifyAccepted()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
default:
result := NewCloudTargetModifyDefault(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
}
}
// NewCloudTargetModifyAccepted creates a CloudTargetModifyAccepted with default headers values
func NewCloudTargetModifyAccepted() *CloudTargetModifyAccepted {
return &CloudTargetModifyAccepted{}
}
/*
CloudTargetModifyAccepted describes a response with status code 202, with default header values.
Accepted
*/
type CloudTargetModifyAccepted struct {
Payload *models.JobLinkResponse
}
// IsSuccess returns true when this cloud target modify accepted response has a 2xx status code
func (o *CloudTargetModifyAccepted) IsSuccess() bool {
return true
}
// IsRedirect returns true when this cloud target modify accepted response has a 3xx status code
func (o *CloudTargetModifyAccepted) IsRedirect() bool {
return false
}
// IsClientError returns true when this cloud target modify accepted response has a 4xx status code
func (o *CloudTargetModifyAccepted) IsClientError() bool {
return false
}
// IsServerError returns true when this cloud target modify accepted response has a 5xx status code
func (o *CloudTargetModifyAccepted) IsServerError() bool {
return false
}
// IsCode returns true when this cloud target modify accepted response a status code equal to that given
func (o *CloudTargetModifyAccepted) IsCode(code int) bool {
return code == 202
}
func (o *CloudTargetModifyAccepted) Error() string {
return fmt.Sprintf("[PATCH /cloud/targets/{uuid}][%d] cloudTargetModifyAccepted %+v", 202, o.Payload)
}
func (o *CloudTargetModifyAccepted) String() string {
return fmt.Sprintf("[PATCH /cloud/targets/{uuid}][%d] cloudTargetModifyAccepted %+v", 202, o.Payload)
}
func (o *CloudTargetModifyAccepted) GetPayload() *models.JobLinkResponse {
return o.Payload
}
func (o *CloudTargetModifyAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
o.Payload = new(models.JobLinkResponse)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
return nil
}
// NewCloudTargetModifyDefault creates a CloudTargetModifyDefault with default headers values
func NewCloudTargetModifyDefault(code int) *CloudTargetModifyDefault {
return &CloudTargetModifyDefault{
_statusCode: code,
}
}
/*
CloudTargetModifyDefault describes a response with status code -1, with default header values.
Error
*/
type CloudTargetModifyDefault struct {
_statusCode int
Payload *models.ErrorResponse
}
// Code gets the status code for the cloud target modify default response
func (o *CloudTargetModifyDefault) Code() int {
return o._statusCode
}
// IsSuccess returns true when this cloud target modify default response has a 2xx status code
func (o *CloudTargetModifyDefault) IsSuccess() bool {
return o._statusCode/100 == 2
}
// IsRedirect returns true when this cloud target modify default response has a 3xx status code
func (o *CloudTargetModifyDefault) IsRedirect() bool {
return o._statusCode/100 == 3
}
// IsClientError returns true when this cloud target modify default response has a 4xx status code
func (o *CloudTargetModifyDefault) IsClientError() bool {
return o._statusCode/100 == 4
}
// IsServerError returns true when this cloud target modify default response has a 5xx status code
func (o *CloudTargetModifyDefault) IsServerError() bool {
return o._statusCode/100 == 5
}
// IsCode returns true when this cloud target modify default response a status code equal to that given
func (o *CloudTargetModifyDefault) IsCode(code int) bool {
return o._statusCode == code
}
func (o *CloudTargetModifyDefault) Error() string {
return fmt.Sprintf("[PATCH /cloud/targets/{uuid}][%d] cloud_target_modify default %+v", o._statusCode, o.Payload)
}
func (o *CloudTargetModifyDefault) String() string {
return fmt.Sprintf("[PATCH /cloud/targets/{uuid}][%d] cloud_target_modify default %+v", o._statusCode, o.Payload)
}
func (o *CloudTargetModifyDefault) GetPayload() *models.ErrorResponse {
return o.Payload
}
func (o *CloudTargetModifyDefault) 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.